vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Signature only appears once per thread page (https://vborg.vbsupport.ru/showthread.php?t=60785)

vbmechanic 01-25-2004 10:00 PM

Signature only appears once per thread page
 
Goal: Make the user's signature appear only once per page

Result: Simple as can be, 1 line replacement in includes/function_showthread.php

Cheers!

zajako 01-26-2004 07:58 PM

well done

nemesis01 01-26-2004 07:59 PM

Installed, good stuff.

vbmechanic 01-26-2004 08:01 PM

Thanks, was filling request: https://vborg.vbsupport.ru/showthread.php?t=60781

FleaBag 01-26-2004 11:14 PM

Use this on my vB2 site, good to see it's ready for when I move over. :D

Boofo 01-27-2004 12:07 AM

This can be done with a simple line in the postbit template.

Sebastian 01-27-2004 12:08 AM

this can also be done with template conditional with no hacking.


edit: Boofo, stop repeating me! ;)

vbmechanic 01-27-2004 12:36 AM

Seeing that you would have to write an "if" statement and dig through the template menus, doing it this way is probably quicker :)

Vigile 01-27-2004 01:32 AM

Quote:

Originally Posted by vbmechanic
Seeing that you would have to write an "if" statement and dig through the template menus, doing it this way is probably quicker :)

honestly, i think the 'if' is easier, since a vb.com dev posted it some time ago. But hey.. gotta love hacks :)

although I'll admit.. my test server has the if statement setup as user selectable lol

vbmechanic 01-27-2004 01:55 AM

Well, to me, using the template <if> conditionals is blurring the line between application and presentation layer.. it is meant as a quick fix if you're not able to modify the code. When both solutions are short and easy, I'll choose the code modification rather than putting more code in the presentation HTML. I do appreciate the functionality the conditionals give and I do use them when appropriate.

To each his/her own though ;)

Boofo 01-27-2004 02:24 AM

Quote:

Originally Posted by vbmechanic
Well, to me, using the template <if> conditionals is blurring the line between application and presentation layer.. it is meant as a quick fix if you're not able to modify the code. When both solutions are short and easy, I'll choose the code modification rather than putting more code in the presentation HTML. I do appreciate the functionality the conditionals give and I do use them when appropriate.

To each his/her own though ;)

But it is always easier in the templates when upgrading. Templates don't get changed as often as files do.

FastAttack 01-27-2004 03:23 AM

thank you very much..

do I have to update the posts so that this hack takes effect?

vbmechanic 01-27-2004 10:23 AM

>>But it is always easier in the templates when upgrading. Templates don't get changed as often as files do.

Ahh good point, but I do compare-and-replace upgrades anyway.

>>do I have to update the posts so that this hack takes effect?

You should not have to.. the hack works by changing postbit, which is built dynamically each time someone accesses the thread.

gmarik 02-01-2004 05:45 PM

Boofo
Share the line ;)

Boofo 02-01-2004 05:47 PM

PM me if you want it. I don't want to muddle up this gentleman's thread when he released a hack for this. ;)

Allan 02-19-2004 05:47 PM

thank, good taf ;)

FleaBag 02-22-2004 03:10 AM

I installed this rather than the template mod - much simpler in my opinion. :D

Boofo 02-22-2004 03:20 AM

Quote:

Originally Posted by FleaBag
I installed this rather than the template mod - much simpler in my opinion. :D

How can downlading a file, editing it, and re-uploading that file be simpler than a template edit? Especially on an upgrade. ;)

Akex 03-05-2004 08:28 AM

Thanks, I installed it :)

Glacierhawk 05-23-2004 03:03 AM

Generation G has added this to our forums.

Thanks!

Flow Fusion 06-05-2004 12:36 PM

Thanks I needed this.

turbidblue 07-06-2004 09:38 PM

so damn easy and very very handy!!

*clicks install

;)

Michael Morris 07-07-2004 08:23 PM

Doesn't work in RC4 (the requested line isn't in file showthread.php)

Bofo, what was the template level version?

Boofo 07-07-2004 08:26 PM

Quote:

Originally Posted by Michael_Morris
Doesn't work in RC4 (the requested line isn't in file showthread.php)

Bofo, what was the template level version?

Who is "Bofo"? ;)

Contact me PM and I will get it to you.

kira 07-16-2004 04:52 AM

Y'know, it's these little but elegant hacks that make vb.org's community such a delight. Many many thanks -- my community members sometimes reply many, many times in a thread and ALWAYS keep their sigs on! Very annoying. But thanks to this hack, it's nice and clean.

Great stuff, thanks. :)

W4arab 07-21-2004 04:11 AM

Hey

What About VB 3.0.3 Mr. Boofo

cuz there is some change :rolleyes:

Boofo 07-21-2004 05:29 AM

Quote:

Originally Posted by W4arab
Hey

What About VB 3.0.3 Mr. Boofo

cuz there is some change :rolleyes:

Well, what about it? What changes would affect that? :rolleyes:

W4arab 07-21-2004 06:04 AM

When i Replace the code

text appears in Signature but without the pic's

can you fix the code ?

W4arab 07-21-2004 06:55 AM

Boofo

sorry man the problem was in my editor cuz i edit the file with "FrontPage"

when i make it with "Notepad" it's work sorry :(

oldfan 08-12-2004 02:34 PM

thanks, now my members will stop whining :)

oldfan 08-19-2004 01:19 PM

After installing this, I got this message from my provider...

Quote:

Your privvmpages value (as can be seen by using the command: cat
/proc/user_beancounters) is currently at 322983515, There is a soft limit at
, 125000 ,so it is being stopped from exceeding that.

Normal usage should be around 70,000 to 80,000 - so your current usage is
multiple times that.

This suggests that there is a memory leak somewhere in a script or aplication
on your server; do you have custom scripts installed?
the mod was removed and everything is back to normal.
anyone have a clue why this was happening?

Lord Les 08-23-2004 11:24 PM

Awesome .. thanks

y2krazy 08-30-2004 12:48 AM

/me clicks install!

boiboi 01-31-2005 05:25 AM

great mod

catocom2 01-31-2005 03:46 PM

Quote:

Originally Posted by Boofo
Who is "Bofo"? ;)

Contact me PM and I will get it to you.

Have you posted this anywhere yet? :nervous:
and
is there and easy way to make it a checkbox user option?

BfB 02-02-2005 02:09 AM

Pardon me if I missed it, but how do you install this type of hack, yet allow it to "exclude" certain groups from having their signatures limited, i.e. Vendors?

Thanks in advance!

Regards,

James

BfB 05-09-2005 04:32 AM

Pardon me if I missed it, but how do you install this type of hack, yet allow it to "exclude" certain groups from having their signatures limited, i.e. Vendors?

Thanks in advance!

Regards,

James

Flow Fusion 05-09-2005 04:38 AM

Quote:

Originally Posted by BfB
Pardon me if I missed it, but how do you install this type of hack, yet allow it to "exclude" certain groups from having their signatures limited, i.e. Vendors?

Thanks in advance!

Regards,

James

You can't with this kind of hack. But you can make it so new users can't have sigs avatars Pm's etc, and make a new user group who can have these abilities by making about 10 post. just create a new post promotion.

secret1980 05-11-2005 06:08 PM

good work mate :D it worked :D

novelidea 06-07-2005 12:19 AM

Is there anyway to have a signature only show up once per thread instead of once per page?


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.01231 seconds
  • Memory Usage 1,790KB
  • 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_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