Log in

View Full Version : Major Additions - Yet Another Awards System


Pages : 1 2 3 [4] 5 6 7 8

mgurain
05-10-2011, 12:14 PM
1. On conclusion does this hack work with vb 4.1.3 ?
We have an old version of this usefull hack here:
3.8.2
https://vborg.vbsupport.ru/showthread.php?t=196244
2. Is this an update for that hack ?
3. Will we loose awards given previously if we upgrade ?
Thanks in advance,,

Mobo
05-10-2011, 04:40 PM
mgurain, I am running it on 4.2.0 with no problems. I did not lose my awards from when I was on 3.8. I currently do not use the automated or points portion of this Mod, so not sure if those are working that well or not.

ExciterNL
05-11-2011, 12:54 AM
4.2.0 ?

Mobo
05-11-2011, 03:30 AM
Opps, my bad. 4.1.0 4.2 was the version of one of my mods. lol

discodoran
05-13-2011, 04:56 AM
I HAVE A PROBLEM
hey guys sorry about caps lol
anyways im using the automation system because i have reach 100,200 and 500 posts site awards.

But im facing a problem when a user gets to say 500 posts it removes the 100 and 200 post awards from them is there a way to make it so they keep all the post awards if they reach 500 so they will have the 100,200,500 post awards

hope you all know what im on about if not let me know and ill try explain better
cheers

MarceloS
05-16-2011, 12:44 PM
I HAVE A PROBLEM
hey guys sorry about caps lol
anyways im using the automation system because i have reach 100,200 and 500 posts site awards.

But im facing a problem when a user gets to say 500 posts it removes the 100 and 200 post awards from them is there a way to make it so they keep all the post awards if they reach 500 so they will have the 100,200,500 post awards

hope you all know what im on about if not let me know and ill try explain better
cheers

I have the exact same problem ;)

SN1PERCITY
05-17-2011, 07:14 PM
can some one help me with this as well i blocked somestuff to insure privacy but could someone help me on why its not installing

Database error in vBulletin 4.1.3:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'
Error Number : 1060
Request Date : Tuesday, May 17th 2011 @ 01:11:28 PM
Error Date : Tuesday, May 17th 2011 @ 01:11:28 PM
Script : http://www.**********.com/admincp/plugin.php?do=productimport
Referrer : http://www.**********.com/admincp/plugin.php?do=productadd
IP Address : ++.+++.+.+++
Username : +++++++++
Classname : vB_Database
MySQL Version : 5.0.90-community-log

squidsk
05-18-2011, 08:01 PM
I've installed this and it's working fine except for one problem. In the users profile, the tab has no background when it's inactive. Like this...

<snipped images>

Does anybody know how I can fix this?

Thanks

Same problem :(

Here's a fix that fixes both issues:

1) Disable/delete the YAAS - Profile Tab Plugin that is attached to the member_complete hook (in other words my previous fix for problem 1 is not required anymore). If this isn't done you will get two Awards tabs on profile pages.

2) Make the following edits (all text in blue needs to be added) to the YAAS in Member Profile - Profile plugin that is attached to the member_build_blocks_start hook:


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


Here's my fix for the issue from a few pages back.

SN1PERCITY
05-19-2011, 02:35 AM
can someone help me with my previous post question-- just wondering.. its two up!

squidsk
05-19-2011, 02:26 PM
The error means what it says, its trying to add a column to the table which already exists.

SN1PERCITY
05-19-2011, 08:39 PM
so how do i fix it than

SN1PERCITY
05-19-2011, 08:41 PM
stupid question do i have to let it overwrite existing when i upload it, or what.

so i tried to do that and it still didnt work. does anyone have an idea on how to fix this so i can use this!

Puntal
05-20-2011, 10:23 AM
can some one help me with this as well i blocked somestuff to insure privacy but could someone help me on why its not installing

Database error in vBulletin 4.1.3:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'
Error Number : 1060
Request Date : Tuesday, May 17th 2011 @ 01:11:28 PM
Error Date : Tuesday, May 17th 2011 @ 01:11:28 PM
Script : http://www.**********.com/admincp/plugin.php?do=productimport
Referrer : http://www.**********.com/admincp/plugin.php?do=productadd
IP Address : ++.+++.+.+++
Username : +++++++++
Classname : vB_Database
MySQL Version : 5.0.90-community-log



I have that exact same problem.

Tried deleting that table but still no joy...

Fix?

Puntal
05-20-2011, 10:57 AM
Ok, i managed to get rid of that, but now i get error when clicking on the Award tab:

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /home2/puntalor/public_html/fifafreaks/awards.php:98) in /home2/puntalor/public_html/fifafreaks/includes/adminfunctions.php on line 1907

Any ideas?

fishmaster
05-20-2011, 06:58 PM
Need this back and debugged.. Was hoping..

SN1PERCITY
05-20-2011, 07:40 PM
I guess no one wants to help damn that sucks

squidsk
05-20-2011, 09:23 PM
The easier way to get rid of the error, though it may not have the desired result is to comment out the alter line from the xml file. The better way is to figure out why it thinks you have a version of the mod that needs that alteration and solve that problem.

SN1PERCITY
05-21-2011, 03:37 AM
see in my original post i said can someone help me with this.. I know i should fix the table or line in the xml but how thats what i dont know. thats why i asked for help!

Mukashi
05-21-2011, 04:03 AM
Hey guys, just wanted to post a little update here. I've had lots of things going on in my personal life the past few months and honestly I haven't worked on YaAS in quite a while.

I've started doing small bits of updates to it over the past few days, as well was fixing the infamous profile tabs. So, an update IS coming. Just sit tight for a few more days please.

Any progress Cypher? I think everyone here can appreciate you being busy, but it'd be good to have a progress report if possible.

Puntal
05-22-2011, 12:07 PM
I think we need an update on this.

I used it before on vb 3x but on vb4 it fails.

Well, on my 4.1.3 it does and i really love it and need to use it! :D

RichieBoy67
05-22-2011, 04:31 PM
This is a great mod, any plans for this mod in the near future? Great work on this Cypher!!

Thanks

copjend
05-23-2011, 10:18 PM
When updated for vBulletin™ Version 4.1.3

Many thanks

nacaruncr
05-25-2011, 04:01 AM
UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)

1- Find the template (memberinfo_block_myawards) and replace it all
<div id="view-myawards" class="<vb:if condition="$selected_tab == 'myawards'">selected_view_section<vb:else />view_section</vb:if>">
<div>

<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>
</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
$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($vbulletin, fetch_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->registry, fetch_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 :)

Thank you very much men :D awesome :D:eek::up::up::up::up::up: thanks dude ;)

S S0DEN
06-03-2011, 03:06 PM
I am only showing 21 postbit icons - it will not show the rest in the users postbit. How do I increase the number of awards displayed in the users postbit?

squidsk
06-03-2011, 03:24 PM
Go to admincp and look at the YAAS options, its one of the options listed there.

shane greer
06-03-2011, 09:58 PM
In the postbit is there anyway to display more than 3 in a row.

I use the horizontal one and its getting a tad big now. :)

https://vborg.vbsupport.ru/external/2011/06/57.jpg

squidsk
06-04-2011, 12:43 AM
You're limited by the width of the right panel in the postbit. Join Date, Location, etc are left justified (i.e. are at the left edge) so there's no room for more awards on a given line. You have two options, increase the width of that column or shrink the width of your awards or some combination of the two.

dej
06-04-2011, 06:54 AM
Hello,

Does YAAS have the ability to re-order Ranks? Such as Admin, Mod, etc.

I know it can re-order Awards.

Thanks

squidsk
06-04-2011, 01:36 PM
What do you mean by re-order ranks? Where are the ranks ordered? The only place I can think of is the leaders page and there the ordering is by group number I believe.

dej
06-07-2011, 05:52 AM
What do you mean by re-order ranks? Where are the ranks ordered? The only place I can think of is the leaders page and there the ordering is by group number I believe.
I'm using this mod for Awards and... for Ranks also (such as Admin/Moderator, etc). I found out it this mod does re-order Ranks.. it works =) I just add the images and assign them, just like I'd do an Award.

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

Is there a way to give an award to a Usergroup - instead of applying them 1 by 1?

Thanks :)

PreciseDemise
06-07-2011, 06:16 PM
I'm using this mod for Awards and... for Ranks also (such as Admin/Moderator, etc). I found out it this mod does re-order Ranks.. it works =) I just add the images and assign them, just like I'd do an Award.

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

Is there a way to give an award to a Usergroup - instead of applying them 1 by 1?

Thanks :)

I use HTML in the User Title field (with "Yes, Admin Set" selected) never tried to see of a global one can be applied that way, but it is a slightly better way of doing it I think.

On my site for example, the Rank images are stored in "public_html/images/ranks/" so my User titles read:

<img src="/images/ranks/General.png" alt="General" />

Which shows https://vborg.vbsupport.ru/ directly under their user name, you can also add text to this ...

General<br /><img src="/images/ranks/General.png" alt="General" />
which displays:

USERNAME
General
https://vborg.vbsupport.ru/

... Give or take at least. I probably make it sound a lot more complicated than it actually is =/


On to my question ... Does anyone know how to change the ACP option "Submission: Award Submission Thread ID" to output once the award has been AWARDED not when it's recommended/requested ..?

Patriots1049
06-08-2011, 03:04 PM
Has anyone found a fix to this error when members request an award:

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

Any help would be appreciated, thanks!

nacaruncr
06-08-2011, 04:23 PM
Did you give permissions to this group for request an award??
You can start to seeing there ;)

Patriots1049
06-08-2011, 05:18 PM
All groups have permissions selected "Yes" for requesting and recommending an award. They still get the error.

dej
06-11-2011, 10:08 AM
I keep getting this error when adding attributes to center the awards container and images within:

Error: The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression

I don't see any unclosed braces (?)

I tried this (for centering) because it takes care of IE with Firefox (margin attributes)

fieldset {
padding-left: 4px;
border: 1px solid rgb(15, 16, 19);
max-width:150px;
margin-left:auto;
margin-right:auto;
}


Same thing occurs if I use:

align:center;

I saw back around post #200 this issue was brought up (yes, I actually do search and read this thread's contents as best I can) .. and I only found the answer to be "Edit the custom CSS." Well, that's what I'm trying to do =/ I'm sorry, but each time I try, it's the "Curly" issue : (

Can someone post the attributes I can center the awards container and images with.. without the curly error message above?

Thank you :)

P.S. I'm editing Style 1 here.

odie3
06-13-2011, 01:07 PM
hi, I am currently on 3.6.5 with YAAS and I am lining up a 4.0.x VB upgrade. Any pointers on upgrading YAAS or must I install it as new?

shane greer
06-13-2011, 10:00 PM
In the postbit is there anyway to display more than 3 in a row.

I use the horizontal one and its getting a tad big now. :)

https://vborg.vbsupport.ru/external/2011/06/57.jpg

You're limited by the width of the right panel in the postbit. Join Date, Location, etc are left justified (i.e. are at the left edge) so there's no room for more awards on a given line. You have two options, increase the width of that column or shrink the width of your awards or some combination of the two.

Anyone have any ideas how I go about increasing the width of the postbit column?

leftanalog
06-14-2011, 01:54 AM
I keep getting an unexpected glitch and its the result of installing this award system on 4.1.3.

After I edit any post, it calls up an HTML file from my server. When I refresh the page the html page is gone and my edited post looks normal. Ive uninstalled the product and it stopped happening, I re-installed and it happened again. SO I know its related to installing YAAS.

Any suggestions?
Pic of my edited post:
http://img541.imageshack.us/img541/7233/screenyvw.png

faraz_hamza
06-14-2011, 04:35 PM
There are Three files. how to install this mod. and which file i have to upload to install this mod?

nacaruncr
06-14-2011, 11:23 PM
here men :D
https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742

Gamelobby
06-15-2011, 02:54 AM
here men :D
https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742
What does that fix..?



I keep getting this text
-- BEGIN TEMPLATE: awards_awardusers_bit -->
inline with the "users that have received this award"

squidsk
06-15-2011, 04:37 AM
here men :D
https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742

What does that fix..?

The second two fixes are the fixes I posted earlier that fix tab artifacts on users member pages and that you tried to use to fix your footer issue (https://vborg.vbsupport.ru/showpost.php?p=2171710&postcount=698), the first fix is due to an extra <div> tag in that template. The solution provided closes the <div> the solution I'd use is to delete it.

I keep getting this text

inline with the "users that have received this award"

You accidentally deleted the start of the html comment in the awards_awardusers_bit template. Open that template find the line and add <! to the start of it so the start read <!-- (notice no spaces). This will make it a proper html comment.

There are Three files. how to install this mod. and which file i have to upload to install this mod?

You only need the third one and from in it the contents of the upload folder will go into your forum main. Then load the xml through admincp plugins area.

hi, I am currently on 3.6.5 with YAAS and I am lining up a 4.0.x VB upgrade. Any pointers on upgrading YAAS or must I install it as new?

I'd recommend upgrading to the 3.8 version before the vb4 version. It says to backup the awards tables then remove then re-install, but I found I didn't have to do that and in fact it caused troubles when I tried. I'd recommend backing up the awards tables then upgrading either to the 3.8 version (and then the vb4 version) or just straight to the vb4 version.

I keep getting this error when adding attributes to center the awards container and images within:

Error: The following error occurred when attempting to evaluate this template:
Unclosed Curly Brace Expression

I don't see any unclosed braces (?)

I tried this (for centering) because it takes care of IE with Firefox (margin attributes)

fieldset {
padding-left: 4px;
border: 1px solid rgb(15, 16, 19);
max-width:150px;
margin-left:auto;
margin-right:auto;
}


Same thing occurs if I use:

align:center;

I saw back around post #200 this issue was brought up (yes, I actually do search and read this thread's contents as best I can) .. and I only found the answer to be "Edit the custom CSS." Well, that's what I'm trying to do =/ I'm sorry, but each time I try, it's the "Curly" issue : (

Can someone post the attributes I can center the awards container and images with.. without the curly error message above?

Thank you :)

P.S. I'm editing Style 1 here.

You'll need to post the entire template that you've modified as something else that you changed may be causing the problem.

leftanalog
06-15-2011, 04:51 AM
The second two fixes are the fixes I posted earlier that fix tab artifacts on users member pages and that you tried to use to fix your footer issue (https://vborg.vbsupport.ru/showpost.php?p=2171710&postcount=698), the first fix is due to an extra <div> tag in that template. The solution provided closes the <div> the solution I'd use is to delete it.



You accidentally deleted the start of the html comment in the awards_awardusers_bit template. Open that template find the line and add <! to the start of it so the start read <!-- (notice no spaces). This will make it a proper html comment.



You only need the third one and from in it the contents of the upload folder will go into your forum main. Then load the xml through admincp plugins area.



I'd recommend upgrading to the 3.8 version before the vb4 version. It says to backup the awards tables then remove then re-install, but I found I didn't have to do that and in fact it caused troubles when I tried. I'd recommend backing up the awards tables then upgrading either to the 3.8 version (and then the vb4 version) or just straight to the vb4 version.



You'll need to post the entire template that you've modified as something else that you changed may be causing the problem.

No chance of addressing my previous problem? lol. Its a bit out there.

squidsk
06-15-2011, 02:49 PM
No chance of addressing my previous problem? lol. Its a bit out there.

Quite frankly what you posted didn't make any sense. When you create a new post it loads an html page, but if you reload it doesn't?

leftanalog
06-16-2011, 01:00 AM
When I edit a post... the edit shows an HTML page loaded. However when I refresh my browser the problem fixes itself.

Sorry if I cant be more clear.

insidegames
06-17-2011, 04:59 PM
Did this plugin works on 4.1.2?

Is it difficult to installed?

squidsk
06-17-2011, 05:00 PM
It works just fine on 4.1.2, but you should do the changes listed in the last couple of pages to fix a few bugs in YAAS.

dnk.it
06-17-2011, 05:44 PM
works well with 4.1.3 too

J. Schultz
06-19-2011, 05:22 AM
AdminCP "Award System Settings" does not load any options in VB 4.1.4

Everything else seems to be working properly though.

dej
06-22-2011, 07:55 AM
Hello,

How do you remove the "Issue Time" / "Issue Reason" container? :o

https://vborg.vbsupport.ru/external/2011/06/19.png

Thanks

squidsk
06-22-2011, 03:57 PM
Edit the awards_userawards_bit template and delete the relevant section.

dej
06-23-2011, 03:07 AM
Edit the awards_userawards_bit template and delete the relevant section.

Thank you, worked perfectly :)

Gamelobby
06-23-2011, 04:07 AM
You accidentally deleted the start of the html comment in the awards_awardusers_bit template. Open that template find the line and add <! to the start of it so the start read <!-- (notice no spaces). This will make it a proper html comment.

This is all i have in that template. (awards_awardusers_bit)
, <a href="member.php?$session[sessionurl]u=$awardusers[userid]&tab=myawards#award">$awardusers[username]</a>
That is the entire template.?
Am i missing something.?



Thanks

squidsk
06-23-2011, 07:39 PM
I don't have that phrase in any template but either way I was looking in the wrong location, it would be in the awards_awardbit template because that's where you'll get both the awards_awardusers_bit being used and the phrase "users who have received this award".

I'm guessing your seeing this on http://www.yourforum.com/forum/awards.php (where http://www.yourforum.com/forum/ is your main forum index) in each different award right?

Gamelobby
06-24-2011, 12:02 AM
Yes exactly. on every award, on the awards.php page

Here is the entire code from the awards_awardbit template
<tr>
<if condition="$vboptions[aw_showicon]">
<td align="center" class="blockrow">
<img src="$award[award_icon_url]" border="0">
</td>
</if>

<if condition="$vboptions[aw_showimage]">
<td valign="top" align="center" class="blockrow">
<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="blockrow"><br /><b><a href="awards.php?do=viewaward&award_id=$award[award_id]">$award[award_name]</a></b>
<div class="smallfont">$award[award_desc]</div>
<if condition="$vboptions[aw_showmembers]">
<hr style="border: 1px solid;" align="left" />
<div style="font-size:11px">
<if condition="$awarduserslist">
$vbphrase[users_with_thisaward]: $aw_ui<br>
$awarduserslist
<else />
$vbphrase[no_award_users]
</if>
</td>
</if>
</div>
</if>
<if condition="$vboptions[aw_actioncolumn]">
<td align="center" nowrap class="blockrow">
<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>

ProFifaLeagues
06-24-2011, 06:02 PM
Award Recommendation Form vBulletin Message

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




Any ideas on a fix for this???
Running 4.1.3 and all usergroup permissions are set to Yes

gamerscms
06-27-2011, 08:59 AM
Hi all

Members who are using IE9 are reporting a display error with the award showcase in the postbit.

Please see the screen shot for more details.

Any ideas how to fix this?

Regards

Patriots1049
06-28-2011, 02:23 AM
rammieone

you have to set a location for the award request/recommendation to be sent to. Just set up a forum or thread anywhere.

Nocturnal222
06-29-2011, 08:13 AM
When I was trying to upload the .xml I got the collowing error. Can anyone help me please?

Database error in vBulletin 4.1.4:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Table 'zmu.award' doesn't exist
Error Number : 1146
Request Date : Thursday, June 30th 2011 @ 07:09:41 AM
Error Date : Thursday, June 30th 2011 @ 07:09:42 AM
Script : http://www.********.***/*****/admincp/plugin.php?do=productimport
Referrer : http://www.********.***/*****/admincp/plugin.php?do=productadd
IP Address : **.**.***.***
Username : *******
Classname : vB_Database
MySQL Version : 5.5.8

Any help is appreciated

flbutterflyz
07-03-2011, 04:31 AM
^^And I was just about to ask if this works with v4.1.4...

ETA: It does, but the award tab in the Members Profile isn't like the other tabs. Screenshot:
ETA2: Fixed through post #758. :)

flbutterflyz
07-05-2011, 02:49 AM
Same thing for me.

Same question as some others. Is it possible to get the code so we can manually change the awards location in the postbit?

1stsAz
07-05-2011, 04:34 PM
Hey, we have it installed in 4.1.4 and it is working fine except one thing. When we activated it as a Tab on our NavBar, our banner disappears at the top of the page. We think there is a CSS reference missing and we tried to get it in there by modifying the XML but it isn't taking. Anyone else have this issue?

Gamelobby
07-07-2011, 03:31 AM
Hey, we have it installed in 4.1.4 and it is working fine except one thing. When we activated it as a Tab on our NavBar, our banner disappears at the top of the page. We think there is a CSS reference missing and we tried to get it in there by modifying the XML but it isn't taking. Anyone else have this issue?

I know a friend who's site works fine except on the awards.php page there is no header. lol

nacaruncr
07-07-2011, 04:08 AM
try with this:
https://vborg.vbsupport.ru/showpost.php?p=2136226&postcount=7

;) or copying the css award's code in your additional.css :)

danswano
07-08-2011, 01:57 PM
When i disable or remove this product all avatars disappear, any idea why?

if a disable all plugins and keep this one active YAAS - postbit_display_start the avatars appears.

If i remove the whole product and i add a plugin contains this code to postbit_display_start

// [START HACK='Yet Another Award System' AUTHOR='HacNho']
if ((THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'showthread') OR (THIS_SCRIPT == 'announcement') OR (THIS_SCRIPT == 'newreply'))
{
global $db, $vbulletin;
{
if (THIS_SCRIPT == 'private')
{
$this->post['userid'] =& $post['fromuserid'];
}
if (($vbulletin->options['aw_postbit']) AND ($this->post['userid']))
{

$post['userawards'] = '';
// Obtain list of awards for current user
$alluserawards = $db->query_read("
SELECT a.*, au.*
FROM " . TABLE_PREFIX . "award a, " . TABLE_PREFIX . "award_user au
WHERE (au.userid = ".$this->post['userid'].") AND (a.award_id=au.award_id) AND (a.award_active=1)
ORDER BY ".$vbulletin->options[aw_awardorder]."
");

$post['showuserawards'] = false;

if ($post['num_awards'] = $db->num_rows($alluserawards))
{
$aw_i = 0;

while ($award = $db->fetch_array($alluserawards))
{
$aw_i++;
if ($aw_i <= $vbulletin->options['aw_display_limit'])
{
//- VB3 -// eval('$post[userawards] .= "' . fetch_template('awards_bit') . '";');
//- BEGIN VB4 -//
$templater = vB_Template::create('awards_bit');
$templater->register('award', $award);
$post[userawards] .= $templater->render();
//- END VB4 -//
}
}

if (($vbulletin->options['aw_points']) AND ($this->post['userid']))
{
$userpoints = $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->post['userid'].") AND (a.award_id=au.award_id) AND (a.award_active=1)
GROUP BY au.userid
");

while ($array = $db->fetch_array($userpoints))
{
$post['total_points'] = $array['TotalPoints'];
}
}

$post['showuserawards'] = true;
$db->free_result($alluserawards);
}
}
}
}
// [END HACK='Yet Another Award System' AUTHOR='HacNho']

the avatar appears too, what's wrong with this plugin i can't see the avatars without it?

any clue?

Gamelobby
07-08-2011, 06:40 PM
I don't have that phrase in any template but either way I was looking in the wrong location, it would be in the awards_awardbit template because that's where you'll get both the awards_awardusers_bit being used and the phrase "users who have received this award".

I'm guessing your seeing this on http://www.yourforum.com/forum/awards.php (where http://www.yourforum.com/forum/ is your main forum index) in each different award right?

I just checked my template with a friends, & they are identical, so it must be a conflict of mods or something. :erm: :(

TheLastSuperman
07-08-2011, 06:49 PM
try with this:
https://vborg.vbsupport.ru/showpost.php?p=2136226&postcount=7

;) or copying the css award's code in your additional.css :)

Actually I found in this case it was better to use:

{vb:raw headinclude_bottom}

Instead of:

{vb:cssfile additional.css}

Mods are nearly identical so edit template AWARDS instead ;) - https://vborg.vbsupport.ru/showpost.php?p=2213758&postcount=2

Gamelobby
07-08-2011, 11:57 PM
Is that to help fix my issue or someone else's.?

I didn't try the original one or your "better" one, because i thought it was directed at someone else.

TheLastSuperman
07-09-2011, 12:06 AM
Is that to help fix my issue or someone else's.?

I didn't try the original one or your "better" one, because i thought it was directed at someone else.

An attempt to fix yours as he replied directly after your post, as I took it kwim ;).

Tahir_Younus786
07-10-2011, 10:46 AM
Is this hock work in VB 4.1.4

faraz_hamza
07-12-2011, 05:31 AM
There's some error when sending your award request. Please contact site's administrator for assistant.


i m gettting this error on vb 4.1.4. when user click on request award.
i also check the permission and set to yes still getting the same error.
is there any fix?

discodoran
07-12-2011, 07:55 AM
yer i get this error two but says that none of my admins user names can be found

TheLastSuperman
07-12-2011, 07:35 PM
Is this hock work in VB 4.1.4

Yes

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

i m gettting this error on vb 4.1.4. when user click on request award.
i also check the permission and set to yes still getting the same error.
is there any fix?

This could be due to how you have min time between posts set OR could be a issue w/ how it installed the tables... ( https://vborg.vbsupport.ru/showpost.php?p=2219344&postcount=33 ) I've updated this in my ranks mod (identical to this pretty much) however you can edit the .xml and find:

) TYPE=MyISAM
");

Replace TYPE with ENGINE as shown in all occcurances within the .xml:

) ENGINE=MyISAM
");

Make a backup before importing the modified .xml in case you do anything wrong ;).

COL NIL SATIS
07-13-2011, 01:11 PM
Yes



This could be due to how you have min time between posts set OR could be a issue w/ how it installed the tables... ( https://vborg.vbsupport.ru/showpost.php?p=2219344&postcount=33 ) I've updated this in my ranks mod (identical to this pretty much) however you can edit the .xml and find:

) TYPE=MyISAM
");

Replace TYPE with ENGINE as shown in all occcurances within the .xml:

) ENGINE=MyISAM
");

Make a backup before importing the modified .xml in case you do anything wrong ;).

Thanks Mike,will give that a whirl :)

TheLastSuperman
07-13-2011, 04:04 PM
Thanks Mike,will give that a whirl :)

I also updated my ranks mod last night w/ this info and it should hold true for the Awards mod since they are virtually identical (say to yourself ohh ok everywhere I see Rank or Ranks I replace w/ Award or Awards respectively :D)

Attention:

If you do not properly setup this modification you will see errors such as:

Something unexpected has happened, your rank request cannot be sent at this time. Please contact a site administrator for assistance.

I am getting this error when i recommend or issue rank request?

how to fix it ?

Basically here's the short on this:


Edit your usergroups, for each usergroup set whether they can request and recommend ranks.
Setup the mod options in AdminCP > Ranks System > Rank System Settings.
If your having the requests or recommendations posted as a New Thread OR New Post within a existing thread please ensure that the members usergroup has permission to do so, in other words they can't post a new rank request into a private admin-only forum or a new post in a admin only thread correct? Bingo :p. You can create a new forum and only allow viewing to normal members ;).
If your having users requesting ranks every min or two, adjust your minimum time between posts to be one minute.
Try disabling the Points System, do you still have a issue?


Other issues:


What is the minimum version of MySQL Required?
- The core of the ranks sytem will function on MySQL 4.1. However, in order to use the Points System you must be running at least MySQL 5.0+
I'm seeing output like "-- BEGIN TEMPLATE: ranks_rankusers_bit -->" before it displays members. Why?
In your AdminCP > Settings > Options > General Settings > Add Template Name in HTML Comments = OFF
Styling issues? - https://vborg.vbsupport.ru/showpost.php?p=2213758&postcount=2

sadiq6210
07-13-2011, 05:59 PM
:)
UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)

1- Find the template (memberinfo_block_myawards) and replace it all
<div id="view-myawards" class="<vb:if condition="$selected_tab == 'myawards'">selected_view_section<vb:else />view_section</vb:if>">
<div>

<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>
</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
$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($vbulletin, fetch_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->registry, fetch_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 :)

Also, It works with 4.1.4 :)

COL NIL SATIS
07-14-2011, 01:00 PM
I also updated my ranks mod last night w/ this info and it should hold true for the Awards mod since they are virtually identical (say to yourself ohh ok everywhere I see Rank or Ranks I replace w/ Award or Awards respectively :D)

Cheers mate

Takumi85
07-17-2011, 01:31 PM
Hi, I think after I installed the yaas has created this problem. My vb version is 4.0.8.

A <fieldset> when replying to a topic, in advanced mode (go advanced).

How to remove the black line?

Sorry for my English. :)

Here the images of the problem:

http://img121.imageshack.us/img121/9514/problem2m.png
http://img11.imageshack.us/img11/7516/problemyg.png

thanks!

GameOverViper
07-17-2011, 02:09 PM
UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)

1- Find the template (memberinfo_block_myawards) and replace it all
<div id="view-myawards" class="<vb:if condition="$selected_tab == 'myawards'">selected_view_section<vb:else />view_section</vb:if>">
<div>

<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>
</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
$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($vbulletin, fetch_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->registry, fetch_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 :)

Working for me as well on 4.1.4 on www.RevolutionofGaming.net (http://www.RevolutionofGaming.net). Thanks!

TheLastSuperman
07-17-2011, 05:51 PM
Hi, I think after I installed the yaas has created this problem. My vb version is 4.0.8.

A <fieldset> when replying to a topic, in advanced mode (go advanced).

How to remove the black line?

Sorry for my English. :)

Here the images of the problem:

http://img121.imageshack.us/img121/9514/problem2m.png
http://img11.imageshack.us/img11/7516/problemyg.png

thanks!

The default css they say to include actually overwrites your normal field css, remove that and it should now be back to normal ;). Alternatively you can use the CSS I adjusted for the Ranks mod, simply replace award w/ rank either lower or upper case in every instance and use it instead ;).

.ranks_fieldset {
padding-left: 4px;
border: 1px solid rgb(15, 16, 19);
}

Use this for the Awards mod:

.awards_fieldset {
padding-left: 4px;
border: 1px solid rgb(15, 16, 19);
}


Paste the above code ^ into additional.css

NOW - Edit awards_postbit_display template and find:

<fieldset>

Replace with:

<fieldset class="ranks_fieldset">

RollaJedi
07-18-2011, 01:19 PM
i just wanted to know a couple things:

Does this automatically generate awards for certain criteria? And if so, what is the criteria?

And if it does automatically generate awards for certain criteria being met, does it get rid of the award if that criteria is NO LONGER met?

Thank you!

TheLastSuperman
07-18-2011, 04:00 PM
i just wanted to know a couple things:

Does this automatically generate awards for certain criteria? And if so, what is the criteria?

And if it does automatically generate awards for certain criteria being met, does it get rid of the award if that criteria is NO LONGER met?

Thank you!

No.

Plainly put you can set this up for automated approval after a Award has been requested or recommended otherwise it's manual setup and manual issuing of Awards from AdminCP.

That's a good idea though ;)

maxie
07-19-2011, 09:38 AM
i also got problem when i trying to edit the pm content i was recieve a messages saying

No Phrases Matched Your Query

any don

TheLastSuperman
07-19-2011, 03:51 PM
i also got problem when i trying to edit the pm content i was recieve a messages saying


No Phrases Matched Your Query


any don

Sometimes a phrase itself will contain a {1} <-- Variable so searching for the same text you read after the page was rendered and the variable parsed as a value/word will not work, try searching for a shorter snippet of the error or 3-4 words that seem like they would only be in that phrase and I bet something will come up ;).

Gunturz
07-20-2011, 02:46 AM
Hi all

Members who are using IE9 are reporting a display error with the award showcase in the postbit.

Please see the screen shot for more details.



Any ideas how to fix this?

Regards

i have the same problem, but it appear on both firefox and IE.
any one know how to fix the template ?

dej
07-20-2011, 07:11 AM
Hi, I think after I installed the yaas has created this problem. My vb version is 4.0.8.

A <fieldset> when replying to a topic, in advanced mode (go advanced).

How to remove the black line?

Sorry for my English. :)

Here the images of the problem:

http://img121.imageshack.us/img121/9514/problem2m.png
http://img11.imageshack.us/img11/7516/problemyg.png

thanks!

I have the same issue! Thanks for posting this - I couldn't figure it out :confused:

maxie
07-20-2011, 05:19 PM
i have the same problem, but it appear on both firefox and IE.
any one know how to fix the template ?


Hi all

Members who are using IE9 are reporting a display error with the award showcase in the postbit.

Please see the screen shot for more details.



Any ideas how to fix this?

Regards



go to admin panel--->Award System--->Award System Settings--->Postbit: Display Location-->Where do you want awards showcase to appear in postbit? then set to userinfor_right_after_posts (horizontal postbit)


For me works fine both IE v9 google chrome,mozila,


im using vb 4.1.2

maxie
07-20-2011, 05:20 PM
i have the same problem, but it appear on both firefox and IE.
any one know how to fix the template ?

Sometimes a phrase itself will contain a {1} <-- Variable so searching for the same text you read after the page was rendered and the variable parsed as a value/word will not work, try searching for a shorter snippet of the error or 3-4 words that seem like they would only be in that phrase and I bet something will come up ;).


thank you sir i will try

maxie
07-20-2011, 05:53 PM
Sometimes a phrase itself will contain a {1} <-- Variable so searching for the same text you read after the page was rendered and the variable parsed as a value/word will not work, try searching for a shorter snippet of the error or 3-4 words that seem like they would only be in that phrase and I bet something will come up ;).



i got it sir thanks for the tips


right now fully working this hack in my forum.


:up:

Scalemotorcars
07-20-2011, 07:07 PM
Ive read all edits to make this work on 4.1.4. I upgraded to patch 2 today.

First issue. Ive made the edits and Im still getting 2 tabs on the profile page. Screenshot below.

Second issue. If I click an award on the profile page I get a massive list of errors. I've removed all duplicate errors from the list. The first 2 errors duplicated about 30 times.

Any help would be great.
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_awardbit in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_awardusers_bit in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_categorybit in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_category in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4161

Parse error: syntax error, unexpected T_STRING in /home/EDITED/public_html/forum/awards.php(205) : eval()'d code on line 1

Fatal error: Call to undefined function construct_forum_jump() in /home/EDITED/public_html/forum/awards.php on line 207

Sayrex
07-20-2011, 08:01 PM
hi

i use vbulletin 4.1.2
but next replcase code : https://vborg.vbsupport.ru/showpost.php?p=2220130&postcount=826

my forum ( all page ) show error :

Fatal error: Class 'vB_ProfileBlock' not found in /home/xxxxxxxxxxx/public_html/forum/includes/init.php(331) : eval()'d code on line 121

sadiq6210
07-21-2011, 07:00 AM
hi

i use vbulletin 4.1.2
but next replcase code : https://vborg.vbsupport.ru/showpost.php?p=2220130&postcount=826

my forum ( all page ) show error :

Fatal error: Class 'vB_ProfileBlock' not found in /home/xxxxxxxxxxx/public_html/forum/includes/init.php(331) : eval()'d code on line 121

Be sure that you replace the correct template
1- memberinfo_block_myawards


And the correct plugins

1- (YAAS - Profile Tab) >> disactive

2- (YAAS in Member Profile - Profile) >> EDIT >> Replace it all

Scalemotorcars
07-21-2011, 07:18 AM
Ive read all edits to make this work on 4.1.4. I upgraded to patch 2 today.

First issue. Ive made the edits and Im still getting 2 tabs on the profile page. Screenshot below.

Second issue. If I click an award on the profile page I get a massive list of errors. I've removed all duplicate errors from the list. The first 2 errors duplicated about 30 times.

Any help would be great.
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_awardbit in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_awardusers_bit in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_categorybit in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: awards_category in [path]/includes/functions.php on line 4161

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4161

Parse error: syntax error, unexpected T_STRING in /home/EDITED/public_html/forum/awards.php(205) : eval()'d code on line 1

Fatal error: Call to undefined function construct_forum_jump() in /home/EDITED/public_html/forum/awards.php on line 207

Anyone have a fix for the double tab?

Takumi85
07-23-2011, 12:14 PM
. awards_fieldset {
padding-left: 4px;
border: 1px solid rgb (15, 16, 19);
}

This in additional.css and I edited the fieldset, but I did not understand where to put this:

. ranks_fieldset {
padding-left: 4px;
border: 1px solid rgb (15, 16, 19);
}

I put in additional.css, but for the moment is still so. :(

thanks. ;D

TheLastSuperman
07-23-2011, 04:05 PM
. awards_fieldset {
padding-left: 4px;
border: 1px solid rgb (15, 16, 19);
}

This in additional.css and I edited the fieldset, but I did not understand where to put this:

. ranks_fieldset {
padding-left: 4px;
border: 1px solid rgb (15, 16, 19);
}

I put in additional.css, but for the moment is still so. :(

thanks. ;D

Your mixing this mod up w/ the Ranks mod, while nearly identical you still need to edit the templates and tell the <div> codes that they now have a class i.e. <div class="awards_fieldset"> ;).

Domy
07-23-2011, 09:19 PM
I have 3 medals, but I do not see anything in postbit.
I have vb 4.1.4.
How do I fix it?

RollaJedi
07-25-2011, 05:14 PM
i am in need of something very similar to this mod but much more simplistic. I need a mod that will check a certain database for two numbers (one in each column), and if those two numbers are present, a small award like icon will appear in the posbit of that user. I can go into more detail, but just putting out a feeler if this could be done and if there might be a chance for a custom mod based on this done by this coder? Please, lmk. Thanks!

Gunturz
07-28-2011, 02:22 AM
go to admin panel--->Award System--->Award System Settings--->Postbit: Display Location-->Where do you want awards showcase to appear in postbit? then set to userinfor_right_after_posts (horizontal postbit)


For me works fine both IE v9 google chrome,mozila,


im using vb 4.1.2

thank you.. it's really works..

tankkiller
07-31-2011, 07:51 AM
I tried searching for keywords in this MOD thread but didn't get any hits. Is there a way to turn off the icon column in the awards page? I would like to only see the one image, since I didn't make a smaller icon image of the custom ranks. If I leave the icon url blank, I see the standard red x icon for an image missing.

Thanks in advance. Great mod!

fishmaster
07-31-2011, 08:19 AM
Wish someone would just update this for the latest Vbulletin Release and publish it here..

Mobo
07-31-2011, 08:57 AM
I tried searching for keywords in this MOD thread but didn't get any hits. Is there a way to turn off the icon column in the awards page? I would like to only see the one image, since I didn't make a smaller icon image of the custom ranks. If I leave the icon url blank, I see the standard red x icon for an image missing.

Thanks in advance. Great mod!

The easiest way to to this is to make a simple clear image to use.

Scalemotorcars
07-31-2011, 08:10 PM
I was able to fix 99% of my issues but Im still missing the border around the Awards Tab when I first visit a profile.

If I click the tab I get the border and background color if I click another tab the border then shows up.

tankkiller
08-01-2011, 01:39 AM
The easiest way to to this is to make a simple clear image to use.

That's what I did but I did find the option in the ACP so I can hide either or.

Mobo
08-01-2011, 12:16 PM
Good to know.

Gamelobby
08-02-2011, 12:51 AM
Is that to help fix my issue or someone else's.?

I didn't try the original one or your "better" one, because i thought it was directed at someone else.
ok im confused. lol




Is there an obvious reason why this shows up on my awards page.?
Members who received this award: 33
-- BEGIN TEMPLATE: awards_awardusers_bit --> name, name, name, name, name, etc..
I have tried many things & read many posts, but i cant seem to figure it out.
vB - 4.1.2
Yaas - v4.0.2 PL1

TheLastSuperman
08-02-2011, 10:30 AM
ok im confused. lol




Is there an obvious reason why this shows up on my awards page.?

I have tried many things & read many posts, but i cant seem to figure it out.
vB - 4.1.2
Yaas - v4.0.2 PL1

No your not, it was initially directed at you as you assumed, so now go try it :p.

I'm seeing output like "-- BEGIN TEMPLATE: ranks_rankusers_bit -->" before it displays members. Why?
In your AdminCP > Settings > Options > General Settings > Add Template Name in HTML Comments = OFF

Same thing ^

Gamelobby
08-02-2011, 05:45 PM
No your not, it was initially directed at you as you assumed, so now go try it :p.

Same thing ^
Ahh see now that worked like a charm. :up:
Not sure where i missed it before, but i just didn't see that in any reply. :D

Scalemotorcars
08-03-2011, 12:07 AM
Still havent found the fix. Anyone please...

Lemmy_6
08-03-2011, 03:00 AM
Still havent found the fix. Anyone please...
https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742
This should solve your problem.

Scalemotorcars
08-03-2011, 08:04 PM
https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742
This should solve your problem.

Thanks !!!! That did the trick..

One thing weird. I had tried it before but it didnt work. The only thing I can think of is that the site was turned off. ???

Anways works now. Great mod, my members really love it.

n00bl3t
08-04-2011, 05:49 AM
When I was trying to upload the .xml I got the collowing error. Can anyone help me please?

Database error in vBulletin 4.1.4:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Table 'zmu.award' doesn't exist
Error Number : 1146
Request Date : Thursday, June 30th 2011 @ 07:09:41 AM
Error Date : Thursday, June 30th 2011 @ 07:09:42 AM
Script : http://www.********.***/*****/admincp/plugin.php?do=productimport
Referrer : http://www.********.***/*****/admincp/plugin.php?do=productadd
IP Address : **.**.***.***
Username : *******
Classname : vB_Database
MySQL Version : 5.5.8

Any help is appreciated

Bumping this problem. I searched and still can't figure this out.

Mine is

MySQL Error : Duplicate column name 'award_allowrecommend'

I can't figure out where to find the column and delete it or something. Please help.

discodoran
08-04-2011, 10:03 PM
having problems on vbulletin 4.1.5 when someone requests an award it say Users not Found: (then my admin team here) Any fixes for this yet or is it just me?

TheLastSuperman
08-05-2011, 12:42 AM
Bumping this problem. I searched and still can't figure this out.

Mine is



I can't figure out where to find the column and delete it or something. Please help.

Try this: https://vborg.vbsupport.ru/showpost.php?p=2217761&postcount=32
*Mods are nearly identical so open the award system product .xml and modify.

having problems on vbulletin 4.1.5 when someone requests an award it say Users not Found: (then my admin team here) Any fixes for this yet or is it just me?

Hmm you do have the usergroup options set correctly right? If not that have you ever had a error similar to the above I just quoted?

n00bl3t
08-05-2011, 01:51 AM
Doesn't work; tried it before and just tried it again. Still getting:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'

RollaJedi
08-12-2011, 03:51 PM
Just curious why automation of awards was never implemented. It was discussed a lot in the earlier pages of this thread.

TheLastSuperman
08-13-2011, 04:11 AM
Doesn't work; tried it before and just tried it again. Still getting:

Uninstall the mod, upon re-install w/ your modified .xml it will work, you will lose all current awards though.

Just curious why automation of awards was never implemented. It was discussed a lot in the earlier pages of this thread.

It worked on the 3.6 versions, I believe there is a upload for that though - check the attachments up top in the mod info ^

elzarie
08-14-2011, 12:21 AM
How can I add it the points count to custom place ?

tidus78
08-19-2011, 09:24 PM
I'm losing some medals ... I tried to reload the images in the root of the forum, also renaming ,but does not work ...

https://vborg.vbsupport.ru/external/2011/08/44.png

nacaruncr
08-20-2011, 07:05 AM
these don't have the extension .jpg, .png, .gif.... try to put an extension and reloading

odie3
08-26-2011, 03:00 PM
Have it installed after upgrading from 3.6.x to 4.1.x! After re-installing I lost all my data from 3.6 but was able to export the entries from the old forums DB and insert them in to the new 4.1 DB (always good to keep your old data, never know what you might need).

odie3
08-27-2011, 03:42 PM
Thank you for the below, that sorted out my problem too. however now I have two tabs for both "Awards" and "Ranks". :( Guess I did something wrong!

UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)

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

.....


Good luck :)

TheLastSuperman
08-27-2011, 05:40 PM
Thank you for the below, that sorted out my problem too. however now I have two tabs for both "Awards" and "Ranks". :( Guess I did something wrong!

Disable the plugin, in a post here by sadiq it tells you to disable the plugin YAAS - Profile Tab and I bet if you do that, the second tab will go poof' :cool:.

n00bl3t
08-27-2011, 08:10 PM
I've done everything you said TheLastSuperman and nothing is working.

I have completely uninstalled and removed all files and started with a fresh upload changing what you told me to change. I still get the errors. I just guess I won't be using this mod :(

odie3
08-27-2011, 08:32 PM
Disable the plugin, in a post here by sadiq it tells you to disable the plugin YAAS - Profile Tab and I bet if you do that, the second tab will go poof' :cool:.

Yep that corrected the double tab in Awards Profile!

TheLastSuperman
08-27-2011, 09:45 PM
I've done everything you said TheLastSuperman and nothing is working.

I have completely uninstalled and removed all files and started with a fresh upload changing what you told me to change. I still get the errors. I just guess I won't be using this mod :(

Hmm if I remember correctly this version of the awards left some tables still in your db... again not 100% sure on that but check your database, if you see tables associated w/ the Awards mod then you know that is the issue i.e. ensure the mod is uninstalled, then review the DB and remove any remaining tables - Now install it and it should work ;).

Yep that corrected the double tab in Awards Profile!

:cool:

odie3
08-28-2011, 12:27 PM
EDIT: This is not a issue, since I had "4" in the user to process awards - replaced with my real username and all is well. Not sure why I put my user ID in there...

When users (and me) try to submit or recommend a award we get this (4 is my user ID, that I know):

Errors

The following errors occurred with your submission

The following users were not found:
4

It appears the "Request/Recommend" is going through, since I can grant them - so I guess the system is having problems with tell me (as the admin) that someone request/recommended award?

Also, once you grant a award the award request it is not dropping off the "Award Requests" page, is it suppose to?

odie3
08-29-2011, 04:13 PM
sorry me again :(

Re-install sorted out the problem.... guess I mucked something up at some point. i feel like a moron ;)

I just got "Scary Dark" from Pure vB and it appears the Award MOD is not playing nice with members profile details.
1. Footer is rapping up at the tabs
2. clicking on any tab does not work (stuck on message)
3. none of the hotlinks on the profile column are not working (Send PM, Send Email, Home Page, etc).

I am going to uninstall, reinstall, do the profile updates for the floating tab but I am not sure this will correct it since this just started with "Scary Dark" (and Ranks Mod is operating properly).

n00bl3t
09-01-2011, 12:00 AM
Hmm if I remember correctly this version of the awards left some tables still in your db... again not 100% sure on that but check your database, if you see tables associated w/ the Awards mod then you know that is the issue i.e. ensure the mod is uninstalled, then review the DB and remove any remaining tables - Now install it and it should work ;).


That was my original (first) question.

How do I go in and find the database or what not. I need help or someone to walk me through that.

I am guessing to start at "cPanel X" which I am using and then go to the "Databases" section but then I get lost. Unless I should go to "PhPmyadmin" ?? I don't know 0.o

If you could walk me through to find/locate the database to this awards and help me remove it I would greatly appreciate that!

odie3
09-01-2011, 01:19 AM
Yes, you want to go to PHPMyAdmin. Once there you will need to select your Database, then the very first thing you do is go to the "Export" tab and click "Go" so you will have a complete backup of your DB. Messing around in here can cause you bigger problems that you may not be able to recover from.

Then click the "Structure" tab.
Then select the "award" tables
Then check what you selected
Then check what you selected again
Then one last time check what you selected again

Once you are sure you are selecting the correct tables, scroll down to the bottom and from the selection menu box chose "drop". Once you confirm that is what you want to do the tables are gone. The only way to get them back (if you selected something wrong) is to restore from a backup (which should have been the first thing you did before dropping any table from a database).

n00bl3t
09-01-2011, 01:54 AM
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: On ones profile page 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...

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/showthread.php?p=2189701#post2189701

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: On ones profile page 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.php?p=2213758&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:
$headinclude
</head>

insert $headinclude_bottom
$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
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.php?p=2189701&postcount=742

:D
regards ;)

GameOverViper
09-20-2011, 09:52 PM
I did this tutorial to fix most of the problems with my site (http://www.revolutionofgaming.net), 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
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
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
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
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
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:
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
UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)

1- Find the template (memberinfo_block_myawards) and replace it all
<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
$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($vbulletin, fetch_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->registry, fetch_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 :)

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

Edit YAAS - Profile Tab to be:
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
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 (https://vborg.vbsupport.ru/showthread.php?t=196244).

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
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
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
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
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/showthread.php?p=2189701#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
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.


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:

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

TheRealso0sick
10-28-2011, 12:50 AM
stupid question im sure, but will this work for Vb4.1.5

cen1
10-29-2011, 07:36 PM
I don't want to read through 62 pages so I'll ask.

We're still using this system for 3.8 version but we're moving to vb4 soon.

In 3.8 we allowed the awards to be given from modcp. We assigned a new usergroup with permissions which show the Give award link in modcp to certain moderators. But this did not work at all... even the lowest level mod (normal subforum moderator without award permission) could simply enter modcp and add /awards.php and be able to use it.

This is especially a problem because we have an option to create clan subforums where any regular user can get mod, thus opening the award system to public.

Are these permissions fixed in vb4 version or not?

CypherSTL
10-31-2011, 03:47 PM
I will test this with the latest version of vBulletin this evening.

Kiran-E-Sehar
11-01-2011, 09:56 PM
i am trying to start auto thread but unable to start auto thread

please help me

cen1
11-02-2011, 11:11 PM
I will test this with the latest version of vBulletin this evening.

Found out anything yet? I just wonder if we set the permissions wrong or there is an actual flaw (speaking for 3.8, it might have transfered to v4).

chrissyplum79
11-05-2011, 01:14 PM
I am having a problem with the awards system I am trying to add the CSS when I add it to
memberinfo_block_myawards the back to the awards never does show up then when I click the awards tab or any other tab it appears can someone please tell me how to fix that or tell me where to add this code:
/* Begin Style 1 Fieldset Formatting*/

fieldset {
padding-left: 4px;
border: 1px solid rgb(15, 16, 19);
}

legend {

}

/* End Style 1 Fieldset Formatting*/

DIV.awards_postbit_style2 {
PADDING-LEFT: 2px;
}

DIV.awards_postbit_style3 {
PADDING-LEFT: 2px;
}

/* Begin Custom Formatting*/
DIV.awards_postbit_customcss {
PADDING-LEFT: 2px;
}

DIV.awards_showcase_headtext {

}

DIV.awards_showcase_awarddisplay {

}

DIV.awards_showcase_infodisplay {

}
/* End Custom Formatting*/

Nuker_Viper
11-06-2011, 03:36 PM
I don't want to read through 62 pages so I'll ask.

We're still using this system for 3.8 version but we're moving to vb4 soon.

In 3.8 we allowed the awards to be given from modcp. We assigned a new usergroup with permissions which show the Give award link in modcp to certain moderators. But this did not work at all... even the lowest level mod (normal subforum moderator without award permission) could simply enter modcp and add /awards.php and be able to use it.

This is especially a problem because we have an option to create clan subforums where any regular user can get mod, thus opening the award system to public.


Are these permissions fixed in vb4 version or not?
i have this every same problem with the moderators. I want soem to award it and some who cannot have access to for my clan and off limits to the public. i am stilll searching for a solution.

Nuker_Viper
11-06-2011, 03:39 PM
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.

most likely it has something to do with your theme did you check other themes to make sure it is just that one? It could help them narrow down the problem.

cen1
11-08-2011, 10:57 PM
i have this every same problem with the moderators. I want soem to award it and some who cannot have access to for my clan and off limits to the public. i am stilll searching for a solution.

Are you taling about 3.8 or vb4?

Anyway, good to know that there are people out there with the same problem.

chrissyplum79
11-09-2011, 11:52 AM
there is the back tab on profiles for Visitor Messages, About Me, and Friends but when I see the awards there is no back tab it just says awards. Other than that this is a really good mod if anybody knows how to fix that please tell me.

squidsk
11-09-2011, 02:46 PM
there is the back tab on profiles for Visitor Messages, About Me, and Friends but when I see the awards there is no back tab it just says awards. Other than that this is a really good mod if anybody knows how to fix that please tell me.
See https://vborg.vbsupport.ru/showpost.php?p=2256294&postcount=906 for fixes that address this and a few other issues.

Kirkus
11-10-2011, 11:29 PM
I'm going to upgrade my forum from vB 3.8 to vB 4.1. I'm unsure if I should upgrade my YAAS first then my forum. Or my forum first and then my YAAS.

I'd like to not lose awards that have already been given.

Any help would be really appreciated. Thanks. :)

speedracer68
11-11-2011, 05:42 PM
I see 3 files to download. Do I need all 3 of them?

squidsk
11-12-2011, 12:45 AM
I'm going to upgrade my forum from vB 3.8 to vB 4.1. I'm unsure if I should upgrade my YAAS first then my forum. Or my forum first and then my YAAS.

I'd like to not lose awards that have already been given.

Any help would be really appreciated. Thanks. :)

Upgrade YAAS first, the upgrade process should be relatively painless. The vb4 version recommends to be running the most recent 3.8 version.

I see 3 files to download. Do I need all 3 of them?

No you just need the last one YaAS-4.0.2-PL1.zip.

EvoTronix.com
11-13-2011, 01:11 AM
Will this work for VB 4.1.7? Or should I not even think about it?

speedracer68
11-13-2011, 03:35 PM
Will this work for VB 4.1.7? Or should I not even think about it?

Works great on 4.1.7 for me.

speedracer68
11-13-2011, 03:37 PM
Ho do I remove the underscore that shows between each of the award icons? I have people that have several I set up in the signature. In between each one is an undserscore I am trying to eliminate.

Any thoughts?

SN1PERCITY
11-14-2011, 02:00 AM
cypher i got this problem- can you help me with this

Database error in vBulletin 4.1.7:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'
Error Number : 1060
Request Date : Sunday, November 13th 2011 @ 06:57:36 PM
Error Date : Sunday, November 13th 2011 @ 06:57:36 PM
Script : http://www.*************.com/admincp/plugin.php?do=productimport
Referrer : http://www.****************.com/admincp/plugin.php?do=productadd
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.92-community-log

speedracer68
11-14-2011, 07:09 PM
I there a cap on the number of characters in a reason for giving an award? I am still testing and I am seeing the reason for the awards being cut off. For example it's two sentences and what shows is only part of one. I'm sorry if I missed someone else asking this question in the previous 62 pages. I did a search and didn't see anything.

Empire Gaming
11-15-2011, 08:38 AM
Will this work for VB 4.1.7? Or should I not even think about it?

Works fine on vb4.1.7, 4.1.7 Patch Level 1 & 2, and 4.1.8 (just upgraded)

speedracer68
11-15-2011, 07:08 PM
We are getting this error when suggesting an award. I see it address some pages back. Was it take care of in a newer version?

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

I also have other problems. In the admin panel when I grant an award it still shows it needing to be granted or denied. I click it again and the same thing happens. Then if you look at the award you will see it has been granted to the same person for each time I tried it.

squidsk
11-15-2011, 09:08 PM
We are getting this error when suggesting an award. I see it address some pages back. Was it take care of in a newer version?

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


I also have other problems. In the admin panel when I grant an award it still shows it needing to be granted or denied. I click it again and the same thing happens. Then if you look at the award you will see it has been granted to the same person for each time I tried it.
If the date isn't more recent than the last update (May 2010) then no and given this hasn't been updated in a year and a half I'd say unlikely.

Nuker_Viper
11-16-2011, 12:11 AM
can i have a 3rd party modify this mod to suit what i need it to do?

Nuker_Viper
11-16-2011, 12:53 AM
We are getting this error when suggesting an award. I see it address some pages back. Was it take care of in a newer version?

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

if it still seen in your awards request. (like mine was) i would just change the phrase so that it says your request has been submitted. i did that to mine. a member would request an award and give that error but my awards commander would still have it in the awards request box.

Nuker_Viper
11-16-2011, 04:32 PM
can i have a 3rd party modify this mod to suit what i need it to do?



NVM my question was answered before i posted it. Just learned about the Re-Useable Code check mark...

squidsk
11-17-2011, 10:44 PM
cypher i got this problem- can you help me with this
Database error in vBulletin 4.1.7:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'
Error Number : 1060
Request Date : Sunday, November 13th 2011 @ 06:57:36 PM
Error Date : Sunday, November 13th 2011 @ 06:57:36 PM
Script : http://www.*************.com/admincp...=productimport
Referrer : http://www.****************.com/admi...?do=productadd
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.92-community-log



This problem is caused by en error in the upgrade script when upgrading from YAAS 3.8.4, which has already added the column. In order to fix it you need to open the xml file find the part of the code that upgrades for version 3.8.3 (approximately line 160) and delete that section.

speedracer68
11-18-2011, 04:46 PM
Is there a way to set requested awards to auto approve?

SN1PERCITY
11-18-2011, 05:00 PM
This problem is caused by en error in the upgrade script when upgrading from YAAS 3.8.4, which has already added the column. In order to fix it you need to open the xml file find the part of the code that upgrades for version 3.8.3 (approximately line 160) and delete that section.
so i did that and now i get

Database error in vBulletin 4.1.7:

Invalid SQL:
CREATE TABLE award_requests (
award_req_id int(8) unsigned NOT NULL auto_increment,
award_req_timestamp timestamp NOT NULL default CURRENT_TIMESTAMP,
award_req_uid int(8) NULL,
award_rec_uid int(8) NULL,
award_req_aid int(8) NULL,
award_req_reason varchar(512) NOT NULL,
PRIMARY KEY (award_req_id)
);

MySQL Error : Table 'award_requests' already exists
Error Number : 1050
Request Date : Friday, November 18th 2011 @ 09:58:53 AM
Error Date : Friday, November 18th 2011 @ 09:58:54 AM
Script : http://www.**********.com/admincp/plugin.php?do=productimport
Referrer : http://www.***************.com/admincp/plugin.php?do=productadd
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.0.92-community-log

squidsk
11-18-2011, 06:22 PM
Given the table already exists in 3.8.4 with the exact same settings you can remove that part of the script as well. Its the part listed in the upgrade for version 4.0.1.2, located at about line 176.

SN1PERCITY
11-18-2011, 09:37 PM
could you give me the scipt i dont want to delete the wrong one

Empire Gaming
11-27-2011, 05:30 AM
For those of you having issues with the display of the awards on the postbit_legacy, try selecting the "postbit_right_after_posts" location and it should display more neatly.

Thanks. Your recommendation fixed the issue of showing the awards (and ranks) to the right of the user avatar to them now being underneath the user avatar.

exhibitionpoult
11-27-2011, 08:41 AM
Installed with no problems but when i click the awards tab i get the following error:

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /awards.php:98) in /includes/adminfunctions.php on line 1907

Any ideas

snowlion
11-27-2011, 12:27 PM
Installed with no problems but when i click the awards tab i get the following error:

Fatal error: Cannot redeclare construct_depth_mark() (previously declared in /awards.php:98) in /includes/adminfunctions.php on line 1907

Any ideas
Here you go #12
http://www.dragonbyte-tech.com/f65/yaas-4-0-2-conflict-1092/index2.html

exhibitionpoult
11-28-2011, 06:47 AM
Got it to work with that last post. Now my style is only half loaded. Any ideas there

zeroality
12-03-2011, 01:33 AM
Not sure if this is still under development but there's a bug: users with > or < in their names aren't recognized when you try to add an award to them.

You have to use &gt; or &lt; in place of the symbols. For example, Luck&gt;Skill instead of Luck>Skill.

I just tested and this error isn't reproduced in normal vB ACP functions.

Mobo
12-03-2011, 01:50 AM
I have also noticed that other special characters in the user name causes it not to find them. I have always just used the User ID for the person in those cases. A pretty simple solution.

Mobo
12-09-2011, 08:02 AM
If anyone feels like playing around with this Mod, I think a setting to start a new thread when you approve a user for an award.

Something very similar to the thread that can be started when a user requests an award. I want the rest of my community to know a user got an award and a thread would be perfect.

Anyone what to give it a shot?

CypherSTL
12-16-2011, 01:13 PM
Hey guys,

I've setup a centralized bug tracker for the Awards System to help manage the bugs, etc, easier and will speed up future releases.

Send bug reports to yaas-bugs@kd0igo.com to be included in our bug tracker. Track bugs at http://projects.kd0igo.com/projects/yaas

Only send BUG reports, please no feature requests at this time.

sadiq6210
12-16-2011, 05:39 PM
Hey guys,

I've setup a centralized bug tracker for the Awards System to help manage the bugs, etc, easier and will speed up future releases.

Send bug reports to yaas-bugs@kd0igo.com to be included in our bug tracker. Track bugs at http://projects.kd0igo.com/projects/yaas

Only send BUG reports, please no feature requests at this time.

Happy to see you here again
Welcome back :)

CypherSTL
12-18-2011, 11:47 PM
Over the next few days I'll be going through and compiling a list of the bugs that have been posted here (that stand out at me of course) and adding them to the bug tracker.

If you have any bugs, please send an email to yaas-bugs@kd0igo.com with the bug details, and please specify that the bug is for vB4. You may view all the listed bugs at http://projects.kd0igo.com/projects/yaas

Keep in mind, I also support the VB 3.8 version of the mod as well, so bugs listed will not all be for the same version.

vBNinja
12-28-2011, 05:18 AM
Is there any way to downgrade to 4.0.2 (without the PL1)

because i'm getting this error when trying to request/recommend awards:

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

Also, when someone is granted an award, their profile page messes up and all the links become unclickable..

We really need an update...

Thanks!

TiKu
12-30-2011, 02:16 AM
I installed this mod on VB 4.1.8 and I've found a couple of bugs in YAAS 4.0.2 (and my mail to yaas-bugs@kd0igo.com was rejected):

1) The plugin "YAAS - Profile Tab" doesn't use the correct css classes for the <dd> tag. It should be userprof_module and userprof_moduleinactive.

2) In the plugin "YAAS - Profile Tab" the links should be "&tab=myawards#myawards". I'm not sure whether this really is important, but all other tabs are built like this.

3) In the template "memberinfo_block_myawards" the first <div> tag isn't
closed before the <br />: <div <br /> instead of <div><br />

4) YAAS doesn't work well together with iTrader 2.8.2 (https://vborg.vbsupport.ru/showthread.php?t=232044). iTrader displays a tab on the user profile page as well. If you use both add-ons, the iTrader tab will be empty. Also YAAS inserts an empty tab below the tab bar if either the YAAS tab or the iTrader tab is selected. Clicking this tab is like clicking the YAAS tab.

Regards
TiKu

sadiq6210
12-30-2011, 05:52 AM
I installed this mod on VB 4.1.8 and I've found a couple of bugs in YAAS 4.0.2 (and my mail to yaas-bugs@kd0igo.com was rejected):

1) The plugin "YAAS - Profile Tab" doesn't use the correct css classes for the <dd> tag. It should be userprof_module and userprof_moduleinactive.

2) In the plugin "YAAS - Profile Tab" the links should be "&tab=myawards#myawards". I'm not sure whether this really is important, but all other tabs are built like this.

3) In the template "memberinfo_block_myawards" the first <div> tag isn't
closed before the <br />: <div <br /> instead of <div><br />

4) YAAS doesn't work well together with iTrader 2.8.2 (https://vborg.vbsupport.ru/showthread.php?t=232044). iTrader displays a tab on the user profile page as well. If you use both add-ons, the iTrader tab will be empty. Also YAAS inserts an empty tab below the tab bar if either the YAAS tab or the iTrader tab is selected. Clicking this tab is like clicking the YAAS tab.

Regards
TiKu

https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742

TiKu
12-30-2011, 09:32 AM
Many thanks, it works great!

TheSupportForum
12-30-2011, 07:20 PM
<font color="Red">PLEASE UPDATE THIS MOD TO WORK WITH VERSION 4.1.9 PLEASE</font>

EasyEazy
12-30-2011, 09:32 PM
Installed this again today after having a long time trying to get it to work.

Appreciate the update and the work you do mate. so far working like a charm.

Keep it up.

Bluefin221
01-05-2012, 01:20 PM
Out of interest, can you give the same award to a member say 30 times and it will say plus 30 awards?

For example I run a tournament which is the same tournament and instead of constant new awards I'd like to use the same one, but if someone wins the tournament twice can I issue them that same award again? again?

squidsk
01-05-2012, 03:11 PM
Out of interest, can you give the same award to a member say 30 times and it will say plus 30 awards?

For example I run a tournament which is the same tournament and instead of constant new awards I'd like to use the same one, but if someone wins the tournament twice can I issue them that same award again? again?
I don't think so, but you can probably use the points system for the award to achieve what you're after.

Bluefin221
01-05-2012, 06:01 PM
I don't think so, but you can probably use the points system for the award to achieve what you're after.

I tested it on myself, you can give the same user the same award again and again, it just lined up the medals.

mIQe
01-06-2012, 07:49 AM
I have 4.1.8 and installed this mod.

Replaced the Memberinfo_block_myawards with this:

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

<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>
</div>

Edited the YAAS with this

$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($vbulletin, fetch_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->registry, fetch_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 -//
}
}
}
}

These are the problems I'm experiencing:

When clicking a username to see their profile the last Awards is the last tab but it doesn't have a tab like all the other tabs. It's just the text. After I've clicked the text the tab appears and stays there until I leave the page and return. Then it is gone again. But there isn't anything under the tabs at all.

When looking at the user info in the forum posts there are no awards in the userinfo next to the post or in the signature.

I'm no expert so some of the suggested fixes I've not been able to do as I can't find where to do it in the admincp.


* edit *

Stupid me tried to uninstall and then install it again. Now I keep getting an error:

Database error in vBulletin 4.1.8:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'
Error Number : 1060
Request Date : Friday, January 6th 2012 @ 03:28:17 AM
Error Date : Friday, January 6th 2012 @ 03:28:18 AM
Script : http://***.***.***/***/plugin.php?do=productimport
Referrer : http://***.***.***/***/plugin.php?do=productadd
IP Address : ***.***.***.***
Username : ***
Classname : vB_Database
MySQL Version : 5.0.91mm-log

TiKu
01-06-2012, 09:13 AM
Did you also do this?
2- From(Plugin Manager)
Find (YAAS - Profile Tab) and disactive it.

squidsk
01-06-2012, 03:54 PM
The uninstall and then install again would seem, to me anyways, to indicate that there's an error with the uninstall code that isn't removing all the tables from the database, which of course will cause problems when re-installing.

mIQe
01-06-2012, 05:40 PM
Did you also do this?

Yes, I did that too.

The uninstall and then install again would seem, to me anyways, to indicate that there's an error with the uninstall code that isn't removing all the tables from the database, which of course will cause problems when re-installing.

Well I don't know what went wrong as the uninstall didn't do it's job but I've tried uploading a back up of all files and the SQL databases and it didn't help. So I'm at a loss as to what happened or how to get this working as it should.

mIQe
01-07-2012, 08:00 PM
Anyone know how to manually remove these so I can install again?

Database error in vBulletin 4.1.8:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Duplicate column name 'award_allowrecommend'
Error Number : 1060
Request Date : Friday, January 6th 2012 @ 03:28:17 AM
Error Date : Friday, January 6th 2012 @ 03:28:18 AM
Script : http://***.***.***/***/plugin.php?do=productimport
Referrer : http://***.***.***/***/plugin.php?do=productadd
IP Address : ***.***.***.***
Username : ***
Classname : vB_Database
MySQL Version : 5.0.91mm-log

I managed to manually remove everything and install this again.

So back to the original problem

When someone requests awards this happens:

The following errors occurred with your submission

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

The following errors occurred with your submission

The following users were not found: 1


Then there is the problem with the award tables and tab.

http://www.mattachine.net/images/yaas_problems.png

1. This is how the left side looked before the user 1 got an award (I know it isn't pretty but I haven't been able to get that double border at the bottom changed).
2. This is how the same location looks after they have got one award.
3. This is where that strange tab ends up when the Awards tab link is clicked.
4. This is how the tabs look when there is no reward given. It's just the row of tabs with no box or anything under it. Looks strange. Note that the Awards tab has been clicked in this picture and then an other tab thus creating a border and box with the right design. Not like the un-clicked one in image 7.
5. Here I've clicked the Awards tab after an award has been given out and the strange tab in image 2 have moved up under the normal row of tabs creating a gap. Clicking the other tabs does not make this happen, only the Awards tab.
6. Here the Awards tab has been clicked for a user with awards. The tab background and border is correct but the gap is present.
7. This is how the Awards tab look when a user's profile is first entered.

So what should I do to get this sorted?

mIQe
01-09-2012, 05:55 PM
I've done the things below and I can't see if it changed anything. Certainly not any of the problems I'm having were fixed with this. I'm running 1.4.8. Can anyone please help me?

UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)

1- Find the template (memberinfo_block_myawards) and replace it all
<div id="view-myawards" class="<vb:if condition="$selected_tab == 'myawards'">selected_view_section<vb:else />view_section</vb:if>">
<div>

<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>
</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
$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($vbulletin, fetch_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->registry, fetch_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 :)

mIQe
01-09-2012, 06:04 PM
Apparently, the below code which was unnecessary if I put in the other code in my previous post solved the problem.

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

Edit YAAS - Profile Tab to be:
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>

So no more additional help needed about the tab situation. :D

mIQe
01-09-2012, 09:23 PM
I've read through this thread for some info on how the Automation tool works but I can't find what I'm looking for.

So lets say I want usergroup 2 to get award 1 after 365 days.
There is a Task Name box: 1 Year Membership
There's a box where I can enter the award ID: 1
There's a Criteria menu where I can select "Days as Member"
Then there's the Criteria box. Use only numbers, but doesn't say how.
(I know I have to put in usergroup_id:2 there but how? And how do I combine that with the amount of days? Next question how do I make it so that when I add a 2 year award that it replaces the 1 year award and so on?)
Last there's an issued reason box which is quite basic: You've been a member for one year!

Mobo
01-10-2012, 05:17 AM
mIQe,

It's possible that I missed it some place in the thread, but I think that the Automation function is not able to replace your 1 year with the 2 year. You would have to manually go back and remove all of the 1 year awards once someone hit the 2 year mark.

The Automation part has huge potential, but in it's current form is just missing some key elements to make it worth while using... I would love to use it on my site.

mIQe
01-10-2012, 07:53 AM
Ok, I can live with doing that manually, but do you know how to input the values in to the Criteria box?

As it can only be numbers I have no idea how to input UsergroupID and DaysAsMember.

Mobo
01-10-2012, 10:39 AM
Sorry I don't since I do not use the Auto feature.

Bluefin221
01-10-2012, 01:21 PM
I have been messing around with the custom css and trying to change the way my awards are displayed, but I keep ruining it and its not looking the way I want it to.

Basically I want the awards to look like ranks on the postbit and not tiny awards, this is because I run a variety of tournaments and full teams are issued an award. I want the award system to also stack up the awards one after the other, again just like ranks do, each time i thought I cracked it it just messed up the lot.

Is it also possible to move the awards straight under the ranks?

Mobo
01-10-2012, 03:48 PM
Are you talking about the built in ranks of vB? You should be able to move them just about anywhere in your postbit template, you just have to figure out the code needed to do it.

Bluefin221
01-10-2012, 04:10 PM
Are you talking about the built in ranks of vB? You should be able to move them just about anywhere in your postbit template, you just have to figure out the code needed to do it.

Yes, and yeah I know, problem is everytime I edit the CSS I mess it up so was hoping someone could help in that respect.

Mobo
01-10-2012, 05:04 PM
I can only suggest that when you get one part looking the way you want it to, you copy the code over to a txt file and save it. That way if you mess it up as you continue to work on it, you can easily go back to the last known good point. For me, it was really just a trial and error process. I did not move my awards around though, so I can't really give you any direct answers.

mIQe
01-10-2012, 06:37 PM
My forum logo is aligned center on all my pages except the awards page where it is aligned to the left. I use Firebug to locate the CSS for it and found this:

fieldset, img {
border: 0 none;
}

Did a search for that and it didn't yield any results.

Does anyone know where to change this?

Bluefin221
01-10-2012, 08:00 PM
Ok I solved one of my problems, I just need to sort out two issues.

When I issue someone the same award it displays the same award again and again, given that on my site you play internationals and are given a medal each time you represent your country some guys can end up with 30/40 awards (cap for playing for country) so that is going to display that many times. I need the award to only show up once, but for the awards total to display correctly at the bottom. Is there an easy way to do this?

Second issue is how to display it under the ranks without wrecking the place.

Rekinek
01-11-2012, 10:28 PM
Hi. I get this error:

Database error in vBulletin 4.1.4:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Table 'pstrophy_ps3trophy.award' doesn't exist
Error Number : 1146

Any one can help me. Like step by step what to do. Thanks.

Toshinobu
01-12-2012, 01:18 PM
Hi. I get this error:

Database error in vBulletin 4.1.4:

Invalid SQL:
ALTER TABLE award ADD award_allowrecommend TINYINT( 1 ) DEFAULT 1 NOT NULL,ADD award_pointvalue TINYINT( 3 ) DEFAULT 0 NOT NULL;

MySQL Error : Table 'pstrophy_ps3trophy.award' doesn't exist
Error Number : 1146

Any one can help me. Like step by step what to do. Thanks.
I am getting the same error with vbulletin 4.1.9 :(

*EDIT*
Fixed by changing all instances of "TYPE=MyISAM" in the XML file to "ENGINE=MyISAM"

mIQe
01-12-2012, 09:13 PM
So no one knows how to center the logo on the awards.php page?

squidsk
01-13-2012, 03:47 AM
Which logo?

mIQe
01-13-2012, 07:19 AM
The forum logo in the header. It is centred in all the other forum pages but the awards.php one.

dej
01-13-2012, 11:20 PM
Question with a screencast.

I was running this fine for months, then just upgraded to 4.1.10 and have 1 small issue.

Everything works great, except now the "Awards Tab" on Profiles is acting weird.

It's hard to explain, so here's a video snippet.

http://bit.ly/xeSpqg

This happens on all profiles, even when they have less tabs (example, no blog).

This is on the default vb theme.

Thanks!

P.S. Btw, I did search this thread and found that the "earlier fix" for tabs doesn't actually work =/

https://vborg.vbsupport.ru/showpost.php?p=2256294&postcount=906

mIQe
01-13-2012, 11:38 PM
I've even edit the pages themselves with no result.
The rest of my pages have the website logo centered on all of them except the Aeards page which has it aligned to the left.

I even edited the header template and added the parts marked in bold below but it had no effect at all.

<div valign="center" id="header" class="floatcontainer doc_header">
<div valign="center"><a name="top" href="index.php" class="logo-image"><img align="middle" src="images/logo.png" alt="Home" /></a></div>

dej
01-14-2012, 12:07 AM
I've even edit the pages themselves with no result.
The rest of my pages have the website logo centered on all of them except the Aeards page which has it aligned to the left.

I even edited the header template and added the parts marked in bold below but it had no effect at all.

Did you use the above_body tag on that?

bremereric
01-14-2012, 04:05 AM
I just installed this and am in the process of testing and learning. First question is what's the points system?
Can the Total Points text be removed?

sadiq6210
01-14-2012, 04:19 AM
Question with a screencast.

I was running this fine for months, then just upgraded to 4.1.10 and have 1 small issue.

Everything works great, except now the "Awards Tab" on Profiles is acting weird.

It's hard to explain, so here's a video snippet.

http://bit.ly/xeSpqg

This happens on all profiles, even when they have less tabs (example, no blog).

This is on the default vb theme.

Thanks!

P.S. Btw, I did search this thread and found that the "earlier fix" for tabs doesn't actually work =/

https://vborg.vbsupport.ru/showpost.php?p=2256294&postcount=906

It is working in my forum
It is three steps & make sure to apply the second step
https://vborg.vbsupport.ru/showpost.php?p=2256294&postcount=906

bremereric
01-14-2012, 05:31 AM
It's late at night for me. I will try those three steps as in post 906 tomorrow and see if it works. I have two screenshots of it in action. All tabs in a users profile will display one at the bottom and then at the top left in the awards tab.

sadiq6210
01-14-2012, 05:49 AM
It's late at night for me. I will try those three steps as in post 906 tomorrow and see if it works. I have two screenshots of it in action. All tabs in a users profile will display one at the bottom and then at the top left in the awards tab.


This post will also solve it
https://vborg.vbsupport.ru/showpost.php?p=2189701&postcount=742

1
2
3

;)

mIQe
01-14-2012, 07:57 AM
Did you use the above_body tag on that?

This is the raw code from the Header template. It works on all my pages in the forum, except the Awards.php page. Which leads me to think that it is not the Header template that has an error it is the Awards.php that is faulty.

<div class="above_body"> <!-- closing tag is in template navbar -->
<div valign="center" id="header" class="floatcontainer doc_header">
<div valign="center"><a name="top" href="{vb:link forumhome}" class="logo-image"><img align="middle" src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
<div id="toplinks" class="toplinks">
<vb:if condition="$show['member']">
<ul class="isuser">
<li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
<vb:if condition="$show['registerbutton']">
<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
</vb:if>
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
<vb:if condition="$notifications_total">
<li class="popupmenu notifications" id="notifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
<ul class="popupbody popuphover">
{vb:raw notifications_menubits}
</ul>
</li>
<vb:else />
<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
<ul class="popupbody popuphover">
<li>{vb:rawphrase no_new_messages}</li>
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
</ul>
</li>
</vb:if>
<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_header}
</vb:if>
</ul>
{vb:raw template_hook.header_userinfo}
<vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
<vb:else />
<ul class="nouser">
<vb:if condition="$show['registerbutton']">
<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
</vb:if>
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
<li>
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
<form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
<fieldset id="logindetails" class="logindetails">
<div>
<div>
<img src="images/username.png" alt="Username" /><input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if>" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" />
<img src="images/password.png" alt="Password" /><input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
<input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" />
<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
</div>
</div>
</fieldset>
<div id="remember" class="remember">
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" checked="checked" /> {vb:rawphrase remember_me}</label>
</div>

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<script type="text/javascript">
YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
vB_XHTML_Ready.subscribe(function()
{
//
YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus);
YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur);
YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint);
YAHOO.util.Event.on('navbar_password', "blur", navbar_password);
});

function navbar_username_focus(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
{
//
textbox.value='';
textbox.style.color='{vb:stylevar toplinks_form_input.color}';
}
}

function navbar_username_blur(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '')
{
//
textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
textbox.style.color='{vb:stylevar toplinks_form_input_defaultValue.color}';
}
}

function navbar_password_hint(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);

YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none");
YAHOO.util.Dom.setStyle('navbar_password', "display", "inline");
YAHOO.util.Dom.get('navbar_password').focus();
}

function navbar_password(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);

if (textbox.value == '')
{
YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
}
}
</script>
</li>
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_header}
</vb:if>
</ul>
</vb:if>
</div>
<div class="ad_global_header">
{vb:raw ad_location.global_header1}
{vb:raw ad_location.global_header2}
</div>
<hr />
</div>

mIQe
01-16-2012, 04:43 PM
So who handles the support with this mod in this thread?