Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 25, 2008 - Time to Vote for the August 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 03:31:06 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to install phpBB mods?  (Read 92 times)
russi22
Space Explorer
***
Offline Offline

Posts: 9


« on: June 05, 2008, 03:11:42 PM »

Hi folks!
I'm very niw at this, but no sense dwelling over what I can't do..
I have a question - I've got a phpBB2 forum installed and an Image Gallery installed for me- now I want to add a bunch of phpBB mods - can somewone explain to a 3-year-old how to do this?
Say for example, I downloaded a mod - it's a zip file - I unzip it - now what? cPanel >> File Manager >> than what?

Anyone? Thanks
Logged
V-I-R-U-S
Spaceship Navigator
*****
Offline Offline

Posts: 75


I Love Me


WWW
« Reply #1 on: June 05, 2008, 03:33:31 PM »

All mod files have a read me file attached to them

Normally also with a "root" folder this folder would be uploaded to the root of the site with the forums.

Normally mods consist of editing existant files along with the files you Upload

I have done many of them, they are not for the "New" developers without prior coding experience.

If you are to go ahead and do it, I would suggest downloading all the files associated with the forum, to have them as backup incase something does not go as planned you can reupload them.

They would suggest this in the readmes also

For example one such readme file is from the mood mod is

Code:
##############################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
##############################################################
##
## Definitions:
##
## Root: Folder your config.php is located
## templates/*/: Your template folder (All template folders are suggested)
## lang_*/: Your current language folder (All lang folders are suggested)
##
##############################################################

-----------------------------------
----[ SQL EXECUTION ]--------------
-----------------------------------

ALTER TABLE `nuke_users` ADD `user_mood_mod` VARCHAR( 255 ) NOT NULL ;
ALTER TABLE `nuke_bbposts` ADD `poster_mood` VARCHAR( 255 ) NOT NULL ;

-----------------------------------
----[ UPLOAD FILES ]---------------
-----------------------------------

modules/Forums/mood_mod.php => Root/modules/Forums/mood_mod.php
modules/Forums/images/mood_mod_images/* => Root/modules/Forums/images/mood_mod_images/*
modules/Forums/language/lang_english/lang_mood_mod.php => Root/modules/Forums/language/lang_*/lang_mood_mod.php
themes/Your_Theme/forums/mood_mod_body.tpl => Root/themes/Your_Theme/forums/mood_mod_body.tpl

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

modules/Forums/viewtopic.php

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

//
// Go ahead and pull all data for this topic
//
/*****[BEGIN]******************************************
 [ Mod:    Printer Topic                       v1.0.8 ]
 [ Mod:    Online/Offline/Hidden               v2.2.7 ]
 ******************************************************/
$sql = "SELECT u.username,

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

 u.user_mood_mod,

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

$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

-----------------------------------
----[ BEFORE, ADD ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Mood Mod =============================================== |
#==== v1.0.0 =========================================================== |
#====
include_once($phpbb_root_path .'language/lang_'. $board_config['default_lang'] .'/lang_mood_mod.'. $phpEx);
$user_mood_1 = explode('.', $postrow[$i]['user_mood_mod']);
$user_mood_2 = explode('/', $user_mood_1[1]);
$mood_count = count($user_mood_2);
$user_mood = str_replace('_', ' ', $user_mood_2[($mood_count - 1)]);
$user_mood = ucwords(strtolower($user_mood));

$current_user_mood = $user_mood;

$user_mood_1 = explode('.', $postrow[$i]['poster_mood']);
$user_mood_2 = explode('/', $user_mood_1[1]);
$mood_count = count($user_mood_2);
$user_mood = str_replace('_', ' ', $user_mood_2[($mood_count - 1)]);
$user_mood = ucwords(strtolower($user_mood));

$postrow_mood = $user_mood;

$mood_display = '';
$mood_display .= ($postrow[$i]['user_mood_mod']) ? '<br>' : '';
$mood_display .= ($postrow[$i]['user_mood_mod']) ? $lang['MM_current_mood'] .'&nbsp;&nbsp;<img src="'. $postrow[$i]['user_mood_mod'] .'" border="0" alt="'. $current_user_mood .'" title="'. $current_user_mood .'">' : '';
#$mood_display .= ($postrow[$i]['poster_mood']) ? '&nbsp;&nbsp;&nbsp;'. $lang['MM_post_mood'] .'&nbsp;&nbsp;<img src="'. $postrow[$i]['poster_mood'] .'" border="0" alt="'. $postrow_mood .'" title="'. $postrow_mood .'">' : '';
$mood_display .= ( ($postrow[$i]['user_mood_mod']) && ($postrow[$i]['user_id'] == $userdata['user_id']) ) ? '<br><a href="javascript:void(0)" onclick="window.open(\'modules.php?name=Forums&file=mood_mod&sid='. $userdata['session_id'] .'\', \'popup\', \'width=400, height=400,resizable=yes,scrollbars=yes,\');return false;">'. $lang['MM_profile_link'] .'</a>' : '';
$mood_display .= ($postrow[$i]['user_mood_mod']) ? '' : '';
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Mood Mod =============================================== |
#======================================================================= |

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

'EDITED_MESSAGE' => $l_edited_by,

-----------------------------------
----[ BEFORE, ADD ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Mood Mod =============================================== |
#==== v1.0.0 =========================================================== |
#====
'POST_MOOD' => $mood_display,
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Mood Mod =============================================== |
#======================================================================= |

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

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

includes/functions_post.php

-----------------------------------
----[ FIND ]-----------------------
-----------------------------------
# The below should be found inside the submit_post() function.

include("includes/functions_search.php");

-----------------------------------
----[ BEFORE, ADD ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Mood Mod =============================================== |
#==== v1.0.0 =========================================================== |
#====
$current_mood = $userdata['user_mood_mod'];
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Mood Mod =============================================== |
#======================================================================= |

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

enable_smilies, enable_sig

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

, poster_mood

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

'$smilies_on', '$attach_sig'

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

, '". $current_mood ."'

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

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

includes/usercp_register.php

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

$unhtml_specialchars_match = array('#&gt;#', '#&lt;#', '#&quot;#', '#&amp;#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');

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

#======================================================================= |
#==== Start: == Mood Mod =============================================== |
#==== v1.0.0 =========================================================== |
#====
include_once($phpbb_root_path .'language/lang_'. $board_config['default_lang'] .'/lang_mood_mod.'. $phpEx);
$user_mood_1 = explode('.', $userdata['user_mood_mod']);
$user_mood_2 = explode('/', $user_mood_1[1]);
$mood_count = count($user_mood_2);
$user_mood = str_replace('_', ' ', $user_mood_2[($mood_count - 1)]);
$user_mood = ucwords(strtolower($user_mood));

#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Mood Mod =============================================== |
#======================================================================= |

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

'CUR_PASSWORD' => isset($cur_password) ? $cur_password : '',
          'NEW_PASSWORD' => isset($new_password) ? $new_password : '',

-----------------------------------
----[ BEFORE, ADD ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Mood Mod =============================================== |
#==== v1.0.0 =========================================================== |
#====
'CHANGE_MOOD' => '<a href="javascript:void(0)" onclick="window.open(\'modules.php?name=Forums&file=mood_mod&sid='. $userdata['session_id'] .'\', \'popup\', \'width=400, height=400,resizable=yes,scrollbars=yes,\');return false;">'. $lang['MM_profile_link'] .'</a>',
'CURRENT_MOOD' => (($userdata['user_mood_mod']) ? '<img alt="'. $user_mood .'" title="'. $user_mood .'" src="'. $userdata['user_mood_mod'] .'" border="0">' : $lang['MM_profile_none']),
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Mood Mod =============================================== |
#======================================================================= |

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

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

includes/usercp_viewprofile.php

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

$template->assign_vars(array(
/*****[BEGIN]******************************************
 [ Mod:    Advanced Username Color             v1.0.5 ]
 ******************************************************/
    'USERNAME' => UsernameColor($profiledata['username']),
/*****[END]********************************************
 [ Mod:    Advanced Username Color             v1.0.5 ]
 ******************************************************/

-----------------------------------
----[ BEFORE, ADD ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Mood Mod =============================================== |
#==== v1.0.0 =========================================================== |
#====
include_once($phpbb_root_path .'language/lang_'. $board_config['default_lang'] .'/lang_mood_mod.'. $phpEx);
$user_mood_1 = explode('.', $profiledata['user_mood_mod']);
$user_mood_2 = explode('/', $user_mood_1[1]);
$mood_count = count($user_mood_2);
$user_mood = str_replace('_', ' ', $user_mood_2[($mood_count - 1)]);
$user_mood = ucwords(strtolower($user_mood));

$poster_rank .= ($profiledata['user_mood_mod']) ? '<br><br>'. $lang['MM_profile'] .'&nbsp;&nbsp;<img src="'. $profiledata['user_mood_mod'] .'" border="0" alt="'. $user_mood .'" title="'. $user_mood .'">' : '';
#====
#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-tweaks.com] = |
#==== End: ==== Mood Mod =============================================== |
#======================================================================= |

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

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

themes/Your_Theme/forums/profile_add_body.tpl

-----------------------------------
----[ FIND SIMILAR ]---------------
-----------------------------------

<tr>
  <th class="thSides" colspan="2" height="25" valign="middle">{L_PREFERENCES}</th>
</tr>

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

<!-- Start: Mood Mod -->
<tr>
<td class="row1">
<span class="gen">
{CHANGE_MOOD}
</span>
</td>
<td class="row2">
<span class="gen">
{CURRENT_MOOD}
</span>
</td>
</tr>
<!-- End: Mood Mod -->

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

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

themes/Your_Theme/forums/viewtopic_body.tpl

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

{postrow.POSTER_FROM}<br />

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

{postrow.POST_MOOD}<br />

-----------------------------------
----[ CLOSE & SAVE ]---------------
-----------------------------------

Sound complicated?  That is one of the "easier" mods There are several programmers that do these mods for fairly cheap prices if you decide such, then you can shoot me a pm I do know of a few

Hope this helps


Logged

russi22
Space Explorer
***
Offline Offline

Posts: 9


« Reply #2 on: June 05, 2008, 03:43:12 PM »

Point well taken. Nevertheless.... can anyone put it into perspective in a less intimidating manner?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM