PDA

View Full Version : Different portal page for first time user


Coen Jeukens
08-27-2009, 01:31 PM
Q: How do I create a different portal index page for first time users?

I am setting up a forum about "service" for a wide audience range. For first time users I want to create a different opening portal page, a teaser page (index1.php). A page that contains more explanation about the mechanics of the site. A page that is less intimidating for a first time user. A page that invites the user to register. This page should only show a subset of the forum data, predominantly an overview of the forums grouped per category. This page should NOT contain any references to threads, except for the labels mod (to give a glimpse on the content/ topics covered inside the forums.

A user registered user will be presented a "regular" vBadvanced portal page (see index2.php (http://www.strictlyservice.nl/index2.php)) with the option to customize the page and remove/ hide redundant mods.

How to create the code for the flow displayed in the picture.

Regards
Coen

Lynne
08-27-2009, 02:34 PM
What is the criteria to define a first time user? Once you define that, you can write conditions in your page to spit out different info based on that criteria.

Marco van Herwaarden
08-28-2009, 08:03 AM
You should ask this at the vBAdvanced website.

Coen Jeukens
08-28-2009, 06:27 PM
What is the criteria to define a first time user?

My defintion of a first time user is: if ($show['guest'])

Once you define that, you can write conditions in your page to spit out different info based on that criteria.

Q Can you point me in the right direction to create a page in front of my forum as displayed in the attachment of post#1.

You should ask this at the vBAdvanced website.

I have asked the question at the vBa site as well, currently to no avail. Two "solutions" are floating around but they do not deliver what I (and others) seek:

The 'vba_cmps_include_getpage' (http://www.vbadvanced.com/forum/showthread.php?p=176453) hook option
The 'style fetch' (http://www.vbadvanced.com/forum/showthread.php?t=26958) hook option


I have added two more pictures in post #1.

Index1.php is the portal page for guests
Index2.php is the default vBa portal page for logged in guests.


Since index 1 & 2 differ so much I am not sure if I can achieve my goal with only using vBa with the right condition.

First I need a working mechanism to separate guests from regulars.

But I need some help of the vB community.
Then I can complete the styling and coding of index1.

Regards
Coen

Lynne
08-28-2009, 07:10 PM
My defintion of a first time user is: if ($show['guest'])Q Can you point me in the right direction to create a page in front of my forum as displayed in the attachment of post#1.

If that is the criteria, then in a template you can simply go:
<if condition="$show['guest']">
stuff for if they are a guest (not logged in)
<else />
stuff for if they are a user (logged in)
</if>I don't use vbA, so I really can't tell you much more than that.

Gio~Logist
08-28-2009, 07:12 PM
You want a redirection to index2.php, correct? As that's what I see in your attachment image in the browser.

So if they're on the frontpage and they are a guest, you want them redirected to index2?

Defkalion
08-30-2009, 10:24 AM
This is easy. You can make all your current normal portal page modules visible only to registered users and not guests.

Then you make a second series of vbadvanced modules that are visible only to guests, and you're ready. :)