vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=232684)

odie3 09-01-2011 10:47 AM

Edit: nm this is for Profile (which I assume you fixed from your edit) not sure what you mean about awards - might want to post a screen shot for the Dev.

Check this this post out on a profile issue: https://vborg.vbsupport.ru/showthrea...01#post2189701

Quote:

Originally Posted by n00bl3t (Post 2240680)
Awesome; thanks odie3!

I have the mod running and working now.

NOW I have a new problem however; and I'm not sure what is creating this one because this time it isn't telling me. Basically now my site looks all messed up in 2 places: [S]On ones profile page[/S] and on the awards.php page.

It is like the skin/template is all screwed up.

Any solutions to this?

Thanks for all the help.

EDIT: Fixed the messed up template via ones profile page. The template is still messed up though for the awards.php link and when requesting/recommending awards. Really need that one since people will be focusing on those pages when they want new awards. I'm guessing it has something to do with me using a custom style since when I flip to the default one it looks fine. Bummer...


n00bl3t 09-01-2011 02:41 PM

Yeah the link is the one I used to fix the profile one.

I will post Screen Shots later of the other one later (in a rush to school :( )

It is the page basically where you see the list of awards and users can request or recommend awards. Again I am guessing it is because of my custom style because the default vbulletin style looks just fine. :(

odie3 09-01-2011 02:51 PM

if it is ok in the default, then I would likely be your custom style causing it - IMO.

Carthondor 09-07-2011 11:41 AM

I had Problems with Custom Style, and i fixed that: https://vborg.vbsupport.ru/showpost....58&postcount=2

My VB is 4.1.5

The Next Problem was, that on the Request Form & Recomend Form, the same Template issus are given.

You can fix that when you edit the template:

awards_request_form
awards_recommend_form

search for that:
Code:

$headinclude
</head>

insert $headinclude_bottom
Code:

$headinclude
$headinclude_bottom
</head>

Well done Custom Style runs well!

LoudBox 09-17-2011 07:12 AM

I've set this up to create award submissions as a new post reply to an existing thread. But how do you edit the message posted? I want to add a quickly link to it, so you just have to click on it to give the award. But can't find the message in the phrases, where is this hidden?

andy_mcguire 09-17-2011 08:19 AM

Quote:

Originally Posted by LoudBox (Post 2247057)
I've set this up to create award submissions as a new post reply to an existing thread. But how do you edit the message posted? I want to add a quickly link to it, so you just have to click on it to give the award. But can't find the message in the phrases, where is this hidden?

Language Manager -> award_pm is the template name you want.

Anyway, presently I am having issues with this plugin. Users customised backgrounds are not working and my profile "Awards" tab doesn't work... help :(.

Screenshot example of issue.
https://vborg.vbsupport.ru/external/2011/09/38.jpg

Edit: Managed to fix the bug with the backgrounds but my "Awards" icon is still blank unless you click it?

KGodel 09-20-2011 02:12 AM

Andy, I have similar issues with user profiles and the award tab in profiles.

Another issue I have is that if users are purged through the ACP, say for inactivity, then there is simply a blank " " who is viewed as having been issued the award. Is there a way to remove blank users who no longer exist aside from editing the database?

nacaruncr 09-20-2011 02:57 AM

try with this:
https://vborg.vbsupport.ru/showpost....&postcount=742

:D
regards ;)

GameOverViper 09-20-2011 09:52 PM

I did this tutorial to fix most of the problems with my site, but I'm still having a problem on one of my themes.

The first visitor message on your own profile, every link is non-clickable. But everything is below/above/sides works fine.

This is the only theme it does this on and I have about 4 themes available for users on my forum. Anyone know how to fix this?

Littlerocket 09-23-2011 04:59 PM

Great mod. Works great at www.fifagamer.net.

One thing I'd like to do is move the awards around the postbit. The facility to do it within the admincp is good, but it doesn't have the facility to move it where I'm after.

Could someone point me towards the code to edit to move the award please. Have checked the obvious places such as postbit_legacy.

Thanks.

mightysanta 09-23-2011 06:55 PM

I seem to be having a problem when i did the 3 step update for version 4.0.1 to 4.1.3

I corrected and edited the templates and disabled the profile tab as to do so. When i click the awards button on my navbar i get the following:

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/12/7725912/html/forums/awards.php on line 47

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home/content/12/7725912/html/forums/awards.php:98) in /home/content/12/7725912/html/forums/includes/adminfunctions.php on line 1907

shoyru 09-25-2011 03:24 AM

anyone know Im using vbb 4.1.6 all working fine just cant access awards.php on my navbar T_T

Nuker_Viper 09-25-2011 12:14 PM

how do you import the xml file i cannot read it.. i opened it and its just code no formatting

NVM i found it..

smaacom 09-26-2011 05:17 AM

Quote:

Originally Posted by shoyru (Post 2249786)
anyone know Im using vbb 4.1.6 all working fine just cant access awards.php on my navbar T_T

upload awards.php file to your forum directory .

LoudBox 09-27-2011 12:31 PM

Great plugin. Set up the system to create a thread for every award requested. But why do these threads get marked as "moderated" and how do you remove this?

Please advise, thanks!

BlueCheri 09-27-2011 12:48 PM

1 Attachment(s)
Looks good, let me try.

Edit: Tab border seen below (image attached)

How to fix it?

Thanx in advance

SpikedRocker 09-27-2011 11:09 PM

Quote:

Originally Posted by LoudBox (Post 2250533)
Great plugin. Set up the system to create a thread for every award requested. But why do these threads get marked as "moderated" and how do you remove this?

Please advise, thanks!

If you have the theads to be created in a "privlidged" section of the forum, something that normal users cannot see but moderators might...that is your problem. Since they do not have the privlidges to post in those sections their posts and threads become moderated.

The fix is to grant them posting privlidges but not viewing. I've done this for several things on my site.

LoudBox 09-29-2011 06:09 AM

Quote:

Originally Posted by SpikedRocker (Post 2250715)
If you have the theads to be created in a "privlidged" section of the forum, something that normal users cannot see but moderators might...that is your problem. Since they do not have the privlidges to post in those sections their posts and threads become moderated.

The fix is to grant them posting privlidges but not viewing. I've done this for several things on my site.

Hey thanks!

I've enabled "can post threads" for those usergroups, but still getting the same problem. What do you think I'm overlooking?

mightysanta 09-29-2011 07:38 PM

I seem to be having a problem when i did the 3 step update for version 4.0.1 to 4.1.3

I corrected and edited the templates and disabled the profile tab as to do so. When i click the awards button on my navbar i get the following:

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/12/7725912/html/forums/awards.php on line 47

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home/content/12/7725912/html/forums/awards.php:98) in /home/content/12/7725912/html/forums/includes/adminfunctions.php on line 1907

SpikedRocker 09-29-2011 07:41 PM

Quote:

Originally Posted by LoudBox (Post 2251146)
Hey thanks!

I've enabled "can post threads" for those usergroups, but still getting the same problem. What do you think I'm overlooking?

Oh its something I overlook myself several times, theres a check box in the forum permissions called Follow Forum Moderation Rules. Check that to yes. That should unmoderate posts.

chrissyplum79 10-04-2011 09:11 PM

Will this work on vBulletin 4.1.6?

letsjoy 10-04-2011 10:16 PM

Can I upgrade this mod https://vborg.vbsupport.ru/showthread.php?t=187600 ..?
n how to...

Thanks :)

ffaat 10-08-2011 02:53 AM

I fixed the lack of tab styling in the user profile by the following (the classes needed updating):

Edit YAAS - Profile Tab to be:
PHP Code:

if ($selected_tab == 'myawards'

$template_hook['profile_tabs_last'] .= '<dd class="userprof_module"><a id="myawards-tab" href="'.$vbulletin->input->fetch_relpath().'#myawards" onclick="return tabViewPicker(this);">Awards</a></dd>'

else 

$template_hook['profile_tabs_last'] .= '<dd class="userprof_moduleinactive"><a id="
myawards-tab" href="'
.$vbulletin->input->fetch_relpath().'#myawards" onclick="return tabViewPicker(this);">Awards</a></dd>'


But I also still have a ghost award tab down at the bottom with a link of &tab=myawards#myawards

Could this be a remnant from upgrading from version 3 that didn't get cleaned out?

-Rob A>

Nuker_Viper 10-08-2011 04:09 PM

couple of ideas

* Add an ablitity for an award to be awarded only to a specific usergroup
* add an ability so that you can choose who can awarded it. Not just an moderator
* add an ability so that awards in profiles will be shown in 2 seperate areas.
- 1 area will show the awards for a specific category in order of display that they have been awarded without he reason and such.
- the second will do it like it is now. (with details).
* when adding to postbit and/or signature make it so that you can choose a certain category to display only or all.

These are just ideas i have been thinking of. Since my Forums is used as a clan website and public forums.

The scipt as it is now is very useful....

J19784B5A39B 10-09-2011 03:14 PM

I'm Italian and I apologize for my imperfect English.
I find the model: Award_showcase .....
Change in which of these models?

1) Awards postbit_legacy ????? or
2) Memberinfo_block_myawards?
Thanks: I have urgently to be answered .....

my version is v.3.8.5

My problem is how to how to see the Image: the icon is all ....

squidsk 10-12-2011 01:57 PM

Quote:

Originally Posted by sadiq6210 (Post 2189701)
UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)


1- Find the template (memberinfo_block_myawards) and replace it all
PHP Code:

<div id="view-myawards" class="<vb:if condition="$selected_tab == 'myawards'">selected_view_section<vb:else />view_section</vb:if>">

<
div class="blocksubhead subsectionhead userprof_headers userprof_headers_border">
{
vb:rawphrase award_showcase} - {vb:raw $block_data[num]} {vb:rawphrase awards} <vb:if condition="$vboptions[aw_points]"> - {vb:raw $block_data[total_points]} {vb:rawphrase points}</vb:if>
</
div>

<
div class="blockbody">
<
table width="100%">
<
tr align="center">
    <
vb:if condition="$vboptions[aw_showicon]"><th class="blocksubhead" nowrap="nowrap">{vb:rawphrase award_icon}</th></vb:if>
    <
vb:if condition="$vboptions[aw_showimage]"><th class="blocksubhead" nowrap="nowrap">{vb:rawphrase award_image}</th></vb:if>
    <
th class="blocksubhead" width="100%">{vb:rawphrase award_description}</th>
</
tr>
{
vb:raw $block_data[myawards]}
</
table>
</
div>
</
div



2- From(Plugin Manager)
Find (YAAS - Profile Tab) and disactive it.


3- From (plugin manager)
Find (YAAS in Member Profile - Profile) >> EDIT >> Replace it all
PHP Code:

$blocklist['myawards'] = array(
    
'class' => 'MyAwards',
    
'title' => $vbphrase['my_awards'],
    
'options' => array(
        
'pagenumber' => $vbulletin->GPC['pagenumber']
    ),
    
'hook_location' => 'profile_tabs_last',
    
'wrap' => false
);

require_once(
'./global.php'); 
global 
$vbulletin;  
require_once(
DIR '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());

class 
vB_ProfileBlock_MyAwards extends vB_ProfileBlock
{
    var 
$template_name 'memberinfo_block_myawards';

    function 
confirm_empty_wrap()
    {
        return 
false;
    }

    function 
confirm_display()
    {
        return (
$this->block_data['myawards'] != '');
    }

    function 
prepare_output($id ''$options = array())
    {
        global 
$show$vbphrase$stylevar$vbcollapse$bgclass$vbulletin;
        
        require_once(
DIR '/includes/class_bbcode.php');
        
$bbcode_parser = new vB_BbCodeParser($this->registryfetch_tag_list());

        
        
$result $this->registry->db->query_read('
            SELECT
                *
            FROM
            ' 
TABLE_PREFIX 'award_user AS award_user
                LEFT JOIN ' 
TABLE_PREFIX 'award AS award USING (award_id)
            WHERE 
                award_user.userid = ' 
$this->profile->userinfo['userid'] . '
                AND award.award_active = "1"
            ORDER BY
               '
.$vbulletin->options['aw_awardorder'].'
        '
);
        
                if ((
$vbulletin->options['aw_points']) AND ($this->profile->userinfo['userid']))
                {
                    
$userpoints $this->registry->db->query_read('
                        SELECT a.*, au.*, SUM(award_pointvalue) AS TotalPoints
                        FROM ' 
TABLE_PREFIX 'award a, ' TABLE_PREFIX 'award_user au
                        WHERE (au.userid = '
.$this->profile->userinfo['userid'].') AND (a.award_id=au.award_id) AND (a.award_active = "1")
                        GROUP BY au.userid
                    '
);
                
                    while (
$array $this->registry->db->fetch_array($userpoints))
                        {
                        
$this->block_data['total_points'] = $array['TotalPoints'];
                        }  
                }
        
        
$num $this->block_data['num'] = $this->registry->db->num_rows($result);
        
        
$this->block_data['myawards'] = '';
        
        if (
$num 0)
        {
            
// Display Awards
            
while ($award $this->registry->db->fetch_array($result))
            {
                
exec_switch_bg();
                
                
$award['award_desc'] = $bbcode_parser->parse($award['award_desc']);
                
$award['issue_reason'] = $bbcode_parser->parse($award['issue_reason']);
                
                
$award_issue_date vbdate($this->registry->options['dateformat'], $award['issue_time'], true);
                
$award_issue_time vbdate($this->registry->options['timeformat'], $award['issue_time']);
                
                
//- VB3 -// eval('$this->block_data[\'myawards\'] .= "' . fetch_template('awards_userawards_bit') . '";');
                //- BEGIN VB4 -//
                
$templater vB_Template::create('awards_userawards_bit');
                    
$templater->register('award'$award);
                    
$templater->register('award_issue_date'$award_issue_date);
                    
$templater->register('award_issue_time'$award_issue_time);
                
$this->block_data['myawards'] .= $templater->render();
                
//- END VB4 -//
            
}
        }
    }



Good luck :)

Quote:

Originally Posted by ffaat (Post 2254525)
I fixed the lack of tab styling in the user profile by the following (the classes needed updating):

Edit YAAS - Profile Tab to be:
PHP Code:

if ($selected_tab == 'myawards'

$template_hook['profile_tabs_last'] .= '<dd class="userprof_module"><a id="myawards-tab" href="'.$vbulletin->input->fetch_relpath().'#myawards" onclick="return tabViewPicker(this);">Awards</a></dd>'

else 

$template_hook['profile_tabs_last'] .= '<dd class="userprof_moduleinactive"><a id="
myawards-tab" href="'
.$vbulletin->input->fetch_relpath().'#myawards" onclick="return tabViewPicker(this);">Awards</a></dd>'


But I also still have a ghost award tab down at the bottom with a link of &tab=myawards#myawards

Could this be a remnant from upgrading from version 3 that didn't get cleaned out?

-Rob A>

The fix you've done is not the correct fix. The above fixes will fix the error you're talking about (and make your own attempted fix obsolete). The error is caused because at some point in the 4.0.x series (I believe) vbulletin changed how tabs got rendered and the code for YAAS has not been updated since then.

squidsk 10-12-2011 02:00 PM

Quote:

Originally Posted by J19784B5A39B (Post 2255129)
I'm Italian and I apologize for my imperfect English.
I find the model: Award_showcase .....
Change in which of these models?

1) Awards postbit_legacy ????? or
2) Memberinfo_block_myawards?
Thanks: I have urgently to be answered .....

my version is v.3.8.5

My problem is how to how to see the Image: the icon is all ....

This is the YAAS for vb4, not for vb3. The one your after is located here.

J19784B5A39B 10-12-2011 02:15 PM

thanks but I do not find this template: Change the template "Awards_showcase" to:

J19784B5A39B 10-12-2011 02:18 PM

Quote:

Originally Posted by J19784B5A39B (Post 2256304)
thanks but I do not find this template: Change the template "Awards_showcase" to:


The icons are seen in profile, you do not see the image ......

J19784B5A39B 10-12-2011 02:51 PM

Would you help me? Come to my website and my admin panel? I can not do

Nuker_Viper 10-12-2011 03:05 PM

Quote:

Originally Posted by Nuker_Viper (Post 2254759)
couple of ideas

* Add an ablitity for an award to be awarded only to a specific usergroup
* add an ability so that you can choose who can awarded it. Not just an moderator
* add an ability so that awards in profiles will be shown in 2 seperate areas.
- 1 area will show the awards for a specific category in order of display that they have been awarded without he reason and such.
- the second will do it like it is now. (with details).
* when adding to postbit and/or signature make it so that you can choose a certain category to display only or all.

These are just ideas i have been thinking of. Since my Forums is used as a clan website and public forums.

The scipt as it is now is very useful....

add an ability so that awards in profiles will be shown in 2 seperate areas.
- 1 area will show the awards for a specific category in order of display that they have been awarded without he reason and such.
- the second will do it like it is now. (with details).

For example:
Black ops medals -
Awards1 award2 awad3 award4 award5 award6
award7 etc

Black ops Ribbons -
award1 award2 award3 award4 etc

and so on and so forth?

This would be really helpful due to the number of awards our site offers. Is there any way this can be done or may i turn it over to someone who can?

Thanks

(sorry for the rush but my new site is opening in nov. and i'm on a strict deadline..)

squidsk 10-12-2011 04:09 PM

Quote:

Originally Posted by J19784B5A39B (Post 2256313)
Would you help me? Come to my website and my admin panel? I can not do

What are you trying to do? If your trying to change which awards style is used to display the awards then in the Awards settings change the postbit: style setting. If you're trying to change what one of those settings actually looks like then you need to edit one of postbit_display templates.

ffaat 10-12-2011 04:15 PM

Quote:

Originally Posted by squidsk (Post 2256294)
The fix you've done is not the correct fix. The above fixes will fix the error you're talking about (and make your own attempted fix obsolete). The error is caused because at some point in the 4.0.x series (I believe) vbulletin changed how tabs got rendered and the code for YAAS has not been updated since then.

Thanks very much - I had not found that post through search and wasn't willing to read through 61 pages of comments :eek:

-Rob A>

Reizar 10-14-2011 03:49 AM

Thanks for this mod, I've got it set up and working fine :)

Just wondering one thing. Ive set up the automation addon. Its for posts only, would it be possible at all to make it search through members who meet the requirements currently and automatically give them the award?

Also a apart from setting up the automation settings in the Award System menu, is there anything else that needs to be done? Like scheduled tasks or anything? Or does the plugin do it all for you?

sadiq6210 10-14-2011 03:28 PM

4.1.7
Working perfect with me, just review this post
https://vborg.vbsupport.ru/showthrea...01#post2189701

SpikedRocker 10-14-2011 08:43 PM

Anyone experience an issue where they changed their Thread Prefixes in this and the option to set this disappear on it?

Reizar 10-15-2011 01:39 AM

Is it possible to remove awards you have given to people?

Also with the automation system, its just run automatically which is great. But I have a specific problem.

I have 3 awards based on postcount. One for reaching 500 posts, 1000 posts and 2500 posts.

Say if someone has 2500 posts, it won't give them the 500 and 1000 medals. Is it possible to make it give all 3?

squidsk 10-19-2011 04:52 PM

Quote:

Originally Posted by Reizar (Post 2257355)
Is it possible to remove awards you have given to people?

Yes. In admincp (and modcp if that's enabled) go to Award System -> Award Manager. On the screen that loads click on "Give Award to User" for the award you want to remove from a user. On this screen at the bottom it lists all users who have been given the award with the option to edit the entry for the user or to remove it. Click remove to remove the award.


Quote:

Also with the automation system, its just run automatically which is great. But I have a specific problem.

I have 3 awards based on postcount. One for reaching 500 posts, 1000 posts and 2500 posts.

Say if someone has 2500 posts, it won't give them the 500 and 1000 medals. Is it possible to make it give all 3?
No I don't think so. If you add post based criteria then only when the criteria is met (i.e. at 500, 1000 or 2500) will a specific award be added. You could always just do it with an sql insert query since it should be just a one time thing when you add the awards initially.

The query would be something like:

Code:

insert into award_user (userid, award_id, issue_reason, issue_time) select userid, award_number, "For reaching 500 posts", UNIX_TIMESTAMP() from user where postcount > 500;
Put in the appropriate award number and change the message as needed and it should work.

gamersplatoon 10-24-2011 01:48 PM

I'm having a header problem after i installed a fixed forum ,the ranks tab gets automatically fluid and it messes up the whole header and page width..
here is a screenshots,
i need help.

http://imageshack.us/f/694/19490726.png/
http://imageshack.us/f/225/94262547.png/

RoG Aftermath 10-28-2011 12:29 AM

Quote:

Originally Posted by gamersplatoon (Post 2260968)
I'm having a header problem after i installed a fixed forum ,the ranks tab gets automatically fluid and it messes up the whole header and page width..
here is a screenshots,
i need help.

http://imageshack.us/f/694/19490726.png/
http://imageshack.us/f/225/94262547.png/

Yes i am getting pretty much the same problem, except mine shifts even more than that and everything is all over the place. It only does it when i click on the awards tab. I am running 4.1.7 with a custom theme.


All times are GMT. The time now is 10:46 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.02823 seconds
  • Memory Usage 1,929KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (16)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
  • (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