vBulletin Modifications

Miscellaneous Hacks - TGREER Invite Message

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Supported
[vB 3.5.4] Miscellaneous Hacks - TGREER Invite Message (52)
Released: 04-07-2006, 11:34 PM
Modification Information:
Author: tgreer
Last Online: 12-31-1969
Demo: View Online Demo!
Hack Version: 1.1 Installer Included: 1 Additional queries added to database: 0
New Templates: 1 Template Edits: 0 File Edits: 0
New Files: 0 New Phrases: 3 Installation Time (In Minutes): 0.10

Plugin
Author removed hack, no longer participates in this forum.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 04-07-2006, 11:39 PM   #2
tgreer
Guest

Default

In fact, looking at my screen shot, you'll almost certainly need to edit the phrases, unless you too run a forum of interest to the digital printing industry. Sorry about that, but at least you're forced to change the phrases!

Leave the phrase variables intact though: {1}, {2}, {3}... as they are used to add the forum title, search engine, and search terms to the phrase.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 02:13 AM   #3
Coder
Junior's Avatar
Join Date: Nov 2004
Real Name: jr
Location: U.S.A
Junior is on a distinguished road

Default

this seems pretty usefull thank you for releasing




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 02:55 AM   #4
vBulletin Guru
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

Thanks for releasing. I have clicked install and works like charm ;)

Small suggestion. I would add 'forumrules' to the $globaltemplates array_merge() code to cache the forumrules template for guest. Saves a query. :p




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 06:53 AM   #5
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Why add the normal template to it? Isn't it already being cache'd by default?

Thanks for releasing btw ;).

Last edited by Arnoud; 04-08-2006 at 10:03 AM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:14 AM   #6
vBulletin Guru
Ken Iovino's Avatar
Join Date: Mar 2004
Real Name: Ken Iovino
Location: Miami, Florida
Ken Iovino is on a distinguished road

Default

Yes and no. In global_start hook there is this code...
You must first be a registered member to view any code.
Which means that the forumrules template is now a global template. So it won't be cached since there is no need for that template on the index.php page. vBulletin doens't have 'forumrules' in the $globaltemplates array by default.

After looking at the code, it would be better to just wrap the code in global_start in a simple condition..

You must first be a registered member to view any code.
Then that code will only be executed if your viewing a thread, and the user viewing is indeed a guest, and you woudn't need to add the forumrules to the $globaltemplates array
__________________
Ken Iovino / Escalate Media




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 08:18 AM   #7
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Ah, right . I thought vB cached it by default, as it doens't cache the templates in the bigthree file.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 11:12 AM   #8
tgreer
Guest

Default

Quote:
Originally Posted by LiveWire
Yes and no. In global_start hook there is this code...
You must first be a registered member to view any code.
Which means that the forumrules template is now a global template. So it won't be cached since there is no need for that template on the index.php page. vBulletin doens't have 'forumrules' in the $globaltemplates array by default.

After looking at the code, it would be better to just wrap the code in global_start in a simple condition..

You must first be a registered member to view any code.
Then that code will only be executed if your viewing a thread, and the user viewing is indeed a guest, and you woudn't need to add the forumrules to the $globaltemplates array

Showthread and/or Forumdisplay... and I would still want to cache invite_forumrules, correct?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 11:24 AM   #9
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Yes, you'll still need to cache invite_forumsrules ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 11:34 AM   #10
tgreer
Guest

Default

I tried LiveWire's suggestion, and couldn't get it working. I obviously don't understand...

Feel free to post the code, there isn't that much, and your suggested optimizations.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Your Normal Marquee System Sezmar vBulletin 3.5 / 3.6 Hack Releases 24 10-11-2008 04:01 PM
Guest Message Hack! macgyver24 vBulletin Modification Requests 0 10-17-2005 11:13 AM
Invite on IRC Script [VBB3-2-Eggdrop] Redrum vBulletin Modification Requests 2 03-26-2005 06:55 AM


All times are GMT -3. The time now is 10:42 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)