vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Signature only on first post (https://vborg.vbsupport.ru/showthread.php?t=139689)

Zachariah 02-16-2007 10:00 PM

Signature only on first post
 
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.

Quote:

Originally Posted by Thug
Hi i was wondering if theres a hack where peoples sigs only show once per page?

In the postbit or postbit_legacy template,

Find :

Code:

<if condition="$post['signature']">
And replace it with this one:

Code:

<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.

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

Quote:

Originally Posted by Zachariah (Post 1184882)
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

Quote:

Originally Posted by Smoothie (Post 1184889)
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.

Quote:

Originally Posted by Jorrit787 (Post 1184987)
It would be nice if this could be a standard feature of vBulletin.

Duh!

Jorrit787 02-18-2007 03:07 AM

Quote:

Originally Posted by Smoothie (Post 1185033)
Duh!

What?

Tralala 02-18-2007 03:30 AM

Quote:

Originally Posted by Jorrit787 (Post 1185049)
What?

Smoothie was making a joke that he'd already said the same thing.

Jorrit787 02-18-2007 04:17 AM

Quote:

Originally Posted by Tralala (Post 1185057)
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

Quote:

Originally Posted by Zachariah (Post 1185217)
(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

Quote:

Originally Posted by Tralala (Post 1185331)
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 !

[high]* Zachariah dances[/high]

Quote:

Originally Posted by Smoothie (Post 1185420)
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

Quote:

Originally Posted by Zachariah (Post 1185438)
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

Quote:

Originally Posted by SnapOff Racing (Post 1188133)
i have a customized postbit legacy template and am having trouble integrating this...can you all help me please?

Hello try this.


Find:
Code:

<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:
Code:

<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

Quote:

Originally Posted by daPLAYBOY (Post 1188537)
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

Quote:

Originally Posted by Smoothie (Post 1188550)
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

Quote:

Originally Posted by daPLAYBOY (Post 1188537)
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:
Code:

<if condition="$post['signature']">
Replace:
Code:

<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>


Quote:

Originally Posted by Smoothie (Post 1188550)
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

Quote:

Originally Posted by Zachariah (Post 1188782)
Try this:

Usergroup: 6 is Administrator on my site

Find:
Code:

<if condition="$post['signature']">
Replace:
Code:

<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

Quote:

Originally Posted by bela-meaad (Post 1197033)
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

Quote:

Originally Posted by Zachariah (Post 1197061)
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

Quote:

Originally Posted by JuGgOlOw22 (Post 1244973)
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

Quote:

Originally Posted by burntire (Post 1247513)
Works on 3.6.6.

thanks
:D

and on 3.6.7


All times are GMT. The time now is 04:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01462 seconds
  • Memory Usage 1,836KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete