Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-04-2010, 09:18 PM
atcspaul atcspaul is offline
 
Join Date: Feb 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default html help please

could someone look at this html i am using for ads on my site. it works but not sure if i am doing it right. i would like picture and title to both take to the advertisers site but right now you have to click on either or. here it is.

</script><center>
<a href="http://gtmdecals.com
"target="_blank">
<img src="http://motorbicycling.com/images/misc/decals.gif"></a>
<div class="smallfont" align="center"><a href="http://gtmdecals.com"
target="_blank">Motorized Bicycle Decals!</a>
<br />
<br />

thank you in advance
Reply With Quote
  #2  
Old 07-04-2010, 10:49 PM
Trip's Avatar
Trip Trip is offline
 
Join Date: Mar 2008
Location: Eastern Canada
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's probably a couple of different ways you could do this...
Paste this into your additional CSS box.
Code:
.adCopy {
    text-align:center;
    }
Then try using this in place of your code. Note I omitted that closing script statement.

Code:
 <div class="adCopy">
    <a href="http://gtmdecals.com" target="_blank"><img src=
    "http://motorbicycling.com/images/misc/decals.gif" /></a>

    <div class="smallfont adCopy">
      <a href="http://gtmdecals.com" target="_blank">Motorized Bicycle Decals!</a>
    </div>
  </div>
<br />
<br />
I'm no pro, I was just cruising through and seen your post
Reply With Quote
  #3  
Old 07-05-2010, 03:14 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by atcspaul View Post
could someone look at this html i am using for ads on my site. it works but not sure if i am doing it right. i would like picture and title to both take to the advertisers site but right now you have to click on either or. here it is.

</script><center>
<a href="http://gtmdecals.com
"target="_blank">
<img src="http://motorbicycling.com/images/misc/decals.gif"></a>
<div class="smallfont" align="center"><a href="http://gtmdecals.com"
target="_blank">Motorized Bicycle Decals!</a>
<br />
<br />

thank you in advance

Qua coding there are a lot of errors with that, that won''t pass the xtml validation. For example, you got the ending script tag but no start such tag. The img tag doesn''t have the required alt attribute and it is an empty tag and as such it should be closed. Also the center tag and align center on div are both depricated.

Try to use this code. I cleaned it up and it does what you want. It will take both, the picture and title to go to the advertisers site when clicked upon as a single link, just like you asked. At least that is what I could understand from your request. Please let me know if that was what you wanted.

Anyway, here is the code:

HTML Code:
<div style = "text-align: center">
<a href="http://gtmdecals.com" target="_blank"><img src="http://motorbicycling.com/images/misc/decals.gif" alt = "" /><br />Motorized Bicycle Decals!</a>
</div>
Hope it helps.
Reply With Quote
  #4  
Old 07-05-2010, 03:49 PM
atcspaul atcspaul is offline
 
Join Date: Feb 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you so much!

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

here is one more. this one has 16 errors showing. dosnt like the affiliate code or anything else. thanks again. i been trying different options and keep making things worse

</script><center>
<a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1
"target="_blank"> <img src="http://motorbicycling.com/images/misc/bbb.gif">
</center>
</a>
Reply With Quote
  #5  
Old 07-05-2010, 04:55 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by atcspaul View Post
thank you so much!

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

here is one more. this one has 16 errors showing. dosnt like the affiliate code or anything else. thanks again. i been trying different options and keep making things worse

</script><center>
<a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1
"target="_blank"> <img src="http://motorbicycling.com/images/misc/bbb.gif">
</center>
</a>
You are welcome.

Here, try this. The coding has been cleaned up but for the the errors in the affiliate url.

HTML Code:
<div style = "text-align: center">
<a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1" target="_blank"><img src="http://motorbicycling.com/images/misc/bbb.gif" alt = "" /></a>
</div>
Reply With Quote
  #6  
Old 07-06-2010, 12:02 AM
atcspaul atcspaul is offline
 
Join Date: Feb 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you! do you think i should ask the sponser to fix his link? i have lots of errors on that
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:59 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.03548 seconds
  • Memory Usage 2,216KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete