The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Members info outside vbulletin?
I have a Vbulletin forum installed in a subdomain and home page is a joomla site, i wonder if its possible to show logged in users the Welcome User you have 2 unread messages.
This info should be shown after the user is logged in ofcourse.... When not logged in a log in field is shown, when logged in the members info and a log out button. This would be nice to have on the frontpage(which is joomla). I tried this here: Code:
<?php // Version 1.10 // Released April 24th, 2007 // Edit the line below to show path to your forums $forumpath = "http://www.yoursite.com/forums/"; // You dont have to edit anything underneath here, // but you can if you wish to style the login box // to match the style of your site. // --------------- // COPYRIGHT STUFF // --------------- // You are free to use and modify this script in anyway you like. // However, // - Do not remove copyright notice // - Dont pass it off as your own work. // // This script is provided free of charges, however If you use this on a commercial // venture a small paypal donation to cwp@cwp.id.au would be apprecieated. // We check if user is logged in if ($vbulletin->userinfo['userid']!=0) { // If Logged in display welcome back message echo "Welcome Back, <b>"; echo $vbulletin->userinfo['username']; echo " !</b> "; // If logged in display logout link echo "<a href=\"".$forumpath."login.php?$session[sessionurl]do=logout&logouthash=$logouthash"; echo $vbulletin->userinfo['logouthash']; echo "\">"; echo "<font size=\"1\" face=\"verdana\">Log Out</font></a> "; } else { // If user is not logged in, we do this stuff // Display text and link to register. echo " You have to <a href=\"".$forumpath."register.php?s=$session[sessionhash]\" target=\"_parent\"><b>register</b></a> before you can post on our forums or use our advanced features. "; // Display login boxes + button // You can style this with html or CSS as normal if desired. echo" <form action=\"".$forumpath."login.php\" method=post onsubmit=md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)> <script type=text/javascript src=\"".$forumpath."clientscript/vbulletin_md5.js\"></script> User Name: <input name=vb_login_username type=text id=navbar_username onfocus=\"if (this.value == '$vbphrase[username]') this.value = '';\" size=10 /> Password: <input name=vb_login_password type=password size=10 /> </br> <label for=cb_cookieuser_navbar><input name=cookieuser type=checkbox id=cb_cookieuser_navbar value=1 checked=checked /> Remember Me? </label> <input type=submit title=$vbphrase[enter_username_to_login_or_register] value=\"Log In\" /> <input type=hidden name=s value=$session[sessionhash] /> <input type=hidden name=do value=login /> <input type=hidden name=vb_login_md5password /> <input type=hidden name=vb_login_md5password_utf /> </form> "; } ?> Btw, this forum is not bridged with joomla. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|