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


All times are GMT. The time now is 08:11 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.01010 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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