Pagina 1 van 1

rare mod instructies

Geplaatst: 13 dec 2003, 13:37
door MeDieViL
was half duits, heb ik eindelijk toch alles kunnen installeren alleen dit nog:

Code: Selecteer alles

## Creating table
#########################
##
## Name:	"phpbb_downloads"
## Fields:	"id" int(11) auto_increment, primary key
##		"description" varchar(255)
##		"file_name" varchar(255)
##		"klicks" int(11), Standard "0"
##		"free" tinyint(1), Standard "0"
##		"extern" tinyint(1), Standard "0"
##		"long_desc" text
##		"sort" int(11), Standard "0"
##
########################



## Modifying table "phpbb_users"
#########################
##
## New column:	"user_traffic" int(255) Standard: "0"
##
########################
kan iemand me precies zeggen wat ik in het sql vakje moet inzetten, om dat in de databdase te krijgen want deze vind ik wat onduidelijk :?

Geplaatst: 13 dec 2003, 14:49
door Luuk
Je kan dit niet via SQL invoeren, je moet op een nieuwe tabel aanmaken klikken. Daar moet je deze gegevens gebruiken.

Geplaatst: 13 dec 2003, 15:18
door Duvelske
Ik zou de maker van deze mod vragen om er een db_update.php file van te maken. Zodat ook mensen die er niet veel verstand van hebben het kunnen gebruiken 8)

Geplaatst: 13 dec 2003, 15:31
door MeDieViL
ik snap het toch nog niet hoor :oops:
er staat iets waar je ook eeen veld moet invoeren, maar wat moet ik daar inzetten en wat in table :?

of, kan iemand hier een automatishe installer van maken? of is dat te moeilijk? :bier:

Geplaatst: 13 dec 2003, 15:33
door Duvelske
Ik kan er wel een automatische van maken, maar is dat alles dan wat daar staat ? :? want als je het zo gaat toevoegen in een auto bestand, gaat het gegarandeerd fout :cry:

Geplaatst: 13 dec 2003, 15:48
door MeDieViL
dat is alles van de databse dat in de instructies stond ja... :?

Geplaatst: 13 dec 2003, 15:50
door Duvelske
Van welke mod is dat dan?

Geplaatst: 13 dec 2003, 15:53
door MeDieViL
Download mod (between, die vertaling naar engels is echt marginaal hoor...)

Code: Selecteer alles

########################################################
## Mod title:		   DlMod
## mod version: 	   2.0.1
## phpBB- version:	   2.0.x
## Datum:		   01.01.2003/20:48
## Autor:   	   	   Hotschi
## Beschreibung:           This Mod generates a page for downloads.
##                         Every user get an account, on which the admin may credit him a sum of "traffic".
##			   The filesize of the downloads he made will be deducted from this account. If the user
##			   have not longer got "traffic", he will not be able to get the file.
##			   An additional function allows the admin to define a download as "free", so that everybody
##			   could get it.
##                         The mod is completely integrated in phpBB and the administration happens via ACP.
## Severity
## of the installation:    easy
## Needed time:		   about 15 minutes
## Modified files:	   includes/page_header.php
##			   includes/constants.php
##			   templates/subSilver/overall_header.tpl
##			   templates/subSilver/subSilver.cfg
##			   language/lang_german/lang_main.php
##			   language/lang_german/lang_admin.php
##			   viewonline.php
##			   admin/index.php
## Additional Files:       admin/admin_dl_files.php
##			   admin/admin_dl_traffic_all_users.php
##			   admin/admin_dl_traffic_single_user.php
##			   templates/subSilver/admin/dl_files_body.tpl
##			   templates/subSilver/admin/dl_files_edit_body.tpl
##			   templates/subSilver/admin/dl_traffic_all_users_body.tpl
##			   templates/subSilver/admin/dl_traffic_single_user_body.tpl
##			   templates/subSilver/downloads_body.tpl
##			   templates/subSilver/images/icon_mini_d.gif
##			   templates/subSilver/images/dl_green.gif
##			   templates/subSilver/images/dl_red.gif
##			   templates/subSilver/images/dl_yellow.gif
##			   templates/subSilver/images/dl_grey.gif
##			   downloads.php
##			   load.php
########################################################
##
## Contact:                Hotschi
## Homepage:		   http://phpBB.hotschi.de
## E- Mail:                webmaster@phpBB.hotschi.de
## ICQ-UIN:                125472412
##
########################################################
##
## The files icon_mini_d.gif
##	     dl_green.gif
##	     dl_red.gif
##	     dl_yellow.gif
##	     dl_grey.gif
## are taken from http://www.forumimages.com.
##
########################################################
##
## Comments are welcome!
##
########################################################



## Uploading Files
#########################
##
## Upload all files and directories into "phpBB2/".
##
########################



## Protecting directory
#########################
##
## Protect "media/" by .htaccess.
## Otherwise the mod would not make any sense...
##
########################



## Creating table
#########################
##
## Name:	"phpbb_downloads"
## Fields:	"id" int(11) auto_increment, primary key
##		"description" varchar(255)
##		"file_name" varchar(255)
##		"klicks" int(11), Standard "0"
##		"free" tinyint(1), Standard "0"
##		"extern" tinyint(1), Standard "0"
##		"long_desc" text
##		"sort" int(11), Standard "0"
##
########################



## Modifying table "phpbb_users"
#########################
##
## New column:	"user_traffic" int(255) Standard: "0"
##
########################



# Find in includes/page_header.php
#########################

	'L_USERGROUPS' => $lang['Usergroups'], 

########################



# After add:
########################

	'L_DOWNLOADS' => $lang['Downloads'], 

########################



# Find in includes/page_header.php
#########################

	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

########################



# After add:
########################

	'U_DOWNLOADS' => append_sid('downloads.'.$phpEx),

########################



# Find in templates/SubSilver/overall_header.tpl
#########################

					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>

########################



# After add:
########################

					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_DOWNLOADS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_d.gif" width="13" height="13" border="0" alt="{L_DOWNLOADS}" hspace="3" />{L_DOWNLOADS}</a>&nbsp;</span></td>
					</tr>

########################



# Find in viewonline.php
#########################

				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;

########################



# After add:
########################

				case PAGE_DOWNLOADS:
					$location = $lang['downloads'];
					$location_url = "downloads.$phpEx";
					break;

########################



# Find in admin/index.php
#########################

						case PAGE_FAQ:
							$location = $lang['Viewing_FAQ'];
							$location_url = "index.$phpEx?pane=right";
							break;

########################



# After add:
########################

						case PAGE_DOWNLOADS:
							$location = $lang['downloads'];
							$location_url = "downloads.$phpEx?pane=right";
							break;

########################



# Find in admin/index.php
#########################

					case PAGE_FAQ:
						$location = $lang['Viewing_FAQ'];
						$location_url = "index.$phpEx?pane=right";
						break;

########################



# After add:
########################

					case PAGE_FAQ:
						$location = $lang['downloads'];
						$location_url = "downloads.$phpEx?pane=right";
						break;

########################



# Find in includes/constants.php
#########################

define('PAGE_GROUPCP', -11);

########################



# After add:
########################

define('PAGE_DOWNLOADS', -12);

########################



# Find in includes/constants.php
#########################

define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

########################



# After add:
########################

define('DOWNLOADS_TABLE',  $table_prefix.'downloads');

########################



# Find in templates/subSilver/subSilver.cfg
#########################

$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif";

########################



# After add:
########################

$images['Dl_grey'] = "$current_template_images/dl_grey.gif";
$images['Dl_red'] = "$current_template_images/dl_red.gif";
$images['Dl_green'] = "$current_template_images/dl_green.gif";
$images['Dl_yellow'] = "$current_template_images/dl_yellow.gif";

########################



# Add somewhere in language/lang_english/lang_main.php:
########################

//
// Anfang: DlMod
//
$lang['Dl_klicks'] = "Clicks";
$lang['Downloads'] = "Downloads";
$lang['Dl_download'] = "Download";
$lang['Traffic'] = "Traffic";
$lang['Dl_file_size'] = "Size";
$lang['Dl_file_name'] = "File";
$lang['Dl_file_description'] = "Description";
$lang['Dl_account'] = "Account";
$lang['Dl_free'] = "Free Download";
$lang['Dl_detail'] = "Details";
$lang['Dl_info'] = "Info";
$lang['Dl_i'] = "i";
$lang['Dl_name'] = "Name";
$lang['Dl_not_availible'] = "not availible";
$lang['Dl_green_explain'] = "Download! No deductions from user account.";
$lang['Dl_red_explain'] = "Not enough traffic.";
$lang['Dl_yellow_explain'] = "Download! Traffic will be deducted from user account.";
$lang['Dl_grey_explain'] = "Download! External source. No deductions from user account.";
//
// Ende: DlMod
//

########################



# Füge ein in language/lang_english/lang_admin.php:
########################

//
// Begin: DlMod
//
$lang['Traffic_single_user_admin_explain'] = "Here you can modify the Traffic for a single user.";
$lang['Traffic_all_users_admin_explain'] = "Here you can modify the Traffic for all users.";
$lang['Single_user_traffic_title'] = "Traffic for single user";
$lang['All_users_traffic_title'] = "Traffic for all users";
$lang['Dl_files_title'] = "Files";
$lang['Dl_files_explain'] = "Upload the file with your FTP- Client into the Download- directory and specify the path here.";
$lang['Dl_files_url'] = "URL";
$lang['Dl_files_url_explain'] = "According to the Download- directory.";
$lang['Download_updated'] = "The informations were updated";
$lang['Download_added'] = "The Download is added";
$lang['Download_removed'] = "The Download is deleted";
$lang['Click_return_downloadadmin'] = "Click %shere%s to return to the Downloads- administration.";
$lang['Click_return_user_traffic_admin'] = "Click %shere%s to modify the Traffic of another user.";
$lang['Must_select_download'] = "Choose a Download.";
$lang['Dl_function'] = "Funktion";
$lang['Add_new_download'] = "Add new Download";
$lang['Dl_add'] = "Add";
$lang['Dl_set'] = "Set";
$lang['Traffic_now'] = "At present on account";
$lang['Dl_is_free'] = "free";
$lang['Dl_yes'] = "Yes";
$lang['Dl_no'] = "No";
$lang['DL_free_explain'] = "Activate this funktion if the Download should be able for everybody. The accounts will not be used.";
$lang['Dl_order'] = "Sort";
$lang['Dl_up'] = "up";
$lang['Dl_down'] = "down";
$lang['Dl_extern'] = "Extern";
$lang['Dl_extern_explain'] = "Activate this funktion for remote files (http://www.example.com/media.mp3). Funktion 'Free' becomes irrelevant.";
//
// End: DlMod
//

########################

Geplaatst: 13 dec 2003, 15:57
door Duvelske
Hmm, toch een redelijk pittige mod :D Maar ik zal er wel een db_update.php file van maken. Moet ik wel ffkes kijken hoe die mod in elkaar zit en hoe ze het bedoelen of het met prefix moet of niet. Maar dat zie je dan denk ik morgen wel ;) Want vanaaf benk zat en zit ik in de discotheek :bier:

Geplaatst: 13 dec 2003, 16:03
door MeDieViL
thx m8! :) :bier:

Geplaatst: 15 dec 2003, 20:49
door Carlo Claessen
Ik heb de discussie met ja nee werkt wel werkt niet verplaatst naar http://www.phpbb.nl/viewtopic.php?t=6026 algemene chat, maak daar jullie ja nee spel af, als de installer het doet, gooien we de topic weer open!!!