vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   BLS - vB Forum (title) Markup (https://vborg.vbsupport.ru/showthread.php?t=79356)

Bolas 04-03-2005 10:00 PM

BLS - vB Forum (title) Markup
 
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/


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

PHP Code:

ALTER TABLE `forum`
ADD `opentagVARCHAR(100NOT NULL AFTER `description`,
ADD `closetagVARCHAR(100NOT NULL AFTER `opentag

Then add the needed phrase. (using Phrase Manager under the Languages & Phrases menu)
Code:

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

PHP Code:

$this->validfields['opentag'] = array(TYPE_STRREQ_NO);
$this->validfields['closetag'] = array(TYPE_STRREQ_NO); 



All times are GMT. The time now is 08:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01052 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete