Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > HTML / Design

HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-2008, 07:36 PM
HunteRRosE's Avatar
Member
 
Join Date: Jan 2008
Location: Centreville, VA
Posts: 30
Default Cookie Question

I found this code to output a logged in users userid in Vbulletin on an external page but it outputs nothing.

Anyone know why?

PHP Code:
<?
if (isset($_COOKIE["bbuserid"])) {
print(
"<span class='welcome'><br><br><center>Welcome back, $username!&nbsp;&nbsp;&nbsp;&nbsp;<br><br><a href=\"http://www.sitename.com/forums/\">Visit the Forums</a>&nbsp;&nbsp;&nbsp;&nbsp;</center>");
} else {
?>
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 10:34 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Doesn't it need to grab that info from the MySQL Database>?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 11:42 PM
HunteRRosE's Avatar
Member
 
Join Date: Jan 2008
Location: Centreville, VA
Posts: 30
Default

Hmm... you may be right. I've seen it both ways. Perhaps now that php has globals off that is the preferred way to do it now.
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 11:42 PM
HunteRRosE's Avatar
Member
 
Join Date: Jan 2008
Location: Centreville, VA
Posts: 30
Default

Congrats on breaking the 1k post barrier BTW!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 09:18 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by HunteRRosE View Post
Congrats on breaking the 1k post barrier BTW!
Thanks bro! - It was hard to get past 1K :P
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 09:19 PM
lnxcode's Avatar
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 1,776
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

Quote:
Originally Posted by HunteRRosE View Post
Hmm... you may be right. I've seen it both ways. Perhaps now that php has globals off that is the preferred way to do it now.
Did it work?
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 11:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.