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
  #32  
Old 05-11-2004, 08:21 AM
ragintajin ragintajin is offline
 
Join Date: Sep 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure why but its not defaulting to Classic. In the profile edit, I've set the options:

Options:
Classic
Modern

Set Default:
Yes, but No First Blank Option

Even unregistered guests are getting the Modern style.
Reply With Quote
  #33  
Old 05-11-2004, 06:12 PM
Viol8or Viol8or is offline
 
Join Date: May 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would like some help on that to. I prefer to set the Classic as default, and only the modern as an option.

Thx in advance.
Reply With Quote
  #34  
Old 05-27-2004, 07:51 PM
DiscussAnything DiscussAnything is offline
 
Join Date: Jan 2002
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same issue.

The default is classic for unregistered and new members, but not classic for existing members.
Reply With Quote
  #35  
Old 05-28-2004, 05:54 AM
daFish's Avatar
daFish daFish is offline
 
Join Date: Nov 2002
Location: Germany
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What shold i edit if i have Legacy enabled and let my members decide which one they should have?
Reply With Quote
  #36  
Old 08-29-2004, 09:41 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know it's been a while since this hack was mentioned but I just installed it today... took under a minute and it works great with no visible preformance issues... thanks!
Reply With Quote
  #37  
Old 08-29-2004, 10:45 PM
LamboJay's Avatar
LamboJay LamboJay is offline
 
Join Date: Jul 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this on my 3.0.3 system and it doesn't work. I allways get the modern postbit.
Reply With Quote
  #38  
Old 08-30-2004, 01:11 AM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Be sure you have changed field9999 to your actual field ID, this confused me at first but a quick look at the code quickly revealed the problem.
Reply With Quote
  #39  
Old 08-30-2004, 11:35 AM
LamboJay's Avatar
LamboJay LamboJay is offline
 
Join Date: Jul 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted S
Be sure you have changed field9999 to your actual field ID, this confused me at first but a quick look at the code quickly revealed the problem.
Thanks Ted. I got it working. My ftp client messed up and didn't overwrite the existing file. DOH! Works great now
Reply With Quote
  #40  
Old 09-20-2004, 08:27 AM
mfacer mfacer is offline
 
Join Date: Aug 2003
Location: Manchester, UK
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
caused me an error

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in K:\Network\xampp\htdocs\forums\includes\functions. php on line 1864

Fatal error: Call to undefined function: is_browser() in K:\Network\xampp\htdocs\forums\global.php on line 59
I got the same error message - not just for this hack... for any hack to the functions page. I pinned it down to using Dreamweaver - for some reason I think it was saving it incorrectly. I opened functions.php in WordPad and edited the files that way - when uploaded it worked fine.

Hope that helps..

ps) excellent hack!! *clicks install*
Reply With Quote
  #41  
Old 03-10-2005, 01:48 PM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

super hack... tested and working grt on 3.07.
<clicks install>
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:24 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.12765 seconds
  • Memory Usage 2,302KB
  • 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
  • (2)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
  • (2)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