tgreer
04-07-2006, 10:00 PM
This is a PRODUCT: go to Manage Products, upload, to install.
This Product creates a "Welcome" or "Invitation to Join" table for guests. If the guest reaches your site via a search engine, the message will display the search engine name and the search terms to entice them to join.
It works with Google, Yahoo!, MSN, and a couple of others.
Members don't see the message: only guests.
The message will replace the "Posting Rules" - I never saw much need for guests to see the Posting Rules, after all. Members will still see the normal Posting Rules. This means that FORUMDISPLAY and SHOWTHREAD will display the invitation table.
I chose this location because it is at the bottom of the page, and that's where most interested guests will find themselves.
The plugin creates three new phrases:
TGREER_invite_title : the tile to display for the table/panel. Defaults to "You're Invited".
TGREER_invite_search_engine: An invitation to join, using the search engine name, search terms, and forum title.
TGREER_invite_default: if a guest is browsing the forum, but didn't arrive via search engine, they'll see a default invitation.
You MUST EDIT THESE PHRASES, as they contain the phrase "GENERIC industry". You'll need something more suited to your own forum.
The phrases use phrase variables:
{1} = the forum title
{2} = search engine name
{3} = search terms
The plugin creates one new template:
invite_forumrules
This template is used to create the actual HTML table which displays the invitation. You may edit it, as you would any other template. Within the template, there is a conditional to test if the user is a guest or not.
The variable $GLOBALS[orig_forumrules] contains the normal forumrules template. If you edit the invite_forumrules template, you can use this variable as a "placeholder" for the normal Posting Rules.
Advanced Users
You don't have to use my template or location. You can use the search terms and search engine anywhere you like. If you don't want to use my template, disable the TGREER_invite_template plugin.
In the TGREER_invite_search_terms plugin, comment-out these two lines:
eval('$orig_forumrules = "' . fetch_template('forumrules') . '";');
found near the top, and
$vbulletin->templatecache['forumrules'] = $vbulletin->templatecache['invite_forumrules'];]]>
found at the bottom.
Then, you can use $GLOBALS[search_engine], $GLOBALS[search_terms] and $GLOBALS[showSearchWelcome] wherever you like.
NOTE: $GLOBALS[showSearchWelcome] is "true" if the user reached the site via search engine, false otherwise.
Screen-shot:
https://vborg.vbsupport.ru/external/2006/04/71.gif
This Product creates a "Welcome" or "Invitation to Join" table for guests. If the guest reaches your site via a search engine, the message will display the search engine name and the search terms to entice them to join.
It works with Google, Yahoo!, MSN, and a couple of others.
Members don't see the message: only guests.
The message will replace the "Posting Rules" - I never saw much need for guests to see the Posting Rules, after all. Members will still see the normal Posting Rules. This means that FORUMDISPLAY and SHOWTHREAD will display the invitation table.
I chose this location because it is at the bottom of the page, and that's where most interested guests will find themselves.
The plugin creates three new phrases:
TGREER_invite_title : the tile to display for the table/panel. Defaults to "You're Invited".
TGREER_invite_search_engine: An invitation to join, using the search engine name, search terms, and forum title.
TGREER_invite_default: if a guest is browsing the forum, but didn't arrive via search engine, they'll see a default invitation.
You MUST EDIT THESE PHRASES, as they contain the phrase "GENERIC industry". You'll need something more suited to your own forum.
The phrases use phrase variables:
{1} = the forum title
{2} = search engine name
{3} = search terms
The plugin creates one new template:
invite_forumrules
This template is used to create the actual HTML table which displays the invitation. You may edit it, as you would any other template. Within the template, there is a conditional to test if the user is a guest or not.
The variable $GLOBALS[orig_forumrules] contains the normal forumrules template. If you edit the invite_forumrules template, you can use this variable as a "placeholder" for the normal Posting Rules.
Advanced Users
You don't have to use my template or location. You can use the search terms and search engine anywhere you like. If you don't want to use my template, disable the TGREER_invite_template plugin.
In the TGREER_invite_search_terms plugin, comment-out these two lines:
eval('$orig_forumrules = "' . fetch_template('forumrules') . '";');
found near the top, and
$vbulletin->templatecache['forumrules'] = $vbulletin->templatecache['invite_forumrules'];]]>
found at the bottom.
Then, you can use $GLOBALS[search_engine], $GLOBALS[search_terms] and $GLOBALS[showSearchWelcome] wherever you like.
NOTE: $GLOBALS[showSearchWelcome] is "true" if the user reached the site via search engine, false otherwise.
Screen-shot:
https://vborg.vbsupport.ru/external/2006/04/71.gif