PDA

View Full Version : [HTL] & [Normal] - Useroption for Postbit Style, one file edit, WITH caching


KuraFire
02-01-2004, 10:00 PM
Useroption for Postbit Style, one file edit, WITH caching
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 (https://vborg.vbsupport.ru/showthread.php?t=60735)

KuraFire
02-02-2004, 07:28 PM
ok, who modified the thread title? :|

We all know that HTL hacks may not be released without a .txt, so why bother with cluttering up the title areas on the site with useless pointers?

Sadie Frost
02-02-2004, 07:32 PM
I don't know much at all about these things, so could anyone tell me what the difference in performance there would be between using this and just using a conditional and template edits to do the same thing?

assassingod
02-02-2004, 07:33 PM
ok, who modified the thread title? :|

We all know that HTL hacks may not be released without a .txt, so why bother with cluttering up the title areas on the site with useless pointers?I did. It's just an indication for anyone who do not know about the rules.

Link14716
02-02-2004, 07:43 PM
I did. It's just an indication for anyone who do not know about the rules.
I'm going to ask this again - if it is a rule, then why in the blue hell is it not stated in the announcement that has all the other rules in it at the top of the Full Releases forum?

KuraFire
02-02-2004, 07:50 PM
I'm going to ask this again - if it is a rule, then why in the blue hell is it not stated in the announcement that has all the other rules in it at the top of the Full Releases forum?
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...

assassingod
02-02-2004, 07:52 PM
https://vborg.vbsupport.ru/announcement.php?f=33&announcementid=18

It's always been there :rolleyes:

KuraFire
02-02-2004, 07:56 PM
*sigh*

sometimes vb.org just makes me wanna take my hacks elsewhere and not release HTL 1.1 here anymore either...

Dan
02-02-2004, 07:57 PM
*sigh*

sometimes vb.org just makes me wanna take my hacks elsewhere and not release HTL 1.1 here anymore either...
nice one I might use it since most of my members like old style but i like new style better for some reason

Link14716
02-02-2004, 07:58 PM
Always? It wasn't there 5 minutes ago... :|

Sadie Frost
02-02-2004, 09:00 PM
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 :D

zajako
02-03-2004, 02:38 AM
*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 >.>

KuraFire
02-03-2004, 08:35 AM
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 :D
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).

spence2
02-03-2004, 05:21 PM
*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:

KuraFire
02-03-2004, 07:28 PM
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 :)

gmarik
02-03-2004, 09:49 PM
Kura, where I can see a demo?
On your board?

KuraFire
02-03-2004, 10:12 PM
You can see a demo on www.everythingvb.com - of course, you'll have to sign up for that! :) This is a USER option ^_^

Boofo
02-03-2004, 10:24 PM
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'! ;)

KuraFire
02-04-2004, 09:03 PM
Good hack, nonetheless. Keep 'em comin'! ;)
Already got the next one waiting to be released :)

Oblivion Knight
02-07-2004, 03:16 PM
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!).

KuraFire
02-07-2004, 05:16 PM
Thanks! :)

AlexanderT
02-27-2004, 07:53 PM
Great hack! Thanks KuraFire.

sabret00the
02-27-2004, 08:19 PM
what's the difference between this and the freddie version?

MindTrix
02-28-2004, 01:16 PM
Kura said the difference here

https://vborg.vbsupport.ru/showpost.php?p=472361&postcount=13

PranK
02-29-2004, 07:45 AM
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:

what he said!!

Bravo Guys!

Christian

<jay>
03-01-2004, 08:14 PM
Just installed the Hack.
Thank's a lot.

shad-gt
03-23-2004, 08:17 PM
Very Great hack, but it works not with my vbulletin 3 gold. Can you convert it to vb3 gold? That would be nice! :)

wolfstream
03-28-2004, 08:01 AM
I was just going to say the same thing, this appears to not work with gold. Would love to use it when it does though ;)

sabret00the
04-10-2004, 11:12 AM
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

sabret00the
04-10-2004, 11:37 AM
i get an error everytime :(

ragintajin
05-11-2004, 08:21 AM
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. :confused:

Viol8or
05-11-2004, 06:12 PM
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.

DiscussAnything
05-27-2004, 07:51 PM
I had the same issue.

The default is classic for unregistered and new members, but not classic for existing members.

daFish
05-28-2004, 05:54 AM
What shold i edit if i have Legacy enabled and let my members decide which one they should have?

Ted S
08-29-2004, 09:41 PM
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!

LamboJay
08-29-2004, 10:45 PM
Just installed this on my 3.0.3 system and it doesn't work. I allways get the modern postbit.

Ted S
08-30-2004, 01:11 AM
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.

LamboJay
08-30-2004, 11:35 AM
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 :)

mfacer
09-20-2004, 08:27 AM
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*

Acers
03-10-2005, 01:48 PM
super hack... tested and working grt on 3.07.
<clicks install>