Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: H on July 09, 2009, 05:15:32 PM

Title: Display Signatures Only Once Per Page
Post by: H on July 09, 2009, 05:15:32 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1958)

Save page space and bandwidth by only displaying each user's signature once per topic page. Unlike similar mods, this works on all installed themes
Title: Re: Display Signatures Only Once Per Page
Post by: babjusi on July 09, 2009, 05:34:43 PM
Nice one. Good work H :)
Title: Re: Display Signatures Only Once Per Page
Post by: JBlaze on July 09, 2009, 05:36:24 PM
The slacker strikes again!

Nice one H :)
Title: Re: Display Signatures Only Once Per Page
Post by: alex30 on July 09, 2009, 07:00:06 PM
Nice shot again.

Thanks H!
Title: Re: Display Signatures Only Once Per Page
Post by: Antechinus on July 09, 2009, 07:05:43 PM
Cool. Very simple and clean solution.
Title: Re: Display Signatures Only Once Per Page
Post by: MF30 on July 09, 2009, 07:27:13 PM
Thanks.
Title: Re: Display Signatures Only Once Per Page
Post by: Groundhog on July 10, 2009, 07:52:53 AM
Thanks H

Works well.

A little bug or change required.

Can't uninstall for some versions as in package-info.xml

   <uninstall for="1.1.9-2.0">

needs changed to:

   <uninstall for="1.1.9-2.0.99">


Title: Re: Display Signatures Only Once Per Page
Post by: H on July 10, 2009, 08:23:26 AM
Thanks everyone for the feedback :)

Groundhog, thanks for that. I updated the package
Title: Re: Display Signatures Only Once Per Page
Post by: Groundhog on July 10, 2009, 08:40:20 AM
Quote from: H on July 10, 2009, 08:23:26 AM
Groundhog, thanks for that. I updated the package

That's what I like about this forum. A pleasant response  :)

The mods a good idea. I have been on some forums and you can hardly see the post replies for the large signature/images.
Title: Re: Display Signatures Only Once Per Page
Post by: Sakae on July 10, 2009, 10:07:36 PM
Thanks mate!
Title: Re: Display Signatures Only Once Per Page
Post by: Bancherd on July 11, 2009, 12:04:35 AM
Nice mod, thanks!  :D
Title: Re: Display Signatures Only Once Per Page
Post by: digit on July 12, 2009, 05:55:14 PM
Am I the only one getting a ton of errors like this?


8: Undefined variable: counter
Title: Re: Display Signatures Only Once Per Page
Post by: H on July 12, 2009, 06:18:00 PM
Can you post the code for your prepareDisplayContext function from Sources / Display.php? :)

The mod adds a line of code under the counter declaration, so it is possible something went wrong and the counter line has disappeared.
Title: Re: Display Signatures Only Once Per Page
Post by: H on July 12, 2009, 06:22:12 PM
It looks like the counter line got replaced instead of added to.

Find:
static $sigoncepertopic = array();

Add on the line before:

static $counter = null;




Did the mod actually install properly? The second edit is completely missing from your Display.php

:)
Title: Re: Display Signatures Only Once Per Page
Post by: digit on July 12, 2009, 06:33:37 PM
VOILA!

My bad!

I manually installed this - I guess my dyslexia is getting worse!

Thanks!
Title: Re: Display Signatures Only Once Per Page
Post by: H on July 12, 2009, 06:39:44 PM
Glad you got it working though :)
Title: Re: Display Signatures Only Once Per Page
Post by: kingkingston on July 22, 2009, 03:04:51 AM
Brilliant mod,helps a lot with people having big sig's
Title: Re: Display Signatures Only Once Per Page
Post by: kai920 on July 29, 2009, 01:53:56 AM
THANK YOU for this mod :)
Title: Re: Display Signatures Only Once Per Page
Post by: H on August 10, 2009, 04:51:02 PM
Updated the mod's page to show there is support for 1.1.0 and 2.0 RC1.2
Title: Re: Display Signatures Only Once Per Page
Post by: C4G-TK on August 11, 2009, 06:37:16 PM
Just a question,

If a person has made say 6 replies in a thread on one page, does it show the signature in the most recent post or the oldest post?  I think I would like this if it shows in the most recent post.
Title: Re: Display Signatures Only Once Per Page
Post by: kai920 on August 11, 2009, 07:28:50 PM
Quote from: C4G-TK on August 11, 2009, 06:37:16 PM
Just a question,

If a person has made say 6 replies in a thread on one page, does it show the signature in the most recent post or the oldest post?  I think I would like this if it shows in the most recent post.

Right now the mod is set to show the signature in the oldest post.
Title: Re: Display Signatures Only Once Per Page
Post by: Kyrna on August 20, 2009, 08:40:45 PM
I just tried to install this mod and received the following message:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF"

I'm using 1.1.10 and have two mods installed.
1.     Lots_o_Smileys             1.0
2.    Spoiler Show And Hide    1.0.3
Title: Re: Display Signatures Only Once Per Page
Post by: H on August 21, 2009, 05:33:54 AM
Please try the updated download :)
Title: Re: Display Signatures Only Once Per Page
Post by: Kyrna on August 21, 2009, 06:06:03 PM
Quote from: H on August 21, 2009, 05:33:54 AM
Please try the updated download :)
That did it - thanks so much! :)
Title: Re: Display Signatures Only Once Per Page
Post by: H on August 21, 2009, 06:29:19 PM
Glad that solved it. I made a boo boo in the package so it was my fault :P
Title: Re: Display Signatures Only Once Per Page
Post by: Kyrna on August 21, 2009, 06:32:17 PM
Quote from: H on August 21, 2009, 06:29:19 PM
Glad that solved it. I made a boo boo in the package so it was my fault :P
No problem - anyone can make a mistake. It's fixing it that's important. ;)
Title: Re: Display Signatures Only Once Per Page
Post by: Shannar on October 08, 2009, 06:06:41 AM
Quote from: H on July 09, 2009, 05:15:32 PM
Save page space and bandwidth by only displaying each user's signature once per topic page.

How about add option to profile for view all user's signature, if some persone want this?
Title: Re: Display Signatures Only Once Per Page
Post by: malcomxar on November 09, 2009, 11:28:35 AM
Hi! I am trying to use this mod but when i try to install (i use smf 1.1.10) I get a "corrupt package"

And also I can't parse it to install manually.

Any ideas?
Title: Re: Display Signatures Only Once Per Page
Post by: H on November 09, 2009, 03:09:46 PM
Quote from: Shannar on October 08, 2009, 06:06:41 AM
Quote from: H on July 09, 2009, 05:15:32 PM
Save page space and bandwidth by only displaying each user's signature once per topic page.

How about add option to profile for view all user's signature, if some persone want this?

I'll take a look at this for a future version :)

Quote from: malcomxar on November 09, 2009, 11:28:35 AM
Hi! I am trying to use this mod but when i try to install (i use smf 1.1.10) I get a "corrupt package"

And also I can't parse it to install manually.

Any ideas?

I'm not quite sure what happened there. I've re-uploaded another version which should fix the problem
Title: Re: Display Signatures Only Once Per Page
Post by: kai920 on November 10, 2009, 01:45:40 AM
Hi,

Can't parse for SMF 2.0 RC2 under "Manual Install Instructions for SMF" (version 1.0.2)
Title: Re: Display Signatures Only Once Per Page
Post by: H on November 10, 2009, 04:15:37 PM
Please try again now. There is a bug in the version number code in the package manager that meant it wasn't being detected correctly. As this mod actually works on all 1.1.x+ versions I've just removed the version check code from package-info.xml
Title: Re: Display Signatures Only Once Per Page
Post by: Yiorgos on August 15, 2011, 03:41:57 AM
Thank you H  for that nice mod
It is very useful.  Pages load faster and look  nicer !!!

I made some corrections on your file (SMF 2.0 RC2) and managed to make this mod installable on SMF 2.0 GOLD
I do not mean to take over H's work but I will assist SMF users if needed.

Download attached file.
Title: Re: Display Signatures Only Once Per Page
Post by: Illori on August 15, 2011, 06:24:27 AM
since there is no license on this mod you are not allowed to update the distribute to others you can post your changes but not the package. your mod package has been removed.
Title: Re: Display Signatures Only Once Per Page
Post by: Yiorgos on August 15, 2011, 11:29:58 AM
Thank you Illory.
I 'm sorry for any inconvenience I caused.
Title: Re: Display Signatures Only Once Per Page
Post by: digit on January 03, 2012, 08:13:25 AM
I just uninstalled this mod....

It was causing the <a name="new"></a> tag to not appear on the newest posts.

So this button...  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmedia.simplemachinesweb.com%2Fsmf%2Fdefault%2Fimages%2Ficons%2Flast_post.gif&hash=c87e75c7be3161d7fc8329d61734fab0892f01c7) the one that appears inside Message.index.php on the right, was not working on my site.  Instead of taking users to the latest post, it was taking them to the first post.

SO - After uninstalling this mod, I found this one...
http://www.simplemachines.org/community/index.php?topic=54974.msg385750#msg385750

...  and my site is working fine again.  ;D

I just thought I would share this in case others have had a similar problem.

keywords: latest post link button not working


Title: Re: Display Signatures Only Once Per Page
Post by: Skaty on December 26, 2012, 12:51:30 PM
any sign for 2.0.3 ?
Title: Re: Display Signatures Only Once Per Page
Post by: Shambles on December 26, 2012, 01:43:51 PM
Quote from: Skaty on December 26, 2012, 12:51:30 PM
any sign for 2.0.3 ?
It works fine. What issues are you having?
Title: Re: Display Signatures Only Once Per Page
Post by: Skaty on December 29, 2012, 09:48:31 AM
Quote from: ®Shambles on December 26, 2012, 01:43:51 PM
Quote from: Skaty on December 26, 2012, 12:51:30 PM
any sign for 2.0.3 ?
It works fine. What issues are you having?

Didn't try it yet, but i'm gonna use it with this mod  -> http://www.simplemachines.org/community/index.php?topic=419856.0
Title: Re: Display Signatures Only Once Per Page
Post by: SMiFFER on July 20, 2017, 07:25:59 PM
I know this thread is old and I do know this mod has not been updated since ages.
Nevertheless I gave this a try.

I works, it only causes one major bug. I had reported that very bug and was informed by the SMF leaders that it is THIS MOD which causes the bug.

If you uncheck the check box "show signature" on an already existing post, the signature will NOT be removed if that post that you just edited is the first post of that person on that page.

Deinstalled.

Title: Re: Display Signatures Only Once Per Page
Post by: Arantor on July 21, 2017, 02:26:06 AM
Show Signature on a per post basis is also a mod, and neither were designed to work with the other. If your criteria for a mod is 'not buggy', uninstall both of them, because both of them are misbehaving in this situation.
Title: Re: Display Signatures Only Once Per Page
Post by: sam666 on July 24, 2017, 07:28:43 PM
Thanks for reviving this thread. Great mod, should be part of the default install  :)
Title: Re: Display Signatures Only Once Per Page
Post by: FrizzleFried on March 10, 2022, 12:20:11 PM
Can someone update this mod to work with 2.1.1 by chance?  I did just attempt an install and there is a single edit with an issue (but that doesn't mean it will work).

This mod really makes a difference in forums with ... creative users signatures. 

:D
Title: Re: Display Signatures Only Once Per Page
Post by: FrizzleFried on March 31, 2022, 11:23:44 AM
...bump.
Title: Re: Display Signatures Only Once Per Page
Post by: FrizzleFried on March 31, 2022, 11:57:12 AM
Nevermind.  I've figured out the very tiny edit to get this to work with 2.1.x.  I see no license.  What are the rules for releasing a 2.1.x tweaked version?  I ask ZERO credit but would like to make it available for those who know nothing about editing code, etc.

EDIT: And the author hasn't posted in about 10 years...
Title: Re: Display Signatures Only Once Per Page
Post by: von Corax on September 03, 2023, 12:51:52 PM
Quote from: FrizzleFried on March 31, 2022, 11:57:12 AMNevermind.  I've figured out the very tiny edit to get this to work with 2.1.x.  I see no license.  What are the rules for releasing a 2.1.x tweaked version?  I ask ZERO credit but would like to make it available for those who know nothing about editing code, etc.

EDIT: And the author hasn't posted in about 10 years...

I would very much like to see an upgrade to this mod to work with 2.1.x.
Title: Re: Display Signatures Only Once Per Page
Post by: Marina3 on November 04, 2023, 11:40:54 AM
Quote from: FrizzleFried on March 31, 2022, 11:57:12 AMNevermind.  I've figured out the very tiny edit to get this to work with 2.1.x.  I see no license.  What are the rules for releasing a 2.1.x tweaked version?  I ask ZERO credit but would like to make it available for those who know nothing about editing code, etc.


What kind of file manual editing do you need to do to make this mod work with SMF 2.1.4?
Please share!