Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
mgy93
New Member
New Member



Joined: Jan 18, 2008
Posts: 20

PostPosted: Wed Aug 27, 2008 3:50 pm Reply with quote

is there a way to mod/patch the viewtopic file so it only shows each person's sig on one post, instead of lagging up the page and increasing load time (most of our sigs are flash)

or if there isnt a pre-made mod could i sit down and do it? i have already added a bunch of things to this file.
 
View user's profile Send private message
Unit1
Worker
Worker



Joined: Oct 26, 2004
Posts: 134
Location: Boston

PostPosted: Wed Aug 27, 2008 6:06 pm Reply with quote

This should do it if you need any help just let me know and I can do it for you Razz

Code:


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

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
   $user_sig = ( $postrow[$i]['enable_sig']

#
#-----[ IN-LINE FIND ]------------------------------------------
#
&& $board_config['allow_sig']

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 && !$signature[$poster_id]

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

$user_sig = '<br />_________________<br />' . str_replace("\n", "\n<br />\n", $user_sig);

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

      $signature[$poster_id] = 1;

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
 
View user's profile Send private message
mgy93







PostPosted: Wed Aug 27, 2008 6:29 pm Reply with quote

cool man it works great!

i have a n00b question, never learned this in my php tutorials:

i know the ! is used in != for not equal, what does it do here? : && !$signature[$poster_id]
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Aug 27, 2008 8:25 pm Reply with quote

! is the "not" operator.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©