vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VBCodes and smilies in thread and post title (https://vborg.vbsupport.ru/showthread.php?t=50392)

Boofo 03-20-2003 10:13 AM

How about telling me how I can do vbcode and smiles in the standard_error function (in function.php) without messing up the error_nopermission_loggedout message when it comes up? ;)

MSX 03-20-2003 12:52 PM

[high]* MSX installs
[/high]

Great hack, I hope Lesane or wolfe can fix the thing with the vBcode not showing up in the titlebars of IE and other web browsers! Good Luck! :) ;)

grog6 03-20-2003 03:39 PM

To remove vbcode and smilies from your browser titlebar, I found it ... :) You have to parse your $thread[title] and then, to remove HTML tags ;)

So, in showthread.php, find :

PHP Code:

$thread['title']=dowordwrap($thread['title']); 

and replace by

PHP Code:

$thread['title']=strip_tags(bbcodeparse(dowordwrap($thread['title']))); 

Well, it only stay the small problem of some bbcodes wich remove the link (or can modify it), Sweet Cheeks can you PM me these vbcodes with their description and exemple ;)

grog6 03-20-2003 04:54 PM

And to replace vbcodes and smilies in the who's online, find in the online.php, find :
PHP Code:

$userinfo[where] = "Viewing Thread <a href='showthread.php?s=$session[sessionhash]&postid=$userinfo[postid]'>".$thread[title][$post[$userinfo[postid]]]."</a>"

and replace by
PHP Code:

$userinfo[where] = "".$thread[title][$userinfo[threadid]]."";
$userinfo[where] = bbcodeparse($userinfo[where]);
$userinfo[where] = "Viewing Thread <a href='showthread.php?s=$session[sessionhash]&postid=$userinfo[postid]'>$userinfo[where]</a>"


I update now my 2 .txt files ;)

mistyl 03-20-2003 06:05 PM

I am getting a

Parse error: parse error in /usr/home/sites/www.divamoms.com/web/forums/admin/functions.php on line 2390

Fatal error: Call to undefined function: getuserinfo() in /usr/home/sites/www.divamoms.com/web/forums/admin/sessions.php on line 366

grog6 03-20-2003 06:09 PM

It can't come from my hack mistyl

Verify you made good modifications ;)

mistyl 03-20-2003 06:18 PM

I did 3 times :ermm: Something in my admin/fuctions is off. I only have the mood hack installed. Can I pm you my fuctions I have no idea what is wrong :speechless:

grog6 03-21-2003 07:52 AM

Did you correct it mistyl ? I send you a PM last evening, you didn't answer yet ... :tired:

[email protected] vbmenu_register("postmenu_372356", true); 03-24-2003 01:23 AM

I am not getting it to work in the forum display. Any ideas?

[email protected] vbmenu_register("postmenu_372357", true); 03-24-2003 01:25 AM

This is where I think something is wrong. What does it mean....Make it twice???

In forumdisplay.php, find :

************************************************** *********
$thread[title]=dowordwrap($thread[title]);
************************************************** *********

Replace it by

************************************************** *********
$thread[title]=bbcodeparse(dowordwrap($thread[title]));
************************************************** *********

Make it twice in this file or you will see no modifications ;)


All times are GMT. The time now is 08:55 AM.

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.01192 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete