vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Mini Mods - North American Sports Team Icons (https://vborg.vbsupport.ru/showthread.php?t=224345)

combs 03-30-2011 10:12 PM

Legacy, and we figured out it only happens to people with smaller avatars. So it happens to those that have room on the right to still have space for them.

combs 03-30-2011 10:23 PM

here is my surrounding code.

HTML Code:

<vb:if condition="$show['infraction'] OR $show['reppower']">
                                <dl class="user_rep">
                                        <vb:if condition="$show['infraction']">
                                        <dt>{vb:rawphrase infractions}</dt>
                                        <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                                        </vb:if>
                                        <vb:if condition="$show['reputation']">
                                                <vb:if condition="$show['reppower']">
                                        <dt>{vb:rawphrase reppower}</dt>
                                        <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                                                </vb:if>
                                        </vb:if>
                                </dl>
                                </vb:if>
                        <div align="center">
<vb:if condition="$post['field5']"><img src="images/teams/{vb:raw post.field5}.gif" alt="Sports Logo" border="" /></vb:if>
<vb:if condition="$post['field6']"><img src="images/teams/{vb:raw post.field6}.gif" alt="Sports Logo" border="" /></vb:if>
<vb:if condition="$post['field7']"><img src="images/teams/{vb:raw post.field7}.gif" alt="Sports Logo" border="" /></vb:if>
<vb:if condition="$post['field8']"><img src="images/teams/{vb:raw post.field8}.gif" alt="Sports Logo" border="" /></vb:if>
<vb:if condition="$post['field9']"><img src="images/teams/{vb:raw post.field9}.gif" alt="Sports Logo" border="" /></vb:if>
<vb:if condition="$post['field10']"><img src="images/teams/{vb:raw post.field10}.gif" alt="Sports Logo" border="" /></vb:if>

                                </div>
                        </vb:if>
                </div>


BirdOPrey5 03-30-2011 11:22 PM

http://img814.imageshack.us/img814/3...pturexy.th.png

Can you post a pic of how you expect it to look? I really can't see how the code you posted above could ever result in the image you posted, but I've seen stranger things in VB4 before so...

combs 03-31-2011 12:49 AM

They are just supposed to have 3 on top and 3 on bottom, instead of three keep going to the side.

combs 03-31-2011 01:18 AM

fixed it, guess it goes in a different spot. Anybody with the same problem I just pasted it above this:

{vb:raw template_hook.postbit_userinfo_right_after_posts}

edytwinky 04-05-2011 11:22 PM

Anybody have screenshots of what this looks like on vb3?

BirdOPrey5 04-06-2011 02:48 PM

Here's a live example of it: http://www.juot.net/forums/showthread.php?t=47012

Frost5 04-09-2011 09:02 PM

Quote:

The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Don't know what that error is occurring after I edit the code, any clue?

BirdOPrey5 04-10-2011 12:30 AM

One of your <if> conditionals has a typo.

Gamelobby 05-08-2011 10:32 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2080582)
This is cool but the postbit area can get very 'busy' for some peoples tastes. I added another option to let users disable seeing these at all if they choose:

Make yet another custom user profile field, this time a Single Selection Radio Button...
Options:
Yes
No
Filed Required: Yes at registration...
The rest of the settings same as mentioned for the other fields.


Code:

<if condition="($vbulletin->userinfo['fieldY'] != 'No')">
<div align="center">
<if condition="$post[fieldX] != ''"><img src="images/teams/$post[fieldX].gif" title="$post[fieldX]" align="center" border="0"/></if>
<if condition="$post[fieldX] != ''"><img src="images/teams/$post[fieldX].gif" title="$post[fieldX]" align="center" border="0"/></if>
<if condition="$post[fieldX] != ''"><img src="images/teams/$post[fieldX].gif" title="$post[fieldX]" align="center" border="0"/></if>
</div>
</if>

Replace "fieldY" with the field number of this new option, example: field15

Does this work for 4.1.3.?

I got this..
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3416
Quote:

The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Are we supposed to change/add something to the red part.?

Thanks


All times are GMT. The time now is 11:04 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.01137 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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