add a hyperlink on the images?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • plateau
    New Member
    • Apr 2005
    • 26

    add a hyperlink on the images?

    hello,

    as we know when a user wanna post a Image, probably he/she will click on the Inter Image icon, and then input the image link in the script prompt and then click OK.

    What I think is to add a link to the each of Images pasted through the Script Prompt, the coding can be as below:

    Code:
     
    <input type=image onload='javascript:if(this.width>750) this.width=750' src=imageUrl onclick=document.location='mywebSite'>
    so, there will be a hyperlink added to each of the images pasted in my forums, and when a user clicks on the image, will be redirected to the homepage of my site.

    anyone can tell me in which page i can add the code above?

    Thank you!!!
  • plateau
    New Member
    • Apr 2005
    • 26

    #2
    sorry...bumping...

    about 24 hours already.

    Comment

    • Floris
      Senior Member
      • Dec 2001
      • 37767

      #3
      Sorry, I am not sure what you want.

      To make an image a link add [url="url"] .. [/url] around the img tags.

      Comment

      • Jose Amaral Rego
        Senior Member
        • Feb 2005
        • 11058
        • 1.1.x

        #4
        Find: postbit_legacy
        Code:
        <!-- attachments -->

        Code:
        		<if condition="$show['attachments']">
        		<!-- attachments -->
        			<div style="padding:$stylevar[cellpadding]px">
        			
        			<if condition="$show['thumbnailattachment']">
        				<fieldset class="fieldset">
        					<legend>$vbphrase[attached_thumbnails]</legend>
        					<div style="padding:$stylevar[formspacer]px">
        					$post[thumbnailattachments]
        					</div>
        				</fieldset>
        			</if>
        		
        			<if condition="$show['imageattachment']">
        				<fieldset class="fieldset">
        					<legend>$vbphrase[attached_images]</legend>
        					<div style="padding:$stylevar[formspacer]px">
        					$post[imageattachments]
        					</div>
        				</fieldset>
        			</if>
        			
        			<if condition="$show['imageattachmentlink']">
        				<fieldset class="fieldset">
        					<legend>$vbphrase[attached_images]</legend>
        					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        					$post[imageattachmentlinks]
        					</table>
        					</fieldset>
        			</if>
        			
        			<if condition="$show['otherattachment']">
        				<fieldset class="fieldset">
        					<legend>$vbphrase[attached_files]</legend>
        					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        					$post[otherattachments]
        					</table>
        				</fieldset>
        			</if>
        			
        			<if condition="$show['moderatedattachment']">
        				<fieldset class="fieldset">
        					<legend>$vbphrase[attachments_pending_approval]</legend>
        					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
        					$post[moderatedattachments]
        					</table>
        				</fieldset>		
        			</if>
        			
        			</div>
        		<!-- / attachments -->
        		</if>
        I would like to see it if it works?

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎