Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HTL] & [Normal] - Useroption for Postbit Style, one file edit, WITH caching Details »»
[HTL] & [Normal] - Useroption for Postbit Style, one file edit, WITH caching
Version: 1.00, by KuraFire KuraFire is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-01-2004 Last Update: Never Installs: 17
 
No support by the author.

[high]Useroption for Postbit Style, one file edit, WITH caching[/high]
Version: 1.00
vB-version: 3.0.0 Release Candidate 3
Developer: KuraFire
Install difficulty: 0
File edits: 1
Template edits: 0

Description of the Hack:
This tiny Hack will give your users the option to choose Postbit style, using only one file edit and maintaining perfect Template caching throughout the entire forum.



Unlike ge-force2k2's Hack, this one uses only one simple file edit while still making sure that the template is ALWAYS CACHED (including on announcement.php, which ge-force's hack doesn't do). It also uses the User Profile Field functionality to create the User Option, rather than hardcoding that (saves file edits, template edits and phrases).


Instructions are in the zip, in both .htl and .txt format (the latter is a preview of the HTL 1.1 Text File Generator! ).

ENJOY!



HACK INSTALLATION DETAILS:
Files modified for this Hack:
./includes/functions.php


This post was generated by the Hack Tracking Log

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-02-2004, 09:00 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
Exactly. Either put it there and stop editing titles to clutter them up even more, or disband the rule (which makes more sense, still, but ohwell, we've had that discussion already).

Sadie: using a conditional and template edits is rather silly, as vB3 comes with BOTH of the template styles pre-packaged. To merge the two of them into one big template and then splitting them up using a conditional is a lot of needless data and server memory being used.

This hack (mine) is the most efficient one of all (two..) versions I've seen so far: ge-force2k's and freddie's. So if you want the most server-friendly solution, this would be the one...
I used the hack at vbtemplates that just add a selection box to the usercp, then puts a conditional in phpinclude_start to either use the postbit or postbit_layout, so its not too much editing. But thanks - you answered my question. Time to try out the old HTL
Reply With Quote
  #13  
Old 02-03-2004, 02:38 AM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
*sigh*

sometimes vb.org just makes me wanna take my hacks elsewhere and not release HTL 1.1 here anymore either...
i feel that way quite often kura.....

but anyways, good job, ill install thsi when i upgrade to the newest vb3, im sick of having to redo styles every time vb wants to release a rc >.>
Reply With Quote
  #14  
Old 02-03-2004, 08:35 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sadie Frost
I used the hack at vbtemplates that just add a selection box to the usercp, then puts a conditional in phpinclude_start to either use the postbit or postbit_layout, so its not too much editing. But thanks - you answered my question. Time to try out the old HTL
The one from vb.com by freddie was good, but it would add a query to all showthread/showpost/announcement pages (cos it wouldn't cache the new template).
Reply With Quote
  #15  
Old 02-03-2004, 05:21 PM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
*sigh*

sometimes vb.org just makes me wanna take my hacks elsewhere and not release HTL 1.1 here anymore either...
While I might not have need of this specific hack, KuraFire, I hope you (and others) keep in mind the great number of people who benefit from your work and who greatly appreciate it! You guys & gals not only add to "technology"...you enhance the work & lives of real people. I know as an Admin that I'm always excited to be able to add something unique to my forum. And I know it is people like you that I have to thank.

So, "thanks!" and remember the countless hapless noobs like me who appreciate your time, expertise & all the hoops you jump through for us. :knockedout:
Reply With Quote
  #16  
Old 02-03-2004, 07:28 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by spence2
While I might not have need of this specific hack, KuraFire, I hope you (and others) keep in mind the great number of people who benefit from your work and who greatly appreciate it! You guys & gals not only add to "technology"...you enhance the work & lives of real people. I know as an Admin that I'm always excited to be able to add something unique to my forum. And I know it is people like you that I have to thank.

So, "thanks!" and remember the countless hapless noobs like me who appreciate your time, expertise & all the hoops you jump through for us. :knockedout:
Ahh, thank you spence, that was very nice of you

Gives me spirit and energy to see our work appreciated by people like you. Thanks
Reply With Quote
  #17  
Old 02-03-2004, 09:49 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kura, where I can see a demo?
On your board?
Reply With Quote
  #18  
Old 02-03-2004, 10:12 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can see a demo on www.everythingvb.com - of course, you'll have to sign up for that! This is a USER option ^_^
Reply With Quote
  #19  
Old 02-03-2004, 10:24 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks pretty good, my friend, but this time I'm gonna have to stay with Freddie's version. Since the phpinclude_start never changes between releases, I don't have to worry about doing another file edit on a re-install. I caught the postbot and postbit_legacy templaes not being cached and took care of that a while ago. That's usually one of the first things I check on an upgrade.

Good hack, nonetheless. Keep 'em comin'!
Reply With Quote
  #20  
Old 02-04-2004, 09:03 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Good hack, nonetheless. Keep 'em comin'!
Already got the next one waiting to be released
Reply With Quote
  #21  
Old 02-07-2004, 03:16 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just switched to this from g-force2k2's mod..
While there isn't really much difference in them, and I couldn't care less about the added server load (even though it won't have been much at all), I decided to give your HTL mod a little tryout..

Awesome work KuraFire (can't wait for the Journals!).
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04699 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete