The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||||
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. Well, I thought of this the other evening, and here is the vB implementation:
In showthread.php, find: Code:
$signature= "\n__________________\n$userinfo[signature]"; Code:
// begin TagLine Hack $tagline = "\[tagline]"; if (eregi($tagline,$signature)) { // create an array holding the signature components $tags = split($tagline,$signature); // output the first segment, which will be the signature line plus the constant signature $signature = $tags[0]; // add the tag according to the mod of the postid $tagcount = count($tags)-1; if ($tagcount > 0) { $tagid = ($postid % $tagcount) + 1; $signature .= $tags[$tagid]; } } // end TagLine Hack In newreply.php, find Code:
if ($signature==1) { $getsig=$DB_site->query_first("SELECT signature FROM user WHERE userid=$userid"); $previewmessage.=bbcodeparse("\n__________________\n$getsig[signature]",0,$allowsmilies); } Code:
if ($signature==1) { $getsig=$DB_site->query_first("SELECT signature FROM user WHERE userid=$userid"); // begin TagLine Hack $tagline = "\[tagline]"; $tagsignature = $getsig[signature]; if (eregi($tagline,$tagsignature)) { // create an array holding the signature components $tags = split($tagline,$tagsignature); // output the first segment, which will be the signature line plus the constant signature $tagsignature = $tags[0]; // don't show any taglines in Preview mode } // end TagLine Hack $previewmessage.=bbcodeparse("\n__________________\n$tagsignature",0,$allowsmilies); } Code:
if ($signature==1) { $getsig=$DB_site->query_first("SELECT signature FROM user WHERE userid=$userid"); $previewmessage.=bbcodeparse("\n__________________\n$getsig[signature]",0,$allowsmilies); } Code:
if ($signature==1) { $getsig=$DB_site->query_first("SELECT signature FROM user WHERE userid=$userid"); // begin TagLine Hack $tagline = "\[tagline]"; $tagsignature = $getsig[signature]; if (eregi($tagline,$tagsignature)) { // create an array holding the signature components $tags = split($tagline,$tagsignature); // output the first segment, which will be the signature line plus the constant signature $tagsignature = $tags[0]; // don't show any taglines in Preview mode } // end TagLine Hack $previewmessage.=bbcodeparse("\n__________________\n$tagsignature",0,$allowsmilies); } 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
|
|||
|
|||
As soon as the flashbacks to my bbs days stopped I hurried and put this in.. It works great..
|
#3
|
|||
|
|||
Forgive me: I don't quite understand what this hack does? Sounds interesting, though.
|
#4
|
|||
|
|||
I'm glad I'm not the only one! Can you explain what this does, or show us how it works?
|
#5
|
||||
|
||||
OK, I shall try to explain (sorry, my board is behind a firewall):
My signature on this board is: Quote:
Quote:
Quote:
Quote:
This was a popular feature in the early 1990's when off line readers were making dial up BBS access faster and more flexible. In vB, administrators and moderators might find it useful to create a carousel of links, and users might have some fun with quotes or jokes in their tag lines (rather than massive missives trying to jam everything in ). |
#6
|
|||
|
|||
It is obvious too me what it does - but I was already pondering making a random signature hack.
|
#7
|
|||
|
|||
I thought about that, and I think that it might be best implemented as another check box under Show Signature, because I might not really want random quotes, jokes, links or advertisements showing up on serious posts, but I would probably still prefer to use my regular signature rather than typing it in (it is sooo long, after all! ).
|
#8
|
|||
|
|||
well maybe then a outlook express like signature selection check box...
so when you post - show signature #1 - show signature #2 - show signature #3 and have those specified in the member profile ? |
#9
|
|||
|
|||
Thinking on it a little more, it would be pretty simple to change the Show Signature check box into a list box with the selections
|
#10
|
|||
|
|||
/me likes idea
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|