vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   PM to use alternate postbit? (https://vborg.vbsupport.ru/showthread.php?t=146051)

Jeordie015 04-29-2007 09:19 PM

PM to use alternate postbit?
 
I wouldn't think this would be too hard to do, but I'm not sure how to go about doing it.

What I want is to make the page where you view a PM to use a postbit different from the postbit you'd see in a thread. Any suggestions on how this could be done?

Thanks.

CyberAlien 04-30-2007 05:36 AM

Try <if condition="THIS_SCRIPT == 'private'">

Jeordie015 05-01-2007 11:24 PM

I'm not too experienced in coding in vBulletin. Could you expand on that?

CyberAlien 05-02-2007 06:32 AM

In your postbit template use this:

<if condition="THIS_SCRIPT == 'private'">
here is code for postbit in private messages
<else />
here is code for postbit on other pages
</if>

Jeordie015 05-06-2007 04:14 AM

Okay, so before I even begin working on this, let me make sure I know what I'm doing. I use the postbit_legacy postbit.

So in the postbit_legacy template, at the top I'm going to put in this:

Code:

<if condition="THIS_SCRIPT == 'private'">
new postbit code
<else />
what is currently in postbit_legacy
</if>

Is that correct? If so, I think I can handle that.

UPDATE: I did that, and it works. Thanks a lot.


All times are GMT. The time now is 09:34 PM.

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.00917 seconds
  • Memory Usage 1,710KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete