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)

y2krazy 08-31-2004 04:09 AM

I have it installed on 3.0.3 and it's working just fine. In fact, I have about 30 hacks on my 3.0.3 and I have no errors whatsoever! You can find a link to it in my sig, but it has not been grated public access yet. It will be opening soon, so all I can say now is that it works just fine on 3.0.3! I have attached a screenshot for everyone to see that it does work on 3.0.3! Hope everyone that needs help, gets it working soon! :)

GlitterKill 09-01-2004 12:37 PM

After AnimeWebby pointed out the mistake I must have made everything works great. I have installed MANY hacks and even went over my work a second time before asking for help form the author but it was still user error on my part.

Thanks AnimeWebby! Great hack!

I am running vb 3.0.3 btw.

Caiman 09-01-2004 03:18 PM

Quote:

Originally Posted by GlitterKill
After AnimeWebby pointed out the mistake I must have made everything works great. I have installed MANY hacks and even went over my work a second time before asking for help form the author but it was still user error on my part.

Thanks AnimeWebby! Great hack!

I am running vb 3.0.3 btw.

Um, I cant find file modification instructions in this download? (NORMAL) ?

InfiniteWebby 09-02-2004 09:29 AM

Just run admincp/awards_install.php they are at the end :D

Spacey 09-02-2004 10:44 PM

Great hack im using it :)

apokphp 09-03-2004 01:53 AM

I can't get the awards to "stick" to the member I give it to. In the adminCP, I go to the user, choose the award (only have 1 installed at the moment), click "yes", hit "save", but it does not save. Any ideas?

*edit* I've gone through all files/templates 2x now. Still no dice.

Also, I've installed this hack about 3x on other sites running 3.0.3. The hack works fine for them...but not on this latest one. Could it have something to do w/ the fact that I also have uShop and the Arcade hack installed?

It's just odd though, that the setting just won't save. That seems to be the only problem.

y2krazy 09-03-2004 02:48 AM

Quote:

Originally Posted by apokphp
Could it have something to do w/ the fact that I also have uShop and the Arcade hack installed?

I have all 3 hacks installed on my 3.0.3 vB and I have no errors or bugs whatsoever... :)

apokphp 09-03-2004 03:02 AM

:( Well damnit...I don't know wuttup. What file determines if that is to be saved or not? Could it be a setting instead??

I thought this would be admincp/user.cp, but I've made sure that the code edits are correct there.

Also, I used HTL, and I'm using 3.0.3.

y2krazy 09-03-2004 10:37 AM

Quote:

Originally Posted by apokphp
Also, I used HTL, and I'm using 3.0.3.

That's probably the difference. I don't trust HTL hacks anymore since I had to removed the HTL hacks from an old forum when they didn't work correctly. I use manual/regular installs now, and everything works just fine. :)

InfiniteWebby 09-04-2004 08:09 AM

Go into your phpmyadmin and see if the useraward table is in there. Otherwise the only thing I could think of is a problem with admincp/user.php specifically:

PHP Code:

// [START HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.1' CHANGEID= 3 ]
        // GET USER AWARDS FOR USER PART OF ADMINCP
        
$useraward $DB_site->query_first("SELECT * FROM " TABLE_PREFIX "useraward WHERE userid = $userid");

// [END HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.1' CHANGEID= 3 ] 

And:

PHP Code:

// [START HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.1' CHANGEID= 5 ]
    // AWARDS IN USER PART OF ADMINCP 
    
$fetchawards $DB_site->query("SELECT * FROM " TABLE_PREFIX "award");
    
$awardnames '(userid';

    while (
$award $DB_site->fetch_array($fetchawards))
    {
        
globalize($_POST, array('awards'));
        
$varname 'award' $award['awardid'];
        
$varname_desc $varname '_desc';
        
$bitwise 0;
        
        
$awardnames .= ',award' $award['awardid'] . ',award' $award['awardid'] . '_desc';
        if (
$new)
        {
            
$userawards .= ",'" addslashes(htmlspecialchars_uni($awards[$varname])) . "','" addslashes(htmlspecialchars_uni($awards[$varname_desc])) . "'";
        }
        else
        {
            
$userawards.= ",$varname = '" addslashes(htmlspecialchars_uni($awards[$varname])) . "',$varname_desc = '" addslashes(htmlspecialchars_uni($awards[$varname_desc])) . "'";
        }
    }

    if (
$new)
    {
        
$DB_site->query("
            INSERT INTO " 
TABLE_PREFIX "useraward
                
$awardnames)
            VALUES
                (
$userid$userawards)
        "
);
    }
    else
    {
        
$DB_site->query("UPDATE " TABLE_PREFIX "useraward SET userid = $userid$userawards WHERE userid = $userid");
    }
    
// END AWARDS IN USER PART OF ADMINCP
// [END HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.1' CHANGEID= 5 ] 



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