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)

InfiniteWebby 06-05-2004 11:38 PM

just add a <br /> to the end of the awards_bit template

tHe Rk 06-06-2004 04:59 PM

Quote:

Originally Posted by AnimeWebby
just add a <br /> to the end of the awards_bit template

Awesome Thanks again:)

By far one of the best "Supported" hacks on vB.org :thumbsup:

lordnex 06-07-2004 01:47 PM

I have an odd error, everything displays properly (as far as I can tell) but I can't award anyone an award. When I go into a users profile the "User Awards" menu is there and I can select "yes" to them having the award but when I save the profile it reverts back to them not having the award. How do I make that stick?

InfiniteWebby 06-08-2004 07:42 AM

Quote:

Originally Posted by lordnex
I have an odd error, everything displays properly (as far as I can tell) but I can't award anyone an award. When I go into a users profile the "User Awards" menu is there and I can select "yes" to them having the award but when I save the profile it reverts back to them not having the award. How do I make that stick?

I would appreciate it if you told me what installer you use, but check if you have amde all edits to the /admincp/user.php.

Eagle Creek 06-08-2004 02:51 PM

I have a 3.0.1 board. Which have do I have to download/ what do I have to do when I want to know for sure it works?

Is is compatible with that version already?

Stud_Muffin 06-10-2004 12:22 PM

Quote:

Originally Posted by Soccerquest
I have a 3.0.1 board. Which have do I have to download/ what do I have to do when I want to know for sure it works?

Is is compatible with that version already?

Worked fine for me, just need some graphics now https://vborg.vbsupport.ru/external/2009/12/14.gif

Eagle Creek 06-11-2004 09:51 AM

HOOAH!

I'll try it out, thx

I have red and yellow card if you like.

WoodiE 06-16-2004 06:48 PM

I'd like the text "Earned Awards" or "Award Showcase" to be diplayed above earned awards in the users postbit. I edited the awards_bit to add the text but when the user has two awards it is shown as:

Earned Awards:
[IMAGE OF AWARD]

Earned Awards:
[IMAGE OF 2ND AWARD]

How can I make it so it only shows Earned awards once then all of the users earned awards?

-Michael

miker_316 06-22-2004 02:49 AM

WoodiE, try putting the "Earned Awards:" text in the postbit template.

Find...
Code:

<div>$post[userawards]</div>
Edit it to...
Code:

<if condition="$post['userawards']">Earned Awards:<br /><div>$post[userawards]</div></if>

WoodiE 06-22-2004 08:13 PM

That would work, but it also displays "Earned Awards:" in the postbit even if the member doesn't have any awards. I only want it shown in the postbit if they do have an award.

-Michael

miker_316 06-23-2004 02:16 AM

Ah yes, I wasn't thinking clearly enough and forget the condition. The correct way to do it is to replace it with...

Code:

<if condition="$post['userawards']">Earned Awards:<br /><div>$post[userawards]</div></if>
I tested it out and this way works like you want. My apologies. I also edited my original reply so as not to confuse anyone. :)

WoodiE 06-23-2004 04:24 AM

miker 316 - You're awesome man, worked perfectly!

-Michael

dssart 06-28-2004 09:30 AM

I'm also ready to install this onto 3.01, anyone have any problems with 3.01?

Another dumb question...when VBulletin issues updates and I install them, what do I do to prevent the new updates from overwriting my installation of this hack? Do I need to backup the templates or something else?

Thanks AnimeWebby..you've really put alot of work into this and I appreciate it. If you have a PayPal account please PM me your email and I will send you a donation once I get this up and running.

wcbryant 06-28-2004 07:00 PM

I installed this some time ago, I have a site where the community drives 90% of the content, so I wanted something to acknowledge the people who contribute materially either with content, or by our semi-annual fundraisers.

Recently, I decided to also use this as a system to flag people who are on XBoxLive or PS2Online, to make it easy for them to set up games. I have a college football focused site, but with EA Sport's NCAA 2005 title being online for both consoles, there's a significant enough level of interest from the users that I'm going to support it on the site level.

My question is this... Has anyone figured out a way, could an add-on be developed, or might a future version include a way to generate user lists for specific medals?

I'd love to have the little Xbox logo/'award' link to a page that lists everyone with that award. Ditto for the PS2 logo. As is, I have it set up to display people's gamertags on the mouseover, but a centralized 'roster' of people with the specific award/logo would be even more helpful.

turbidblue 06-30-2004 08:06 PM

I tryed to install this via the hack tracking log, got to step three and this error occured...

********************

Invalid SQL: CREATE TABLE award (
awardid smallint(5) unsigned NOT NULL auto_increment,
name varchar(50) NOT NULL default '',
description varchar(250) NOT NULL default '',
icon_url varchar(250) NOT NULL default '',
PRIMARY KEY (awardid)
) TYPE=MyISAM;

mysql error: You have an error in your SQL syntax near ';
' at line 7

mysql error number: 1064

****************

I am using vB 3.0.1

Any help?

Thanks :)

Wolffman 07-01-2004 02:08 AM

I'm using vB 3.0.1. When I ran the uninstall script, I got this error:

Code:

Invalid SQL:
        SELECT
        userfield.*, usertextfield.*, useraward.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate,
        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid,
              language.phrasegroup_holiday AS phrasegroup_holiday,
              language.phrasegroup_global AS phrasegroup_global,
              language.options AS lang_options,
              language.languagecode AS lang_code,
              language.charset AS lang_charset,
              language.locale AS lang_locale,
              language.imagesoverride AS lang_imagesoverride,
              language.dateoverride AS lang_dateoverride,
              language.timeoverride AS lang_timeoverride,
              language.registereddateoverride AS lang_registereddateoverride,
              language.calformat1override AS lang_calformat1override,
              language.calformat2override AS lang_calformat2override,
              language.logdateoverride AS lang_logdateoverride,
              language.decimalsep AS lang_decimalsep,
              language.thousandsep AS lang_thousandsep
        FROM user AS user
        INNER JOIN userfield AS userfield ON (user.userid = userfield.userid)
        INNER JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid)
        LEFT JOIN useraward AS useraward ON (useraward.userid = user.userid) INNER JOIN language AS language ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
        WHERE user.userid = 14
   
mysql error: Table 'afceyri_forums.useraward' doesn't exist

mysql error number: 1146

This is VERY urgent because my forums are down because of it. Any help is very greatly appreciated.

Cheeko 07-01-2004 12:00 PM

hmm.. i just installed this hack, seems ok except for some reason the awards arent showing up on the post bit...

Polo 07-02-2004 01:05 AM

Is this hack compatible with vb3.0.1?

Oldfart 07-02-2004 08:04 AM

This hack works fine on vb301 you just have to make sure you follow the instructions very carefully. Especially the file and template edits. I've installed it 3 or 4 times on different boards so far.

Polo 07-02-2004 12:14 PM

oh ok, i will install it then. Thank you.

turbidblue 07-02-2004 04:01 PM

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

i cannot figure this out!

please help :)

dssart 07-03-2004 12:49 PM

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.

JamesFrost 07-05-2004 07:30 AM

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.

dssart 07-05-2004 12:22 PM

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.

JamesFrost 07-05-2004 01:08 PM

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. :D

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).

teksigns 07-05-2004 09:34 PM

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

teksigns 07-06-2004 12:20 AM

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

y2krazy 07-06-2004 03:50 AM

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-

teksigns 07-06-2004 01:26 PM

are there not any support anymore for this hack ?

Polo 07-06-2004 01:35 PM

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...

turbidblue 07-09-2004 01:46 AM

sweet jesus!

i finally got this installed!

only took me 4 hours!

but, i am slow at this, so thats why..lol


i love this hack and have been trying for months to get it to work!

thanks!!


*click install finally!

Eagle Creek 07-17-2004 12:25 AM

Wish my luck, I'm going to install it (3.0.3 board)

teksigns 07-17-2004 03:30 AM

any idea when the request award link will be added ....

my members kept asking how to use it .....

so i had to disable all the awards ......

Oldfart 07-17-2004 05:30 AM

I made the link to request an award live and I installed Erwin's form hack and made a generic form to request an award. Very simple to do.

In the awards_earnedawards_bit find this pice of code:

<td class="$bgclass" align="center" nowrap="nowrap">$vbphrase[request_award]</td>
</tr>

then change it to look like this:

<td class="$bgclass" align="center" nowrap="nowrap"><a href="http://yourwebsite/forums/form.php">$vbphrase[request_award]</td>
</tr>

Change the address to your web site and thats it. Just modify Ewrin's form hack to whatever you want to request an award.

treez 07-17-2004 06:36 AM

at the risk of sound stupid... how do you add an award to a user? in the admin cp you can only edit/add/delete awards and stuff... wheres the add button?

treez 07-17-2004 06:41 AM

nvm I got it :p

Eagle Creek 07-17-2004 07:11 AM

Quote:

Originally Posted by treez
nvm I got it :p

Go to edit a profile and in the left corner, under the page it is :).

[edit]Owh, didn't see you reply :p[/edit]

teksigns 07-17-2004 01:58 PM

Quote:

Originally Posted by Oldfart
I made the link to request an award live and I installed Erwin's form hack and made a generic form to request an award. Very simple to do.

In the awards_earnedawards_bit find this pice of code:

<td class="$bgclass" align="center" nowrap="nowrap">$vbphrase[request_award]</td>
</tr>

then change it to look like this:

<td class="$bgclass" align="center" nowrap="nowrap"><a href="http://yourwebsite/forums/form.php">$vbphrase[request_award]</td>
</tr>

Change the address to your web site and thats it. Just modify Ewrin's form hack to whatever you want to request an award.


can you attach the form and template your using from the Erwin's form hack so i dont have to recreate something .

Oldfart 07-17-2004 06:06 PM

Quote:

Originally Posted by teksigns
can you attach the form and template your using from the Erwin's form hack so i dont have to recreate something .

My form is customized to my board so it probably wouldn't be of any use to you. You would have to re-write it over anyways so a fresh form would be the best IMO. Erwins form hack is a very easy and generic form. there isn't a lot of "guess work" to get it to look the way you want it just follow the instructions and you'll be fine.

Bro_Joey_Gowdy 07-20-2004 03:04 PM

clicks install


All times are GMT. The time now is 01:10 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.01698 seconds
  • Memory Usage 1,847KB
  • 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
  • (5)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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