Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HTL] & [TXT] Awards/Medals/Cards Hack [vB3] Details »»
[HTL] & [TXT] Awards/Medals/Cards Hack [vB3]
Version: 1.00, by InfiniteWebby InfiniteWebby is offline
Developer Last Online: Aug 2007 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 02-02-2004 Last Update: 06-02-2004 Installs: 160
 
No support by the author.

Awards/ Medals/ Cards Hack [vB3]
By: AnimeWebby
Idea by: Lesane
Updated: 28nd May 2004 - Installer not table prefix friendly.

What this hack does:
This hack allows you to add awards, medals or cards to your vbulletin and assign these to members who you think deserve them.
These graphics will then show up in their member profile and/or their postbits depending on where you choose to add this hack.

New in v2
- Extra page showing all awards available as well as all the users who have earned an award.
- Support for full urls and relative ones for award icons.
- Support for awards on showpost and announcement

Other Stuff:
Although I give credit to Lesane for the idea this hack is totally recoded to be less server intensive and also uses a whole lot less queries. Therefor I do not consider this a 'port'.

Installation:
Download the appropriate .Zip file and follow the instructions in the readme file.

Upgrading:
So far there are no ways to upgrade this hack, if you have an old copy installed then you need to uninstall and reinstall from scratch.

Coming Soon:
- Awards added to the search and memberlists.
- Added functions to the addition of awards as well as cron functions to assign awards automatically to those members with 'X' posts, registered 'X' days etc...
- Option to show award name rather than graphic.
- Option to turn awards OFF & ON in postbit and memberinfo
- Request award on awards page (at Cyricx' request)
(not necessarily in that order)

Make sure you backup your files and database first! This hack has been tested on vB RC1 and RC4 only!

Please click the install button

If you experience any errors, problems or the hack doesn't seem to be functioning correctly then send me a pm with the following info:
- HTL or Standalone installer.
- Version of vB you are running.
- File where error is encountered.
- Exact error or description of error.

Views so far:
[NORMAL]AwardsMedalsCardsv2.1.zip (12.7 KB, 69 views)
[HTL]AwardsMedalsCardsv2.1.zip (12.8 KB, 57 views)
[TXT]AwardsMedalsCardsv2.zip (8.5 KB, 278 views)
[HTL]AwardsMedalsCardsv2.zip (10.2 KB, 203 views)

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
If in your showthread.php member post counts show N/A, they have no profile link or their user title is guest you MUST run 'Fix broken user profiles' in the update counters part of the admincp. This is found under the nav bar 'Import & Maintenance' > 'Update Counters' > 'Fix broken user profiles'. This will add the awards for all the users currently in your database and prevent showing incorrent member info.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 02-16-2004, 05:13 PM
The Quibbler The Quibbler is offline
 
Join Date: Oct 2003
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get an error when trying to install the hack using the Hack Tracking Log at /admincp/index.php?loc=install_htl.php?inside=1:

Parse error: parse error in /home/quibbler/public_html/forums/includes/functions.php on line 1805

Fatal error: Call to undefined function: exec_nocache_headers() in /home/quibbler/public_html/forums/admincp/global.php on line 37


Looked at the code, but couldn't figure anything out. Any idea what's wrong? I think it has something to do with the file edits I did for this hack.
Reply With Quote
  #53  
Old 02-16-2004, 08:25 PM
The Watcher The Watcher is offline
 
Join Date: Oct 2003
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this successfully on RC3 and I have to say - GREAT HACK !!!

I followed the txt instructions and there were some differences in the codes quoted and what are in my phps but that was only a minnor problem. Also I spotted one very small error. In awards.php line 179 should be:

PHP Code:
<td class=\"$bgclass\" align=\"center\"><img src=\"../$award[icon_url]\" border=\"0\"></td> 
Instead of ...

PHP Code:
<td class=\"$bgclass\" align=\"center\"><img src=\"$award[icon_url]\" border=\"0\"></td> 
(You missed out the ../ and as a result the images don't preview in the admin cp)

2 questions ...

1) How do I split the awards up. Currently they are directly next to each other with no spaces.
3) Any chance of some more medals/awards/trophy images being posted?

Thanks Again Great Work
Reply With Quote
  #54  
Old 02-17-2004, 02:05 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Watcher
I have installed this successfully on RC3 and I have to say - GREAT HACK !!!

I followed the txt instructions and there were some differences in the codes quoted and what are in my phps but that was only a minnor problem. Also I spotted one very small error. In awards.php line 179 should be:

PHP Code:
<td class=\"$bgclass\" align=\"center\"><img src=\"../$award[icon_url]\" border=\"0\"></td> 
Instead of ...

PHP Code:
<td class=\"$bgclass\" align=\"center\"><img src=\"$award[icon_url]\" border=\"0\"></td> 
(You missed out the ../ and as a result the images don't preview in the admin cp)

2 questions ...

1) How do I split the awards up. Currently they are directly next to each other with no spaces.
3) Any chance of some more medals/awards/trophy images being posted?

Thanks Again Great Work
Add a <br> tag before, or after $post[arcadeawards] depending on how you would like it to look.

In postbit or postbit_legacy depending on which you use.
Reply With Quote
  #55  
Old 02-17-2004, 04:37 AM
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Location: Downunda.
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ the quibbler: Line 1805 or any lines surrounding that in /includes/functions.php has nothing to do with this hack unless you put something in the wrong place.

@the watcher: I am aware of the changes in code. I am trying to setup my own board and am not worried about some minor indescretions in the find and replace parts.

Also that isn't so much a mistake if you use full url's to your awards images which I thought people woulc use. But I will take this into account and build some added functionality.

1) shove a couple of &nbsp; at the end of the awards template or you can add some <br />'s depending on how you want them split up.
3) I think you meant 2) but oh well :P Not at the moment I am too busy, and not too graphical.
Reply With Quote
  #56  
Old 02-17-2004, 12:53 PM
The Watcher The Watcher is offline
 
Join Date: Oct 2003
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

Ill find my own images and post them here haha

With reference to the spacing, this is what i was trying to acheive - sorry if I did not explain clearly ...

Ideally i would like my 5 medals on one line with 2 spaces inbetween and then my 3 trophies on the line below with perhaps 3 spaces in between.

couldn't work out how to do that though

thanks again
Reply With Quote
  #57  
Old 02-17-2004, 08:48 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ERROR!!!

Quote:
Warning: Invalid argument supplied for foreach() in /XXXXXXXXXXXXXXX/forums/public_html/includes/functions_showthread.php on line 693
when you run forums/showpost.php?p=xxxxx


You may want to add $awards array into showpost.php too, like you did in showthread.php
Reply With Quote
  #58  
Old 02-19-2004, 05:30 AM
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Location: Downunda.
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will be moving it to the top of showthre_functions.php in the next version please bare with me.
Reply With Quote
  #59  
Old 02-19-2004, 11:56 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AnimeWebby
I will be moving it to the top of showthre_functions.php in the next version please bare with me.
Thanks again for all the work!
Reply With Quote
  #60  
Old 02-19-2004, 10:59 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i`ve got small bug! In Private Messages Page i got that:

Quote:
Warning: Invalid argument supplied for foreach() in z:\home\localhost\www\forum\includes\functions_sho wthread.php on line 691
on that line is hack code:

PHP Code:
    foreach($awards AS $useraward)
    {
        
$userawardid "award$useraward[awardid]";
        if (!empty(
$post[$userawardid]))
        {
            
$userawardid_desc $userawardid."_desc";
            if (
$post[$userawardid_desc] != '')
            {
                
$useraward[description] = $post[$userawardid_desc];
            }
            eval(
'$awardsbit .= "' fetch_template('award') . '";');
        }
    } 
Reply With Quote
  #61  
Old 02-24-2004, 09:21 PM
Face Off Mobile Face Off Mobile is offline
 
Join Date: Dec 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant run both sql queries in the txt file can someone please tell me what they should be

thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 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.05079 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete