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)

SpikedRocker 11-12-2012 11:42 PM

Quote:

Originally Posted by squidsk (Post 2380402)
What other plugins do you have installed?

I have a heavily modded site, and I got what you said, I'll check to see if any other mods are calling it and see how they are doing it.

Its just a weird thing to have happen.

Abominus 11-13-2012 09:31 AM

1 Attachment(s)
Quote:

Originally Posted by squidsk (Post 2380600)
A screenshot to show what you're talking about please.

I have added it :).

We want the little flags to move from left to the middle, left align.

mohammad6006 11-13-2012 12:56 PM

in award requests
requests not delete after grant a medal

squidsk 11-13-2012 03:47 PM

Quote:

Originally Posted by mohammad6006 (Post 2380792)
in award requests
requests not delete after grant a medal

Are you granting the medal through the request interface in admincp?

Abominus 11-14-2012 05:45 AM

Quote:

Originally Posted by squidsk (Post 2380824)
Are you granting the medal through the request interface in admincp?

Have you seen my screenshot and know what to do? :)

SpikedRocker 11-14-2012 05:03 PM

Quote:

Originally Posted by Abominus (Post 2380944)
Have you seen my screenshot and know what to do? :)

Looks like you need to change your postbit settings. You may have userinfo_right (legacy postbit) selected instead of userinfo_right_after_posts (horizontal postbit).

If you do, I'd say maybe the CSS formatting for them is incorrect.

squidsk 11-14-2012 05:29 PM

Quote:

Originally Posted by Abominus (Post 2380944)
Have you seen my screenshot and know what to do? :)

EDIT: Try the above.

Abominus 11-15-2012 10:47 AM

1 Attachment(s)
OK, I've tried it before. Now I have this one:

squidsk 11-15-2012 02:59 PM

Quote:

Originally Posted by Abominus (Post 2381223)
OK, I've tried it before. Now I have this one:

Try it with the default style. If it works with that one then you have a problem with the custom style you're using.

CAG CheechDogg 11-16-2012 08:40 AM

Squid like mohammad6006 mentioned, when you award someone their request they don't get deleted automatically. I use the awards interface in the admincp and I have to delete every single request manually.

Am I missing something here?

squidsk 11-16-2012 03:01 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2381476)
Squid like mohammad6006 mentioned, when you award someone their request they don't get deleted automatically. I use the awards interface in the admincp and I have to delete every single request manually.

Am I missing something here?

No I was. I have verified the problem. It is on the list of things to do for the next version.

CAG CheechDogg 11-17-2012 05:39 AM

Quote:

Originally Posted by squidsk (Post 2381577)
No I was. I have verified the problem. It is on the list of things to do for the next version.


Sweeeeeeeeeeeeeeeeet! Thanks a lot squidsk you rock buddy! My clan's members love this mod and has really gotten everyone active and shooting for new awards.

geckoz 11-21-2012 06:43 AM

Is there a way to add awards to many users at once?

Ultimattum 11-22-2012 05:25 PM

1 Attachment(s)
Hello,
Im having some troubles with the tab in the profile section, and the awards.php,
In the profile section, the tab is too high, and in the awards.php section, the awards seems to be in a broken table.

I have attached 2 screens of what i mean.

Help please .

squidsk 11-22-2012 10:35 PM

Quote:

Originally Posted by geckoz (Post 2383203)
Is there a way to add awards to many users at once?

Not at this time.

Quote:

Originally Posted by Ultimattum (Post 2383875)
Hello,
Im having some troubles with the tab in the profile section, and the awards.php,
In the profile section, the tab is too high, and in the awards.php section, the awards seems to be in a broken table.

I have attached 2 screens of what i mean.

Help please .

Check with the default style. If the problem goes away, the issue is with the style you're using.

Ultimattum 11-23-2012 11:17 AM

Quote:

Originally Posted by squidsk (Post 2383950)
Check with the default style. If the problem goes away, the issue is with the style you're using.

Yea, the problem is with my style, but this only happens with these routes, where do you tell the add-on what route needs to get the style?
My style is installed in different files, that can be the problem, the add-on can't get the style because it cant find it.

squidsk 11-23-2012 05:18 PM

Quote:

Originally Posted by Ultimattum (Post 2384123)
Yea, the problem is with my style, but this only happens with these routes, where do you tell the add-on what route needs to get the style?
My style is installed in different files, that can be the problem, the add-on can't get the style because it cant find it.

This add-on doesn't "get" the style at least not in the awards tab on the users profile. It just uses the code to get the style the the profile page uses. As of 4.0.4 the awards.php page uses the same code for retrieving style information as all other pages.

Amaury 11-25-2012 07:08 PM

We currently have our postbitlegacy_userinfo_width variable set to 230px (default is 200px) because one of our global moderators has a long username. That seems to be causing problems, though. Anyone in our Moderators and Registered Users usergroups has this problem, most likely because of their smaller avatar sizes.

The problem only happens when the Postbit: Display Location option in the YAAS settings is set to userinfo_right (legacy postbit), which is what makes this odd, because we use the legacy postbit. If we have it set to userinfo_right_after_posts (horizontal postbit), it works, but some of the user info things, such as Location, end up being separated from the rest and go under it.

For example:
Join Date
Posts

[awards showcase]

Age
Location

...instead of:

Join Date
Posts
Age
Location

[awards showcase].

The only way to fix this seems to be by lowering the pixels on the postbitlegacy_userinfo_width variable, which we don't want to do.

Is there a template edit or something that can be done so it's based on just being under the user info and not the width of the user info area?

Here are some screenshots:

http://i101.photobucket.com/albums/m...oderator-1.jpg

http://i101.photobucket.com/albums/m...derator2-1.jpg

http://i101.photobucket.com/albums/m.../Member1-1.jpg

This is, of course, how it should show up:

http://i101.photobucket.com/albums/m...ia/Admin-1.jpg

squidsk 11-25-2012 09:19 PM

How does it behave on the default style with modified postbit width?

EDIT: Also putting in the post bit after posts will of course put it right after the number of posts and push everything below that down

Amaury 11-25-2012 10:33 PM

Quote:

Originally Posted by squidsk (Post 2385075)
How does it behave on the default style with modified postbit width?

EDIT: Also putting in the post bit after posts will of course put it right after the number of posts and push everything below that down

Still happens on the default style.

Default Postbit Width - 200px:

https://vborg.vbsupport.ru/

Modified Postbit Width - 230px:

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

Ultimattum 11-27-2012 10:49 AM

Hello,
Just having another question...

How can i add a custom .css inside the forms code?

I mean, how can i add vbulletin.css inside this:

awards_request_form
Code:

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

<form enctype="multipart/form-data" method="post" action="request_award.php">
<input type="hidden" value="submit" name="do">
<input type="hidden" value="$award[award_id]" name="award_id">

<div class="blockhead">$vbphrase[award]: $award[award_name] (id: $award[award_id])</div>

<div align="center"><br /><img src="$award[award_img_url]"><br /><strong> $award[award_name]</strong></div>

                        <if condition="$award[award_desc]">
<br />
<div class="blockhead">$vbphrase[award_description]</div>
<div class="blocksubhead">$award[award_desc]</div>                                               
</if>
       
<br />

<div class="blockhead">
$vbphrase[award_formtitle]
</div>
<div class="blocksubhead">
$vbphrase[award_formpurpose]
<br /><br />

$vbphrase[username]
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td><b>$bbuserinfo[username]</b> (User ID: $bbuserinfo[userid])</td>
                                </tr>
                                </table>
<br />
               
               
$vbphrase[award_request_reason]
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td><textarea rows="5" cols="50" name="award_request_reason"></textarea></td>
                                </tr>
                                </table>
<br />
<input type="hidden" name="award_request_uid" value="$bbuserinfo[userid]">
<input type="submit" name="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
                <input type="reset" name="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />

               
</div>

</form>

$footer
</body>
</html>

Thanks

squidsk 11-27-2012 04:32 PM

Quote:

Originally Posted by Ultimattum (Post 2385621)
Hello,
Just having another question...

How can i add a custom .css inside the forms code?

I mean, how can i add vbulletin.css inside this:

awards_request_form
Code:

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

<form enctype="multipart/form-data" method="post" action="request_award.php">
<input type="hidden" value="submit" name="do">
<input type="hidden" value="$award[award_id]" name="award_id">

<div class="blockhead">$vbphrase[award]: $award[award_name] (id: $award[award_id])</div>

<div align="center"><br /><img src="$award[award_img_url]"><br /><strong> $award[award_name]</strong></div>

                        <if condition="$award[award_desc]">
<br />
<div class="blockhead">$vbphrase[award_description]</div>
<div class="blocksubhead">$award[award_desc]</div>                                               
</if>
       
<br />

<div class="blockhead">
$vbphrase[award_formtitle]
</div>
<div class="blocksubhead">
$vbphrase[award_formpurpose]
<br /><br />

$vbphrase[username]
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td><b>$bbuserinfo[username]</b> (User ID: $bbuserinfo[userid])</td>
                                </tr>
                                </table>
<br />
               
               
$vbphrase[award_request_reason]
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td><textarea rows="5" cols="50" name="award_request_reason"></textarea></td>
                                </tr>
                                </table>
<br />
<input type="hidden" name="award_request_uid" value="$bbuserinfo[userid]">
<input type="submit" name="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
                <input type="reset" name="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />

               
</div>

</form>

$footer
</body>
</html>

Thanks

First, if that's what your award_request_form template looks like you are not using the correct one, which means either you didn't upgrade to 4.0.4 correctly or you customized that template previously and didn't revert the changes when you upgraded (or port the changes to the new base version). The templates in 4.0.4 have been completely re-done using the vb4 template syntax (i.e. {vb: .... } syntax)

Second, the template vbulletin.css (or its corresponding file) is already included in that template through the $headinclude variable. Similarly it is also in the new version through the {vb:raw headinclude}.

Amaury 11-27-2012 04:45 PM

Quote:

Originally Posted by Amaury25 (Post 2385092)
Still happens on the default style.

Default Postbit Width - 200px:

https://vborg.vbsupport.ru/

Modified Postbit Width - 230px:

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

Just quoting myself here, Squidsk, in case you didn't see it because it was on the previous page. :)

squidsk 11-27-2012 05:00 PM

Quote:

Originally Posted by Amaury25 (Post 2385092)
Still happens on the default style.

Default Postbit Width - 200px:

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/YAAS1.png[/IMG]

Modified Postbit Width - 230px:

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/YAAS2.png[/IMG]

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/YAAS3.png[/IMG]

Since it isn't showing up correctly on the default at 200px have you modified the default style? I'm somewhat suspicious that you have. If it works properly on an unmodified default style, which I'd suspect it does given there are no other complaints, then something you've modified in both the default and the customized style are causing problems.

Amaury 11-27-2012 05:06 PM

Quote:

Originally Posted by squidsk (Post 2385775)
Since it isn't showing up correctly on the default at 200px have you modified the default style? I'm somewhat suspicious that you have. If it works properly on an unmodified default style, which I'd suspect it does given there are no other complaints, then something you've modified in both the default and the customized style are causing problems.

It doesn't, though.

If I reduce the user info width to, say, 150px, it shows under all of the user info correctly instead of to the right of it for users with smaller avatars or at the avatar limit for their usergroup, but we want the width at 230px so that user with the Marceline username and the status circle appear on the same line.

squidsk 11-27-2012 07:47 PM

Quote:

Originally Posted by Amaury25 (Post 2385776)
It doesn't, though.

If I reduce the user info width to, say, 150px, it shows under all of the user info correctly instead of to the right of it for users with smaller avatars or at the avatar limit for their usergroup, but we want the width at 230px so that user with the Marceline username and the status circle appear on the same line.

Try disabling the plugin that adds the number of threads to the postbit.

EDIT: Remove any manual template edits it had you do as well.

Amaury 11-27-2012 10:06 PM

Quote:

Originally Posted by squidsk (Post 2385846)
Try disabling the plugin that adds the number of threads to the postbit.

EDIT: Remove any manual template edits it had you do as well.

This has actually been going since before those add-ons (Threads and Last Online) were installed. The postbit_legacy template was also unedited back then as well. Additionally, this was before you quarantined YAAS.

squidsk 11-29-2012 06:52 PM

Quote:

Originally Posted by Amaury25 (Post 2385900)
This has actually been going since before those add-ons (Threads and Last Online) were installed. The postbit_legacy template was also unedited back then as well. Additionally, this was before you quarantined YAAS.

Could you provide a link to your site so I can take a look. I'd be highly surprised if it was something other than a conflict with another plugin that you have installed given this issue hasn't been reported before now.

Amaury 11-29-2012 07:17 PM

Quote:

Originally Posted by squidsk (Post 2386544)
Could you provide a link to your site so I can take a look. I'd be highly surprised if it was something other than a conflict with another plugin that you have installed given this issue hasn't been reported before now.

See my signature. :)

squidsk 11-29-2012 07:42 PM

Quote:

Originally Posted by Amaury25 (Post 2386549)
See my signature. :)

I was looking at some posts with the two awards from your screenshots in the staff induction forum as a guest and everything looks just fine. I even used firebug to change the width of the postbit to 230px and it still didn't cause the display to look like your screens. This leads me to believe that it's related to a plugin you have that does stuff when a user is logged in but not for guests, as yaas doesn't do anything with logins it isn't this plugin causing the problem.

I did also notice, when running xhtml validation on the page, that there are a number of validation errors which could also be causing problems.

Amaury 11-29-2012 07:49 PM

Quote:

Originally Posted by squidsk (Post 2386554)
I was looking at some posts with the two awards from your screenshots in the staff induction forum as a guest and everything looks just fine. I even used firebug to change the width of the postbit to 230px and it still didn't cause the display to look like your screens. This leads me to believe that it's related to a plugin you have that does stuff when a user is logged in but not for guests, as yaas doesn't do anything with logins it isn't this plugin causing the problem.

I did also notice, when running xhtml validation on the page, that there are a number of validation errors which could also be causing problems.

If you'd like, I could make you an admin an account to check.

squidsk 11-29-2012 08:25 PM

Quote:

Originally Posted by Amaury25 (Post 2386556)
If you'd like, I could make you an admin an account to check.

The account would need to have style/template access, plugin access and possibly(probably) settings access. You can PM the details.

Amaury 11-29-2012 09:09 PM

Quote:

Originally Posted by squidsk (Post 2386562)
The account would need to have style/template access, plugin access and possibly(probably) settings access. You can PM the details.

Sent.

dollar1 11-29-2012 10:59 PM

Does this support 4.2.0 ?

Amaury 11-29-2012 10:59 PM

Problem was resolved.

In case anyone else has this same problem using the userinfo_right (legacy) setting for the award showcase, here's what he said:

Quote:

OK, I've added a temporary fix to the additional.css template which supplies a fixed width to the postuseravatar css class. Basically the problem was happening if you had a user with awards who had an avatar that was not as wide as the postbit would allow.

I'll have to look some more tomorrow because I'm not sure why its showing up for you but it hasn't been reported elsewhere.
Here's the CSS he added to the additional.css template:

Code:

.postuseravatar {
    width: 210px !important;
}

Quote:

Originally Posted by dollar1 (Post 2386599)
Does this support 4.2.0 ?

Yes, it does.

squidsk 11-30-2012 01:28 AM

That's a temporary fix, but not meant to be a permanent one. Once I figure out how to get a proper fix that doesn't require editing anything manually I'll include that in the next version.

squidsk 11-30-2012 01:29 AM

Quote:

Originally Posted by dollar1 (Post 2386599)
Does this support 4.2.0 ?

Yes, but you'll manually need to add the navigation menu if you want it.

Amaury 11-30-2012 01:31 AM

Quote:

Originally Posted by squidsk (Post 2386636)
That's a temporary fix, but not meant to be a permanent one. Once I figure out how to get a proper fix that doesn't require editing anything manually I'll include that in the next version.

Thanks, Squidsk. :)

Vallo92 12-14-2012 03:09 PM

Do you know help me with the installation?
Which of the 3 files I download and install?

Amaury 12-14-2012 03:12 PM

Quote:

Originally Posted by Vallo92 (Post 2390657)
Do you know help me with the installation?
Which of the 3 files I download and install?

The latest one.


All times are GMT. The time now is 12:28 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.03324 seconds
  • Memory Usage 1,874KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (31)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