Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Share your banner with other sites Details »»
Share your banner with other sites
Version: 1.00, by elenh elenh is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.2 Rating:
Released: 02-27-2010 Last Update: Never Installs: 10
Template Edits
 
No support by the author.

This small code you can use to user your banner code with other sites.It will add a text box with your link in html and if clicked will be auto sellected.Its possible to incrase your site traffic if other people add your banner.

Open footer template and search for:
Code:
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
Before add:
Code:
Add our banner to your site and contact us to add here yours.
Html Code:<input id="bannerlink" onclick="select()" value="&lt;a href=&quot;http://www.yoursite.com&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.yoursite.com/path/banner.png&quot; border=&quot;0&quot; alt=&quot;Alt_text&quot;&gt;&lt;/a&gt;" size="105" type="text">
Change the following with yours:
www.yoursite.com (both)
path (with your banner path)
banner.png (with your image name and type)
Alt_text (With what ever you like to type)

Box 2 (smaller 100x100 pixels)
Code:
<textarea style="height: 100px; width: 100px;" onclick="select()"><a href="http://www.yoursite.com" target="_blank"><img src="http://www.yoursite.com/path/banner.png" border="0" alt="Alt_text"></a></textarea>
Save finish.

Screen shot:

Screenshots

File Type: jpg demo.jpg (22.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-28-2010, 10:42 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gonna test this soon...have been waiting for this long time.
Can I use this as a module for vbadvanced instead? If its done differently then, how to do it then?

Thanks.
Reply With Quote
  #3  
Old 02-28-2010, 11:01 PM
elenh elenh is offline
 
Join Date: Jun 2009
Location: Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes sure you can use it.Template module.You can change the default size size="105" to the size you need.
Reply With Quote
  #4  
Old 03-01-2010, 06:29 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The box is too wide , for the html, how do I make it smaller? Like... 100 x 100 pixels ? And put a scroll bar in it I guess.
Reply With Quote
  #5  
Old 03-01-2010, 06:55 PM
Ricsca's Avatar
Ricsca Ricsca is offline
 
Join Date: Apr 2006
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo?
Reply With Quote
  #6  
Old 03-01-2010, 08:25 PM
elenh elenh is offline
 
Join Date: Jun 2009
Location: Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bouncer222 View Post
The box is too wide , for the html, how do I make it smaller? Like... 100 x 100 pixels ? And put a scroll bar in it I guess.
You can change the default size size="105" to the size you need.
Reply With Quote
  #7  
Old 03-01-2010, 08:25 PM
elenh elenh is offline
 
Join Date: Jun 2009
Location: Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ricsca View Post
Demo?
Sorry my site is adult site and is not allowed to add for demo.
Reply With Quote
  #8  
Old 03-01-2010, 08:56 PM
elenh elenh is offline
 
Join Date: Jun 2009
Location: Germany
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<textarea style="height: 100px; width: 100px;" onclick="select()"><a href="http://www.yoursite.com" target="_blank"><img src="http://www.yoursite.com/path/banner.png" border="0" alt="Alt_text"></a></textarea>
That is what you want. You can change the px values on width & height to your needs.(i added default 100px both WxH)
Reply With Quote
  #9  
Old 03-02-2010, 10:08 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can provide a screenshot instead of a demo link.
Reply With Quote
  #10  
Old 03-02-2010, 11:39 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

elenh, thanks, all good now.

I had something important come to my mind. If it ever happened that the image was missing...
Then the alternate text wouldn't be clickable, which is very bad.

plus if you make the alternate text clickable... search engines will also pick that up, and index it
Reply With Quote
Reply

Thread Tools

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 12:02 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.04798 seconds
  • Memory Usage 2,308KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete