Quote:
Today at 06:19 AM glo said this in Post #103
Hi Logician,
I can see that this thread hasnt been very active since May.
I have installed your new version 2.03 and have 2 questions requiring your assistance.
I hope that from the answers obtained I will be able to contribute to the webquery and template list!
1. this question is similar to Rose's question from 1 year ago.
Objective: When a guest or member who is not logged in, accesses the "account information" page, the page should display (using conditionals) some text about membership benefits . But once they log in then they are given the "edit profile, edit options and edit password" templates from vB but i dont want to use the vB header.
|
Create a custom header for your webtemplates. Set "Have conditionals" to "YES" for your header.
Then use conditionals to display certain things according to visitor's userid/usergroupid there.
---------------------------------------------------------------
HTML that is showed to both guests and members
[[($bbuserinfo[userid]==0)]]
HTML to show guests only
[[/($bbuserinfo[userid]==0)]]
HTML that is showed to both guests and members
[[($bbuserinfo[userid]>0)]]
HTML to show to members only
[[/($bbuserinfo[userid]>0)]]
HTML that is showed to both guests and members
---------------------------------------------------------------
Then assign this to any webtemplate you like. More examples about conditionals can be found in the hack threads of "Dynamic Templates Hack" and "Dynamic Forum Home Announcement Hack".