vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Quick HTML Help Easy I'm Sure (https://vborg.vbsupport.ru/showthread.php?t=191145)

mindhunter77 09-17-2008 05:31 PM

Quick HTML Help Easy I'm Sure
 
I'm trying to display an embed code for people to copy and paste so they can display my images elsewhere. The problem is for some reason I can not get it to hyperlink the image back to my site.

This is what I have that works but I would really like the image to be hyperlinked back to my forum

Code:

<div align="right"><strong>Embed Code:</strong> </div>
                    </div></td>
                    <td class="alt2"><div align="center"><span class="smallfont normal">
                      <input name="textfield" class="bginput" type="text" id="textfield" onClick="SelectAll('textfield');" value="<img src='http://www.documentingreality.com/forum/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]'/>" size="25" READONLY>
                    </span></div>


Lynne 09-17-2008 06:48 PM

What did you try for getting it to link back to your site? Normally you would just use the <a> tag, so something like
HTML Code:

<a href="http://www.yoursite.com"><img src="whatever" /></a>

mindhunter77 09-17-2008 06:52 PM

Strange thing is I tried that but it actually phrased the image inside the post rather then display that text lol

Lynne 09-17-2008 08:55 PM

Maybe you should try to use special characters in the link, ie. &lt;a href="http://www.yoursite.com"&gt; and on and on.

mindhunter77 09-17-2008 09:02 PM

ah ok, let me look into that

mindhunter77 09-18-2008 10:44 PM

Can anyone help me on this I'm still stuck.

I'm just trying to get my url linked to the image on that embed code.

Lynne 09-18-2008 11:00 PM

You should post exactly what you have tried so we don't suggest trying it again.

mindhunter77 09-18-2008 11:44 PM

Tried this and it didn't work

Code:

&lt;a href="http://www.documentingreality.com/" target="_blank"&gt;&lt;img src='http://www.documentingreality.com/forum/attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]' border="0"/&gt;&lt;/a&gt;

Lynne 09-19-2008 02:16 AM

That's not the whole line though. Also, if you are using double quotes to surround the value, then you can't use double quotes inside the value. You have to use either single quotes or you need to escape your double quotes. So, it would help if when writing out your code, you write out the entire line so we can check it for syntax.

mindhunter77 09-19-2008 05:11 PM

Quote:

That's not the whole line though. Also, if you are using double quotes to surround the value, then you can't use double quotes inside the value.
Thank You, that was it.


All times are GMT. The time now is 03:29 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.01246 seconds
  • Memory Usage 1,728KB
  • 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)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete