vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Pig's configurable rep gems (https://vborg.vbsupport.ru/showthread.php?t=105156)

Railen 02-21-2006 01:42 PM

I'm using this hack along with vBSupport System v1.1:
https://vborg.vbsupport.ru/showthread.php?t=94023

When I open a support ticket, I'm getting the same error another user was getting:

Quote:

Warning: Invalid argument supplied for foreach() in /includes/functions_reputation.php(140) : eval()'d code on line 14
I'll get that error 1-4 times at the top of my page. Any ideas?

Edit: I'll try adding "OR (THIS_SCRIPT == 'vBSupport')"

Edit again: It was actually "support" not "vBSupport". However, this fixed it.

Railen 02-21-2006 02:02 PM

I'm actually looking for how to change the code so each level uses a different image, instead of adding all the images inline.

For example, level three uses "reputation_lev3pos.gif" instead of "reputation_lev1pos.gif reputation_lev2pos.gif reputation_lev3pos.gif"

Could you tell me what code to modify to accomplish this? (I might figure it out before you respond. If I do, I'll post my modification.)

Thanks.

Railen 02-21-2006 02:21 PM

To accomplish this, open the .xml file and find the line:
foreach($vbulletin->repsettings AS $replevel) {
At the end of this foreach statement, you'll find this line:
eval('$post[\'reputationdisplay\'] .= "' . fetch_template('postbit_pig_reputation') . '";');
Change this line to:
eval('$post[\'reputationdisplay\'] = "' . fetch_template('postbit_pig_reputation') . '";');
This will modify this hack to use individual images instead of multiple images.

HHU 03-11-2006 10:31 PM

This is what came up when importing the product...

Database error in vBulletin 3.5.4:

Invalid SQL:

INSERT INTO repgemlevel (minimum, template, suffix) VALUES (1, 0, '');

MySQL Error : Unknown column 'template' in 'field list'
Error Number : 1054
Date : Saturday, March 11th 2006 @ 05:29:46 PM

Zachariah 05-15-2006 12:19 AM

If you have Photopost vBGallery:

Error:
-- showimage.php

If you look @ a image the page will go white and only pass <body></body> tags.

Fix Add:
Code:

(THIS_SCRIPT == 'showimage') OR

zane99 01-06-2007 08:09 PM

damn. i need this for 3.6!!!

any1 can help?

da420 01-07-2007 02:15 AM

It works for me on 3.6...

zane99 01-12-2007 12:26 PM

Quote:

Originally Posted by da420 (Post 1152337)
It works for me on 3.6...

it works BUT when you go to add rep to sum1 with this hack enabled the button doesnt work.

da420 01-12-2007 04:41 PM

Speak for yourself :)

RCWong 01-14-2007 07:10 PM

Also get a Warning:

Code:

Invalid argument supplied for foreach() in /includes/functions_reputation.php(139) : eval()'d code on line 14
error when viewing members notes.


All times are GMT. The time now is 01:05 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.01798 seconds
  • Memory Usage 1,733KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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