Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2009, 01:31 PM
Coen Jeukens Coen Jeukens is offline
 
Join Date: Jul 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Different portal page for first time user

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
Attached Images
File Type: png Conditional.png (37.0 KB, 0 views)
File Type: png Index1.php.png (103.3 KB, 0 views)
File Type: jpg Index2.php.jpg (177.9 KB, 0 views)
Reply With Quote
  #2  
Old 08-27-2009, 02:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 08-28-2009, 08:03 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should ask this at the vBAdvanced website.
Reply With Quote
  #4  
Old 08-28-2009, 06:27 PM
Coen Jeukens Coen Jeukens is offline
 
Join Date: Jul 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 View Post
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 View Post
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
Reply With Quote
  #5  
Old 08-28-2009, 07:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coen Jeukens View Post
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.
Reply With Quote
  #6  
Old 08-28-2009, 07:12 PM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 08-30-2009, 10:24 AM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:04 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.05598 seconds
  • Memory Usage 2,249KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete