vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [HTL] & [TXT] Awards/Medals/Cards Hack [vB3] (https://vborg.vbsupport.ru/showthread.php?t=61108)

InfiniteWebby 05-23-2004 12:34 AM

@Barhopper: Did you have this hack installed previously if so you may have the same piece of code twice in your /includes/functions_showthread.php if not check that you dont have $post['userawards'] in your postbit_legacy twice. If you want send me your /includes/functions_showthread.php and your postbit_legacy via a pm and I'll see what I can do.

@WebMasterAJ: Check your pm ;)

@ethics: I need to see some sort of mysql dump of your awards table but I have no idea what could be wrong with it, what installer did you use? and what vb version did you use?

@SmasherMaster: You are having the same problems as WebmasterAJ I will forward the pm i sent him to you.

ethics 05-23-2004 12:53 AM

Quote:

@ethics: I need to see some sort of mysql dump of your awards table but
I have no idea what could be wrong with it, what installer did you use?
and what vb version did you use?
Vb 3.0.1 and used the manual installer (not HTL).

tHe Rk 05-23-2004 02:22 AM

Quote:

Originally Posted by SmasherMaster
getting this error wehn i try to view a thread:

Warning: Invalid argument supplied for foreach() in /home/smasher1/public_html/forums/includes/functions_showthread.php on line 799

and in my thread, all posts say n/a

help?

I got the same thing! HELP HELP HELP!

As follows:

Warning: Invalid argument supplied for foreach() in /home/therk/public_html/forum/includes/functions_showthread.php on line 731

InfiniteWebby 05-23-2004 03:05 AM

<span class="highlight">Sorry about this guys but isn't it always the small things that ++++ up a script? Anyway I updated the first post with instructions on how to fix the foreach() errors as well as instructions which alot of you missed on how to fix the N/A post count.</span>

tHe Rk 05-23-2004 03:13 AM

Quote:

Originally Posted by AnimeWebby
Sorry about this guys but isn't it always the small things that ++++ up a script? Anyway I updated the first post with instructions on how to fix the foreach() errors as well as instructions which alot of you missed on how to fix the N/A post count.

Thanks Anime! Will go check out the first post for the fix!

tHe Rk 05-23-2004 03:17 AM

Quote:

Originally Posted by AnimeWebby
Awards/ Medals/ Cards Hack [vB3]
If you installed this hack before 23rd May and are getting foreach errors in your showthread then follow the step below:

In /includes/functions_showthread.php find:
PHP Code:

    // sorts through all the stuff to return the postbit template 

below that add:
PHP Code:

    // user awards
    
global $userawards


Worked like a charm! Thanks a million!

SmasherMaster 05-26-2004 10:48 PM

Wonderful, that worked. Thanks alot, animewebby!

tHe Rk 05-27-2004 09:25 PM

I had to reinstall my forums, and I have mutliple other hacks already in use and I get this error when I try to use the installer: (This is before I get to any template edits or anything like that, and ideas?)

Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT user.userid
FROM user AS user
LEFT JOIN useraward AS useraward USING(userid)
WHERE useraward.userid IS NULL

mysql error: Table 'therk_xgplanet.useraward' doesn't exist

mysql error number: 1146

Date: Thursday 27th of May 2004 05:21:00 PM

Mystictrunks03 05-27-2004 09:55 PM

i got that same error like this

Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT user.userid
FROM user AS user
LEFT JOIN useraward AS useraward USING(userid)
WHERE useraward.userid IS NULL

mysql error: Table 'dbgtx2_vbulletin.useraward' doesn't exist

mysql error number: 1146

Date: Thursday 27th of May 2004 06:54:33 PM
Script: http://www.dbgtx2.com/vb/admincp/awa...step=doqueries
Referer:

InfiniteWebby 05-27-2004 11:55 PM

those imply that you already have the file edits installed, ill look into it in a min and get back to you.


All times are GMT. The time now is 04:06 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.01543 seconds
  • Memory Usage 1,752KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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