Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.220
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Editing scripts for installing mods
Editing scripts for installing mods

10 Replies / 2086 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » How To's

View previous topic :: View next topic


slydog
Reputation: 0.7 Add RepSubtract Rep
Local time: 9:53 PM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Dec 27, 2007
Last Visit: 14 Aug 2008
Posts: 6
Points: 100 

Post Editing scripts for installing mods Posted: Tue Jan 01, 2008 9:55 pm

Hi I am really new to phpnuke and installing i want to put some mods on it but in the readme it say edit files all i am getting stuck with is what does ADD, AFTER mean where do i put the script. Sorry for goin right back to basics.

slydog
 

 
View user's profileSend private message Reply with quote

DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 9:53 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Re: Editing scripts for installing mods Posted: Tue Jan 01, 2008 10:22 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

slydog wrote:
Hi I am really new to phpnuke and installing i want to put some mods on it but in the readme it say edit files all i am getting stuck with is what does ADD, AFTER mean where do i put the script. Sorry for goin right back to basics.

slydog


OK lets have an example:

Code:
#-----[ OPEN ]------------------------------------------
#
modules/forums/viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, u.user_msnm
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_bf2142


This is what you will see in the file:

Code:

//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_color_gc, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, [YOU PUT THE REQUESTED LINE OF CODE HERE]u.user_bf2142[IT ENDS HERE], u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.points, p.*, u.user_gender,  pt.post_text, pt.post_subject, pt.bbcode_uid
        FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
        WHERE p.topic_id = '$topic_id'
                $limit_posts_time
                AND pt.post_id = p.post_id
                AND u.user_id = p.poster_id
        ORDER BY p.post_time $post_time_order
        LIMIT $start, ".$board_config['posts_per_page'];
if ( !($result = $db->sql_query($sql)) )
{


See where I had to put "u.user_bf2142" I have tried to show you in the code itself where you are meant to put it, just so you could get an easier idea of what you have to do

Lets look at another example:

Code:

#-----[ FIND ]------------------------------------------
#
      $yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&amp;.src=pg">' . $lang['YIM'] . '</a>' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
      $bf2142_img   = ( $postrow[$i]['user_bf2142'] ) ? '<a target="_blank" href="' . bf2142_profile_url ($postrow[$i]['user_bf2142']) . '"><img src="' . $images['icon_bf2142'] . '" alt="' . $lang['Profile_bf2142'] . '" title="' . $lang['Profile_bf2142'] . '" border="0" /></a>' : '';

#


This is how it should look in your .php file:

Code:

$yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&amp;.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
                $yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&amp;.src=pg">' . $lang['YIM'] . '</a>' : '';
[THIS IS WHERE YOU ADD THE LINE OF CODE]$bf2142_img   = ( $postrow[$i]['user_bf2142'] ) ? '<a target="_blank" href="' . bf2142_profile_url ($postrow[$i]['user_bf2142']) . '"><img src="' . $images['icon_bf2142'] . '" alt="' . $lang['Profile_bf2142'] . '" title="' . $lang['Profile_bf2142'] . '" border="0" /></a>' : '';[THIS IS THE END OF THE MODIFICATION]


The best way to do this type of modification is to use the find feature in Dreamweaver.

I hope this clarifies this for you buddy. If you need any more help by all means post a reply ;)

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

StevieH
Reputation: 609.4 Add RepSubtract Rep
votes: 4
Local time: 9:53 PM
Location: Bristol
uk.gif



0.08 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Site Helper
Site Helper
Joined: Mar 19, 2007
Last Visit: 03 May 2012
Posts: 157
Points: 20891 

Post Editing scripts for installing mods Posted: Tue Jan 01, 2008 10:26 pm

Shop Purchases:
Battlefield 2 Theme (Aviator V2) · Battlefield 2142 (Aviator v2) · Arnhem Multi Gaming Theme · Call of Duty 4 Ultimate Theme · Multi Gaming (Warrior) Theme · Topsites Manager V1 PhpNuke Module · Clan Roster v1.7 Php Nuke Module · Frontlines Fuel Of War Theme · Anzio Multi Gaming Theme · Left for Dead L4D PhpNuke Evo Theme · Battlefield: Bad Company 2 Theme · Clan Roster 2.0 · Call of Duty Black Ops Xtreme Theme

First off you need a decent editor like dreamweaver or something simaler, even some advance notepads are fine although sometimes they change the format of the file your editing. Next always when installing new mods always i mean always make a back up of the files your editing, you can even create folders on your desktop keeping the same structure of how they are on your website, once youve backed up all files then you can start editing them. Mods can be very trikky sometimes so i suggest you start with a small one just to get used to the basics. The mod will come with instructions on how to do it so read them carefully, for example if you was to install the image resize mod, then the instuctions will tell you to edit some of your files. Were it says open for example includes/bbcode.php then open the file in dreamweaver or simaler and follow further instructions ie find
Quote:
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
and before/after add
Quote:
// mod img size replace with call to image parsing function $text = image_parse ( $text, $uid );
(this is for example only) the best was to find that line would be to use the editors find now button, you just paste the line you want to find there and it will find it :)

I think that mod installation is not for the novice as there can sometimes be some sql changes you have to do aswell manually, but if you are a quick learner then you will pick it up.........

Alternitivley ask Ped or Floppy to install for you, if there not too busy im sure they will do it for you............for a small charge of course. :)


good luck
 

 
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote


slydog
Reputation: 0.7 Add RepSubtract Rep
Local time: 9:53 PM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Dec 27, 2007
Last Visit: 14 Aug 2008
Posts: 6
Points: 100 

Post Editing scripts for installing mods Posted: Tue Jan 01, 2008 10:31 pm

It helps loads thankyou very much. Going to give it a try right now thanks again

slydog
 

 
View user's profileSend private message Reply with quote

DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 9:53 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Editing scripts for installing mods Posted: Tue Jan 01, 2008 10:35 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

no worries matey, but as StevieH says make sure you do a back up first ;)

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

Ped
Reputation: 93.4 Add RepSubtract Rep
votes: 37
Local time: 10:53 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3670
Points: 191811 

Post Editing scripts for installing mods Posted: Tue Jan 01, 2008 11:06 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

thats an easy one !

When coders write code for modifying they use certain terminology

After, Add = Places the following code on a new line after the code in the preceding Find action. It always follows a Find action.

for example:

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

Hello,

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

Welcome to Clan Themes



So you would hit CTRL+F and find "Hello," in the document, and cut and paste Welcome to Clan Themes after the Hello,

So it would look like

Hello, Welcome to Clan Themes

Here is a list of all the Modifications and Meanings http://www.clan-themes.co.uk/tutorials-view-142-forum-modification-commands.html
 

 
View user's profileSend private messageSend e-mail Reply with quote


Ped
Reputation: 93.4 Add RepSubtract Rep
votes: 37
Local time: 10:53 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3670
Points: 191811 

Post Re: Editing scripts for installing mods Posted: Tue Jan 01, 2008 11:19 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

I was a bit slow, but i was writing the tutorial just for you !! hence i was the last to post... lol

hope you enjoy it
 

 
View user's profileSend private messageSend e-mail Reply with quote

slydog
Reputation: 0.7 Add RepSubtract Rep
Local time: 9:53 PM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Dec 27, 2007
Last Visit: 14 Aug 2008
Posts: 6
Points: 100 

Post Editing scripts for installing mods Posted: Wed Jan 02, 2008 1:10 am

just want to say thanks to everyone that helped i got the mod on so am happy right now. i am just goin to start small so i can get used to it
 

 
View user's profileSend private message Reply with quote

StevieH
Reputation: 609.4 Add RepSubtract Rep
votes: 4
Local time: 9:53 PM
Location: Bristol
uk.gif



0.08 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Site Helper
Site Helper
Joined: Mar 19, 2007
Last Visit: 03 May 2012
Posts: 157
Points: 20891 

View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote


slydog
Reputation: 0.7 Add RepSubtract Rep
Local time: 9:53 PM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Dec 27, 2007
Last Visit: 14 Aug 2008
Posts: 6
Points: 100 

Post Editing scripts for installing mods Posted: Wed Jan 02, 2008 1:32 pm

the forum cash mod
 

 
View user's profileSend private message Reply with quote

DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 9:53 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Re: Editing scripts for installing mods Posted: Wed Jan 02, 2008 2:43 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Ped wrote:
I was a bit slow, but i was writing the tutorial just for you !! hence i was the last to post... lol

hope you enjoy it


LMAO
 

 
View user's profileSend private messageSend e-mail Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » How To's


 
10 Replies / 2086 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum