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
  #262  
Old 07-02-2004, 04:01 PM
turbidblue's Avatar
turbidblue turbidblue is offline
 
Join Date: Apr 2004
Location: Indiana
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this may sound really dumb, but how does one run an installer via the hack tracking log?

i cannot figure this out!

please help
Reply With Quote
  #263  
Old 07-03-2004, 12:49 PM
dssart dssart is offline
 
Join Date: May 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I installed this last nite, paying particular attention to the manual edits to all the .php and template edits ( all 15 or so..ugh ) and after all that, I load up my admincp and get the "There is a new version of VBulletin"...so, I carefully looked through the list of changed files in VB 3.0.2, and noticed two templates had to be reverted, postbit and postbit_legacy. No problem, so I looked through the list of changed .php files and noticed that all of the files I had just edited were changed. I thought, no problem, I'll just go back and re-edit them. Then I thought, how am I going to re-edit the files? all the necessary changes were given at the end of the installation process. I finally uninstalled it all. Is there an easier way to do this? Is there a more automatic way to re-apply the hack script in the event of a VBulletin update? I really don't want to have to edit 15 templates/php files every VBulletin update.
Reply With Quote
  #264  
Old 07-05-2004, 07:30 AM
JamesFrost JamesFrost is offline
 
Join Date: Feb 2003
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dssart
Well, I installed this last nite, paying particular attention to the manual edits to all the .php and template edits ( all 15 or so..ugh ) and after all that, I load up my admincp and get the "There is a new version of VBulletin"...so, I carefully looked through the list of changed files in VB 3.0.2, and noticed two templates had to be reverted, postbit and postbit_legacy. No problem, so I looked through the list of changed .php files and noticed that all of the files I had just edited were changed. I thought, no problem, I'll just go back and re-edit them. Then I thought, how am I going to re-edit the files? all the necessary changes were given at the end of the installation process. I finally uninstalled it all. Is there an easier way to do this? Is there a more automatic way to re-apply the hack script in the event of a VBulletin update? I really don't want to have to edit 15 templates/php files every VBulletin update.
dssart - I hope you havn't redone it on vb3.02 yet - 3.03 is just out!!!!!

It seems to be a 'feature' of vbulletin that they do not make hacking easy, even though it is the hacking community that makes vb popular. I don't see how an addition such as awards / medals (good as it is!) should require any changes to php files at all.
Reply With Quote
  #265  
Old 07-05-2004, 12:22 PM
dssart dssart is offline
 
Join Date: May 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JamesFrost, once in awhile Vbulletin does that. They'll release an update then a day or so later another. I wish they would do it perhaps once a month and kill a million birds with one stone.

This hack is really cool but to much manual-editing of files for me. No, I'm not lazy or ungrateful for free hacks, it's because given the nature of the precision required in editing (i.e. one small slip-up and your forum doesn't work) I can see myself editing these files for the nth number of times and misplacing a block of code or two. I'll think I'll pass on this hack unless some upgrade script becomes part of the hack. I don't know about anyone else, but I'd be willing to pay for this piece of software in order to receive updates.
Reply With Quote
  #266  
Old 07-05-2004, 01:08 PM
JamesFrost JamesFrost is offline
 
Join Date: Feb 2003
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dssart
JamesFrost, once in awhile Vbulletin does that. They'll release an update then a day or so later another. I wish they would do it perhaps once a month and kill a million birds with one stone.

This hack is really cool but to much manual-editing of files for me. No, I'm not lazy or ungrateful for free hacks, it's because given the nature of the precision required in editing (i.e. one small slip-up and your forum doesn't work) I can see myself editing these files for the nth number of times and misplacing a block of code or two. I'll think I'll pass on this hack unless some upgrade script becomes part of the hack. I don't know about anyone else, but I'd be willing to pay for this piece of software in order to receive updates.
I usually wait 4-5 days after a VB upgrade for the real version. Now installed this hack on VB3.03.

Animwebby - this hack is SOOO much easier to install than it used to be - really good work.

The only downside to the awards_install.php approach is it makes it harder to upgrade (as you have to uninstall / reinstall the hack - losing the details of who has which award).
Reply With Quote
  #267  
Old 07-05-2004, 09:34 PM
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i view a persons profile after adding a award for them

the awards section is not showing up in the public profile ...


when i check in the admincp its showing checked as Yes for the award.


the awards are showing fine in the threads....


but not in the public profile .....


this is what i have in members.php


Code:
// [START HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.0' CHANGEID= 14 ]
// AWARDS IN MEMBERINFO
$getuserawards = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "award AS award ORDER BY awardid ASC");
$show['userawards'] = false;
while ($useraward = $DB_site->fetch_array($getuserawards))
{
	$userawardid = "award$useraward[awardid]";
	if (!empty($userinfo[$userawardid]))
	{
		$userawardid_desc = $userawardid."_desc";
		if ($userinfo[$userawardid_desc] != '')
		{
			$useraward[description] = $userinfo[$userawardid_desc];
		}
		$show['userawards'] = true;
		eval('$userinfo[userawards] .= "' . fetch_template('awards_bit') . '";');
	}
}
// END AWARDS IN MEMBERINFO
// [END HACK='Awards/Medals/Cards by AnimeWebby' AUTHOR='AnimeWebby' VERSION='2.0' CHANGEID= 14 ]

i have the arcade hack installed also and was wondering if this may be conflicting
Reply With Quote
  #268  
Old 07-06-2004, 12:20 AM
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have went back throught the install really slow and made sure i done all the edits .... everything works fine but nothing shows in the

members.php file when i view a members profile ....

no award block or anything .... i have double checked and made sure the user has a award enabled in the admincp/user.php

anyone have any ideas?

i have vb3.0 gold .... with the major fixes applied from 3.0.1 and 3.0.2
Reply With Quote
  #269  
Old 07-06-2004, 03:50 AM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.0.1 and working just fine! The regular installer was used as I haven't been able to trust any HTL hacks here lately(they just don't seem to work while all the regular installations do). Thanks for the great port! ^^

-y2k-
Reply With Quote
  #270  
Old 07-06-2004, 01:26 PM
teksigns's Avatar
teksigns teksigns is offline
 
Join Date: Sep 2003
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are there not any support anymore for this hack ?
Reply With Quote
  #271  
Old 07-06-2004, 01:35 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2krazy
Installed on 3.0.1 and working just fine! The regular installer was used as I haven't been able to trust any HTL hacks here lately(they just don't seem to work while all the regular installations do). Thanks for the great port! ^^

-y2k-
I agree, when i use htl hacks, i really dont know what happens...

i have tried them, they have fail...

i prefer manually... that way i have a more oriented prespective of what i am doing...
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:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12359 seconds
  • Memory Usage 2,322KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (3)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
  • (2)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