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)
-   -   [uShop] BBcode and Smilies in Custom Usertitle (https://vborg.vbsupport.ru/showthread.php?t=64394)

msimplay 06-03-2004 06:45 AM

another request for the bbcode in user titles
for the arcade screen for vs games :o

dstruct2k 06-04-2004 02:46 PM

** starts crying **

In arcade.php find:
PHP Code:

    $activitycount $DB_site->query("SELECT COUNT(valid=1) AS played,userid FROM " TABLE_PREFIX "gamesessions GROUP BY userid"); 

Add before:
PHP Code:

    if (($bbuserinfo['titleparse']) || ($user['titleparse']))
    {
        require_once(
'./includes/functions_bbcodeparse.php');
        if (
$bbuserinfo['titleparse'])
        {
            
$bbuserinfo['usertitle'] = parse_bbcode($bbuserinfo['usertitle']);
        }
        if (
$user['titleparse'])
        {
            
$user['usertitle'] = parse_bbcode($user['usertitle']);
        }
    } 


Untested, should work.

the Sandman 06-04-2004 03:17 PM

Quote:

Originally Posted by dstruct2k
Untested, should work.

Tested... works. :D

msimplay 06-04-2004 03:33 PM

Quote:

Originally Posted by dstruct2k
** starts crying **

hehe am sorry but thank you very much i really appreciate it :D

68 Z-28 06-06-2004 05:21 PM

I haven't looked at the instructions yet, so maybe I'm getting a head of myself in asking, but is there a way that this can be limited to specific usergroups? When we were running vb2.x I had it installed so that mods and admins would stand out and people knew who they were. I'd like to do that again.

Link14716 07-06-2004 12:53 PM

This is now a part of uCash & uShop 0.95, only not. It allows BBCode and Smilies, needs no file edits, works with post caching, etc, works everywhere custom titles are shown, and doesn't need it's own action file - it just uses the standard Change Custom Title and Change Other User's Custom Title action files, controlled by an action specific variable. ;)

the Sandman 07-06-2004 12:57 PM

Quote:

Originally Posted by Link14716
This is now a part of uCash & uShop 0.95, only not. It allows BBCode and Smilies, needs no file edits, works with post caching, etc, works everywhere custom titles are shown, and doesn't need it's own action file - it just uses the standard Change Custom Title and Change Other User's Custom Title action files, controlled by an action specific variable. ;)

Is there any problem upgrading to 0.95 if this hack is already in place?

Link14716 07-06-2004 01:03 PM

No, but the action file from this hack will not work, and of course those who already bought BBCode titles will have the BBCode visable unless you keep the file edits from this hack.

the Sandman 07-06-2004 01:25 PM

If we choose to remove this hack what query or queries are needed to reverse the query run during installation:
Code:

ALTER TABLE `user` ADD `titleparse` SMALLINT( 6 ) DEFAULT '0' NOT NULL

the Sandman 07-07-2004 05:23 PM

Anyone? :ermm:


All times are GMT. The time now is 12:20 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.01095 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_quote_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