vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Postbit editing - Whats with this code? (https://vborg.vbsupport.ru/showthread.php?t=161731)

lolzers 11-02-2007 12:27 AM

Postbit editing - Whats with this code?
 
I have the following code, the image displays properly but it doesnt link. Is the code correct?

Code:

<!-- / flags start -->
<div>
<if condition="$post[field6]"><a href="www.habbo.$post[field6]"><img src="images/flags/$post[field6].gif"></a></if>
</div>
<!-- / flags end -->

--------------- Added [DATE]1193967662[/DATE] at [TIME]1193967662[/TIME] ---------------

This is very urgent.

--------------- Added [DATE]1193967798[/DATE] at [TIME]1193967798[/TIME] ---------------

I have made an addition to this, if the user edits for say the Habbo CA name with Sprained, a CA flag will come up with a link to www.habbo.ca/home/Sprained - and, same thing for how many ones they add. But it does not seem to be showing up.

Code:

<if condition="$post[field7]"><a href="www.habbo.com/home/$post[field7]"><img src="images/flags/US.gif"></a></if>

<if condition="$post[field8]"><a href="www.habbo.ca/home/$post[field8]"><img src="images/flags/CA.gif"></a></if>

<if condition="$post[field9]"><a href="www.habbo.co.uk/home/$post[field9]"><img src="images/flags/UK.gif"></a></if>

<if condition="$post[field10]"><a href="www.habbo.com.au/home/$post[field10]"><img src="images/flags/AU.gif"></a></if>

<if condition="$post[field11]"><a href="www.habbo.com.sg/home/$post[field11]"><img src="images/flags/SG.gif"></a></if>


Lynne 11-02-2007 02:36 AM

you should have "http://www.habbo.com" instead of just "www.habbo.com"

Spank 11-02-2007 02:45 AM

Yeah if you don't have the http:// it doesn't know you are linking to an external site.

lolzers 11-02-2007 11:06 AM

Thanks, now the images arent showing up though?

Lynne 11-02-2007 03:23 PM

You were only supposed to change the link part of your tag (a), not the image (img) part.


All times are GMT. The time now is 10:26 PM.

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.01031 seconds
  • Memory Usage 1,719KB
  • 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