vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Different portal page for first time user (https://vborg.vbsupport.ru/showthread.php?t=221883)

Coen Jeukens 08-27-2009 12:31 PM

Different portal page for first time user
 
1 Attachment(s)
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) 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 01: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 07:03 AM

You should ask this at the vBAdvanced website.

Coen Jeukens 08-28-2009 05:27 PM

Quote:

Originally Posted by Lynne (Post 1875298)
What is the criteria to define a first time user?

My defintion of a first time user is:
PHP Code:

if ($show['guest']) 

Quote:

Originally Posted by Lynne (Post 1875298)
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.

Quote:

Originally Posted by Marco van Herwaarden (Post 1875690)
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:
  1. The 'vba_cmps_include_getpage' hook option
  2. The 'style fetch' hook option

I have added two more pictures in post #1.
  1. Index1.php is the portal page for guests
  2. 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 06:10 PM

Quote:

Originally Posted by Coen Jeukens (Post 1875955)
My defintion of a first time user is:
PHP Code:

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:
HTML Code:

<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 06: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 09: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. :)


All times are GMT. The time now is 08:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02596 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete