vb.org Archive

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

Ragnarok 01-20-2006 03:33 PM

Edit: Works perfectly, thanks ^^

cuphongle 01-22-2006 04:54 PM

after changing these templates, it wont let me rep anyone else, it says u cant rep to the same post twice

and how would i make it open in small window instead of big ones?

Ragnarok 01-22-2006 05:17 PM

Quote:

Originally Posted by cuphongle
after changing these templates, it wont let me rep anyone else, it says u cant rep to the same post twice

You'll want to check your reputation settings. If you're unhappy with the limits placed on it, then you can change them. And I don't believe it is possible to give reputation for the same post twice.

vBulletin Options > User Reputation Options > Reputation User Spread

Quote:

and how would i make it open in small window instead of big ones?
The popup window *is* a small window, unless you have a different definition of "small."

cuphongle 01-22-2006 05:30 PM

oh no, i tried to give repz to a different post, thats what it says.....

and the window its big when i open it, like full window

http://www.yndforum.com/

Ragnarok 01-22-2006 05:41 PM

Did you follow all of the directions?

1. In /clientscript/vbulletin_global.js,

Find:
Code:

/**
* Opens a window to show a list of posters in a thread (misc.php?do=whoposted)

Before, Add:
Code:

/**
* Opens the reputation window
*
* @param        integer        Post ID
*
* @return        boolean        false;
*/
function reputation(postid)
{
        return openWindow(
                'reputation.php?' + SESSIONURL + 'p=' + postid,
                400, 241, 'Reputation'
        );
}

2. In template postbit or postbit_legacy, find:
Code:

<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
Replace with:
Code:

<if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
3. Replace the following templates with the above posted templates:
1. reputation
2. reputationbit
3. reputation_yourpost





As for window size- It looks to me as being determined by this phrase, added into vbulletin_global.js,

PHP Code:

{
    return 
openWindow(
        
'reputation.php?' SESSIONURL 'p=' postid,
        
400241'Reputation'
    
); 

Change the numbers to whatever dimensions you like, and it should change the size of the window.

cuphongle 01-22-2006 05:44 PM

awww man, i appreciate it, i didnt see the first one

Ragnarok 01-22-2006 05:47 PM

Glad to help! :) I found it a bit confusing to follow myself so I'm glad for an excuse to make it easier. ;)

cuphongle 01-22-2006 05:53 PM

everything is working now, but now everytime i try to rep someone, it says "You cannot give Reputation to the same post twice." but its not, i never rep it before, i also try creating new users name to test it out, but its still the same

Ragnarok 01-22-2006 06:40 PM

Quote:

Originally Posted by cuphongle
everything is working now, but now everytime i try to rep someone, it says "You cannot give Reputation to the same post twice." but its not, i never rep it before, i also try creating new users name to test it out, but its still the same

Best I could suggest is to undo and then redo all of your modifications. Revert your templates, reupload your files, and try again.

But then I'm no expert on this. It worked for me so I can't see why it wouldn't work for you. :/

cuphongle 01-22-2006 07:54 PM

yea, i will try to fix it


All times are GMT. The time now is 03:44 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.04108 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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