The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a page and I'm trying to do 2 things to it.
I used the hook feature and created a page http://lvasp.com/forum/requestform.php which used the vbulletin template system. How do I make it so that only logged in users can access the page (so that if there not logged in they get a standard vbulletin error) Also, how do I (autofill) the form so that LVASP Username would be filled in with their username (which, if logged in would be in the Welcome, "x" near the top). Thanks.... |
#2
|
||||
|
||||
![]()
Please post the code up.
|
#3
|
||||
|
||||
![]() Code:
<if condition="$show['member']"> This is what members see. <else /> This is what guests see. </if> Code:
$userinfo[username] |
#4
|
|||
|
|||
![]() Quote:
Code:
<if condition="$bbuserinfo[userid] == 0"> This is what guests see <else /> This is what users signed in see </if> PHP Code:
|
#5
|
||||
|
||||
![]() Quote:
Code:
<if condition="$show['guest']"> This is what guests see <else /> This is what users signed in see </if> |
#6
|
|||
|
|||
![]()
Yeah never knew they had the variable $show['member'], o well I guess I learn something today.
|
#7
|
|||
|
|||
![]()
wow, loads of responses, thanks...
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|