Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Custom Invitation Message, w/Search Engine, Terms Details »
Custom Invitation Message, w/Search Engine, Terms
Mod Version: 1.00, by tgreer (Member) tgreer is offline
Developer Last Online: Oct 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 13
Released: 08 Apr 2006 Last Update: Never Downloads: 11
Not Supported Uses Plugins Template Edits  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

found near the top, and


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases GTSearch: Google™ Custom Search Engine Princeton vBulletin 3.6 Add-ons 287 30 Jun 2015 09:33
Mini Mods Google Custom Search Engine Integration [AdSense capable] reteep vBulletin 3.6 Template Modifications 12 22 May 2008 11:21
Highlight Search Terms in Archive from Referring Search Engines Cap'n Steve vBulletin 3.5 Add-ons 25 03 Mar 2006 06:53

Comments
  #2  
Old 08 Apr 2006, 05:58
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
so I can just place

$GLOBALS[search_engine]
$GLOBALS[search_terms]
$GLOBALS[showSearchWelcome]


where I want it to show if I chose to edit it ?

great mod, I like it
/me clicked install
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #3  
Old 08 Apr 2006, 11:41
AMFMaree AMFMaree is offline
 
Join Date: Mar 2006
Hi.. I just uploaded this but I can not see it working???
Reply With Quote
  #4  
Old 08 Apr 2006, 11:43
AMFMaree AMFMaree is offline
 
Join Date: Mar 2006
Okay, its working.. I was looking for it on the Forum home page!..
Is there anyway to have it under the navbar on all pages..including the forumhome?

My brain isnt working.. I can not seem to find how to edit the actual message.

this is what i ahve..

You're Invited!
Among My Friends discusses many topics of interest to the GENERIC industry. Please join our community today. Registration is free and easy. Don't just browse, participate!
I love it except.. to the generic industry I want to edit that
Im i missing something or can you walk me through it..
thanks

Last edited by AMFMaree; 08 Apr 2006 at 12:02.
Reply With Quote
  #5  
Old 08 Apr 2006, 13:01
AMFMaree AMFMaree is offline
 
Join Date: Mar 2006
me again..
All fixed.. just need to know how to center it. Thanks
Reply With Quote
  #6  
Old 08 Apr 2006, 14:04
tgreer tgreer is offline
 
Join Date: Oct 2005
@Loco.M: yes, essentially. You can check to see if showSearchWelcome is true, and if it is, you'll have values for the other two you can use as you like.

@AMFMaree: There is already a very good mod for that, called "Welcome Headers". I use it on my site. Consider mine an additional mod, a "Welcome Footer" if you like, designed to catch the eye of those who end up at the bottom of a forum or thread because of a search engine hit.

Good, you found the phrases. It should already be centered, as I have "align=center" in the table. You can code that table however you like, it's in the invite_forumrules template.

Last edited by tgreer; 08 Apr 2006 at 14:08.
Reply With Quote
  #7  
Old 08 Apr 2006, 19:39
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Hi,

how do I fix this problem:

Uncached templates: forumrules (1)
Reply With Quote
  #8  
Old 08 Apr 2006, 20:11
tgreer tgreer is offline
 
Join Date: Oct 2005
I'm not sure - no one else has had this problem. You can try adding forumrules to the globaltemplates cache...

Go to your Plugin Manager, edit the TGREER_invite_template plugin. Add the colored code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #9  
Old 08 Apr 2006, 21:08
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
mine just tosses my forums menu off wack
Attached Images
File Type: gif ss.gif (17.4 KB, 48 views)
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
  #10  
Old 08 Apr 2006, 23:21
tgreer tgreer is offline
 
Join Date: Oct 2005
Quite right! I've turned off forum jump when I developed this, so didn't think to test it with it on. Uninstall for now, and I'll work on this as soon as I can.

If you'd like to try to adjust this yourself, in the invite_forumrules template, change the width of the table to something much smaller. Try changing $stylevar[formwidth] to a hard-coded value, such a "180px;"

Loco, I went to your forum... your Forum Jump menu is very wide due to some unusually long forum names. So, I don't think this is a bug, but you do need to adjust the width of the table as I suggested above. You can also add CSS styles to adjust the padding, border, etc.

Last edited by tgreer; 09 Apr 2006 at 02:47.
Reply With Quote
  #11  
Old 10 Apr 2006, 20:07
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Unfortunately this hack adds 4/5 queries to the showthread
Reply With Quote
  #12  
Old 10 Apr 2006, 21:48
tgreer tgreer is offline
 
Join Date: Oct 2005
How so? The templates should be cached, so no queries there.

I realize that this can be optimized by placing all the code in the TGREER_invite_search_terms plugin inside a conditional:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So, what additional queries are being run?
Reply With Quote
  #13  
Old 10 Apr 2006, 22:05
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Originally Posted by tgreer
How so? The templates should be cached, so no queries there.

I realize that this can be optimized by placing all the code in the TGREER_invite_search_terms plugin inside a conditional:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So, what additional queries are being run?
I have no idea what these queries are but when I installed the hack, five queries were added and when I uninstalled it, they were gone.
Reply With Quote
  #14  
Old 10 Apr 2006, 22:26
tgreer tgreer is offline
 
Join Date: Oct 2005
Sorry, then, I don't understand the issue. The plugin does not create any additional database queries.

It creates 1 new template, which is cached. It creates two plugins, and it creates three phrases.

It could very well be that your additional queries are the plugins themselves, plus the phrases. Any code that uses plugins/phrases (which is most of them, of course), will behave similarly.

The real question is if you're seeing any actual performance degradation. I would think not.
Reply With Quote
  #15  
Old 16 May 2006, 23:26
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
Ive turned the forum jump off and reinstalled this, thx
__________________

Email me for website help: brandon[at]sheley[dot]org
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 00:17.

Layout Options | Width: Wide Color: