vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Extended Reputation Display (https://vborg.vbsupport.ru/showthread.php?t=231876)

Paul M 03-13-2010 12:41 PM

Just a minor change to the installation code, so nothing for anyone who has it installed to worry about.

sung 03-14-2010 11:24 PM

Quote:

Originally Posted by New Joe (Post 1975748)
After installing this I noticed when you place your mouse over the repo green dots it doesn't say the little sayings any more ", it just shows as "reputation"


Here's the changes you need to make to get them back.

Quote:

Originally Posted by Paul M
Quote:

Originally Posted by sung
I altered the plugins and templates slightly to allow for displaying the alternate text, would you like the changes to incorporate into the mod?

If not can I post my changes in the thread for the mod so that others can use them if they want?

So that we're not sending PMs back and forth here are the changes:

Changed postbit_reputation_erd to match the default postbit_reputation (I'm not sure if this negates the need for the custom template or not?), namely the alt tag.

OLD:
Code:

alt="{vb:phrase reputation}"
NEW:
Code:

alt="{vb:raw post.username} {vb:raw post.level}"

Changed the following plugin: Extended Reputation Display (3) reputation_image

OLD:
PHP Code:

if ($vbulletin->options['erdenable'])
{
    if (
$posneg <> 'off')
    {
        
$repval $post['reputation'];    
        
$post['reputationdisplay'] = ($vbulletin->options['legacypostbit'] ? '<br/>' '' );

        if (!
$post['reputationlevelid'])
        {
            
$post['level'] = $vbulletin->options['reputationundefined'];
        }

        
$erdxv = ($vbulletin->options['erdav'] * $vbulletin->options['erdac']) + 
        (
$vbulletin->options['erdbv'] * $vbulletin->options['erdbc']) + 
        (
$vbulletin->options['erdcv'] * $vbulletin->options['erdcc']) ;

        
$erdyv $erdxv $vbulletin->options['erdsl'];
        
$erdzv $erdyv $vbulletin->options['erdsl'];
        
$erdxc $erdyc $erdzc $vbulletin->options['erdsl'];

        
$templater vB_Template::create('postbit_reputation_erd');

        
$stars false


NEW:
PHP Code:

if ($vbulletin->options['erdenable'])
{
        if (!
$post['showreputation'] AND $perms['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canhiderep'])
        {
        
$posneg 'off';
        
$post['level'] = $vbphrase['reputation_disabled'];

        
$templater vB_Template::create('postbit_reputation_erd');
            
$templater->register('posneg'$posneg);
            
$templater->register('post'$post);
        
$post['reputationdisplay'] = $templater->render();
    }
        else
    {
        
$repval $post['reputation'];
        
$post['level'] = $vbphrase['reputation' $post['reputationlevelid']];
        
$post['reputationdisplay'] = ($vbulletin->options['legacypostbit'] ? '<br/>' '' );

        if (!
$post['reputationlevelid'])
        {
            
$post['level'] = $vbulletin->options['reputationundefined'];
        }

        
$erdxv = ($vbulletin->options['erdav'] * $vbulletin->options['erdac']) + 
        (
$vbulletin->options['erdbv'] * $vbulletin->options['erdbc']) + 
        (
$vbulletin->options['erdcv'] * $vbulletin->options['erdcc']) ;

        
$erdyv $erdxv $vbulletin->options['erdsl'];
        
$erdzv $erdyv $vbulletin->options['erdsl'];
        
$erdxc $erdyc $erdzc $vbulletin->options['erdsl'];

        
$templater vB_Template::create('postbit_reputation_erd');
            
$templater->register('post'$post);

        
$stars false


The rest of the code below that line remains unaltered.

Hi.

You are free to post your changes if you wish - however, I took the alt text out deliberately, so I wont be putting it back :)

Cheers, Paul.

I'm not supporting this in any way, so if you have problems uninstall and reinstall the mod so you have a fresh installation.

Argyle 03-16-2010 10:23 AM

Quote:

Originally Posted by sung (Post 2003766)
Here's the changes you need to make to get them back.

Works for me. Thanks!

(and thanks again to Paul for the product)

-=Leb=- 03-16-2010 11:27 PM

thx for the good work :)

Professional2 03-17-2010 06:16 AM

will it work on 4.0.2?

Paul M 03-17-2010 12:29 PM

Yes ;

Quote:

vB Version: 4.0.x

Professional2 03-17-2010 01:21 PM

but i copied the images and imported it ,i don't know why it does'n work:
http://www.mobile4persian.com/forum/

Paul M 03-17-2010 08:42 PM

What makes you think it isnt working ?

Dr.osamA 03-18-2010 07:45 PM

thanxxxx

installed

FaiSao_963 03-21-2010 11:29 PM

Translated into Arabic

Thanks,


All times are GMT. The time now is 07:13 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.01542 seconds
  • Memory Usage 1,774KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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