vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   Is it possible to hide all the stats on postbit? (https://vborg.vbsupport.ru/showthread.php?t=80136)

KaiSan 04-18-2005 06:22 PM

Is it possible to hide all the stats on postbit?
 
Hey everyone ^_^

Just a quick question.

All the stats, like HP, Clan, race, etc, make the posts very long. Is there a way to remove them from the post and just have them when you click View RPG info?

Much appreciated :)

twoseven 04-18-2005 06:36 PM

find
PHP Code:

<if condition="$bbuserinfo[rpgstats] == 1"

and delete all that info from there to
PHP Code:

<!-- END LEFT RPG POSTBIT BAR --> 

the option will still be selectable in the usercp so there is some editing there as well but that will stop it from displaying if they have it in the postbit

i just thought a few more mins and you can also take out the if statement
PHP Code:

<if condition="$bbuserinfo[rpgstats] == 0">
...
...
</if> 

that surrounts the postbit code so the option box in the rpgcp doesnt work at all

in headquarters.php find and delete the following code
that should remove the option for the rpg info to only be displayed in dhtml/javascript
PHP Code:

        if ($bbuserinfo['rpgstats'] == 1)
        {
            
$rpg_postbit1 '<input type="radio" name="rpgpostbit" value="1" checked="checked" disabled="disabled" /> Display RPG stats in postbit';
            
$rpg_postbit2 '<input type="radio" name="rpgpostbit" value="0" disabled="disabled" /> Display RPG stats in dropdown';
        } 
        else 
        {
            
$rpg_postbit1 '<input type="radio" name="rpgpostbit" value="1" disabled="disabled" /> Display RPG stats in postbit';
            
$rpg_postbit2 '<input type="radio" name="rpgpostbit" value="0" checked="checked" disabled="disabled" /> Display RPG stats in dropdown';
        } 

hope this helps

KaiSan 04-18-2005 07:35 PM

Thank you twoseven, thats exactly what i was looking for! ^_^


All times are GMT. The time now is 07:58 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.00971 seconds
  • Memory Usage 1,719KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (3)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