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)

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.


All times are GMT. The time now is 11:01 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.01850 seconds
  • Memory Usage 1,789KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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