Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2005, 12:11 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What am I doing wrong?

I have this in a conditional in a template. Why doesn't the name show up. I'm sure its something stupid that I have yet to grasp w/ vb3.5

Code:
<div align="left" style="color: red; background-color: white; border: 1px solid black; padding:2px">Hey $userinfo['username'], your account is awaiting approval from an administrator.  That will only happen after you have participated in the thread that was generated for you.  If you don't know where that thread is, check <a href="private.php?$session[sessionurl]"><strong>your Private Messages</strong></a> and/or PM an administrator (fly, theacoustician, DirkPhoenix, FatBurger).  Thanks!</div>
And why in the heck does that show up as a single line code box? eek
Reply With Quote
  #2  
Old 09-08-2005, 12:51 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What condition? There is no condition in what you have posted.
Reply With Quote
  #3  
Old 09-08-2005, 01:46 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry. My question wasn't about the condition. I have $userinfo['username'] in there for the username, but it doesn't actually show up. Obviously that's wrong, what is the right way to do it?
Reply With Quote
  #4  
Old 09-08-2005, 02:02 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper
Sorry. My question wasn't about the condition. I have $userinfo['username'] in there for the username, but it doesn't actually show up. Obviously that's wrong, what is the right way to do it?
Well what temlpate is that sposed to be in, have you thought $userinfo might not be a valid array?
Reply With Quote
  #5  
Old 09-08-2005, 02:07 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Well what temlpate is that sposed to be in, have you thought $userinfo might not be a valid array?
LOL Apparently it isn't, but I'm an idiot.

I had some old code in vb3.0 that would remind people to post after a few weeks. It was in the header template and used $bbuserinfo, which I read changed to $userinfo.

Coding and I work together like cornpops and wingnuts.

hmmm

i used $bbuserinfo['username'] and it worked. I thought someone said that variable name had changed.

why does it auto merge my posts sometimes when they aren't double posts?

test

what the hell

every line i post it merges

am i only allowed so many posts a thread?

HELP?

this is really weird
Reply With Quote
  #6  
Old 09-08-2005, 05:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by flypaper
LOL Apparently it isn't, but I'm an idiot.

I had some old code in vb3.0 that would remind people to post after a few weeks. It was in the header template and used $bbuserinfo, which I read changed to $userinfo.

Coding and I work together like cornpops and wingnuts.

hmmm

i used $bbuserinfo['username'] and it worked. I thought someone said that variable name had changed.

why does it auto merge my posts sometimes when they aren't double posts?

test

what the hell

every line i post it merges

am i only allowed so many posts a thread?

HELP?

this is really weird
Reason: Automerged Doublepost << try reading, its an anti bumping system we have installed and have had for ages now.

Yes varibles changed for php, but not in the templates

$bbuserinfo for php code in 3.0
$vbulletin->userinfo for php code in 3.5
Reply With Quote
  #7  
Old 09-08-2005, 06:03 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Reason: Automerged Doublepost << try reading
That isn't very intuitive. Usually a double post is two of the same post... Oh well, semantics I guess. Thanks for the info!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04211 seconds
  • Memory Usage 2,218KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete