vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Variables for conditionals (https://vborg.vbsupport.ru/showthread.php?t=64118)

Zachery 04-08-2007 12:28 PM

Same as $bbuserinfo, but just for the person who made the [post.

perju 04-10-2007 12:59 AM

How would I display a user's profile picture inside of a post? I'm having lots of trouble with this.

Zachery 04-10-2007 04:36 AM

ATM theres no easy way, as in theres no varible. Try making a request.

perju 04-10-2007 02:49 PM

Do I request it here? :)

perju 04-25-2007 06:16 PM

If I were to create the variable, what file / template would I look into?

dartho 09-11-2007 03:15 AM

Thanks for all the info!

dartho 11-09-2007 05:07 AM

Are there any variables which can tell you where you are on the site?

If a user is viewing one of a number of pages, I want to add additional links to the navbar.

After checking the whosonlinebit template I see there is $userinfo[location], but this doesn;t seem to be set in other templates. Any ideas?

Thanks

Opserty 11-09-2007 12:30 PM

THIS_SCRIPT is defined on all vBulletin pages (that use templates) I think they are just the name of the file without the .php extension. Therefore your conditional with look like:

Code:

<if condition="THIS_SCRIPT == 'showthread'">
    You are viewing a thread!
</if>


dartho 11-09-2007 08:43 PM

thanks, did the trick!

alaa2142 11-10-2007 03:46 PM

good thread, it just helped me

gotta love the search


All times are GMT. The time now is 08:44 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.01100 seconds
  • Memory Usage 1,726KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)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