View Full Version : Signature only on first post
Zachariah
02-16-2007, 10:00 PM
Signature only on first post VB3.6x
This will cause each user's signature to be shown only on their first post on each page vs. on every post during a thread listing.
Hi i was wondering if theres a hack where peoples sigs only show once per page?
In the postbit or postbit_legacy template,
Find :
<if condition="$post['signature']">
And replace it with this one:
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
There can be only one ! ~ The Highlander
Zachariah
02-17-2007, 09:53 PM
There is no changes in the code from the 3.5 version (https://vborg.vbsupport.ru/showthread.php?t=99127).
This simple template edit works on 3.x, 3.5x, 3.6x.
- If you have installed it before there is no reason to update.
- I placed this here for people who may not explore older hacks.
Smoothie
02-17-2007, 10:35 PM
I've been using this for quite a while (vB 3.6.4) and it works great, I use the version (3.5) you posted before this. (I know they're the same)
Zachariah
02-17-2007, 10:43 PM
I love it.
I still have a few 56k modem warriors that game on line, and many leave images on their personal setting as there are less to look at per page load.
:)
Smoothie
02-17-2007, 10:47 PM
This should be a standard option in vBulletin. Either configured by the admin or the end user. I saw the other mod that allows users to choose, but I'd rather use this.
Tralala
02-17-2007, 11:18 PM
I love it.
I still have a few 56k modem warriors that game on line, and many leave images on their personal setting as there are less to look at per page load.
:)
Yours was the first hack I installed to allow "one sig per page" and I like it very much! I did want to clarify though, as I posted in the thread for the other (user-selectable) version, with regards to the "impact" this has for the 56k modem warriors:
If a poster (with a video or large picture sig) has many posts (and therefore, sigs) on a page, it wouldn't be any slower for a dial-up user to download the page than if that same poster only had one post (and therefore, one sig) on the page. It's not like the page has to download the same exact thing every time. It downloads the image once, and just displays it multiple times.
(IE: if I presented an HTML page showing one single image 20 times, it doesn't download 20 copies of that file for a reader, and the page doesn't take 20 times longer to download. It downloads that image once, the web browser is simply told to display it 20 times.)
I still like this customization, however, because it can make the page easier to read and cuts down on the sig clutter! (As you say, "less to look at" per page load.) But lest anyone be confused... it won't speed up downloading time for dial-up users, per se. It may speed up browser window rendering speed. But not downloading time.
I still like it, though. :)
Jorrit787
02-18-2007, 01:19 AM
It would be nice if this could be a standard feature of vBulletin.
Smoothie
02-18-2007, 02:32 AM
This should be a standard option in vBulletin. Either configured by the admin or the end user. I saw the other mod that allows users to choose, but I'd rather use this.
It would be nice if this could be a standard feature of vBulletin.Duh!
Jorrit787
02-18-2007, 03:07 AM
Duh!What?
Tralala
02-18-2007, 03:30 AM
What?
Smoothie was making a joke that he'd already said the same thing.
Jorrit787
02-18-2007, 04:17 AM
Smoothie was making a joke that he'd already said the same thing.I'm aware that he already said it. I was merely adding my +1 to it.
Zachariah
02-18-2007, 11:49 AM
I always had an issue w/ signatures taking away from the thread's relevant information when reading 50-60 pages of posts, and seeing nothing but a bunch of self expression vs. participation in the debate.
I got to the point for 2-3 years of all that mess shoved in the member profile (where it belongs) and disabled signatures.
This allowed me to re-enable signatures. :)
Tralala,
There is less HTML to process per page of threads by the client browser, hence the page will load faster and "lag" less when scrolling up and down as there are less objects per page load.
(anyway my system lags less w/ my normal 20-30 windows open and 15 programs running)
:)
Tralala
02-18-2007, 03:17 PM
(anyway my system lags less w/ my normal 20-30 windows open and 15 programs running)
:)
I understand that and I very much appreciate it... but for folks to say "dial-up users are sure to love this" seems to miss the point. As if they are the only ones to see a benefit? As if duplicating sigs means the user has to download the same image multiple times?
I'm not putting down the add-on in any way, I use it and love it and think it should be available by default in the vBulletin core software. Precisely because it's not just for "dial-up modem warriors."
Smoothie
02-18-2007, 05:28 PM
If you allow signatures on your forum, it's a constant battle keeping them acceptable in size. Don't matter to me if this does or does not affect page load times, it's never been an issue on my site. What it does do is clean up the post, so you're not seeing all that other nonsense that distacts from the actual posts.
I've been on some forums where the signatures allowed are these huge images, post after post with the same images. Very annoying if you ask me. This cuts the clutter to a minimum.
Zachariah
02-18-2007, 05:40 PM
Precisely because it's not just for "dial-up modem warriors."
Oh yes I hear ya. I just got a kick out of the term :p
I can recall for many years wishing I could get a 9600, 14.4, 33.6, 56k :D.
I can recall only 12 hours left for this mp3 I found !
* Zachariah dances
I've been on some forums where the signatures allowed are these huge images, post after post with the same images. Very annoying if you ask me. This cuts the clutter to a minimum.
Exactly ! :up:
Tralala
02-18-2007, 09:58 PM
Oh yes I hear ya. I just got a kick out of the term :p
I can recall for many years wishing I could get a 9600, 14.4, 33.6, 56k :D.
I can recall only 12 hours left for this mp3 I found !
Heh. My first modem was 300 baud. I think I paid $500 to upgrade it to (full duplex!) 1200 baud. Don't even get me started on 2400 baud. :D
Canis Firebrand
02-19-2007, 05:38 PM
Very nice. Thanks for posting this.
Endurer
02-20-2007, 07:13 AM
Thank you. I have installed it on my board.
SnapOff Racing
02-22-2007, 06:56 AM
i have a customized postbit legacy template and am having trouble integrating this...can you all help me please?
Zachariah
02-22-2007, 11:18 AM
i have a customized postbit legacy template and am having trouble integrating this...can you all help me please?
Hello try this.
Find:
<if condition="$post['signature'] AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
Replace:
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
SnapOff Racing
02-22-2007, 03:09 PM
that worked!!! thank you so much!
LordDB
02-22-2007, 07:30 PM
Zachariah, many thx for this!:)
How do we allow only S.Admin to have the siggy in every post, as I, personally, have useful info for Members in it?
Cheers!
Smoothie
02-22-2007, 07:39 PM
Zachariah, many thx for this!:)
How do we allow only S.Admin to have the siggy in every post, as I, personally, have useful info for Members in it?
Cheers!Probably adding another <if> statement would work. Also there's another mod, similar to this one that the end user can control.
Tralala
02-23-2007, 12:39 AM
Probably adding another <if> statement would work. Also there's another mod, similar to this one that the end user can control.
This one: https://vborg.vbsupport.ru/showthread.php?t=136364
Although it is not (yet?) usergroup savvy.
Zachariah
02-23-2007, 01:54 AM
Zachariah, many thx for this!:)
How do we allow only S.Admin to have the siggy in every post, as I, personally, have useful info for Members in it?
Cheers!
Try this:
Usergroup: 6 is Administrator on my site
Find:
<if condition="$post['signature']">
Replace:
<if condition="$bbuserinfo[usergroupid] == 6">
<if condition="$post['signature']">
<else />
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
</if>
Probably adding another <if> statement would work.
I could expand this hack but it would boot it out of a template hacks.
It could have a vboptions entry to allow you to put an array of user ID's that are not subject to the rule and allow standard signature display.
LordDB
02-23-2007, 08:36 AM
Hi, Zachariah!
Now if shows NO siggy on first or others!:(
Applied code to postbit & postbit_legacy
Any idea's?
Br.
Smoothie
02-23-2007, 02:00 PM
Try this:
Usergroup: 6 is Administrator on my site
Find:
<if condition="$post['signature']">Replace:
<if condition="$bbuserinfo[usergroupid] == 6">
<if condition="$post['signature']">
<else />
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
</if>
I could expand this hack but it would boot it out of a template hacks.
It could have a vboptions entry to allow you to put an array of user ID's that are not subject to the rule and allow standard signature display.
I think its fine just the way it is, that's why I use it. :)
GoNz00
03-04-2007, 01:56 PM
nice mod :)
bela-meaad
03-06-2007, 11:19 AM
can that be only for members
but not for admin or mod?
thanks
Zachariah
03-06-2007, 12:07 PM
can that be only for members
but not for admin or mod?
thanks
Take a look @ post 25
bela-meaad
03-07-2007, 11:19 AM
Take a look @ post 25
thanks
but how can i add for more usergroup
like group 6,5,7
Thanks :up:
bela-meaad
03-09-2007, 01:10 PM
Any one?
know How to add for more usergroup?
princeedward
03-17-2007, 11:25 PM
thanks and clicked install...nice mod hack...;)
DieselMinded
03-28-2007, 03:04 AM
Cool Clicked Install Only thing is that the Sig Shows up when using quick reply untill the page is refreshed , Any way to have it not pop up there >
I only installed in Postbit
Thanks
DM
Dante80
05-06-2007, 05:37 AM
Zachariah, thanks for an excellent mod. :up:
A question though...I want to display the signature only in the last post every member does in each page.
How can I do that?....I know nothing about coding....:confused:
Any help will be vastly appreciated. Salutations from sunny Greece, George...:D
stan111
05-08-2007, 04:37 AM
work perfect on my 3.6.5
thanks a ton
have been loooking for this for a long time
and it is so easy to mod
JuGgOlOw22
05-10-2007, 02:01 PM
Great mod. Is there a way to change the code a little so the sig would show in the last post instead of the 1st post?
*waiting to install
burntire
05-14-2007, 05:17 PM
Works on 3.6.6.
thanks
:D
JuGgOlOw22
05-14-2007, 11:20 PM
Great mod. Is there a way to change the code a little so the sig would show in the last post instead of the 1st post?
*waiting to install
Bump
ComputerVitals
05-16-2007, 02:25 AM
Works on 3.6.6.
thanks
:D
and on 3.6.7
Installed on vbulletin 3.6.7 PL1, no problems. Thanks for posting the solution.
Kihon Kata
06-07-2007, 03:35 AM
Is there anyway to make this a plugin/product and not a template edit?
Zachariah
06-07-2007, 11:50 AM
Is there anyway to make this a plugin/product and not a template edit?
Yes I am sure. I just have not worked on it yet.
Kihon Kata
06-07-2007, 11:53 AM
Yes I am sure. I just have not worked on it yet.
Its not that I don't know how to edit templates, I just hate it when I upgrade the board sometimes. :)
Will we be seeing it?
Thanks!
momo2
07-23-2007, 01:21 AM
i did it but i am still getting my sig on replies shown..
SpaceStar
07-24-2007, 10:28 PM
Hello
I am facing a problem. The hack is working fine but there is some code troubling... can one of you wise-guys see what is problem in this code:
$template_hook[postbit_signature_start]
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true"> AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
$template_hook[postbit_signature_end]
noonespecial
08-18-2007, 05:14 AM
I ended up putting signatures in collapsible boxes. I got too annoyed with them being so full.
Yogesh Sarkar
08-24-2007, 07:01 PM
Thanks a lot, working fine on 3.6.8
NFLfbJunkie
08-27-2007, 02:03 PM
The following is my code in my postbit template:
<if condition="$post['signature'] AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
And when I replace the following (see below) with the replacement text, it does remove the signatures from all of the posts (except the first one), but AND ((0<0 AND 0>=0) OR 0==0)"> shows above the signature in the first post.
<if condition="$post['signature']
Subah
08-29-2007, 12:51 PM
Thanks i like it :)
momo2
09-05-2007, 09:00 PM
Installed, thanks, worked perfect on postbit also..
I would like to have the sig show up only in the 1st post per thread, not per page. Is this possible?
Thanks.
ehsanix
10-02-2007, 04:11 PM
Nice mod. thanks
Traxdata
12-19-2007, 10:47 PM
works fine on vb 3.7.0. beta2 :) postbit changes required
CrashPush
03-18-2008, 02:25 PM
This is a great hack that works great in 3.7.0 B5.
J98680Bxxxxx
05-09-2008, 06:37 AM
Thanks Zachariah :up:
This is a great mod. Simple and efficient. Installed on vB 3.7
Silvio
05-20-2008, 12:43 PM
in VB 3.7 works but has an issue on my case. (never noticed on 3.6)
infact if I post 1 argument then the second post will not have the signature, edit this second post and save it again will have signature.
then if you post again a 3d one w/o editing all signature (unless the firstone) will disappear :S .......really particular issue!!
I know this is for 3.6 and not 3.7 but is there a way to fix this 4 vB3.7?
ciao - take care
regards
Silvio
05-22-2008, 10:02 AM
after some trials i discovered that the issue reported above is related to quick edit. infact in anycase if you use quickedit pane the hack won't work, wile if you use the normal editor it works like a charm
Keesa
09-18-2008, 11:13 PM
Works fine on 3.7.3!!!!!
abdobasha2004
10-03-2008, 10:11 PM
is it useful for SEO?
Zachariah
10-04-2008, 12:26 AM
is it useful for SEO?
Perhaps in a tiny way, as there will be less data on the page that may not have anything to do with the current page content.
I would have to do tests and results to say yes or no.
Allan
02-16-2009, 06:27 AM
Work perfectly on vB 3.8.1, thank you, installed ;)
93Corvette
03-07-2009, 05:21 AM
I think I may be doing something wrong.... I keep getting a </if> missing error.
Is this missing a </if> statement?
Here is my code:
$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
<!-- ****** Kill the Below to have only one signature per post ****** -->
<!-- ****** <if condition="$post['signature']"> ***** -->
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
<!-- ********* ABOVE IS FOR 1 signature per Post ******* -->
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
Thanks in advance....
coffee
03-10-2009, 07:18 AM
Work perfectly on vB 3.8.1, thank you, installed ;)
Thank you, I just tested it and working great !
edytwinky
05-05-2009, 06:27 PM
Works great!
Thanks!
letsjoy
09-17-2009, 09:55 PM
Its not working properly on 3.8.2 tested... :((
m2006
09-19-2009, 10:34 AM
working install thank you for mod
jonbaker
12-20-2009, 07:09 AM
cant get to work for Version 3.8.4
TripleChin
04-13-2010, 12:55 AM
This mod works on 4.0 Publishing Suite with the one minor change below.
<vb:if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
Going to work on getting it limited to one post per thread.
NAZIA
04-14-2010, 06:32 PM
Good Idea..
mindfrost82
06-01-2010, 01:20 PM
Worked fine in 3.8.5 for me.
Merjawy
09-05-2010, 05:53 AM
This mod works on 4.0 Publishing Suite with the one minor change below.
<vb:if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
Going to work on getting it limited to one post per thread.
Yep yep.... Works
thanks
teknolyfe
10-07-2010, 06:08 PM
Yep yep.... Works
thanks
Any luck on the fix for making it only for the first post in the thread?
pakhackerz
11-01-2010, 04:17 AM
i found
<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">
in postbit_articles and postbit_flipped templetes.
so what i have to do
jonbaker
07-15-2011, 03:37 PM
need for 4.1.4 please advise
HMBeaty
07-15-2011, 07:33 PM
need for 4.1.4 please advise
Here you go (https://vborg.vbsupport.ru/search.php)
www.nofal
12-21-2014, 02:26 PM
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.