vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Postbit mod question (https://vborg.vbsupport.ru/showthread.php?t=185676)

marrr 07-18-2008 03:25 PM

Postbit mod question
 
Im trying to get
Code:

--new--
<if condition="$post['field5']">
<div class="postinfo">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[field5]" target="_blank"><img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" /></a></if>

<if condition="$post['field6']">
<a href="http://xxxx.hlstatsx.com/?mode=playerinfo&player=$post[field6]" target="_blank"><img src="$stylevar[imgdir_misc]/hlstatsx.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_hlstatsx_stats]</phrase>" border="0" /></a></div>
</if>

---new---

to line up on the same line in the postbit but its not working out right

heres when i add the bf2 stats by itself http://www.element-119.com/demon/bf2forum.jpg

then heres when i add the hlstatx by itself
http://www.element-119.com/demon/statsforum.jpg

how can i fix this

thanks

Lynne 07-18-2008 05:37 PM

You probably want to enclose them each with the div tags:
<div class="postinfo">
your url here
</div>

Make sure that each condition has the beginning div tag and ending div tag.

marrr 07-18-2008 06:00 PM

Thing is im trying to get them to show up in the same box because they are both links to stats pages. I dont want them to show up in seperate boxes. ex

http://www.element-119.com/demon/likethis.jpg

Opserty 07-18-2008 07:03 PM

Code:

<if condition="$post['field5'] OR $post['field6']">
        <div class="postinfo">
                <if condition="$post['field5']">
                            <a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[field5]" target="_blank">
                                <img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" />
                        </a>
                </if>

                <if condition="$post['field6']">
                <a href="http://xxxx.hlstatsx.com/?mode=playerinfo&player=$post[field6]" target="_blank">
                        <img src="$stylevar[imgdir_misc]/hlstatsx.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_hlstatsx_stats]</phrase>" border="0" />
                </a>
                </if>
        </div>
</if>


marrr 07-18-2008 07:29 PM

yes it worked!! Thanks alot dude your the man :) :)


All times are GMT. The time now is 12:11 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.01376 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete