Coder1
04-13-2006, 01:27 PM
Instructions
This is a PRODUCT, so you go to "Manage Products" and upload it.
Screen Shot
http://www.tgreer.com/invite_screenie.gif
Template
This product creates 1 new template, called invite_forumrules. This template was designed for my site, where I don't use a Forum Jump menu. Thus, by default the table is center-aligned, and full-width.
You may need to adjust this for YOUR site. Just edit the template, as you would any other. If it's too wide, try changing align="center" to "align=left". Also, the width by default is equal to $stylevar[formwidth]. You can change that, for example to "180px" to alter the size of the "You're Invited" panel/table.
When you edit this template, note the variable $GLOBALS[orig_forumrules]. This variable contains the original Posting Rules. If the user is not a guest, they'll see the normal Posting Rules. If you DELETE THIS VARIABLE, then members won't see the Posting Rules. So keep it in the template, inside the condtional.
Phrases
You must edit the phrases, because the default message uses the term "generic". You want a more inviting message than that.
There are three phrases:
TGREER_invite_title
TGREER_invite_default
This is what is displayed if the user reaches your site from a link somewhere, rather than a search engine.
TGREER_invite_search_engine
This is what is displayed if the user reaches your site from a search engine. MSN, Yahoo, Google, and a couple more are supported.
These use phrase variables: {1} = your forum title, {2} = the search engine {3} = the search terms. When you edit the templates, use these variables.
If you use this plugin, please consider a modest donation. You can use my PayPal tip jar found on my site (http://www.tgreer.com/cmps_index.php#TipJar).
This is a PRODUCT, so you go to "Manage Products" and upload it.
Screen Shot
http://www.tgreer.com/invite_screenie.gif
Template
This product creates 1 new template, called invite_forumrules. This template was designed for my site, where I don't use a Forum Jump menu. Thus, by default the table is center-aligned, and full-width.
You may need to adjust this for YOUR site. Just edit the template, as you would any other. If it's too wide, try changing align="center" to "align=left". Also, the width by default is equal to $stylevar[formwidth]. You can change that, for example to "180px" to alter the size of the "You're Invited" panel/table.
When you edit this template, note the variable $GLOBALS[orig_forumrules]. This variable contains the original Posting Rules. If the user is not a guest, they'll see the normal Posting Rules. If you DELETE THIS VARIABLE, then members won't see the Posting Rules. So keep it in the template, inside the condtional.
Phrases
You must edit the phrases, because the default message uses the term "generic". You want a more inviting message than that.
There are three phrases:
TGREER_invite_title
TGREER_invite_default
This is what is displayed if the user reaches your site from a link somewhere, rather than a search engine.
TGREER_invite_search_engine
This is what is displayed if the user reaches your site from a search engine. MSN, Yahoo, Google, and a couple more are supported.
These use phrase variables: {1} = your forum title, {2} = the search engine {3} = the search terms. When you edit the templates, use these variables.
If you use this plugin, please consider a modest donation. You can use my PayPal tip jar found on my site (http://www.tgreer.com/cmps_index.php#TipJar).