Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[uShop] BBcode and Smilies in Custom Usertitle Details »»
[uShop] BBcode and Smilies in Custom Usertitle
Version: 1.00, by dstruct2k dstruct2k is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-25-2004 Last Update: Never Installs: 12
 
No support by the author.

Version 2
WHAT THIS HACK DOES:
Allows your members to buy the ability to use bbcode and smilies in their custom user title. Requires uShop.


PLEASE NOTE THAT THIS DOES NOT WORK WITH CACHED POSTS TURNED ON
IF ANYONE KNOWS HOW TO MAKE CACHED POSTS AND THIS HACK WORK TOGETHER, PLEASE LET ME KNOW SO I CAN RELEASE A VERSION 3

Instructions:
Moved to instructions.txt

NOTE:
If you are upgrading from version 1, you have already made the first edit (showthread.php) and run the query.

This version adds support to 5 other files.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 06-03-2004, 06:45 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another request for the bbcode in user titles
for the arcade screen for vs games
Reply With Quote
  #43  
Old 06-04-2004, 02:46 PM
dstruct2k's Avatar
dstruct2k dstruct2k is offline
 
Join Date: Dec 2002
Location: Winnipeg
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

** 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.
Reply With Quote
  #44  
Old 06-04-2004, 03:17 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dstruct2k
Untested, should work.
Tested... works.
Reply With Quote
  #45  
Old 06-04-2004, 03:33 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dstruct2k
** starts crying **
hehe am sorry but thank you very much i really appreciate it
Reply With Quote
  #46  
Old 06-06-2004, 05:21 PM
68 Z-28 68 Z-28 is offline
 
Join Date: Jul 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #47  
Old 07-06-2004, 12:53 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #48  
Old 07-06-2004, 12:57 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #49  
Old 07-06-2004, 01:03 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #50  
Old 07-06-2004, 01:25 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #51  
Old 07-07-2004, 05:23 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone? :ermm:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:57 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.04313 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete