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)

AshokForums.com 11-14-2005 04:54 AM

Thanks... Its perfect now!

Annie^.^ 11-15-2005 01:41 AM

Hi all!
I have a little problem. The script is great, but the only thing is the awards not showing in the posting under the user name.

mtha 11-15-2005 11:24 AM

Quote:

Originally Posted by Annie^.^
Hi all!
I have a little problem. The script is great, but the only thing is the awards not showing in the posting under the user name.

did you edit the postbit (or postbit_legacy) template?

did you give user awards? (if not, it wont show up)

Annie^.^ 11-15-2005 12:33 PM

Thank you for your reply. That solved the problem. Silly me :)

dirtycrow 11-21-2005 04:10 AM

any idea why the award showcase would be displayed in everyones profile except for the admins?

FamilyCorner 11-21-2005 03:30 PM

Clicked Install, awesome hack! Thank you very much, I really appreciate it. This is going to save me soooooooo many headaches!

mtha 11-21-2005 05:27 PM

Quote:

Originally Posted by dirtycrow
any idea why the award showcase would be displayed in everyones profile except for the admins?

it should only be displayed in profile of those who HAVE awards, regardless he's admin or member

if admin doesnt have any award, then there's no showcase/

dirtycrow 11-21-2005 05:30 PM

Quote:

Originally Posted by mtha
it should only be displayed in profile of those who HAVE awards, regardless he's admin or member

if admin doesnt have any award, then there's no showcase/

the admin does have awards yet no showcase is viewable.

mtha 11-21-2005 07:31 PM

there's no reason for this, that I can think of right now

try: give more/remove awards to/from admin
give awards to other admins

check in MEMBER template, and see if the showcase is inside any condition that require usergroup not admin ...

dirtycrow 11-21-2005 10:39 PM

Quote:

Originally Posted by mtha
there's no reason for this, that I can think of right now

try: give more/remove awards to/from admin
give awards to other admins

check in MEMBER template, and see if the showcase is inside any condition that require usergroup not admin ...

tried and failed. can i shoot you an e-mail with a copy of my memberinfo template? perhaps you can spot something I'm missing.

Arto 11-22-2005 02:08 AM

I recently converted a phpBB forum to vBulletin and at the same time migrated members' medals from phpBB's Medal System Mod v2.1.0 by ycl6 to YAAS v2.0.5. As the SQL table schemas for both award mods are very similar, this was fairly painless and can be accomplished through executing a few simple SQL statements. What follows is a quick how-to which hopefully will be useful for others looking to avoid manually importing the medals :)

First off, it is presupposed that you've imported your phpBB forum's data to vB using Jelsoft's ImpEx, that the import session is still active (that is, the importuserid field needs to exist in vB's user table) and that you've installed YAAS. Additionally, the queries are written for a situation where phpBB and vB share the same database, phpBB with the table prefix phpbb_ and vB without a table prefix; adjust to your specific setup where necessary.

The SQL queries can be executed from vB's admin panel (if you have the permissions), phpMyAdmin or the MySQL command-line client. (Needless to say, if you don't know understand what the SQL statements do, or are unable to adapt them to your specific situation, don't execute them!)

To begin, the following SQL statement will convert all medals from phpBB to YAAS, preserving the same row identifiers (which means you may get clashes unless you first delete the included example award in YAAS):

Quote:

INSERT INTO award SELECT medal_id AS award_id, -1 AS award_cat_id, medal_name AS award_name, medal_description AS award_desc, medal_image AS award_icon_url, medal_image AS award_img_url, 1 AS award_icon_url FROM phpbb_medal;
Note that the awards are imported as un-categorized; you will need to manually assign them to an award category in YAAS's admin panel before they'll show up in vB's front end.

Next, you need to copy all the medal/award images from phpBB's medals/ directory to the images/medals/ directory under your vB installation. The image paths also need to be corrected in the database, which can be done with the following two SQL statements (replace the URL http://www.yourforumsite.com/forum/ with your vB forum's base URL):

Quote:

UPDATE award SET award_icon_url = CONCAT('http://www.yourforumsite.com/forum/images/', award_icon_url);
UPDATE award SET award_img_url = CONCAT('http://www.yourforumsite.com/forum/images/', award_img_url);
Finally, the following SQL statement will import all issued awards to YAAS, mapping from the phpBB user to the correct vB member through the aforementioned importuserid field:

Quote:

INSERT INTO award_user SELECT m.issue_id, m.medal_id AS award_id, u.userid AS userid, m.issue_reason, m.issue_time FROM phpbb_medal_user m LEFT JOIN user u ON m.user_id = u.importuserid;
That's all, folks :) Though I migrated from the Medal System Mod v2.1.0, the instructions will likely work for newer versions as well (and could be enhanced to import award categories as well, which were introduced in the Medal System Mod v2.2.0).

paulmjno 11-23-2005 02:57 PM

I installed this, then disabled it almost immediately. It was causing MySQL errors throughout the whole board, and when I clicked the Award Manager options.

Dollah 11-25-2005 02:03 AM

installed thanx

mtha 11-25-2005 05:16 AM

Quote:

Originally Posted by dirtycrow
tried and failed. can i shoot you an e-mail with a copy of my memberinfo template? perhaps you can spot something I'm missing.

you can email or PM me via my profile.

giving me your website would be good too, so I can take a look ...

Quote:

I installed this, then disabled it almost immediately. It was causing MySQL errors throughout the whole board, and when I clicked the Award Manager options.
I'm not awared of anything like this should happen. if you could provide me more information, it'd be more helpful

(if there's bug in the hack, or you do anything wrong with it)

FamilyCorner 11-26-2005 06:33 PM

Just my 2 cents, I installed this without any problems at all and it's been running beautifully for a week now. In fact now I am taking votes on the next award we should create :)

Thanks again!

TosaInu 11-26-2005 08:02 PM

Sorry if this is already mentioned and me missing it:

-allow users to display the awards the like most in topicview, while the others show in profile.

Say only 3 awards are displayed, a user has 5 awards. Right now the 3 oldest awards are displayed in topicview. It's quite possible that the user is most proud about his new awards (recent, harder to get) and wants to display those.

Then you also have modest types who want to show only one or none in topicview :)

trackpads 11-26-2005 10:24 PM

mtha!

Great hack man! I am using it extensively on my site. As a mil guy there are a few additions if you could for the next release!

1. Allow awards to be resorted by weight, for example, allow us to choose higher ranking awards and those will be listed higher in a members postbit and profile.

2. Allow members to resort awards themselves?

3. Allow admin to choose which awards have the 'request awards' link and which ones do not. For example some awards cannot be request such as the member of the month etc etc.

4. Allow/disallow certain awards for certain usergroups

5. Allow members to comment on others' awards (congrats etc etc)

And thanks for all the work on this!!!!

mtha 11-27-2005 02:18 AM

Quote:

Originally Posted by TosaInu
Sorry if this is already mentioned and me missing it:

-allow users to display the awards the like most in topicview, while the others show in profile.

Say only 3 awards are displayed, a user has 5 awards. Right now the 3 oldest awards are displayed in topicview. It's quite possible that the user is most proud about his new awards (recent, harder to get) and wants to display those.

Then you also have modest types who want to show only one or none in topicview :)

dont understand what you are saying. but I am re-ordering the awards, so that newest awards are displayed first.

mtha 11-27-2005 03:17 AM

WORKING!


Quote:

1. Allow awards to be resorted by weight, for example, allow us to choose higher ranking awards and those will be listed higher in a members postbit and profile.
Done, with options to sort
">Order by issued time (newest first)
">Order by issued time (oldest first)
">Order by Award Order (ASC)
">Order by Award Order (DESC)

Quote:

2. Allow members to resort awards themselves?
you mean those who view member profile, can resort awards, or member who has award, can set display order setting?


Quote:

3. Allow admin to choose which awards have the 'request awards' link and which ones do not. For example some awards cannot be request such as the member of the month etc etc.
this will require some changes in database, will look into it. I myself dont use (and dont like) the request award feature, if you want, I can add them in, but still, the feature will not be fully supported :)


Quote:

4. Allow/disallow certain awards for certain usergroups
What do you mean by allow/disallow ...?

You admins are responsible for giving out awards, and you need to decide which award giving to which member (belong to which group). right?
I dont see the point of doing it, in adminCP

Quote:

5. Allow members to comment on others' awards (congrats etc etc)
same as rating, ... good idea but I cant do it right now. maybe in the future :)

akanevsky 11-27-2005 12:10 PM

Nice hack! Installed.

mtha 11-28-2005 03:53 AM

Hack Version: 2.1.0.051127

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

[2.1.0] Display individual award with name of members who receive the award

UPGRADE:

- Upload all files in UPLOAD folder
- Delete /includes/setting.request_award.php
- Reconfig "Award System Settings" if you need to, especially if you use Award Request feature.
- Import/Overwrite YAAS Product

trackpads 11-28-2005 08:26 AM

Quote:

Originally Posted by mtha
Hack Version: 2.1.0.051127


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



[2.1.0] Display individual award with name of members who receive the award


UPGRADE:

- Upload all files in UPLOAD folder
- Delete /includes/setting.request_award.php
- Reconfig "Award System Settings" if you need to, especially if you use Award Request feature.
- Import/Overwrite YAAS Product

Excellent!!!!

Oap JTRipper 11-28-2005 11:00 AM

i get this error when setting the permissions to usergroups

mtha 11-28-2005 02:41 PM

Quote:

Originally Posted by Oap JTRipper
i get this error when setting the permissions to usergroups

hmm, I dont get the error on my forums.

do you have error in other hack?

Try this:

Remove bitfield_awards.xml from your includes/xml folder, then go back to your usergroup permission, change some other setting, and see if you still get the error.

add the file back, rebuild bitfields, and try again with different group.




Can anyone confirm this error?

trackpads 11-28-2005 02:42 PM

Quote:

Originally Posted by mtha
hmm, I dont get the error on my forums.

do you have error in other hack?

Try this:

Remove bitfield_awards.xml from your includes/xml folder, then go back to your usergroup permission, change some other setting, and see if you still get the error.

add the file back, rebuild bitfields, and try again with different group.




Can anyone confirm this error?

I got it but had to rebuild the bitfields, I had removed a different hack and it was 'lingering'. Rebuild the bitfields and you will be fine.

-Jason

EasyTarget 11-28-2005 03:47 PM

great hack thank you.

I was wondering if for future versions you could make it so you could also choose to award a usergroup a medal so that each member in that group could receive it instead of having to do it one by one? or maybe even the ability to award a medal to a usergroup instead of a user.

also combining this hack with the post award hack:
https://vborg.vbsupport.ru/showthread.php?t=92677

where you could give an award to a specific post or thread.

thanks again.

mtha 11-28-2005 03:52 PM

Version 2.1.1 - Add some checkng for errors before sending PMs (in issue awards and request award)

If you had 2.1.0 installed, you just need to replace
request_award.php and admincp/award.php
with the new files.
AND reimport XML product.

mtha 11-28-2005 03:54 PM

Quote:

Originally Posted by trackpads
I got it but had to rebuild the bitfields, I had removed a different hack and it was 'lingering'. Rebuild the bitfields and you will be fine.

-Jason

with vB 3.5.1, it rebuilds bitfield automatically. If you use vB 3.5.0, please rebuild bitfield.

Quote:

great hack thank you.

I was wondering if for future versions you could make it so you could also choose to award a usergroup a medal so that each member in that group could receive it instead of having to do it one by one? or maybe even the ability to award a medal to a usergroup instead of a user.

thanks again.
Interesting idea. i will think about it.

EasyTarget 11-28-2005 03:56 PM

sorry edited my post above with:

"also combining this hack with the post award hack:
https://vborg.vbsupport.ru/showthread.php?t=92677

where you could give an award to a specific post or thread.

thanks again"

and just wanted to let you know you did a nice job on the readme as well.

mtha 11-28-2005 04:15 PM

Quote:

Originally Posted by EasyTarget
sorry edited my post above with:

"also combining this hack with the post award hack:
https://vborg.vbsupport.ru/showthread.php?t=92677

where you could give an award to a specific post or thread.

thanks again"

and just wanted to let you know you did a nice job on the readme as well.

the scheme is different, so it'd be easier to leave them two seperate award hack, especially when someone else already release one.

EasyTarget 11-28-2005 04:22 PM

ok. they seem to work ok together anyways. I did post some suggestions in the other thread for the post award hack which would make it very distinct from what he's done so far. (to actually make it more like yours with the award categories and admincp integration and the versatility which your hack allows)

TosaInu 11-28-2005 04:59 PM

This update sounds very nice.

Quote:

- [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.
When each user can do this himself for his own awards, then that solves what I asked. In other words: allow each user to display his favourite awards in postbit.

I'll upgrade tonight.

Upgrade is so fast and easy: great release!

Oap JTRipper 11-28-2005 05:36 PM

cheers works fine now

mtha 11-28-2005 06:16 PM

Hack Version: 2.1.2.051128

[2.1.2] Collapse award categories and awards showcase
[2.1.2] Rearrange some templates

UPGRADE:

- Upload all files in UPLOAD folder
- Import/Overwrite YAAS Product
- Reedit templates (MEMBERINFO, postbit/postbit_legacy, memberlist_resultsbit) (not required but you should edit for collapse to function, or phrase cleanup)

mtha 11-28-2005 06:18 PM

Quote:

Originally Posted by TosaInu
This update sounds very nice.

When each user can do this himself for his own awards, then that solves what I asked. In other words: allow each user to display his favourite awards in postbit.

I'll upgrade tonight.

Upgrade is so fast and easy: great release!

dont like this idea for each user to de-activate award very much.

for user to set which award to show first, i will think about it.

dark dragun 11-29-2005 05:40 AM

Sorry I need a pointer or two on this. Its installed and working but the request arnt showing up in the specified thread, or forum. This is set through the Admincp.

In your instructions, you say setup settings.request_award.php to use this feature, but its not in the zip file that up for download.

My question is do i setup in admincp or use the file if i can find it?

If the admincp, then I can not get it to work right. it will send pm to user i pick, but thats it nothing else go 'es through. Any thoughts

hydrostatic 11-29-2005 05:48 AM

Small thing: in template awards_request_form,
HTML Code:

<legend>$vphrase[award_description]</legend>
needs to be
HTML Code:

<legend>$vbphrase[award_description]</legend>

mtha 11-29-2005 05:52 AM

Quote:

Originally Posted by dark dragun
Sorry I need a pointer or two on this. Its installed and working but the request arnt showing up in the specified thread, or forum. This is set through the Admincp.

In your instructions, you say setup settings.request_award.php to use this feature, but its not in the zip file that up for download.

My question is do i setup in admincp or use the file if i can find it?

If the admincp, then I can not get it to work right. it will send pm to user i pick, but thats it nothing else go 'es through. Any thoughts

i think i did remove the thing say edit settings...., i put edit in AdminCP instead, did I?

you dont need to look for that setting file, in the latest version.

my version work fine. check your settings and try again.

dark dragun 11-29-2005 06:19 AM

Its still in your first or 2nd post. I am setting thread id to 1. thats all i put in is 1
I tried it again and got pm, email nothing else. please come and try it at my site.
user name:tester
pass:tester
http://www.almightyassassins.com/Socom3/awards.php

mtha 11-29-2005 02:06 PM

Quote:

Originally Posted by hydrostatic
Small thing: in template awards_request_form,
HTML Code:

<legend>$vphrase[award_description]</legend>
needs to be
HTML Code:

<legend>$vbphrase[award_description]</legend>

fixed, thanks

Quote:

Originally Posted by dark dragun
Its still in your first or 2nd post. I am setting thread id to 1. thats all i put in is 1
I tried it again and got pm, email nothing else. please come and try it at my site.
user name:tester
pass:tester
http://www.almightyassassins.com/Socom3/awards.php

The request is posted to the thread #1 here:
http://www.almightyassassins.com/Soc...thread.php?t=1
http://www.almightyassassins.com/Soc...?p=303#post303

and forum #4 here:
http://www.almightyassassins.com/Soc...isplay.php?f=4
http://www.almightyassassins.com/Soc...hread.php?t=93


It's working fine.


All times are GMT. The time now is 07:51 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.01871 seconds
  • Memory Usage 1,864KB
  • 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
  • (4)bbcode_html_printable
  • (26)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