vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   unlimited reputation (https://vborg.vbsupport.ru/showthread.php?t=249018)

skiseiju 08-20-2010 04:52 PM

unlimited reputation
 
Hi,Does anyone knows how to create a un-limited reputation system?
I want to : reputation my post / reputation same post / reputation more than one time

Thnaks a lot.

skiseiju 10-21-2010 03:32 PM

Hi,Does anyone can help?

BirdOPrey5 10-21-2010 05:30 PM

If you edit reputation.php you can "edit out" the checks... taking a quick look at vb 3.8.6 reputation.php you want to "comment out" lines 124-132 inclusive- that will let you give reputation to the same post more than once.

for me those lines are:
Code:

        if ($repeat = $db->query_first("
                SELECT postid
                FROM " . TABLE_PREFIX . "reputation
                WHERE postid = $postid AND
                        whoadded = " . $vbulletin->userinfo['userid']
        ))
        {
                eval(standard_error(fetch_error('reputationsamepost')));
        }

They may be different lines in different versions of 3.8.x.

To "comment out" a line ad two slashes "//" to the front of the line so it's ignored.

To be able to rep yourself it looks like it may need a javascipt edit, not something I can look into right now.

This was just a quick look- not sure if this will cause other problems down the line so backup first.


All times are GMT. The time now is 08:47 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.01396 seconds
  • Memory Usage 1,714KB
  • 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
  • (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