Classifieds Ad Mod Installation

Has anyone firstly taken a look at this Classifieds Ad mod?
http://www.phpca.net/
If so was it a successful install.
It appears all should work with the exception of the modifications to the constants.php.
I am assuming the IM modifications needs to be made to a different file other than the constants.php. I need to know which file that is please and I will try to install this mod.
The statement I need to mod goes like this:
#-----[ OPEN ]-------------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]----------------------------------------
#
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
#
#-----[ AFTER, ADD ]----------------------------------
#
// Ads MOD
include($phpbb_root_path . 'ads_mod/ads_constants.' . $phpEx);
All other files looks as though the mod should work fine. I don't know that it will but in case here is the install for the mod]################################################################ MOD Title: phpCA Classified Ads for phpBB2## MOD Author: PeteMan <supportATphpca> (Peter Mansion) http://www.phpca.net ## MOD Description: phpBB-based Classified Ads System.#### MOD Version: 0.5.0#### Installation Level: medium## Installation Time: 15 minutes#################################################################### Files To Edit: 5## includes/constants.php## includes/page_header.php## language/lang_english/lang_main.php## templates/subSilver/overall_header.tpl## templates/subSilver/subSilver.cfg#### Included Files: 55## ads_comment.php## ads_comment_delete.php## ads_comment_edit.php## ads_comment_create.php## ads_comment_images.php## ads_comment_item.php## ads_comment_item_delete.php## ads_comment_item_edit.php## ads_comment_item_renewal.php## ads_comment_item_status.php## ads_comment_item_notify.php## ads_comment_item_popup.php## ads_comment_item_prices.php## ads_comment_item_rss2.php## ads_comment_item_search.php## ads_comment_item_adverts.php## ## admin/admin_ads_categories.php## admin/admin_ads_config.php#### ads_mod/ads_common.php## ads_mod/ads_constants.php## ads_mod/ads_functions.php## ads_mod/ads_renewal_mailer.php#### language/lang_english/lang_admin_ads.php## language/lang_english/lang_main_ads.php#### templates/subSilver/ads_calc_cost.tpl## templates/subSilver/ads_calc_renewal_cost.tpl## templates/subSilver/ads_comment_body.tpl## templates/subSilver/ads_delete.tpl## templates/subSilver/ads_delete_img.tpl## templates/subSilver/ads_edit.tpl## templates/subSilver/ads_images.tpl## templates/subSilver/ads_input_detail.tpl## templates/subSilver/ads_item.tpl## templates/subSilver/ads_pre_create.tpl## templates/subSilver/ads_pre_renew.tpl## templates/subSilver/ads_prices.tpl## templates/subSilver/ads_search.tpl## templates/subSilver/ads_search_results.tpl## templates/subSilver/adverts.tpl#### templates/subSilver/admin/ads_categories_body.tpl## templates/subSilver/admin/ads_category_delete.tpl## templates/subSilver/admin/ads_category_edit.tpl## templates/subSilver/admin/ads_config_body.tpl#### templates/subSilver/images/icon_mini_ads.gif## templates/subSilver/images/icon_mini_ads2.gif## templates/subSilver/images/icon_mini_ads3.gif## templates/subSilver/images/icon_mini_home.gif## templates/subSilver/images/paypal_logo.gif## templates/subSilver/images/rss2.gif#### templates/subSilver/images/lang_english/icon_active.gif## templates/subSilver/images/lang_english/icon_images.gif## templates/subSilver/images/lang_english/icon_renew.gif## templates/subSilver/images/lang_english/icon_sold.gif## templates/subSilver/images/lang_english/msg_newad.gif## templates/subSilver/images/lang_english/msg_noimage.gif#### License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: #### Credits:#### Thanks to everyone at phpBB for writing such great code.## ## Comments and installation scripts plus some great ideas ## for structuring this mod courtesy of smartor ## (smartor.is-root.com). #### Thanks to those pioneers who have installed earlier ## of this script and provided some great ideas. Special thanks## to those who have provided translations of the language## files.#### ResizeImage function - based on an original script by## PHPGarage.com. #### Image Popup function à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒ ¢Ã¢â€š ¬Ã…“ based on an original script by## codelifter.com.################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## ##-----[ OPEN ]-------------------------------------------------------#includes/constants.php ##-----[ FIND ]----------------------------------------#if ( !defined('IN_PHPBB') ){ die("Hacking attempt");} ##-----[ AFTER, ADD ]----------------------------------# // Ads MODinclude($phpbb_root_path . 'ads_mod/ads_constants.' . $phpEx); ##-----[ OPEN ]-------------------------------------------------------#includes/page_header.php ##-----[ FIND ]----------------------------------------# 'SITENAME' => $board_config['sitename'], ##-----[ BEFORE, ADD ]----------------------------------# // Added for phpCA 'L_FORUM' => $lang['Forum'], 'L_CLASSIFIED_ADS' => $lang['classified_ads'], 'L_SEARCH_ADS' => $lang['search_ads'], 'L_MY_ADS' => $lang['my_ads'], 'U_CLASSIFIED_ADS' => append_sid('adverts.'.$phpEx), 'U_SEARCH_ADS' => append_sid('ads_search.'.$phpEx), 'U_MY_ADS' => append_sid('ads_search.'.$phpEx.'?search_name='.$userdata['username']), ##-----[ OPEN ]-------------------------------------------------------# also for all other language packslanguage/lang_english/lang_main.php ##-----[ FIND ]----------------------------------------#//// That's all, Folks!// ------------------------------------------------- ##-----[ BEFORE, ADD ]---------------------------------#//// phpCA//$lang['classified_ads'] = 'Classified Ads';$lang['search_ads'] = 'Search Ads';$lang['my_ads'] = 'My ads'; ##-----[ OPEN ]-------------------------------------------------------# also for other templatestemplates/subSilver/overall_header.tpl ##-----[ FIND ]----------------------------------------#<a> ##-----[ BEFORE, ADD ]---------------------------------#<a><img>{L_FORUM}</a> ##-----[ FIND ]----------------------------------------#<tr> <td><span>à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦</tr> ##-----[ REPLACE WITH ]---------------------------------#<tr> <td><span>à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦</tr> ##-----[ AFTER, ADD ]----------------------------------# this step will add a link into your header menu <tr> <td><span> <a><img>{L_CLASSIFIED_ADS}</a> <a><img>{L_SEARCH_ADS}</a> <BEGIN> <a><img>{L_MY_ADS}</a> </span></td> <END></tr> ##-----[ OPEN ]-------------------------------------------------------# also for other templatestemplates/subSilver/subSilver.cfg ##-----[ FIND ]----------------------------------------#?> ##-----[ BEFORE, ADD ]---------------------------------#// Ads Mod$images['noimage'] = "$current_template_images/{LANG}/noimage.gif";$images['paypal_logo'] = "$current_template_images/paypal_logo.gif";$images['msg_newad'] = "$current_template_images/{LANG}/msg_newad.gif";$images['icon_images'] = "$current_template_images/{LANG}/icon_images.gif";$images['icon_renew'] = "$current_template_images/{LANG}/icon_renew.gif";$images['icon_sold'] = "$current_template_images/{LANG}/icon_sold.gif";$images['icon_active'] = "$current_template_images/{LANG}/icon_active.gif"; ##-----[ COPY ]-------------------------------------------------------# These following instructions mean...# Upload all files in directory "phpbb_root" with their structure to your phpBB root directory## Remember to upload all the language files and template files to all your# language packs and template directories## If you use FTP please remember to use ASCII mode for text files (*.php, *.tpl)# and BINARY mode for image files (*.jpg, *.gif)# Fortunately good FTP clients today can auto-detect the mode for your files copy phpbb_root/*.php to *.phpcopy phpbb_root/admin/*.php to admin/copy phpbb_root/ads_mod/*.* to ads_mod/copy phpbb_root/language/lang_english/*.php to language/lang_english/copy phpbb_root/templates/subSilver/*.* to templates/subSilver/copy phpbb_root/templates/subSilver/admin/*.* to templates/subSilver/admin/copy phpbb_root/templates/subSilver/images/*.* to templates/subSilver/images/copy phpbb_root/templates/subSilver/images/lang_english/*.* to templates/subSilver/images/lang_english/ ##-----[ DIY INSTRUCTIONS ]------------------------------------------## Create folder: ads_mod/chasers# Create folder: ads_mod/images# Create folder: ads_mod/payments (if using paid ads) ##-----[ DIY INSTRUCTIONS ]------------------------------------------## Required for Unix hosts (you can use your FTP client to do this)## CHMOD 777 ads_mod/chasers# CHMOD 777 ads_mod/images# CHMOD 777 ads_mod/payments (if using paid ads) ##-----[ SQL ]--------------------------------------------------------## This Ads mod will add 10 tables to your database.# It will not alter any existing tables :)## Upload ads_db_install.php and ads_mysql.sql to your phpBB root# directory then run ads_db_install.php by typing on the browser# After that, delete both files immediately## If you do not want to run ads_db_install.php you can run the SQL# queries manually in ads_mysql.sql########### # After installation, go to your Admin Control Panel and customise # your set-up.# ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM[/code]
Thanks in advance...
Tom
EDIT: email addresses [url=http]modified[/url] by Adrian
http://www.phpca.net/
If so was it a successful install.
It appears all should work with the exception of the modifications to the constants.php.
I am assuming the IM modifications needs to be made to a different file other than the constants.php. I need to know which file that is please and I will try to install this mod.
The statement I need to mod goes like this:
#-----[ OPEN ]-------------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]----------------------------------------
#
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
#
#-----[ AFTER, ADD ]----------------------------------
#
// Ads MOD
include($phpbb_root_path . 'ads_mod/ads_constants.' . $phpEx);
All other files looks as though the mod should work fine. I don't know that it will but in case here is the install for the mod]################################################################ MOD Title: phpCA Classified Ads for phpBB2## MOD Author: PeteMan <supportATphpca> (Peter Mansion) http://www.phpca.net ## MOD Description: phpBB-based Classified Ads System.#### MOD Version: 0.5.0#### Installation Level: medium## Installation Time: 15 minutes#################################################################### Files To Edit: 5## includes/constants.php## includes/page_header.php## language/lang_english/lang_main.php## templates/subSilver/overall_header.tpl## templates/subSilver/subSilver.cfg#### Included Files: 55## ads_comment.php## ads_comment_delete.php## ads_comment_edit.php## ads_comment_create.php## ads_comment_images.php## ads_comment_item.php## ads_comment_item_delete.php## ads_comment_item_edit.php## ads_comment_item_renewal.php## ads_comment_item_status.php## ads_comment_item_notify.php## ads_comment_item_popup.php## ads_comment_item_prices.php## ads_comment_item_rss2.php## ads_comment_item_search.php## ads_comment_item_adverts.php## ## admin/admin_ads_categories.php## admin/admin_ads_config.php#### ads_mod/ads_common.php## ads_mod/ads_constants.php## ads_mod/ads_functions.php## ads_mod/ads_renewal_mailer.php#### language/lang_english/lang_admin_ads.php## language/lang_english/lang_main_ads.php#### templates/subSilver/ads_calc_cost.tpl## templates/subSilver/ads_calc_renewal_cost.tpl## templates/subSilver/ads_comment_body.tpl## templates/subSilver/ads_delete.tpl## templates/subSilver/ads_delete_img.tpl## templates/subSilver/ads_edit.tpl## templates/subSilver/ads_images.tpl## templates/subSilver/ads_input_detail.tpl## templates/subSilver/ads_item.tpl## templates/subSilver/ads_pre_create.tpl## templates/subSilver/ads_pre_renew.tpl## templates/subSilver/ads_prices.tpl## templates/subSilver/ads_search.tpl## templates/subSilver/ads_search_results.tpl## templates/subSilver/adverts.tpl#### templates/subSilver/admin/ads_categories_body.tpl## templates/subSilver/admin/ads_category_delete.tpl## templates/subSilver/admin/ads_category_edit.tpl## templates/subSilver/admin/ads_config_body.tpl#### templates/subSilver/images/icon_mini_ads.gif## templates/subSilver/images/icon_mini_ads2.gif## templates/subSilver/images/icon_mini_ads3.gif## templates/subSilver/images/icon_mini_home.gif## templates/subSilver/images/paypal_logo.gif## templates/subSilver/images/rss2.gif#### templates/subSilver/images/lang_english/icon_active.gif## templates/subSilver/images/lang_english/icon_images.gif## templates/subSilver/images/lang_english/icon_renew.gif## templates/subSilver/images/lang_english/icon_sold.gif## templates/subSilver/images/lang_english/msg_newad.gif## templates/subSilver/images/lang_english/msg_noimage.gif#### License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: #### Credits:#### Thanks to everyone at phpBB for writing such great code.## ## Comments and installation scripts plus some great ideas ## for structuring this mod courtesy of smartor ## (smartor.is-root.com). #### Thanks to those pioneers who have installed earlier ## of this script and provided some great ideas. Special thanks## to those who have provided translations of the language## files.#### ResizeImage function - based on an original script by## PHPGarage.com. #### Image Popup function à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒ ¢Ã¢â€š ¬Ã…“ based on an original script by## codelifter.com.################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## ##-----[ OPEN ]-------------------------------------------------------#includes/constants.php ##-----[ FIND ]----------------------------------------#if ( !defined('IN_PHPBB') ){ die("Hacking attempt");} ##-----[ AFTER, ADD ]----------------------------------# // Ads MODinclude($phpbb_root_path . 'ads_mod/ads_constants.' . $phpEx); ##-----[ OPEN ]-------------------------------------------------------#includes/page_header.php ##-----[ FIND ]----------------------------------------# 'SITENAME' => $board_config['sitename'], ##-----[ BEFORE, ADD ]----------------------------------# // Added for phpCA 'L_FORUM' => $lang['Forum'], 'L_CLASSIFIED_ADS' => $lang['classified_ads'], 'L_SEARCH_ADS' => $lang['search_ads'], 'L_MY_ADS' => $lang['my_ads'], 'U_CLASSIFIED_ADS' => append_sid('adverts.'.$phpEx), 'U_SEARCH_ADS' => append_sid('ads_search.'.$phpEx), 'U_MY_ADS' => append_sid('ads_search.'.$phpEx.'?search_name='.$userdata['username']), ##-----[ OPEN ]-------------------------------------------------------# also for all other language packslanguage/lang_english/lang_main.php ##-----[ FIND ]----------------------------------------#//// That's all, Folks!// ------------------------------------------------- ##-----[ BEFORE, ADD ]---------------------------------#//// phpCA//$lang['classified_ads'] = 'Classified Ads';$lang['search_ads'] = 'Search Ads';$lang['my_ads'] = 'My ads'; ##-----[ OPEN ]-------------------------------------------------------# also for other templatestemplates/subSilver/overall_header.tpl ##-----[ FIND ]----------------------------------------#<a> ##-----[ BEFORE, ADD ]---------------------------------#<a><img>{L_FORUM}</a> ##-----[ FIND ]----------------------------------------#<tr> <td><span>à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦</tr> ##-----[ REPLACE WITH ]---------------------------------#<tr> <td><span>à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ÃƒÆ’ ¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦</tr> ##-----[ AFTER, ADD ]----------------------------------# this step will add a link into your header menu <tr> <td><span> <a><img>{L_CLASSIFIED_ADS}</a> <a><img>{L_SEARCH_ADS}</a> <BEGIN> <a><img>{L_MY_ADS}</a> </span></td> <END></tr> ##-----[ OPEN ]-------------------------------------------------------# also for other templatestemplates/subSilver/subSilver.cfg ##-----[ FIND ]----------------------------------------#?> ##-----[ BEFORE, ADD ]---------------------------------#// Ads Mod$images['noimage'] = "$current_template_images/{LANG}/noimage.gif";$images['paypal_logo'] = "$current_template_images/paypal_logo.gif";$images['msg_newad'] = "$current_template_images/{LANG}/msg_newad.gif";$images['icon_images'] = "$current_template_images/{LANG}/icon_images.gif";$images['icon_renew'] = "$current_template_images/{LANG}/icon_renew.gif";$images['icon_sold'] = "$current_template_images/{LANG}/icon_sold.gif";$images['icon_active'] = "$current_template_images/{LANG}/icon_active.gif"; ##-----[ COPY ]-------------------------------------------------------# These following instructions mean...# Upload all files in directory "phpbb_root" with their structure to your phpBB root directory## Remember to upload all the language files and template files to all your# language packs and template directories## If you use FTP please remember to use ASCII mode for text files (*.php, *.tpl)# and BINARY mode for image files (*.jpg, *.gif)# Fortunately good FTP clients today can auto-detect the mode for your files copy phpbb_root/*.php to *.phpcopy phpbb_root/admin/*.php to admin/copy phpbb_root/ads_mod/*.* to ads_mod/copy phpbb_root/language/lang_english/*.php to language/lang_english/copy phpbb_root/templates/subSilver/*.* to templates/subSilver/copy phpbb_root/templates/subSilver/admin/*.* to templates/subSilver/admin/copy phpbb_root/templates/subSilver/images/*.* to templates/subSilver/images/copy phpbb_root/templates/subSilver/images/lang_english/*.* to templates/subSilver/images/lang_english/ ##-----[ DIY INSTRUCTIONS ]------------------------------------------## Create folder: ads_mod/chasers# Create folder: ads_mod/images# Create folder: ads_mod/payments (if using paid ads) ##-----[ DIY INSTRUCTIONS ]------------------------------------------## Required for Unix hosts (you can use your FTP client to do this)## CHMOD 777 ads_mod/chasers# CHMOD 777 ads_mod/images# CHMOD 777 ads_mod/payments (if using paid ads) ##-----[ SQL ]--------------------------------------------------------## This Ads mod will add 10 tables to your database.# It will not alter any existing tables :)## Upload ads_db_install.php and ads_mysql.sql to your phpBB root# directory then run ads_db_install.php by typing on the browser# After that, delete both files immediately## If you do not want to run ads_db_install.php you can run the SQL# queries manually in ads_mysql.sql########### # After installation, go to your Admin Control Panel and customise # your set-up.# ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM[/code]
Thanks in advance...
Tom
EDIT: email addresses [url=http]modified[/url] by Adrian