vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=196244)

Razta 01-03-2012 10:08 PM

@cnredd
You must edit your usergroup and enable it :)

cnredd 01-04-2012 11:37 AM

Quote:

Originally Posted by Razta (Post 2283524)
@cnredd
You must edit your usergroup and enable it :)

Could you be more specific?...I changed my usergroup to this ("request" was already on "Yes")...

http://i189.photobucket.com/albums/z...ward_perms.jpg

And it's enabled...

http://i189.photobucket.com/albums/z...rd_enabled.jpg

cnredd 01-06-2012 09:20 PM

:( :confused:

cnredd 01-14-2012 05:38 AM

Really?...Over 12 days and 1 attempt at help?...:(

cnredd 01-17-2012 08:48 PM

Anyone?...:confused:

Wormow 01-20-2012 09:21 AM

Is there a way to keep the time they were awarded but remove the 'Issue Reason'? Because I don't add reasons in my awards (I leave it in the description) and it looks incredibly messy. I've seen other forums without it, just Awarded on: [insert time here]

squidsk 01-20-2012 10:10 PM

Just edit the appropriate style template.

Wormow 01-21-2012 01:25 PM

I have a lot of styles, that'd be a bit time consuming :(

bensonofjohn 02-12-2012 11:42 AM

I haven't searched all the way through the thread so sorry if this has been covered. One of the forum moderators contacted me this week to say they couldn't issue and award as they kept getting a syntax error. I logged in as moderator and had the same problem which was instantly recognisable as an error due to the user having a ' in their name. Trying from the admin section succeeded comparing the award.php file in the modcp and admincp it appears that the admin php file has been modified to escape the user's names but this has been missed out in the modcp file.

squidsk 02-12-2012 04:21 PM

Quote:

Originally Posted by Wormow (Post 2290549)
I have a lot of styles, that'd be a bit time consuming :(

Unless you've edited the template in all styles you should just be able to edit the root style's or worst case the master style's version of the template. The changes will be inherited by all child styles that do not modify the template themselves.

mk craig 42 02-13-2012 12:51 AM

1 Attachment(s)
Okay, so I always attempt things myself before seeking help, I usually succeed, after various hours.. However I've been at this now for coming up to 4 hours now and I'm baffled.

Attached is a file of the tab "My Awards" - My aim is to remove the "Icons" section, and simply just have "Image" "Description" and "Actions"

Image would be the image
Description would be the name of the award and date issued and reason issued
& actions would be Recommend & Request link

Would be GREAT if someone could help me on this! Let me know if you need any of my templates, but here is my awards_userawards_bit template

PHP Code:

<tr>

<if 
condition="$vboptions[aw_showicon]">
    <
td class="$bgclassalign="center">
        <
img src="$award[award_icon_url]border="0">
    </
td>
</if>

<if 
condition="$vboptions[aw_showimage]">
    <
td class="$bgclassalign="center">
        <
a name="award$award[award_id]"></a>
        <
img src="$award[award_img_url]alt="$award[award_name]border="0">
    </
td>
</if>

<if 
condition="$vboptions[aw_showdesc]">
    <
td class="$bgclass"><b><a href="awards.php?do=viewaward&award_id=$award[award_id]">$award[award_name]</a></b>
        <
div class="smallfont">$award[award_desc]
        <
hr>
        
$vbphrase[award_name]: <b>$award[award_name]</b><br>
        
$vbphrase[award_description]: <i><b>$award[award_desc]
        </
div>
    </
td>
</if>

<if 
condition="$vboptions[aw_actioncolumn]">
    <
td class="$bgclassalign="center" nowrap>
<if 
condition="$vboptions[aw_requestaward]">
<if 
condition="$award[award_allowrequest]">
        <
a href="request_award.php?$session[sessionurl]award_id=$award[award_id]">$vbphrase[request_award]</a>
</if>
</if>
<if 
condition="$vboptions[aw_recommendaward]">
<if 
condition="$award[award_allowrecommend]">
        <
br /><a href="recommend_award.php?$session[sessionurl]award_id=$award[award_id]">$vbphrase[award_recommend_award]</a>
</if>
</if>

    </
td>
</if>

</
tr

and this one is the original that works, but not really how I want it

PHP Code:

<tr>
    <
td class="$bgclassalign="center">
        <
img src="$award[award_icon_url]border="0">
    </
td>

    <
td class="$bgclassalign="center">
        <
a href="awards.php?$session[sessionurl]#award$award[award_id]">
        <
img src="$award[award_img_url]border="0"></a>
    </
td>

    <
td class="$bgclassvalign="top">
        <
a name="aw_issue$award[issue_id]"></a>
        
$vbphrase[award_name]: <b>$award[award_name]</b><br>
        
$vbphrase[award_description]: <i><b>$award[award_desc]</b></i>

        <
fieldset class="fieldset">
            <
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
            <
tr>
                <
td>
                    <
i>$vbphrase[award_reason]: $award[issue_reason]</i><br>
                    <
i>$vbphrase[award_time]: $award_issue_date $award_issue_time
                
</td>
            </
tr>
            </
table>
        </
fieldset>

    </
td>
</
tr


Tree Guardian 03-09-2012 04:07 PM

Is it possible or anyone would know how to implement statistics of awards given to members,
just which member has how many awards?

Thanks in advance.

Hamma 03-24-2012 05:13 PM

Is there a way to display x awards on a line then do a line break in postbit?

HazeCork 04-03-2012 05:27 PM

I still receive this issue:

There's some error when sending your award request. Please contact site's administrator for assistant.

And the usergroup settings are fine.

Taleempoint 05-21-2012 10:32 PM

thankx

Fireballx 05-24-2012 06:55 AM

hi. installed. but have a problem that award manager is not showing in the admincp sidebar. Its showing in the settings option and in modcp, but cant see it in admincp :P

squidsk 05-25-2012 04:05 PM

Did you upload all of the files from the upload folder into your forum root? It sounds like the xml file for cpnav (in the includes directory I believe) did not get uploaded.

Fireballx 05-26-2012 09:58 AM

Quote:

Originally Posted by squidsk (Post 2332717)
Did you upload all of the files from the upload folder into your forum root? It sounds like the xml file for cpnav (in the includes directory I believe) did not get uploaded.

Yes, that was the problem. Thanks a lot :)

Irishnotsane 06-10-2012 08:05 PM

I've installed this many times on different forums, and I can't figure out why I get a DB error on this one.. I run 3.8.4 Patch 10 I believe. Some help would be great as I really need this modification! Thanks


Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                                SELECT a.*, au.*
                                FROM award a, award_user au
                                WHERE (au.userid = 25) AND (a.award_id=au.award_id) AND (a.award_active=1)
                                ORDER BY issue_time desc;

MySQL Error  : Table 'forum.award' doesn't exist
Error Number  : 1146
Request Date  : Monday, June 11th 2012 @ 04:02:46 AM
Error Date    : Monday, June 11th 2012 @ 04:02:46 AM
Script        : http://forum.mysite.com/showthread.php?t=29
Referrer      :
IP Address    : 173.245.53.65
Username      : Myusername
Classname    : vB_Database
MySQL Version : 5.5.20-log


Lon 06-11-2012 06:47 AM

Quote:

Originally Posted by Irishnotsane (Post 2338537)
I've installed this many times on different forums, and I can't figure out why I get a DB error on this one.. I run 3.8.4 Patch 10 I believe. Some help would be great as I really need this modification! Thanks


Code:

Database error in vBulletin 3.8.4:

Invalid SQL:

                                SELECT a.*, au.*
                                FROM award a, award_user au
                                WHERE (au.userid = 25) AND (a.award_id=au.award_id) AND (a.award_active=1)
                                ORDER BY issue_time desc;

MySQL Error  : Table 'forum.award' doesn't exist
Error Number  : 1146
Request Date  : Monday, June 11th 2012 @ 04:02:46 AM
Error Date    : Monday, June 11th 2012 @ 04:02:46 AM
Script        : http://forum.mysite.com/showthread.php?t=29
Referrer      :
IP Address    : 173.245.53.65
Username      : Myusername
Classname    : vB_Database
MySQL Version : 5.5.20-log


It seems in the new PhPMyAdmin version/MySQL, changes were made that affected the way queries were ran and now isn't compatible with the newest version.

You either have to alter the query within the XML or create the tables and columns manually until a fix is made.

Irishnotsane 06-11-2012 06:51 PM

Quote:

Originally Posted by Lon (Post 2338645)
It seems in the new PhPMyAdmin version/MySQL, changes were made that affected the way queries were ran and now isn't compatible with the newest version.

You either have to alter the query within the XML or create the tables and columns manually until a fix is made.

Thanks so much for the reply. I was kind of half not expecting one.
I know this is a long shot, but is there any chance you know how I can do this?

squidsk 06-12-2012 07:12 PM

Well looking at the error it looks like you're trying to view the awards.php page without first installing the plugin. That query that its complaining about is a perfectly valid query in mysql 5.5 so it isn't that mysql doesn't support the query.

What steps precisely did you take to install the plugin?

Irishnotsane 06-13-2012 02:23 AM

I uploaded the files into FTP

then I uploaded the XML file...

squidsk 06-13-2012 04:03 PM

Is the product actually listed on your manage plugin page in admincp? Were there any errors/warnings when you uploaded the XML?

I think its a problem with the install script. Try replacing all instances of Type=MyISM with Engine=MyISM in the XML and re-install.

Irishnotsane 06-13-2012 08:46 PM

Thank you so much squidsk!

Changing Type into Engine seemed to do the trick perfectly, cheers buddy!

Parker123 07-18-2012 10:08 AM

Is anyone else getting this error?
Quote:

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/starthab/public_html/forum/includes/class_core.php on line 2552
The system is still working, we can give awards and everything but the error is there. I believe it is due to the security patch 3 that has been released. Let me know if you are able to help. Thanks

legion! 07-23-2012 11:11 PM

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home/hoodlege/public_html/forums/awards.php:98) in /home/hoodlege/public_html/forums/includes/adminfunctions.php on line 1829

thats the eror i get when i try to access the awards.php page

pachel 08-14-2012 06:33 PM

Quote:

Originally Posted by legion! (Post 2350899)
Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home/hoodlege/public_html/forums/awards.php:98) in /home/hoodlege/public_html/forums/includes/adminfunctions.php on line 1829

thats the eror i get when i try to access the awards.php page

Above error excists.... it doesn't work proper anymore....

squidsk 08-19-2012 01:23 AM

Quote:

Originally Posted by Parker123 (Post 2349221)
Is anyone else getting this error?


The system is still working, we can give awards and everything but the error is there. I believe it is due to the security patch 3 that has been released. Let me know if you are able to help. Thanks

Has nothing to do with the patch, your version of php was updated and that form of code is now deprecated.

Quote:

Originally Posted by legion! (Post 2350899)
Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home/hoodlege/public_html/forums/awards.php:98) in /home/hoodlege/public_html/forums/includes/adminfunctions.php on line 1829

thats the eror i get when i try to access the awards.php page

Quote:

Originally Posted by pachel (Post 2356948)
Above error excists.... it doesn't work proper anymore....

Code:

function construct_depth_mark(. . .)
{
    <snip the code for the function>
}

Change that to the following:

Code:

if(!function_exists('construct_depth_mark'))
{
    function construct_depth_mark(. . .)
    {
        <snip the code for the function>
    }
}

That should fix the problem.

singabaloo 09-08-2012 05:35 AM

I was wondering if there was a way to give an award to a group of users. The Mod option only allows a single user at a time. Is there a way to add a list of users for an award, all with the same reason ?

The other question is whether another group, not just Mods, could manage the awards. Ideally on our board we have long tiem members, who may not be Mods, running challenges. It would be great if I could assign the management of an award to a single user who isn't a Mod.

squidsk 09-10-2012 05:36 AM

Quote:

Originally Posted by singabaloo (Post 2363596)
I was wondering if there was a way to give an award to a group of users. The Mod option only allows a single user at a time. Is there a way to add a list of users for an award, all with the same reason ?

The other question is whether another group, not just Mods, could manage the awards. Ideally on our board we have long tiem members, who may not be Mods, running challenges. It would be great if I could assign the management of an award to a single user who isn't a Mod.

No and no.

singabaloo 09-10-2012 06:09 AM

Quote:

Originally Posted by squidsk (Post 2364180)
No and no.

Thanks. Are these options available on the VB 4.x version of the Mod ?

squidsk 09-10-2012 07:49 PM

No they aren't.

pesclub 09-12-2012 02:37 PM

Hi where can I find the version 4.1.11 of this mod?

squidsk 09-12-2012 03:00 PM

Quote:

Originally Posted by pesclub (Post 2364808)
Hi where can I find the version 4.1.11 of this mod?

Its linked right at the top of the description of the mod.

SKIDROW 09-12-2012 09:08 PM

plz. medals for 4.2

squidsk 09-13-2012 02:20 AM

Quote:

Originally Posted by SKIDROW (Post 2364939)
plz. medals for 4.2

See the post right above yours.

Mobo 09-19-2012 12:44 AM

Any idea if the 4.x version is being worked on to fix the exploits?

Bojangles 09-19-2012 02:10 PM

As far as the 4.x version being quarantined for exploits.. I am glad this happened. Yesterday on my forums I got this database error e-mailed to me:

*DATABASE ERROR REMOVED BY BirdOPrey5*

Someone tried to do a SQL injection but got the users table wrong apparently. Pretty scary stuff.. I would recommend to anyone to remove the request_awards.php file until this can be fixed.

Mobo 09-19-2012 08:31 PM

Yep, I've pulled it from my 3 sites. It would be nice to know if anyone is working on it or if they are just waiting for vB5.


All times are GMT. The time now is 08:36 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.03102 seconds
  • Memory Usage 1,882KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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