View Single Post
  #542  
Old 01-15-2010, 12:54 AM
Shanj Shanj is offline
 
Join Date: Oct 2006
Location: Wales UK
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I have finally worked out a way to make a personalised entry / specialised welcome page per usergroup for my site, using Logician's top quality mod and with a bit of his advice as well.

(Actually with Logician's powerful controls it could also target key individual users with a custom entry / welcome page as well as targeting usergroups.)

No messing with the login process, no secondary complications of being timed out and forced to return to the entry page when logging in again.

Also when giving the URL for entry to anyone in an email/ by phone/ visible on a webpage, in a letter or advert, the welcome page URL can be kept very simple and easy to remember.

The welcome page can provide any information, links, guides as relevant to e.g. very new user/ veteran user/ mods/ various needs for usergroups.

Using Logician's admin cp editor by pasting in a complex page from your own editor,
OR using the "Edit this page" Logician webeditor to make a simple page of information and links, it's not a big deal to create the welcome page you want.


1. I make a perfectly ordinary html page.
I'll call this the false welcome page.

This must NOT be a Logician Webtemplate.
Best to place it outside the vbulletin folder.

Its URL is something like

Code:
www.mysite.com/welcome
To get this ultra simple URL make a directory named
Code:
welcome

containing an index.html page. This is the false welcome page.

This URL is very easy for you to publicise and for your people and new possible people to remember.
Code:
www.mysite.com/welcome
is much more user friendly than either the forumhome (if it's in a subdirectory) or a webtemplate page. It's quick and simple to
- give out on the phone,
-- offer in an email, email signature
- include in a letter/ letter heasding, leaflet, or advert

- and perhaps most important it's easily remembered.
For me with international travelling users that's key as they can remember it wherever they are.

2. But the false welcome page - the index.html page inside the
welcome directory
has nothing in it except a standard redirect to one of Logician's cool webtemplates - which because it is powerful has its characteristically more complex URL.

Redirect is done like this.
Put this code between the <HEAD> and </HEAD> tags of the index page in the "welcome" directory.

Code:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mysite.com/view.php?pg=test ">
Code:
www.mysite.com/view.php?pg=test">
the target for the redirect, is one of Logician's sample webtemplates which will be the TRUE welcome page.
Yours will replace mysite.com and also the name of the webtemplate on the end showing as "test."

3. Because the user is being redirected to a page INTERNAL to VBulletin the standard VB login interface HAS to appear.
The user logs in.
or registers, if you accept open registration.

4. They then arrive at the TRUE welcome page.
For them it's just
- use the very simple URL to the false welcome page (the ordinary html page)
- Login or register
- Arrive at the TRUE welcome page.

4A. The webtemplate on arrival, the TRUE welcome page, obviously has a link to the forumhome either in its navbar (if using the VB header) and optionally in a side menu.
(I recommend Ultimate Side Columns for use with Logician's Webtemplates)

It should also have a prominent link to the TRUE welcome page so users can get back to it for information, guides, links to frequently used areas, the stuff you put together to suit THEIR needs.

5. The TRUE welcome page is one single longish page, set to be accessible to ALL usergroups you want to use this method of entry.
Set that access for this page, in Logician's webtemplates admincp.

(You may also want some usergroups to just use the standard forumhome which you publicise to those types of user. Perhaps having a personalised welcome page is best for your newcomers? or useful as a privilege level gift.)

6. The TRUE welcome page/ webtemplate has sections that are different for different usergroups.
Welcome for very new users,
higher level content for veterans,
stuff for mods,
specifics for various usergroups.

Logician's online editor feature also supports a collaborative page maintained with colleagues, fellow mods, family wetc though this would probably mean a simpler page unless the collaborators are all coders!

These usergroup access controls are created by php conditionals as Logician showed earlier on this thread:

Code:
<if condition="$bbuserinfo[usergroupid] == 6">
this content displays only to administrator
</if>
<if condition="$bbuserinfo[usergroupid] == 2">
this content displays only to registered member
</if> 
There is also php conditional code like this to target an individual user, or bar one otherwise allowed by their usergroup.

.................................................. ...

TO SUMMARISE


Use a false welcome page \directory-named-welcome\index.html
index.html redirects to the TRUE webtemplate welcome (Logician's webtemploate)
the TRUE webtemplate welcome is set in Logician's admin cp to all usergroups you want to have a welcome/ entry page
it has php conditionals to offer customised stuff to a) usergroups b) key individuals or bar same.

Phew! Thank you Logician for helping me so much on the way. I hope this little piece of work is not out of place here.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,801KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete