PDA

View Full Version : Simple Code


samharris
11-28-2006, 10:25 AM
Is there a simple code to see if a user has signed into vbulletin or not???

peterska2
11-28-2006, 10:27 AM
You can use $show[member]for members and$show[guest]for guests anywhere in the templates. Or you can use$bbuserinfo[userid]!=0for members again anywhere in the templates.

samharris
11-28-2006, 10:37 AM
How would the code look if i wanted it to say
if a user is login then show
link 1 - link2 - link3
else
show
link a - linkb - linkc

thanks


You can use $show[member]for members and$show[guest]for guests anywhere in the templates. Or you can use$bbuserinfo[userid]!=0for members again anywhere in the templates.

peterska2
11-28-2006, 10:49 AM
something along the lines of<if condition="$show[member]">
Member stuff here
<else />
guest stuff here
</if>

samharris
11-28-2006, 10:56 AM
something along the lines of<if condition="$show[member]">
Member stuff here
<else />
guest stuff here
</if>


would that be th same if u put it on a php page which also contains the forum?

peterska2
11-28-2006, 11:00 AM
No, this is just for in the templates. The code you would need for in the php file is completely different and unless the file is linked to vBulletin then the required variables (which I can't remember off the top of my head) won't work.

samharris
11-28-2006, 11:16 AM
is there a way to change the size of the navbar so it fits into the page properly and the search box is under the search box and not 10cm to the side?

peterska2
11-28-2006, 02:23 PM
That will be due to a problem with your template, probably due to a modification to it that has not been correctly applied.