Welcome, Guest. Please Login or Register.
November 28, 2024, 06:45:45 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Show Sig once mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Show Sig once mod  (Read 269 times)
Brock
Noobie
*
Posts: 18


Show Sig once mod
« on: August 29, 2002, 04:35:09 PM »
Reply with quote

Since I have a large # of users with rather large pictures in thier signature block, I decided to toss something in to only display them once in any given thread.

I'd like to see this be a toggle in the mod screen, but I'm not yet familiar enough with the code to add it myself.

The mod itself is simple, in Display.php, find the following line :

print str_replace (array('"', ''', '&', '<', '>'), array('"', "'", '&', '<', '>'), $userprofile[$mname]['signature']);
and replace it with :

if(!$sig_shown[$mname]) {
  print str_replace (array('"', ''', '&', '<', '>'), array('"', "'", '&', '<', '>'), $userprofile[$mname]['signature']);
  $sig_shown[$mname] = 1;
}
« Last Edit: August 29, 2002, 04:37:30 PM by Brock » Logged
TheJkWhoSaysNi
YaBB God
*****
Posts: 1025


I dont know what to put here, i'll leave it blank.

ICQ - 122821095TheJkWhoSaysNi@evilemail.com WWW
Re:Show Sig once mod
« Reply #1 on: August 29, 2002, 04:37:50 PM »
Reply with quote

Wrong forum, this is a completed mod  8)

I dont really need it but some forums do! Great idea!
Logged

WARNING: THIS POST MAY CONTAIN TRACES OF PEANUT!!!
I'm listening to....
Brock
Noobie
*
Posts: 18


Re:Show Sig once mod
« Reply #2 on: August 29, 2002, 06:42:01 PM »
Reply with quote

Thanks ..

I stuck it in here because IMO it really shoudl have a checkbox to enable/disable it in the Admin screens.

Anyone have pointers/tips on how to do this ? I'm still learning the codebase.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Show Sig once mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.012 seconds with 21 queries.