vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Yet Another Awards System 3.5 v2.1.2 (https://vborg.vbsupport.ru/showthread.php?t=94836)

mtha 08-21-2005 10:00 PM

Yet Another Awards System 3.5 v2.1.2
 
Yet Another Award System 2.1.2 ? by HacNho
Copyright (C) 2005 by HacNho, All rights reserved.
Hack Version: 2.1.2.051128
Compatible vB version: 3.5.x
Support: https://vborg.vbsupport.ru/showthread.php?t=94836

For vBulletin 3.0.x, please check the other version:
https://vborg.vbsupport.ru/showthread.php?t=78934

DESCRIPTION:
This is a Medals/Awards system. Admin can give members awards, and award icons will be displayed in member's profile, posts, as well as in a award list.

FEATURES:
In ACP
- Can Create/Edit/Delete/Reorder categories/sub-categories in ACP (with category name and description)
- Can Create/Edit/Delete awards in ACP (with Award Name, Description, Icon URL, Image URL)
- Can Move one (or all) award(s) from one category to another
- Can set some awards un-classified (not displayed for public)
- Can re-order awards in awards showcase
+ Issue awards to members, based on username or userid, with Issue Reason
+ Remove awards from members
- [1.2] Options to set number of awards displayed in postbit
- [1.2] Options to turn on/off showing award icon, images, award requests in awards list, awards icons in memberlist
- [2.1.0] Options to re-order awards in postbit and member's profile
>Order by issued time (newest first)
>Order by issued time (oldest first)
>Order by Award Order (ASC)
>Order by Award Order (DESC)
- [2.1.0] Option to set award in-active. Inactive awards will not be listed in award list. However, it will still be displayed in user's profile, if member has the award.
- [2.1.0] Option to set "Request Award" option for each award. (Need "Show request award column" option ON to see the request link)
- [2.1.0] Set custom usergroup permission, to set which group can request award (access request award page)
- [2.1.0] Option to limit maximum number of users for each award displayed in awards list
- [2.1.0] Change award_request options, all options are set in AdminCP, template and phrase based. Totally cumsomizable
- [2.1.0] Option to send PM to use when he receives an award.

Front page

- Display awards list in with: Award Name, Description, Icon, Image, and Members who get each award.
- Display awards showcase in profile, with Award information, Issue time and reason
- Display award icons in postbit (showthread, showpost, announcement, private)
[1.2] Display limit awards in postbit, with total awards, and a link to awards showcase in member profiles.
[1.2] Award request, link to a form sending to email/PM/new thead or post (based on Dr Erwin Loh's Form hack)
[1.2] Display award on Memberlist page (by trulylowcarb)
[2.1.0] Display individual award with name of members who receive the award
[2.1.2] Collapse award categories and awards showcase

CHANGES/MODIFICATION:
(to do)
- Files to add: 6 (/awards.php, /award_request.php, /admincp/award.php, /admincp/award_cat.php, /includes/xml/postbbit_awards.xml, /includes/xml/cpnav_awards.xml)
- Templates to edit: 5 (MEMBERINFO, postbit, postbit_legacy, memberlist, memberlist_resultsbit)
(automatic)
- Tables to add: 3 (award, award_user, award_cat)
- Templates to add: 9 ('AWARDS', 'awards_awardbit','awards_awardusers_bit','awards_ bit','awards_userawards_bit','awards_category','aw ards_categorybit', 'awards_request_form', 'awards_request_formanswers')
- Phrases to add: xxx

DIFFICULTY:
Easy
Time: about 2 minutes
Installer is included (1 product XML)

HISTORY:
2005.11.28: 2.1.1 - Add check for errors before sending PMs
2005.11.27: 2.1.0 - Add functions, Change award request options
2005.11.12: 2.0.6 - remove $this->post['userid'] check in showthread
2005.11.02: 2.0.5 - fix error when display non-user's single post
2005.10.16: 2.0.4 - fix display award after quickreply
2005.10.11: 2.0.3 - fix Display award in PM and announcement, change award request template (thanks y2krazy) (https://vborg.vbsupport.ru/showpost....9&postcount=69)
2005.10.07: Allow edit issued award
2005.09.05: Version 2.0.1 bug fix
2005.08.22: Version 2.0.0 for vBulletin 3.5.0
2005.08.18: Version 1.2.12005.04.14: Version 1.2.02005.04.03: Version 1.1
2005.03.29: Version 1.0.1b
2005.03.28: Version 1.0.1
2005.03.28: Initial release

FUTURE PLAN:
- Allow comments on user's award (by Arial)
- Allow voting on user's award (by Arial)
- Allow members to resort awards themselves <trackpad/TosaInu>

<done>
x. PM (/Email) user when he/she get an award. <2.1.0>
x. Allow awards to be resorted <trackpads> <2.1.0>
x. Allow admin to choose which awards have the 'request awards' link <trackpads> <2.1.0>
x. Allow/disallow certain awards for certain usergroups <trackpads> <2.1.0>


ADD ONs
How-to for importing from phpBB's Medal System Mod
https://vborg.vbsupport.ru/showpost....&postcount=171

CREDIT:

Idea has been carried on by many people, here are some:
- Lesane for original Award hack for vB2, eventhough I've never use his hack
- AnimeWebby for Awards/ Medals/ Cards Hack [vB3], which I write new code based on his.
- Mac ycl6 for phpBB Medal System for phpBB forum
- Dr Erwin Loh for FORM TO THREAD/ FORUM/ PM/ EMAIL hack
- and all others for supports and ideas


IMPORTANT:
- BACKUP modified files and templates before making changes.
- Backup database is recommended.
- This hack is NOT compatible with AnimeWebby's Awards/Medals/CardsHack [vB3], you need to UNINSTALL his hack, before installing this one.

INSTALLATION:
Read INSTALL.txt

UPGRADE:
Reimport XML product
Upload files if neccessary (keep the configuration)

upgrade 2.1.1: Reupload files + Reimport XML product
upgrade 2.1.2: Reupload files + Reimport XML product + reEdit templates (MEMBERINFO, postbit/postbit_legacy, memberlist_resultsbit)


UNINSTALL:
Click Uninstall in Product Manager, and undo the template changes

MANUAL:
Included in zip file

SCREENSHOT:
https://vborg.vbsupport.ru/showpost....25&postcount=2

DEMO:
vB 3.5.x
<removed on owners request>

vB 3.0.x
http://www.global-army.com/forum/awards.php
http://www.global-army.com/forum/sho...=9253#post9253
http://www.global-army.com/forum/member.php?u=22#award

DONATIONS:
YAAS is free, but a donation of any amount is much appreciated.
https://vborg.vbsupport.ru/external/2010/02/12.gif

SERVICE:
Installation service is available upon request

mtha 08-22-2005 12:43 PM

Hack Version: 2.0.0.050822
Compatible vB version: 3.5.0
Support: https://vborg.vbsupport.ru/showthread.php?t=94836


Installation:

Step 1: Unzip the files to a directory on your computer.

Step 2: Upload the files to your forums directory.
Directory structure:
{ROOT}/awards.php
{ROOT}/award_request.php

{ROOT}/admincp/award.php
{ROOT}/admincp/award_cat.php

{ROOT}/includes/settings.request_award.php
{ROOT}/includes/xml/cpnav_awards.xml

{ROOT}/images/medals/*

Step 3: Import the YAAS Product into your plugin system
- Go to AdminCP/Plugin System/Manage Products/[Add/Import Product]
- Select the file: product-yet_another_award_system.xml
- Click Import

The installer will create new tables for awards, add new phrases, and templates to your database.


Step 4. Edit templates. Read instruction in /docs/awards_install_template.html

Step 5 (optional): If you use Award Request function, configure
{ROOT}/includes/settings.request_award.php and re-upload the file. Read the file for detail instruction.

Step 6: Enjoy your new hack, give me feedback, and click install.

chikkoo 08-22-2005 12:54 PM

eagerly awaiting for this..
love to know what is the difference.

mtha 08-22-2005 01:22 PM

Not anything different in functions, I just transport everything for the hack to work with vB 3.5.0.

Biker_GA 08-22-2005 02:12 PM

Question.... In your install.txt file you state:

Quote:

Step 5: Configure {ROOT}/includes/settings.award.php and re-upload the file.
What needs to be configured?

mtha 08-22-2005 02:24 PM

If you use "Award Request" form, you can set configuration on how the form processed.

If you dont use the form, you dont need to worry about it :)

wcbryant 08-22-2005 02:42 PM

Will this extension recognize awards given from/through AnimeWebby's 3.0.x version of his hack? Meaning can I install yours when I move my site to 3.5.0, and have all the old awards still recognized by their database entries?

If not, is there a way to convert the old awards to your new system?

Biker_GA 08-22-2005 03:13 PM

Did all the file edits, installed the product and got this when clicking on a post:

Quote:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:

SELECT a.*, au.*, post.userid, post.postid
FROM post AS post
INNER JOIN award_user AS au ON (au.userid=post.userid)
INNER JOIN award AS a ON (a.award_id=au.award_id)
WHERE post.postid IN (0,336683,336686,336689,336700)

GROUP BY au.issue_id;

MySQL Error : Unknown column 'a.award_id' in 'on clause'
Error Number : 1054
Date : Monday, August 22nd 2005 @ 12:10:33 PM
Script : http://www.*******.org/forum/showthread.php?p=336700
Referrer : http://www.*******.org/forum/search.php?searchid=338831
IP Address : **.**.**.**
Username : Biker
Classname : vb_database

ForYou 08-22-2005 04:07 PM

Hello ,

When I was Modify on the MEMBERINFO and need to Save , there is this Message

------------------------

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/dardasha/public_html/montada/includes/adminfunctions_template.php(3510) : eval()'d code on line 349

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

----------------------------

Regards

Biker_GA 08-22-2005 04:09 PM

There are two /if statements at the end of that edit. Remove one of them.

oman 08-22-2005 04:18 PM

thanx dear mtha

for upgrade this hack

Vizionz 08-22-2005 04:23 PM

Code:

<!-- [START HACK='Yet Another Awards System hack' AUTHOR='HacNho'] -->
            <if condition="$show['userawards']">
            <fieldset class="fieldset">
                <legend>$vbphrase[award_showcase]</legend>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                    <td align="center">
                        $userawards
                    </td>
                </tr>
                </table>
            </fieldset>
            </if>                    * remove that --> </if>*
                      <!-- [END HACK='Yet Another Awards System hack' AUTHOR='HacNho'] -->

i get a parse error when i try adding that first template edit

note just read that post above


The admincp add award section and edit award section should have a drop down that reads from the medals directory and shows a preview of each medal

ForYou 08-22-2005 05:45 PM

Hello ,

When i need to request Award , there is error message

Warning: main(/home/SITENAME/public_html/montada./includes/settings.request_award.php): failed to open stream: No such file or directory in /request_award.php on line 23

Fatal error: main(): Failed opening required '/home/SITENAME/public_html/montada./includes/settings.request_award.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/SITENAME/public_html/montada/request_award.php on line 23

Regards

ForYou 08-22-2005 06:31 PM

Hello ,

I can't see the Issue time ,

How can i let Issue time appear ,

Regards

ForYou 08-22-2005 07:06 PM

Hello ,

When i put NO here ,

Display Icon in Awards List
Do you want to show award icon column in Awards list page

Look in the photo what happend ,

https://vborg.vbsupport.ru/

But the Correct in this photo ,

http://www.dardasha.net/imagehost/up...23398dc0bb.png

Please Help

Regards

mtha 08-22-2005 08:41 PM

Quote:

Originally Posted by wcbryant
Will this extension recognize awards given from/through AnimeWebby's 3.0.x version of his hack? Meaning can I install yours when I move my site to 3.5.0, and have all the old awards still recognized by their database entries?

If not, is there a way to convert the old awards to your new system?


No, my database structure is different from his. There's no convertor yet available, but it can be done...

Quote:

Originally Posted by Biker_GA
Did all the file edits, installed the product and got this when clicking on a post:
Code:

MySQL Error  : Unknown column 'a.award_id' in 'on clause'
Error Number : 1054
Date        : Monday, August 22nd 2005 @ 12:10:33 PM
Script      : http://www.*******.org/forum/showthread.php?p=336700


Do you still get the error? check your database and see if you have the "award" table

Quote:

There are two /if statements at the end of that edit. Remove one of them.
yeah, I was copying from vB compare, and it wasnt good. the new file was updated.

the first edit just had one </if> and the second one just has one </table> at the end.

Quote:

Originally Posted by ForYou
Hello ,

When i need to request Award , there is error message

Warning: main(/home/SITENAME/public_html/montada./includes/settings.request_award.php): failed to open stream: No such file or directory in /request_award.php on line 23

Fatal error: main(): Failed opening required '/home/SITENAME/public_html/montada./includes/settings.request_award.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/SITENAME/public_html/montada/request_award.php on line 23

Regards

Did you have settings.request_award.php file uploaded to your includes folder? if not please do so. If you already have it up there, replace the request_award.php by the new one of the zip file

Quote:

Originally Posted by ForYou
Hello ,

When i put NO here ,

Display Icon in Awards List
Do you want to show award icon column in Awards list page

Look in the photo what happend ,

Will look into that :) thanks

ForYou 08-22-2005 09:02 PM

Quote:

Originally Posted by ForYou
Issue time

Hello ,

What about the Issue time , I can't see it

Regards

mtha 08-22-2005 09:26 PM

Quote:

Originally Posted by ForYou
Hello ,

When i put NO here ,

Display Icon in Awards List
Do you want to show award icon column in Awards list page

Look in the photo what happend ,

http://www.dardasha.net/imagehost/up...486aeaffdb.png

The bug is fixed and updated in the zip file

If you dont want to import the whole product again, you can import the attached plugin for TIME to show, and

replace the second part (above $footer) in MEMBERINFO template by


HTML Code:

<!-- Award detail list -->
<if condition="$show['userawards']">
<a name="award">
<br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="tcat" colspan="3" align="center">$vbphrase[award_showcase]
        </tr>
        <tr>
<if condition="$vboptions[aw_showicon]">
                <td class="thead" nowrap>$vbphrase[award_icon]
</if>
<if condition="$vboptions[aw_showimage]">
                <td class="thead" nowrap>$vbphrase[award_image]
</if>
                <td class="thead" width="100%">$vbphrase[award_description]
        </tr>
        $userawardslistbits
</table>
</if>
<!-- /Award detail list -->


Sorry for the errors, my first hack in 3.5.0 :)

wcbryant 08-22-2005 09:32 PM

Quote:

Originally Posted by mtha
No, my database structure is different from his. There's no convertor yet available, but it can be done...

I think that would be a huge bonus if it could be done. Several hundred different rewards have been given out on my site, so it wouldn't be practical to try and just rebuild everything manually, but I'd really like to use your hack once I move to 3.5.0.

I'll watch this thread closely, if anyone can put that together, I'll be first in line to put it to good use. :)

mtha 08-22-2005 09:40 PM

Quote:

Originally Posted by wcbryant
I think that would be a huge bonus if it could be done. Several hundred different rewards have been given out on my site, so it wouldn't be practical to try and just rebuild everything manually, but I'd really like to use your hack once I move to 3.5.0.

I'll watch this thread closely, if anyone can put that together, I'll be first in line to put it to good use. :)

I dont have his hack installed, so it'd be great if you can send me your tables that his hack created, i can look into it and write something for you, or I can work directly on your database.

ForYou 08-22-2005 09:59 PM

Hello Sir ,

I was Do what you say about the issue time , but there is problem now , whn i add the Award for any user it will be add 2 time , not for one Award it will be reapet to another one ,

I hope u understand me ,

and ther is another thing , I can see the issue time in user profile but i can't see it in AdminCp and the award mange ,

Regards

ForYou 08-22-2005 10:18 PM

Hello ,

Look at the duplicate Award down , but i was just add one Award ,

http://www.dardasha.net/imagehost/up...4c0702be2e.jpg

regards

mtha 08-22-2005 10:50 PM

Quote:

Originally Posted by ForYou
Hello ,

Look at the duplicate Award down , but i was just add one Award ,

http://www.dardasha.net/imagehost/up...4c0702be2e.jpg

regards

Sorry, you need to delete the plugin called "YAAS - member_complete" before import.

The plugin system doesnt know if some plugin is duplicated :)

for the time in admincp, re-upload the award.php in adminCP folder.

ForYou 08-22-2005 11:07 PM

Hello Sir ,

You r Right :)

Evry thing is OK now ,

Regards

Biker_GA 08-23-2005 05:41 AM

**sigh** OK. No longer getting a DB error, however, there is nothing showing up in the postbit to add or remove an award. I did reapply all template changes.

Biker_GA 08-23-2005 05:48 AM

You also need to fix the description that appears in the Product page. It's nothing more than a URL back to this forum.

Roxie 08-23-2005 10:23 PM

I get the same error as Biker GA.

mtha 08-24-2005 12:52 AM

Quote:

Originally Posted by Biker_GA
**sigh** OK. No longer getting a DB error, however, there is nothing showing up in the postbit to add or remove an award. I did reapply all template changes.

seems like it's working. i didnt see any problem yet.

... it looks like you didnt give any award to anyone, what should be displayed in postbit?

You need to assign awards to your members, in order to see them display in his postbit. it will only display awards on someone's postbit if and only if he/she has some.

How to add awards, please read over the manual, and add in your admincp.
/docs/YAAS_Manual.html#item4
IV. How to Use YAAS in Admin Control Panel


Quote:

Originally Posted by Biker_GA
You also need to fix the description that appears in the Product page. It's nothing more than a URL back to this forum.

what should I fix in the description? I just put the URL, so anyone can come here and read for more information :)

Roxie 08-24-2005 01:19 AM

Biker GA ... what did you do to get rid of that database error?

Biker_GA 08-24-2005 05:17 AM

Roxie, I uninstalled, downloaded the new upgrade, and reloaded.

mtha - There is no way to assign an award. Nothing shows. Could there be a conflict with the "in reply to" plugin?

mtha 08-24-2005 06:48 AM

Quote:

Originally Posted by Biker_GA
mtha - There is no way to assign an award. Nothing shows. Could there be a conflict with the "in reply to" plugin?

Are you sure you did the right thing?
Did you go to your forum AdminCP?
Did you get to Award System section in AdminCP? and then go to Award Manager
Did you get to [Manage] link in there, and to get to this:

https://vborg.vbsupport.ru/attachmen...chmentid=33725

If not so, try this link, on your domain

http://www.globalaffairs.org//forum/...ers&award_id=1
and put your userid in there.


Tell me how far did you go, and what error did you get.

Biker_GA 08-24-2005 07:04 AM

:o Ahhhhhhhhhh. OK. I think I was confused about something else. The manager is there and works just fine.

oman 08-24-2005 07:18 AM

hi thanx again

safiel 08-24-2005 08:49 PM

I got SQL error as well

PHP Code:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:

            
SELECT a.*, au.*
            
FROM award AS a
            LEFT JOIN award_user 
AS au ON (a.award_id=au.award_id)
            
WHERE (au.userid 192)
            
ORDER BY au.issue_time

Most likely because you are using the same table name as AnimeWebby's hack for 3.0x. Might be good to rename your table or mention this might happen. :)

mtha 08-24-2005 09:24 PM

Quote:

Originally Posted by safiel
I got SQL error as well

PHP Code:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:

            
SELECT a.*, au.*
            
FROM award AS a
            LEFT JOIN award_user 
AS au ON (a.award_id=au.award_id)
            
WHERE (au.userid 192)
            
ORDER BY au.issue_time

Most likely because you are using the same table name as AnimeWebby's hack for 3.0x. Might be good to rename your table or mention this might happen. :)

I think I do mention that this hack does not compatible with Webby's award hack, and you cant use both at the same time.

Quote:


IMPORTANT:
- BACKUP modified files and templates before making changes.
- Backup database is recommended.
- This hack is NOT compatible with AnimeWebby's Awards/Medals/CardsHack [vB3], you need to UNINSTALL his hack, before installing this one.
there's been a number of people using this hack already, and I wouldnt want to change and ask all of them to change, unless it's critical.

Roxie 08-26-2005 02:22 AM

AHA! That must be my issue. Now to figure out how to uninstall his. :D

Roxie 08-26-2005 03:05 AM

Got it working, however, I'm getting broken images in the postbit, profile and memberlist. The awards show fine on the award page and in the cp.

It would be great to be able to edit a users award! :D

mtha 08-26-2005 11:36 AM

Quote:

Originally Posted by Roxie
Got it working, however, I'm getting broken images in the postbit, profile and memberlist. The awards show fine on the award page and in the cp.

It would be great to be able to edit a users award! :D

please use full image URL for award icon and image. if it doesnt work, please provide more information. I cannot give support with just knowind that it doesnt work, or it doesnt show something.

Roxie 08-26-2005 02:17 PM

I am using full image path. I don't know how to describe it better than "the image isn't showing." What information do you need? Everything else works just fine.

Biker_GA 08-26-2005 02:26 PM

Silly question of the day.. You did upload the images to the proper directory?


All times are GMT. The time now is 06:32 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.02937 seconds
  • Memory Usage 1,903KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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