The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||||
This is an update to the hack that I released for vB1.1.3.
I don't know how many of you remember back to the old off-line reader dial up BBS days, but there was an option on many of those beasts to randomly add a "tag line" from a text file to your signature. In showthread.php, find both occurances of: PHP Code:
PHP Code:
In printthread.php, find: PHP Code:
PHP Code:
In newreply.php and newthread.php, find PHP Code:
PHP Code:
PHP Code:
PHP Code:
So, how does it work? After installing the three modifications above, you change your signature from Quote:
Quote:
You can quickly test it out by just applying the showthread.php modification. This is also a good way to see in the "Preview" mode what your signature variable is outputing before it gets "arrayed" by the PHP code. And, you can use vB Code in your tag lines so that you can even have rotating links to important messages as per eva2000's tip in another forum. Show Your Support
|
Comments |
#2
|
||||
|
||||
What is the "&c" at the end of your new signature example...is it important?
|
#3
|
||||
|
||||
OK, I've tried it exactly as you have it here. But even though nobody on my board, including myself, has [tagline] in their signatures, everybody's signatures were showing up totally wrong.
Here's a screenshot from before I did this hack: And here's a shot from after I did this hack: See the differences in the three signatures you can see. |
#4
|
|||
|
|||
|
#5
|
||||
|
||||
Very drole, valid. It is working fine on my board!
JJR512, I can only suggest that you try making just the showthread.php change, maybe just in the Show Thread part of the routine ("$postbits .= getpostbit($post);" at line 396 in an unhacked version). My code goes just before that so that the $post[signature] variable is modified before calling the templates. If "[tagline]" does not appear in your signature's text, the only "action" that is taken is to copy $post[signature] to $tagsignature and back again. If this is not working, perhaps you have a magicquotes problem on your PHP install (just guessing, although the third signature in your example does not have any quotes in it). The &c in my example means "etcetera" or "just keep going until you get bored adding new tag lines." |
#6
|
|||
|
|||
did what you said, its not working at all, I got what JJR512 got, vb2.0.3!
sucks! |
#7
|
||||
|
||||
Sorry, guys. It never occurred to me that anyone would cut and paste from the displayed message. I always use the Quote option, then cut and paste from there to avoid any formatting problems.
Attached is a text file with the instructions. I have also edited the original post to properly display the "\[tagline]" entries, which is what was causing JJR512's problem. Entered as just "[tagline]" he was executing the eregi command on the seven letters "t" "a" "g" "l" "i" "n" and "e" rather than on the string "[tagline]" as it should have. Of course, anyone who uses the quote option to cut and paste will have bad code, now. I had a look through the bugs and troubleshooting forums and found this message indicating that this slash parsing problem is a PHP bug. So, in future, I will try to catch that and make a note for readers. My humble thanks for your gently worded constructive feedback. |
#8
|
||||
|
||||
I discovered a little bug in this routine.
Because showthread uses the sigcache, only the tag line corresponding to a user's first post would be displayed, even though a new signature is generated each time through. So, the routine now disables sigcache if it is processing a tag line. I also changed the code that pulls postbit. The only file affected if you have already implemented this hack is showthread.php. Just replace the two tag line hack sections with the new code. I updated both the instructions in the first post and the attached instructions in the post before this one. |
#9
|
||||
|
||||
I remember in the original version in the printable version it would show the entire sig (tagline tag and all), does it still do this and is there any way around it?
|
#10
|
||||
|
||||
Thanks for your question, Bane. I did not realize that it did this as I have never actually used printthread.php on my board!
I have updated the instructions in the first post as well as the downloadable text instructions. Let me know if you have any problems. It seems to work well on my board. The only "stretch" is that my hack eliminates any signature caching, which is probably a very small thing relative to the amount of processing that is going on to extract the tag lines! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|