Seite 1 von 1

Verfasst: Mo 16.Mai, 2005 16:48
von Anonymous
Demolition_FABI hat geschrieben:I am the new admin on this site and I want to release a new version of the mod and I have only posted this link, because so many people requested it.
But with my PHP-skills not being that good, it's quite hard for me, so I would be quite pleased, if you could help me a bit. Would it be possible that you send me the bugs that you have found, so I can fix them for the next version?

That would be very great!

Thank you very much


Demolition FABI
You see? That is much better. Now we can understand each other :D

To start, I will tell you some:

- Fix COMPLETELLY the Instal.txt! As you try to install it, you will notice that there a bunch of bad lines. Either because phpbb has improved or change a lot in 2 years, or because there are several mistakes like (REMPLACE instead of ADD AFTER...)

- Fix the Instalxxx.php that comes with the zip, those two installs that you have to execute are really wrong, and wont work until you change the commands for the SQL Database.

- Fix the Install.txt because it doesnt have the lines to put on the control pannel the CashMod options.

- Fix the bug that doesnt let the outside files to be downloaded.

- Fix the bug that reload the page instead of going to the right one.

- Fix the bug that in the control pannel, instead of changing stuff in the Download options (like Traffic for all users) reload the main forum page.

If you want some more, let me know :S

You know what you should do? Install it, and go correcting all mistakes that you see. I was doing that, but after the mistake 20 something i got bored ^_^U

Now Im just trying to make it work so I dont have to use a back up of the files........

I hope it was helpful
Kat Ayanami


PD: Someday... I will register xD

Verfasst: Mo 16.Mai, 2005 17:14
von Anonymous
By the way FABI, in what is your ZIP file different from ltiefland???

It weighs different and has some different files.... ¬¬ ?

Kat

Verfasst: Mo 16.Mai, 2005 18:29
von Demolition_FABI
KAT_Ayanami hat geschrieben:By the way FABI, in what is your ZIP file different from ltiefland???

It weighs different and has some different files.... ¬¬ ?

Kat
I don't know, I've uploaded it, as he has sent it to me!


What do you think is better to take as a basic to work on, the mod by hotschi, or the one by ltiefland?
I also want to change that the recently added downloads are not at the bottom, but at the top, do you know if this is possible (of course it is :mrgreen: ) and how I could manage it?
I think best would be, that you can choose if the files are sorted by date (added), name, size, outside / not outside, free / not free and if they are ascending or descendig (a bit like the memberlist).
But that goes far beyond my horizon of php^^ so if you could help me, that would be really great.

I've also found the following fixes (if so. has more, send them) :

Code: Alles auswählen

##############################################################
## MOD Title:		Fix Download Mod for phpBB 2.0.9 and newer
## MOD Author: OXPUS < webmaster@oxpus.de > (Karsten Ude) http://www.oxpus.de
## MOD Description:	This Mod makes the Download Mod compatible for phpBB 2.0.9 and newer
## MOD Version:		1.0.1
##
## Installation Level:	Easy
## Installation Time:	2-5 Minutes
## Files To Edit:	5
##			downloads.php
##			load.php
##			admin/admin_dl_cat.php
##			admin/admin_dl_traffic_all_users.php
##			admin/admin_dl_traffic_single_user.php
##
## Included Files:	n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
##   2005-04-09 - Version 1.0.1
##      - Fix several security leaks
##
##   2004-04-26 - Version 1.0.0
##      - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
downloads.php

#
#-----[ FIND ]------------------------------------------
#
//
// Set page ID for session management
//
$userdata = session_pagestart($user_ip, PAGE_DOWNLOADS);
init_userprefs($userdata);
//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------------
#
$cat = ( $HTTP_POST_VARS['cat'] ) ? intval($HTTP_POST_VARS['cat']) : intval($HTTP_GET_VARS['cat']);
$view = ( $HTTP_POST_VARS['view'] ) ? $HTTP_POST_VARS['view'] : $HTTP_GET_VARS['view'];
$id = ( $HTTP_POST_VARS['id'] ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']);

#
#-----[ OPEN ]------------------------------------------
#
load.php

#
#-----[ FIND ]------------------------------------------
#
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_DOWNLOADS);
init_userprefs($userdata);
//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------------
#
$id = ( $HTTP_POST_VARS['id'] ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']);

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_dl_cat.php

#
#-----[ FIND ]------------------------------------------
#
      $cat_name = ( isset($HTTP_POST_VARS['cat_name']) ) ? trim($HTTP_POST_VARS['cat_name']) : "";

#
#-----[ AFTER, ADD ]------------------------------------------
#
      $path = ( isset($HTTP_POST_VARS['path']) ) ? trim($HTTP_POST_VARS['path']) : "";

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_dl_traffic_all_users.php

#
#-----[ FIND ]------------------------------------------
#
if ($x == "bytes") $traffic_bytes = $traffic;
if ($x == "kb") $traffic_bytes = bcmul($traffic,1024);
if ($x == "mb") $traffic_bytes = bcmul($traffic,1048576);

	//
	// Ok, the traffic has been modified and submitted, let's update
	//
	if( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) )
	{

		$traffic = ( !empty($HTTP_POST_VARS['traffic']) ) ? trim(strip_tags( $HTTP_POST_VARS['traffic'] ) ) : '';
	}

#
#-----[ REPLACE WITH ]------------------------------------------
#
$traffic = ( !empty($HTTP_POST_VARS['traffic']) ) ? trim(strip_tags( $HTTP_POST_VARS['traffic'] ) ) : '';
$x = ( !empty($HTTP_POST_VARS['x']) ) ? trim(strip_tags( $HTTP_POST_VARS['x'] ) ) : '';
$function = ( !empty($HTTP_POST_VARS['function']) ) ? trim(strip_tags( $HTTP_POST_VARS['function'] ) ) : '';

if ($x == "bytes") $traffic_bytes = $traffic;
if ($x == "kb") $traffic_bytes = bcmul($traffic,1024);
if ($x == "mb") $traffic_bytes = bcmul($traffic,1048576);

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_dl_traffic_single_user.php

#
#-----[ FIND ]------------------------------------------
#
	if ($x == "bytes") $traffic_bytes = $user_traffic;

#
#-----[ BEFORE, ADD ]------------------------------------------
#
	$x = ( !empty($HTTP_POST_VARS['x']) ) ? trim(strip_tags( $HTTP_POST_VARS['x'] ) ) : '';
	$function = ( !empty($HTTP_POST_VARS['function']) ) ? trim(strip_tags( $HTTP_POST_VARS['function'] ) ) : '';


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Code: Alles auswählen

##############################################################
## MOD Title: DlModTrafficLimitAddon
## MOD Author: netzmeister < netzmeister@source-code.de > www.source-code.de
## MOD Description: Erlaubt ein Traffic Limit pro Datei anzugeben.
##                  Das Limit wird in Bytes angegeben.
## MOD Version: 1.0.0
##
## Installation Level: (Intermediate)
## Installation Time: 10-20 Minuten
## Files To Edit: 
## - templates/subSilver/admin/dl_files_body.tpl
## - templates/subSilver/admin/dl_files_edit_body.tpl
## - admin/admin_dl_files.php
## - downloads.php
## - language/lang_german/lang_admin.php
##
##
## Included Files: n/a
##############################################################
## Author Notes:
##
## Mod funktioniert nur mit eingebautem Download-Mod von
## Hotschi. ( http://phpbb.hotschi.de )
## Mod befindet sich noch in der Testphase. ;-)
##
##############################################################
## MOD History:
##
##   2004-03-09 - Version 1.0.0
##      - Erste Version des Mods.
##
##############################################################
## Bitte alle Dateien sichern befor Du diesen Mod einbaust.
##
## Auch ein Dump der zu verändernden Tabellen machen. ;-)
##############################################################

#
#-----[ SQL ]------------------------------------------
# // Bitte Tabellen Prefix anpassen
ALTER TABLE phpbb2_downloads ADD traffic INT(255) DEFAULT 0

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/dl_files_body.tpl

#
#-----[ FIND ]------------------------------------------
#
	  <th class="thTop" nowrap="nowrap">{L_DL_FILE_KLICKS}</th>

#
#-----[ AFTER ADD ]------------------------------------------
#
	  <th class="thTop" nowrap="nowrap">{L_DL_FILE_TRAFFIC}</th>

#
#-----[ FIND ]------------------------------------------
#
	  <td class="{downloads.ROW_CLASS}" align="center"><span class="gen">{downloads.FILE_KLICKS}</span></td>

#
#-----[ AFTER ADD ]------------------------------------------
#
	  <td class="{downloads.ROW_CLASS}" align="center"><span class="gen">{downloads.FILE_TRAFFIC}</span></td>

#
#-----[ FIND ]------------------------------------------
#
		&lt;td class="catBottom" align="center" colspan="9"&gt;<input type="submit" class="mainoption" name="add" value="{L_ADD_DOWNLOAD}" />&lt;/td&gt;

#
#-----[ REPLACE WITH ]------------------------------------------
#
		&lt;td class="catBottom" align="center" colspan="10"&gt;<input type="submit" class="mainoption" name="add" value="{L_ADD_DOWNLOAD}" />&lt;/td&gt;


#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/dl_files_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
	&lt;tr&gt;
		&lt;td class="row1" width="38%"&gt;&lt;span class="gen"&gt;{L_DL_IS_FREE}:&lt;/span&gt;<br />
		&lt;span class="gensmall"&gt;{L_FREE_EXPLAIN}&lt;/span&gt;&lt;/td&gt;
		&lt;td class="row2"&gt;<input type=checkbox name="file_free" {CHECKFREE} value="true">&lt;/td&gt;
	&lt;/tr&gt;

#
#-----[ AFTER ADD ]------------------------------------------
#
	&lt;tr&gt;
		&lt;td class="row1" width="38%"&gt;&lt;span class="gen"&gt;{L_DL_TRAFFIC}:&lt;/span&gt;<br />
		&lt;span class="gensmall"&gt;{L_DL_TRAFFIC_EXPLAIN}&lt;/span&gt;&lt;/td&gt;
		&lt;td class="row2"&gt;<input type="text" name="traffic" size="40" maxlength="255" value="{TRAFFIC}" />&lt;/td&gt;
	&lt;/tr&gt;


#
#-----[ OPEN ]------------------------------------------
#
admin/admin_dl_files.php

#
#-----[ FIND ]------------------------------------------
#
					$description = $row['description'];

#
#-----[ AFTER ADD ]------------------------------------------
#
					$file_traffic = $row['traffic'];

#
#-----[ FIND ]------------------------------------------
#
			"L_DL_DESCRIPTION" =&gt; $lang['Dl_file_description'],

#
#-----[ AFTER ADD ]------------------------------------------
#
			"L_DL_TRAFFIC" =&gt; $lang['Dl_traffic'],
			"L_DL_TRAFFIC_EXPLAIN" =&gt; $lang['Dl_traffic_explain'],

#
#-----[ FIND ]------------------------------------------
#
			"DESCRIPTION" =&gt; $description,

#
#-----[ AFTER ADD ]------------------------------------------
#
			"TRAFFIC" =&gt; $file_traffic,

#
#-----[ FIND ]------------------------------------------
#
		$cat_id = ( isset($HTTP_POST_VARS['cat_id']) ) ? intval($HTTP_POST_VARS['cat_id']) : 0;

#
#-----[ AFTER ADD ]------------------------------------------
#
		$file_traffic = ( isset($HTTP_POST_VARS['traffic']) ) ? intval($HTTP_POST_VARS['traffic']) : 0;

#
#-----[ FIND ]------------------------------------------
#
			$sql = "UPDATE " . DOWNLOADS_TABLE . "
				SET description = '" . str_replace("\'", "''", $description) . "', long_desc = '" . str_replace("\'", "''", $long_desc) . "', file_name = '" . str_replace("\'", "''", $file_name) . "', free = '" . str_replace("\'", "''", $file_free) . "', extern = '" . str_replace("\'", "''", $file_extern) . "', cat = '" . str_replace("\'", "''", $cat_id) . "'
				WHERE id = $download_id";

#
#-----[ REPLACE WITH ]------------------------------------------
#
			$sql = "UPDATE " . DOWNLOADS_TABLE . "
				SET traffic = '" . str_replace("\'", "''", $file_traffic) . "', description = '" . str_replace("\'", "''", $description) . "', long_desc = '" . str_replace("\'", "''", $long_desc) . "', file_name = '" . str_replace("\'", "''", $file_name) . "', free = '" . str_replace("\'", "''", $file_free) . "', extern = '" . str_replace("\'", "''", $file_extern) . "', cat = '" . str_replace("\'", "''", $cat_id) . "'
				WHERE id = $download_id";

#
#-----[ FIND ]------------------------------------------
#
			$sql = "INSERT INTO " . DOWNLOADS_TABLE . " (file_name, cat, description, long_desc, free, extern)
				VALUES ('" . str_replace("\'", "''", $file_name) . "', '" . str_replace("\'", "''", $cat_id) . "', '" . str_replace("\'", "''", $description) . "', '" . str_replace("\'", "''", $long_desc) . "', '" . str_replace("\'", "''", $file_free) . "', '" . str_replace("\'", "''", $file_extern) . "')";

#
#-----[ REPLACE WITH ]------------------------------------------
#
			$sql = "INSERT INTO " . DOWNLOADS_TABLE . " (file_name, cat, description, long_desc, free, extern, traffic)
				VALUES ('" . str_replace("\'", "''", $file_name) . "', '" . str_replace("\'", "''", $cat_id) . "', '" . str_replace("\'", "''", $description) . "', '" . str_replace("\'", "''", $long_desc) . "', '" . str_replace("\'", "''", $file_free) . "', '" . str_replace("\'", "''", $file_extern) . "', '" . str_replace("\'", "''", $file_traffic) . "')";

#
#-----[ FIND ]------------------------------------------
#
		$file_klicks = $row['klicks'];

#
#-----[ AFTER ADD ]------------------------------------------
#
		$file_traffic = $row['traffic'];

#

#-----[ FIND ]------------------------------------------
#
			'FILE_KLICKS' =&gt; $file_klicks,

#
#-----[ AFTER ADD ]------------------------------------------
#
			'FILE_TRAFFIC' =&gt; $file_traffic,

#
#-----[ FIND ]------------------------------------------
#
		"L_DL_FILE_KLICKS" =&gt; $lang['Dl_klicks'],


#
#-----[ OPEN ]------------------------------------------
#
downloads.php

#
#-----[ FIND ]------------------------------------------
#
               $cat_desc =  $row['description'];

#
#-----[ AFTER ADD ]------------------------------------------
#
               $file_traffic =  $row['traffic'];

#
#-----[ FIND ]------------------------------------------
#
                if ($file_extern == "1") $file_size_out = $lang['Dl_not_availible'];

#
#-----[ BEFORE ADD ]------------------------------------------
#
				if ((($file_klicks * $file_size) &gt;= $file_traffic) AND ($file_traffic &gt; 0))
				{
				  $file_free = "0";
				  $user_traffic = 0;
				}

#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_admin.php
d
#
#-----[ FIND ]------------------------------------------
#
// That's all Folks!

#
#-----[ BEFORE ADD ]------------------------------------------
#
$lang['Dl_traffic'] = "Max. Traffic";
$lang['Dl_traffic_explain'] = "Maximaler Traffic in Byte, welcher durch die Datei erzeugt werden darf.<br>Der Wert 0 deaktiviert die Traffickontrolle";


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Code: Alles auswählen

# 
#-----[ FIND ]------------------------------------------ 
# 
$sql = "SELECT id, cat_name FROM " . DL_CAT_TABLE; 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
$sql = "SELECT * FROM " . DL_CAT_TABLE . " ORDER by sort";

Code: Alles auswählen

################################################################################
##
## Mod Title:		Dl Mod (Hotschi) Addon - Category Pagination
## Mod Author:		AmigaLink < webmaster@amigalink.de > (Markus Schmidt) http://www.EssenMitFreude.info  
## Mod Description:	Causes paginations to the categories of the Dl Mod from Hotschi.
##			
## Mod Version:		1.0.0 
##			
##
## Compatibility:	2.0.x
## Installation Level:	Easy 
## Installation Time:	5- 10 Minutes 
##
## Files To Edit:	<5>
##				admin/admin_board.php
##				
##				downloads.php
##				
##				language/lang_english/lang_admin.php
##				language/lang_german/lang_admin.php
##				
##				templates/subSilver/admin/board_config_body.tpl
##
## Included Files:	<1>
##
##				templates/subSilver/downloads_body.tpl
##
## Author Notes:
##			This Addon is for the Download Mod 2.1.2 from Hotschi.
##			The included download_body.tpl is optional! Only use it when you doesn't like the Original! 
##
################################################################################
##
##  The following sites also contain the latest version of this MOD: 
## 
##  http://www.AmigaLink.de
##  http://www.phpBBhacks.com
##  http://www.phpBB.de
## 
##  Full support for this MOD can be obtained at: 
##
##  http://www.AmigaLink.de
##
################################################################################
##
##   2005-01-10 - Version 1.0.0
##	- Release
##
################################################################################
##
##  This hack is released under the GPL License. 
##  This hack can be freely used, but not distributed, without permission.
##  Intellectual Property Rights are retained by the hack author(s) 
##  listed above.
##
################################################################################
##
##  BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
##  affected files.
##
################################################################################
#
#----------[ RUN SQL ]----------------------------------
#
#  Run the following SQL statement to update your phpBB database.
#  You can use phpMyAdmin or a similar tool to run this update.
#
#  IMPORTANT: If you have changed the table prefix from the default of phpBB,
#  please be sure to replace phpBB with your prefix BEFORE running this update.
#

INSERT INTO `phpbb_config` VALUES ('dl_links_per_page', '10');

#
#----------[ COPY FILES ]-------------------------------
#
#  Copy / upload the following file only if you doesn't like the Original!
#

downloads_body.tpl to templates/subSilver/downloads_body.tpl

#
#----------[ OPEN ]-------------------------------------
#

admin/admin_board.php

#
#----------[ FIND ]-------------------------------------
#

	"L_HOT_THRESHOLD" => $lang['Hot_threshold'],

#
#----------[ AFTER, ADD ]-------------------------------
#

	"L_DL_LINKS_PER_PAGE" => $lang['Dl_Links_per_page'],

#
#----------[ FIND ]-------------------------------------
#

	"HOT_TOPIC" => $new['hot_threshold'],

#
#----------[ AFTER, ADD ]-------------------------------
#

	"DL_LINKS_PER_PAGE" => $new['dl_links_per_page'],

#
#----------[ OPEN ]-------------------------------------
#

downloads.php

#
#----------[ FIND ]-------------------------------------
#

//
// End session management
//

#
#----------[ AFTER, ADD ]-------------------------------
#

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

#
#----------[ FIND ]-------------------------------------
#

$sql = "SELECT * FROM " . DOWNLOADS_TABLE . " where cat=".$cat." ORDER by sort";

#
#----------[ REPLACE WITH ]-----------------------------
#

// <!-- Pagination Addon -->
	$sql = 'SELECT count(*) AS seite FROM ' . DOWNLOADS_TABLE . ' where cat=' . $cat . '';
	if( !($result = $db->sql_query($sql)) )
	{
	   message_die(GENERAL_ERROR, 'Error getting total downloads', '', __LINE__, __FILE__, $sql);
	}
	if( $total = $db->sql_fetchrow($result) )
	{
	   $total_downloads = $total['seite'];
	   $pagination = generate_pagination("downloads.$phpEx?cat=$cat", $total_downloads, $board_config['dl_links_per_page'], $start). '&nbsp;';
	}

	$template->assign_vars(array(
	   'PAGINATION' => $pagination,
		'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['dl_links_per_page']) ) + 1 ), ceil( $total_downloads / intval($board_config['dl_links_per_page']) )),
	   'L_GOTO_PAGE' => $lang['Goto_page'])
	);

	$sql = "SELECT * FROM " . DOWNLOADS_TABLE . " where cat=".$cat." ORDER by sort LIMIT $start, ". $board_config['dl_links_per_page'];
// <!-- Pagination Addon -->

#
#----------[ OPEN ]-------------------------------------
#

language/lang_english/lang_admin.php

#
#----------[ FIND ]-------------------------------------
#

$lang['Hot_threshold'] = 'Posts for Popular Threshold';

#
#----------[ AFTER, ADD ]-------------------------------
#

$lang['Dl_Links_per_page'] = 'Downlods Per Page';

#
#----------[ OPEN ]-------------------------------------
#

language/lang_german/lang_admin.php

#
#----------[ FIND ]-------------------------------------
#

$lang['Hot_threshold'] = 'Beiträge, die ein Thema braucht, um ein \'Hot Topic\' zu werden';

#
#----------[ AFTER, ADD ]-------------------------------
#

$lang['Dl_Links_per_page'] = 'Downlods pro Seite';

#
#----------[ OPEN ]-------------------------------------
#

templates/subSilver/admin/board_config_body.tpl

#
#----------[ FIND ]-------------------------------------
#

	<tr>
		<td class="row1">{L_HOT_THRESHOLD}</td>
		<td class="row2"><input class="post" type="text" name="hot_threshold" size="3" maxlength="4" value="{HOT_TOPIC}" /></td>
	</tr>

#
#----------[ AFTER, ADD ]-------------------------------
#

	<tr>
		<td class="row1">{L_DL_LINKS_PER_PAGE}</td>
		<td class="row2"><input class="post" type="text" name="dl_links_per_page" size="3" maxlength="4" value="{DL_LINKS_PER_PAGE}" /></td>
	</tr>

#
#----------[ SAVE AND CLOSE ALL FILES ]-----------------
#
# EoM

Verfasst: Mo 16.Mai, 2005 18:48
von Anonymous
Ok, let me tell you.

The files that he put online works, but has too many bugs.

The files that you put are different in some lines, and is not compatible with Security Mod, so I couldnt make it work....

I would recomend you to use the one with the Point system on as a base, because the other one is just a (sorry for the creator) stupid Idea... Why??? Because NOBODY wants to be giving bandwith all day to everybody....



I will tell you how to do it to fix it.

1- Install the most recent PHPBB forums. Completely Clean, of course.

2- Use it a little (post something) to have some users and posts in.

3- Try to install the Mod with the DL and de Point system. AND KEEP CORRECTING all the MISTAKES and CONFUSIONS that the Install text has (that they are A LOT)

4- After you have upgraded the install txt. TRy to install it (with the two install files) And you will see the bugs in them. Correct them.

5- Now that everything is installed, use the forum, use the download, go into the control panel and use it.
This way you will see by yourself all the big bugs that it has, and you will be able to modify the files in order to fix it.

Saludos!
Kat

PS: By the way, most of those codes that you put as fixes are for the normal DL mod (without Point system) so, they are almost useless since the version with the points doesnt have those files like that.

Verfasst: Mo 16.Mai, 2005 23:09
von Anonymous
Sorry, I cannot edit since Im not registered.

I had a final idea that maybe will make everything much more easy for you ;)

Why dont you fix the original DL Mod from Hotschi with the codes that they gave you (the fixes that you have) Because that one is, at least, more stable......

And then, why dont you create a small feature to BUY bandwith??? So, anybody can install a simple point system (point or cash system) to buy that bandwith....

I think that could be much easier.

Tell me your opinion.
Kat Ayanami

Verfasst: Mo 16.Mai, 2005 23:44
von Demolition_FABI
At first thank you very much.
I think this idea is much better and I had intended to do that at first, but nevertheless, I'll install this mod and perhaps I find some interesting things that I can copy or sth. like that (I'll also fix the install.txt so I can install it with Easy Mod and then I'll upload at least that for this mod here).


I've found this here:

Code: Alles auswählen

$sql = "UPDATE " . USERS_TABLE . " 
SET user_posts = user_posts $sign 
WHERE user_id = $user_id";
replace with

Code: Alles auswählen

$traffic = ($mode == 'delete') ? '- x' : '+ x'; 
$sql = "UPDATE " . USERS_TABLE . " 
SET user_posts = user_posts $sign , user_traffic = user_traffic $traffic 
WHERE user_id = $user_id";
and for x I take the amount of traffic a user gets for a post (looses for a deleted post) and I thought that it should be possible that x gets his value from a sql table which can be configured from the admin panel.
What do you think of that?

Verfasst: Di 17.Mai, 2005 00:59
von Anonymous
Forget about the easy mod... or things like that

You need either, modify the whole thing to fix it, or make what I told you. A simple feature to buy bandwith.

You dont need the idea of taking points when deleting a post, that is already included on the mod.

Kat

Verfasst: Di 17.Mai, 2005 01:08
von Anonymous
Ok, lets stop chating here like idiots O.o

My msn: kat_ayanami@htmail.com ok?

Add me if you want to share some ideas.

atte: Kat.

Verfasst: Di 17.Mai, 2005 14:35
von Demolition_FABI
All right, I think that's a good idea, but somehow, your MSN Adress doesn't exist, you can try to add me:

demolition_fabi@hotmail.de

Perhaps it's easier to use ICQ, my number is: 257519306

Verfasst: Di 17.Mai, 2005 17:04
von Anonymous
Jaja, I know that it doesnt exist

I put HTmail instead of HOTmail, to avoid bots getting the mail.

Atte: Kat.