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)

moley 03-25-2004 06:51 PM

I've installed the vb3 gold version but now get this error

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

Warning: Cannot modify header information - headers already sent by (output started at /home/jay/public_html/forum/forums/includes/functions_showthread.php:721) in /home/jay/public_html/forum/forums/includes/functions.php on line 2832

any ideas whats wrong and how to fix?

Flow Fusion 03-26-2004 02:25 AM

Did you update user profile? Cause I had that problem as well till I did that.

moley 03-26-2004 09:38 AM

o wait no i didn't I'll give it a try when I get home. Thanks for the help.

tides 03-26-2004 12:44 PM

I found an error in the hack.

In the modification member.php, the hack document fetch an nonexisting template.

You make the hack as fellowing:

==>Find:
PHP Code:

// END CUSTOM PROFILE FIELDS
// ************************* 

==>Add below:
PHP Code:

// AWARDS IN MEMBERINFO
$getawards $DB_site->query("SELECT * FROM " TABLE_PREFIX "award AS award ORDER BY awardid ASC");
$show['awards'] = false;
while (
$useraward $DB_site->fetch_array($getawards))
{
    
$userawardid "award$useraward[awardid]";
    if (!empty(
$userinfo[$userawardid]))
    {
        
$userawardid_desc $userawardid."_desc";
        if (
$userinfo[$userawardid_desc] != '')
        {
            
$useraward[description] = $userinfo[$userawardid_desc];
        }
        
$show['awards'] = true;
        eval(
'$awardsbit .= "' fetch_template('awards_bit') . '";');
    }
}
// END AWARDS IN MEMBERINFO 


moley 03-26-2004 05:39 PM

ok i'm on the last step and a bit confussed by it all. At the end it said make a new template called awards at the start it says make one called AWARDS so when ever I say one it saves over the other .

Edit

Well I didnt do the last one and it seems to work fine now. Just gotta get busy making awards now :banana:

Geographic2 03-28-2004 05:17 PM

Some may prefer this query in awards.php
PHP Code:

$earnawards $DB_site->query("SELECT * FROM " TABLE_PREFIX "award ORDER by name"); 

So it order by name rather than id#, others may not. Just mentioning for those who might not have thought about it.

InfiniteWebby 03-30-2004 06:32 AM

I am extremely sorry that I haven't been able to support this hack lately, I got a new computer about a week ago and am only know gettig it setup just as it is. Thanks to FlowFusion and mtha for all your help.

I will be re-doing the instructions and work out any bugs when I get my localhost vBulletin Gold version setup so please be patient.

Once again SORRY :(

ranger2kxlt 03-31-2004 12:00 AM

Alright, tried to install with HTL, and did all the file edits, upload the last file and click step 6 of 6 and then i get There seems to have been a slight problem with the ..... database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

any idea how this could happen?
thanks

ranger2kxlt 03-31-2004 12:29 AM

found the main problem...its my funtion.php file...BUT i don't know what part of it messing up...seems as if one of the two codes is the problem, anyone had this???

Flow Fusion 03-31-2004 10:38 PM

Remove the edits to the "members.php" and leave it default should clean that up.


All times are GMT. The time now is 10:11 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.01342 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_php_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