Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[HTL] & [TXT] Awards/Medals/Cards Hack [vB3] Details »
[HTL] & [TXT] Awards/Medals/Cards Hack [vB3]
Mod Version: 1.00, by InfiniteWebby (Member) InfiniteWebby is offline
Developer Last Online: Aug 2007 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (8 votes - 4.50 average) Installs: 160
Released: 03 Feb 2004 Last Update: 03 Jun 2004 Downloads: 406
Not Supported  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

below that add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On for Awards/Medals/Cards Hack: Add bigger image for awards mtha vBulletin 3.0 Full Releases 11 18 Oct 2006 07:29
Standalone Add-On for Awards/Medals/Cards Hack Creed vBulletin 3.0 Full Releases 58 20 Mar 2005 11:55
List Award Addon for Medals/Awards/Cards Hack Dark_Wizard vBulletin 2.x Full Releases 5 14 May 2002 21:24

  #61  
Old 25 Feb 2004, 08:49
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Real name: Ha Mai
Originally Posted by M.C.
i`ve got small bug! In Private Messages Page i got that:
Warning: Invalid argument supplied for foreach() in z:\home\localhost\www\forum\includes\functions_showthread.php on line 691
Anypage that has user postbit displayed /showthread used will have the same problem

PM, view thread, viewpost ...

maybe this hack should be moved to Beta mods, as of it's not completed


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

thank you
dont think anyone can tell you if you dont tell us what the error is, and some details. otherwise, I just say, they should be as it is in the txt file.
__________________
Selected Hacks:
[APM] Advanced Product Management [for vb4][for vb3.6] [for 3.7.x/3.8.x] -- [YAAS] Yet Another Awards System [for vB 3.5] [for vB 3.0] -- [YAPMS] Yet Another Private Message System 1.0.1
Reply With Quote
  #62  
Old 28 Feb 2004, 01:03
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Real name: Jonnie.
OK just upldated the attachements to version 2 where the errors regarding the showpost and announcements are fixed and also the extra page for users who have awards has been added.

I was hoping to get the request award option finished but I think this is an important update.
__________________
Check out http://www.alotoftalk.com/ my new vB 3.5 forum =)
Reply With Quote
  #63  
Old 28 Feb 2004, 03:21
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Nice hack. What I would like to see is the ability to give Mods and/or Super Mods the option to give out awards.
__________________
Kiwi Biker

SV1000 Portal
Reply With Quote
  #64  
Old 28 Feb 2004, 05:38
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Never mind. I've done it myself.
__________________
Kiwi Biker

SV1000 Portal
Reply With Quote
  #65  
Old 28 Feb 2004, 12:52
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Something else I've added you might want to think about, is who gave the award.
__________________
Kiwi Biker

SV1000 Portal
Reply With Quote
  #66  
Old 28 Feb 2004, 20:49
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Real name: Ha Mai
Originally Posted by AnimeWebby
OK just upldated the attachements to version 2 where the errors regarding the showpost and announcements are fixed and also the extra page for users who have awards has been added.
how should I upgrade from version 1?
__________________
Selected Hacks:
[APM] Advanced Product Management [for vb4][for vb3.6] [for 3.7.x/3.8.x] -- [YAAS] Yet Another Awards System [for vB 3.5] [for vB 3.0] -- [YAPMS] Yet Another Private Message System 1.0.1
Reply With Quote
  #67  
Old 01 Mar 2004, 19:31
maytrix maytrix is offline
 
Join Date: Mar 2003
Just a note, your awards hack and the vbarcade hack are not compatible. You use a global of $awards which is also used by that hack. If you change your global to $awards2 you can get both to live in harmony.
Reply With Quote
  #68  
Old 02 Mar 2004, 03:21
Flow Fusion's Avatar
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Can someone clean up the text file for this hack? When I try to view it on my Mac it looks like a mess?
Reply With Quote
  #69  
Old 05 Mar 2004, 03:19
Roxie's Avatar
Roxie Roxie is offline
 
Join Date: May 2002
Real name: Ro
So, is this hack beta?
Reply With Quote
  #70  
Old 05 Mar 2004, 21:01
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Real name: Jonnie.
@mtha: the only option is to undo all the changes made in v1 and then redo all the changes in v2

@maytrix: I realise that and I think to keep adequate varibale names you should change alll occurances of $award or $awards used in the arcade hack to $arcadeawards but whatever tickles your fancy so to speak.

@flow fusion: i cant help you out in anyway except to advise you to use HTL instead of relying on text files, macs aren't my speciality.

@roxie: I don't conisder it beta as it works perfectly at the moment. However some might consider it still in beta stages because of the large amounts of bugs found last time and that it might be the same case this time.
__________________
Check out http://www.alotoftalk.com/ my new vB 3.5 forum =)
Reply With Quote
  #71  
Old 06 Mar 2004, 05:21
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Real name: Ha Mai
Originally Posted by AnimeWebby
Awards/ Medals/ Cards Hack [vB3]
By: AnimeWebby
Idea by: Lesane

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

Installation:
Just upload award.php to your admincp, awards.php to your root directory and follow the instructions in the text file.
it seems that the HTL and TXT instructions are different.

1: There's NO award.php in HTL zip file, there's only 1 file in /admincp/award.php
2: Cant find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

for step 9 in /includes/functions_showthread.php


Cant find this step on HTL instruction (it's only in TXT one)
==>Find:
// do posts from ignored users
if ($tachyuser AND THIS_SCRIPT != 'showpost' AND THIS_SCRIPT != 'private')
{
$maintemplatename = 'postbit_ignore_global';
}
else if ($ignore["$post[userid]"]/* AND !in_array($post['userid'], explode(' ', $bbuserinfo['buddylist']))*/)
{
$maintemplatename = 'postbit_ignore';
$show['showpostlink'] = ($alternate != 'usernote');
}

==>Replace With:
// AWARDS IN POSTBIT
foreach($awards AS $key => $useraward)
{
$userawardid = "award$useraward[awardid]";
if (!empty($post["$userawardid"]))
{
$userawardid_desc = $userawardid."_desc";
if ($post[$userawardid_desc] != '')
{
$useraward[description] = $post[$userawardid_desc];
}
eval('$post[\'awards\'] .= "' . fetch_template('awards_bit') . '";');
}
}
// END AWARDS IN POSTBIT
-------------------------------
and others ... after that
__________________
Selected Hacks:
[APM] Advanced Product Management [for vb4][for vb3.6] [for 3.7.x/3.8.x] -- [YAAS] Yet Another Awards System [for vB 3.5] [for vB 3.0] -- [YAPMS] Yet Another Private Message System 1.0.1

Last edited by mtha; 06 Mar 2004 at 05:31.
Reply With Quote
  #72  
Old 06 Mar 2004, 09:11
Cyricx Cyricx is offline
 
Join Date: Sep 2002
I will suggest that you go through the code fully again.

Make sure the templates names are correct.

I had to spend about a hour debugging the code and finally was able to fix it. It was searching for a template that doesn't exist.

I had to compare the file edits between both HTL / Text File. From my observation, one of those are outdated.

But it's working on my site now.

Cyricx
__________________
Cyricx (Chris)
Reply With Quote
  #73  
Old 06 Mar 2004, 16:47
maytrix maytrix is offline
 
Join Date: Mar 2003
I too had to go through the code twice. I also had to make it work better with some previous installed hacks. It is is a good working hack, but it is a medium to high installation skill level.
Reply With Quote
  #74  
Old 07 Mar 2004, 00:03
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Real name: Jonnie.
@Cyricx: What template is that?

And I uploaded the wrong file so I will fix it as soon as I finish this post, sorry to all but trying to keep up with what you've done and haven't done gets quite confusing.
__________________
Check out http://www.alotoftalk.com/ my new vB 3.5 forum =)
Reply With Quote
  #75  
Old 10 Mar 2004, 07:10
Flow Fusion's Avatar
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Originally Posted by AnimeWebby
@Cyricx: What template is that?

And I uploaded the wrong file so I will fix it as soon as I finish this post, sorry to all but trying to keep up with what you've done and haven't done gets quite confusing.
Ok I installed this onto my forum and I get this error message when I try to view any of the threads.


Unable to add cookies, header already sent.
File: /hsphere/local/home/mojoblac/flowfusion.biz/forum/includes/functions_showthread.php
Line: 679


Any suggestions? Cause I been at it all night/Morning
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:13.

Layout Options | Width: Wide Color: