vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Probably a really simple fix, but couldn't anything via search (https://vborg.vbsupport.ru/showthread.php?t=253337)

Fifth Dimension 11-08-2010 08:55 AM

Probably a really simple fix, but couldn't anything via search
 
Does anyone know how to get rid of that pop-up "May you be so lucky enough to receive the same reputation in return" message when you leave another poster a reputation comment? I don't want the pop-up to show up at all.

Thanks so much..

kh99 11-08-2010 10:30 AM

Try this: create a new plugin using hook location reputation_add_complete and this code:

PHP Code:

if ($vbulletin->GPC['ajax'])
{
    
cache_permissions($userinfo);
    
$post $userinfo;
    
$repdisplay fetch_reputation_image($post$userinfo['permissions']);

    require_once(
DIR '/includes/class_xml.php');
    require_once(
DIR '/includes/functions_misc.php');
    
$xml = new vB_AJAX_XML_Builder($vbulletin'text/xml');
    
$xml->add_tag('reputation''', array(
    
'reppower'   => fetch_reppower($userinfo$userinfo['permissions']),
    
'repdisplay' => process_replacement_vars($post['reputationdisplay']),
    
'userid'     => $userinfo['userid'],
    ));
    
$xml->print_xml();


and remember to select 'Yes' to enable the plugin. (This code is just a block of code I copied from below the hook location, but I removed the popup info from the xml).

I tried it a little but you'll probably want to test yourself to make sure it's actually working and changing the reputation.

Fifth Dimension 11-08-2010 08:11 PM

Just installed it and it looks like it's working, kh99! Thank you so much. :)


All times are GMT. The time now is 12:12 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.01148 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
  • (1)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