vb.org Archive

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

Capt C Ray 02-25-2013 11:27 AM

Quote:

Originally Posted by squidsk (Post 2406122)
Everything would need to be done manually since there's no importing tool to import from phpbb3, or any other software.

squidsk,
Had a feeling that is what you were going to say. But had to ask anyway. :)
Thanks.

Spangle 02-25-2013 05:42 PM

Which of the three files do I download to install this on a 4.2.0 board, yes I'm a noobie

Amaury 02-25-2013 09:20 PM

Quote:

Originally Posted by Spangle (Post 2406281)
Which of the three files do I download to install this on a 4.2.0 board, yes I'm a noobie

The latest version.

Dogma21cw 02-26-2013 06:49 PM

Question,

Do you have any plans to port this to vB5? We really like the features of vB5, but extensively use this plugin. It's one of the key things preventing us from upgrading.

squidsk 02-26-2013 07:08 PM

Quote:

Originally Posted by Dogma21cw (Post 2406528)
Question,

Do you have any plans to port this to vB5? We really like the features of vB5, but extensively use this plugin. It's one of the key things preventing us from upgrading.

Yes I do, but to be honest it isn't a high priority at the moment. I have a bunch of features and improvements I want to add to the vb4 version before considering porting it vb5.

Dogma21cw 02-27-2013 05:17 AM

No problem. Just wanted to know if there were plans. Thanks again for continuing to work on this. We at 21CW love it.

Max_69 02-28-2013 06:59 AM

hi, in the postbit the user without a signature not see awards, how to fix this?
Thanks
;)

invitezone 03-01-2013 04:21 PM

Hi,
is it possible to have a certain award that when awarded to a user, it also adds 1 to their rep?
I know to do this it will obviously require me to change some code and that this mod doesn't do it as a standard feature. Could anyone give me some pointers on how I could achieve this.

Thanks very much.

EasyEazy 03-01-2013 10:13 PM

Updated to 4.0.6 and its looking really good mate. Thanks for the update and your effort

Lord KoT 03-02-2013 09:28 AM

Quote:

Originally Posted by squidsk (Post 2405800)
Edit the appropriate phrase using the phrase manager.

Thanks, this is what I did and it also opened up a new level of modifying my forums to me, which is why it's taken me so long to reply =). Thanks for this add-on, it works very well! Looking forwards to seeing what other gadgets you have in store!

Capt C Ray 03-02-2013 03:23 PM

I will admit I did no review all 97 pages of posts here, but I did go through the first 10 and did not see an answer to my question, so here it is:

What file types are allowed to be used? And what are the size restrictions for the icon and medal images?

Thanks

squidsk 03-02-2013 03:29 PM

Quote:

Originally Posted by Capt C Ray (Post 2407395)
I will admit I did no review all 97 pages of posts here, but I did go through the first 10 and did not see an answer to my question, so here it is:

What file types are allowed to be used? And what are the size restrictions for the icon and medal images?

Thanks

Any image type that is supported by browsers is valid, usually this would be jpg, gif and png and some other related image types (i.e. jpeg). There are no size restrictions for any of the images, but I'm pretty sure if you make the image too big things might not look as nice.

Capt C Ray 03-02-2013 10:24 PM

Thanks. Figured out I was not filling in the FULL URL to the medals. I'll learn one of these days.
And size does make a difference. Your setting size works and looks great. Most of my medals I am setting to 60 x 60.
One other questions: For the category descriptions displayed on the medals page, I would like to bold the text. Tried using what I thought was the bbCode values of <b> and </b>, but guess I was wrong. Can I bold the category description text?

Max_69 03-04-2013 03:38 PM

Quote:

Originally Posted by Max_69 (Post 2406902)
hi, in the postbit the user without a signature not see awards, how to fix this?
Thanks
;)

help me please
Thanks

squidsk 03-04-2013 03:47 PM

Quote:

Originally Posted by Max_69 (Post 2406902)
hi, in the postbit the user without a signature not see awards, how to fix this?
Thanks
;)

If there's no signature, its rather hard to put output into the signature area. There's nothing I can do. You can edit your postbit/postbit_legacy template to make whatever changes you want but that's the extent of things. Your other option of course is to display it somewhere other than the signature or force users to have a signature (would require a hack mos likely).

squidsk 03-04-2013 03:55 PM

Quote:

Originally Posted by Capt C Ray (Post 2407467)
Thanks. Figured out I was not filling in the FULL URL to the medals. I'll learn one of these days.
And size does make a difference. Your setting size works and looks great. Most of my medals I am setting to 60 x 60.
One other questions: For the category descriptions displayed on the medals page, I would like to bold the text. Tried using what I thought was the bbCode values of <b> and </b>, but guess I was wrong. Can I bold the category description text?

You don't need full urls for images, I use relative links and everything works just fine. As for image sizes I've seen some odd dimensions used as well, I just looked at a site with 130px x 200px award images and they look just fine on the awards page, the awards tab and in the awards showcase.

Capt C Ray 03-06-2013 06:46 PM

Quote:

Originally Posted by squidsk (Post 2407848)
You don't need full urls for images, I use relative links and everything works just fine. As for image sizes I've seen some odd dimensions used as well, I just looked at a site with 130px x 200px award images and they look just fine on the awards page, the awards tab and in the awards showcase.

Do not understand what you mean by 'relative links'.

squidsk 03-06-2013 09:31 PM

Full url: http://www.yoursite.com/forums/images/medals/medal1.jpg
Relative url: images/medals/medal1.jpg

Capt C Ray 03-07-2013 05:21 PM

Quote:

Originally Posted by squidsk (Post 2408390)
Full url: http://www.yoursite.com/forums/images/medals/medal1.jpg
Relative url: images/medals/medal1.jpg

Thanks for the education. Will add this to my notes for future reference.

marccap 03-08-2013 11:14 AM

Any future plans to maybe add "Reputation" points to the automation option?

sadiq6210 03-08-2013 06:07 PM

1 Attachment(s)
For customized profiles the background is not appearing as same as the other tabs

To solve this, in template (memberinfo_block_myawards)

Find:
Code:

<div class="subsection">
Add after:
Code:

<div class="blockbody userprof_content userprof_content_border">
and in the end on the template add:
Code:

</div>

BEFORE:

https://vborg.vbsupport.ru/attachmen...1&d=1362769629



AFTER:

https://vborg.vbsupport.ru/attachmen...1&d=1362769629

Dogma21cw 03-19-2013 06:22 PM

I know you're working on features for future updates, I would like to put one on the list. An option to use HTML code instead of BB code to display the awards in the PMs sent to users. Because at the moment, if you use relative URLs the awards doesn't display properly in a congrats PM. See image for example of what I mean:
https://vborg.vbsupport.ru/external/2013/03/23.png

Amaury 03-20-2013 01:43 AM

Quote:

Originally Posted by Dogma21cw (Post 2411020)
I know you're working on features for future updates, I would like to put one on the list. An option to use HTML code instead of BB code to display the awards in the PMs sent to users. Because at the moment, if you use relative URLs the awards doesn't display properly in a congrats PM. See image for example of what I mean:
http://content.screencast.com/users/...2013-13.19.png

HTML can be exploited.

killerford 03-20-2013 03:11 PM

So out of all of them links to download which do I need? I run on 4.2

Dogma21cw 03-20-2013 05:30 PM

Quote:

Originally Posted by Amaury25 (Post 2411089)
HTML can be exploited.

Understood, but that is why I asked for the OPTION to use them. Not the requirement. There are always protective measures a person can take w/ HTML, but if they don't want to do so, don't enable the option.

Amaury 03-20-2013 08:53 PM

Quote:

Originally Posted by killerford (Post 2411173)
So out of all of them links to download which do I need? I run on 4.2

The latest version...

squidsk 03-21-2013 06:49 AM

Quote:

Originally Posted by Dogma21cw (Post 2411020)
I know you're working on features for future updates, I would like to put one on the list. An option to use HTML code instead of BB code to display the awards in the PMs sent to users. Because at the moment, if you use relative URLs the awards doesn't display properly in a congrats PM. See image for example of what I mean:
https://vborg.vbsupport.ru/external/2013/03/23.png

I thought I'd fixed that particular bug, but I only partially fixed it apparently, as new threads/posts when requesting/recommending an award used to have that same problem. I'll add it to my list of things to do.

marccap 03-21-2013 01:53 PM

I've set up the "Requests" to be added to a thread in the staff forum which works fine. The only problem is they come through as "Moderated" so they are not visible until you go into that thread. Can that be turned off?

squidsk 03-21-2013 04:54 PM

Quote:

Originally Posted by marccap (Post 2411388)
I've set up the "Requests" to be added to a thread in the staff forum which works fine. The only problem is they come through as "Moderated" so they are not visible until you go into that thread. Can that be turned off?

It's something on your end, not with YaAS, as sending a request/recommendation to a thread does not put it in the moderation queue with an unedited YaAS installed to a vanilla vb4. My guess would be you have an anti-spam setting that is blocking posts in that forum, for that user, some other criteria.

Capt C Ray 03-22-2013 05:21 PM

I am just about finished adding all our medals into our test site. Is there an easy way to transfer all the medals I have entered to our live site? Such as copying the table in the data base?

zeroality 03-22-2013 11:14 PM

New post in an existing thread for award issue doesn't seem to be working.

Is it something on my end or is it YaAS?

Edit: It's not letting me change the PM userid either. I changed from user 10 to user 1, but it's still sending from user 10.

squidsk 03-25-2013 05:59 PM

Quote:

Originally Posted by Capt C Ray (Post 2411614)
I am just about finished adding all our medals into our test site. Is there an easy way to transfer all the medals I have entered to our live site? Such as copying the table in the data base?

Export from the test site and import to the live site, you'll probably want to make sure you only export the table data, and only data that isn't present on the live site.

Quote:

Originally Posted by zeroality (Post 2411656)
New post in an existing thread for award issue doesn't seem to be working.

Is it something on my end or is it YaAS?

See my last post as I mention this, posting a new post to a thread works just fine with an unaltered YaAS on a vanilla vb, so the problem is almost certainly on your end. You most likely have an anti-spam measure in place that's screwing things up.

Quote:

Edit: It's not letting me change the PM userid either. I changed from user 10 to user 1, but it's still sending from user 10.
A bug in the code, I've added to my list of things to fix.

Capt C Ray 03-27-2013 02:31 AM

Quote:

Originally Posted by squidsk (Post 2412222)
Export from the test site and import to the live site, you'll probably want to make sure you only export the table data, and only data that isn't present on the live site.

Thanks. Makes my life a whole lot easier. :up:

MaxLiao 04-03-2013 07:22 AM

I get the following error when recommending an award.

Quote:

Fatal error: Existing data passed is not an array
Called set_existing in [path]/recommend_award.php on line 188
in [path]/includes/class_dm.php on line 265
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /*****/*****/*****/*****/*****/*****/recommend_award.php on line 188
, //*****/*****/*****/*****/*****/*****/includes/class_dm.php, 265, Array ([existing] => 0,[line] =>
Called set_existing in /*****/*****/*****/*****/*****/*****/recommend_award.php on line 188
,[trace] => Array ([0] => Array ([file] => /*****/*****/*****/*****/*****/*****/recommend_award.php,[line] => 188,[function] =>
Oh, and it just goes on and on and on from there ...

Using 4.0.6 on vB 4.2 PL3.

I tried researching this error, but even Google only came up with one hit, and it was on the 3.8 version.

As a side note, when recommending a rank (Yet Another Ranks System), it works just fine. It's only in the Awards mod that I get this error.

squidsk 04-03-2013 11:41 PM

Quote:

Originally Posted by MaxLiao (Post 2414021)
I get the following error when recommending an award.

Oh, and it just goes on and on and on from there ...

Using 4.0.6 on vB 4.2 PL3.

I tried researching this error, but even Google only came up with one hit, and it was on the 3.8 version.

As a side note, when recommending a rank (Yet Another Ranks System), it works just fine. It's only in the Awards mod that I get this error.

There are a couple things to check, first that the forumid you're using to create the new threads actually exists and second that the user making the request actually has permission to post in that forum. The error is being caused because the threadid is not able to be verified and does not return the thread object (which should be an array).

MaxLiao 04-04-2013 05:47 AM

Thanks for the response.

Strangely enough, it's working now. I made no changes - seriously - other than to verify the forumid, my Admin user permissions, and the mod settings, all of which were good and none of which were changed.

I don't know what to say ... /shrug

Thanks.

[Edit / Update]: Okay, so I don't know if I accidentally used the Ranks mod instead of the Awards mod earlier, or if there's something else going on. However, the Ranks mod works fine but the Awards mod is not working ... still/again(?). Both mods have the exact same configs, including forum and usergroup posting permissions. I have uninstalled and re-installed the Awards mod.

From the AdminCP, it's all good. In fact, while it fails to post in the forums I see the request in the AdminCP.
Fatal error: Existing data passed is not an array
Called set_existing in [path]/recommend_award.php on line 188
in [path]/includes/class_dm.php on line 265

squidsk 04-04-2013 11:36 AM

Quote:

Originally Posted by MaxLiao (Post 2414180)
Thanks for the response.

Strangely enough, it's working now. I made no changes - seriously - other than to verify the forumid, my Admin user permissions, and the mod settings, all of which were good and none of which were changed.

I don't know what to say ... /shrug

Thanks.

[Edit / Update]: Okay, so I don't know if I accidentally used the Ranks mod instead of the Awards mod earlier, or if there's something else going on. However, the Ranks mod works fine but the Awards mod is not working ... still/again(?). Both mods have the exact same configs, including forum and usergroup posting permissions. I have uninstalled and re-installed the Awards mod.

From the AdminCP, it's all good. In fact, while it fails to post in the forums I see the request in the AdminCP.

If ranks and awards have the same config then there's something else going on, since the relevant code is identical between them except for variable names.

MaxLiao 04-04-2013 04:25 PM

Again, thank you for the response ...

Further testing reveals the following:
  • If I use "Submission: Award Submissions Forum ID," but I turn off "Submission: Create a poll in the new created thread" I do not get an error. On the other hand, I don't get a post either.
  • If I use "Submission: Award Submissions Forum ID," and I turn on "Submission: Create a poll in the new created thread" This is when I get the Fatal Error.

I know HTML and CSS, but I don't know PHP, so when I look at the variations between the Rank and the Awards code and I see the following:

Awards code ... not working ... (partial) ...
Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>

<title>{vb:raw vboptions.bbtitle} - {vb:rawphrase awards}</title>
{vb:raw headinclude}

{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}
{vb:raw navbar}



Ranks code ... works fine ... (partial) ...
Code:

$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[rank_recommendformtitle]</title>
$headinclude
</head>
<body>
$header
$navbar

Should I be concerned?

Mostly I'm noting the {vb:xxxxxxx} versus $xxxxxx differences.

Switching my language to UTF-8 wouldn't cause any problems, would it?

Lastly, I have no problems agreeing with you that there is most likely something else going on, but if you can tell me what to look for - since it is your mod that is having trouble sending the information - I research this further.

The people for whom I'm building this site are very adamant that this mod works, so I really appreciate your time in answering my posts and helping me resolve this issue. :)

[Edit / Update]: I just checked, and the PM function works perfectly, so it seems the only issue is posting on the forums.

squidsk 04-06-2013 05:18 PM

Quote:

Originally Posted by MaxLiao (Post 2414255)
Again, thank you for the response ...

Further testing reveals the following:
  • If I use "Submission: Award Submissions Forum ID," but I turn off "Submission: Create a poll in the new created thread" I do not get an error. On the other hand, I don't get a post either.
  • If I use "Submission: Award Submissions Forum ID," and I turn on "Submission: Create a poll in the new created thread" This is when I get the Fatal Error.

This is telling, if when you aren't trying to create the poll you still aren't getting a new thread then there's a problem with the forum id. Either the forum id bad, or the user creating the new thread does not have permissions to do so or who knows perhaps something else entirely, otherwise you should get a new thread in the specified forum.

You can try to make the following changes to see if it helps track down the problem:

Change line 122 as follows:
Code:

$foruminfo = verify_id('forum', $vbulletin->options[award_request_formforumid], 0, 1);
to

Code:

$foruminfo = verify_id('forum', $vbulletin->options[award_request_formforumid], 1, 1);
and add the following between lines 138 and 139 (the red is the new code)
Code:

build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);
if (!empty($errors))
{
        $error = construct_errors($errors); // this will take the preview's place
        eval(standard_error($error));
}

$award_send += 1;

Quote:

I know HTML and CSS, but I don't know PHP, so when I look at the variations between the Rank and the Awards code and I see the following:

Awards code ... not working ... (partial) ...
Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>

<title>{vb:raw vboptions.bbtitle} - {vb:rawphrase awards}</title>
{vb:raw headinclude}

{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}
{vb:raw navbar}



Ranks code ... works fine ... (partial) ...
Code:

$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[rank_recommendformtitle]</title>
$headinclude
</head>
<body>
$header
$navbar

Should I be concerned?

Mostly I'm noting the {vb:xxxxxxx} versus $xxxxxx differences.
No concern necessary, the changes are a result of my updating the templates to use the vb4 style for templates as opposed to the old vb3 style.


Quote:

Switching my language to UTF-8 wouldn't cause any problems, would it?
Are you talking about the encoding of the file or something else?

Quote:

Lastly, I have no problems agreeing with you that there is most likely something else going on, but if you can tell me what to look for - since it is your mod that is having trouble sending the information - I research this further.
I'm not able to reproduce it, so its hard for me to determine the root cause.

Quote:

The people for whom I'm building this site are very adamant that this mod works, so I really appreciate your time in answering my posts and helping me resolve this issue. :)
I try to help where I can.

MaxLiao 04-08-2013 04:39 PM

Just as a follow up, I have not applied your fix yet; however, I also have not had a single error (and no one has reported any errors to me). I'm going to keep things as-is, for now and I'll apply your fix when/if the issue arises again.

[Edit] Removed misinformation.

Thanks a ton! :)


All times are GMT. The time now is 10:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02574 seconds
  • Memory Usage 1,873KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete