PDA

View Full Version : BLS - vB Forum (title) Markup


Bolas
04-03-2005, 10:00 PM
What this hack do?
With "BLS vB Forum Markup 1.01" now you can specify an opening and closing HTML tag with which to display the titles of forums. This applies to titles that appear in forumhome, forumdisplay, etc...)

How can I install it? http://www.wellage.net/images/smilies/boh.gif
It's easy! http://www.wellage.net/images/smilies/sisi.gif
1) edit a file (admincp/forum.php)
2) just do 6 little easy template modifications
3) upload the installer and run it, then delete it from the server.
4) That's all folks!

Why I should install it? http://www.wellage.net/images/smilies/boh2.gif
This hack will allow you to correctly add a html markup to the forum (or category) title, i.e. the markup will not appear in the the browser window title, creating unpleasant effects.

Why click install button? http://www.wellage.net/images/smilies/uhm.gif
Boh? Maybe 'cause it's a Bolas certified hack and you love him? https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=79356)

nexialys
04-04-2005, 11:06 PM
cool idea... this can even help adding icons for cats...

Allan
04-05-2005, 05:12 AM
thank you, Nice hack, I think similar that nexialys for the icon ;)

Deaths
04-05-2005, 07:28 AM
Nice hack, /me installs

Q-v-n-s-Q
04-07-2005, 12:19 AM
LMfao-- everybody know that

ibar726
09-09-2008, 04:27 PM
I've been looking for something like this for 3.7, and this mod actually still works beautifully although the installation requires a bit more work.

The change to forums.php is the same, and the template edits are still done the same way.

However, the PHP installer no longer worked, so had to manually run the database query from the forummarkupinstall.php

ALTER TABLE `forum`
ADD `opentag` VARCHAR(100) NOT NULL AFTER `description`,
ADD `closetag` VARCHAR(100) NOT NULL AFTER `opentag`

Then add the needed phrase. (using Phrase Manager under the Languages & Phrases menu)
varname = forum_markup

Text = 'Forum HTML Markup <dfn>(Specify an opening and closing HTML tag with which to display the titles of forums. This applies to titles that appear in forumhome, forumdisplay, etc...)</dfn>'

Finally needed to create new plugins, so that vb will recognize the fields as valid and not spit up a big mess of error code when you try to edit a forum:

Hook Location: forumdata_start

$this->validfields['opentag'] = array(TYPE_STR, REQ_NO);
$this->validfields['closetag'] = array(TYPE_STR, REQ_NO);