vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Share your banner with other sites (https://vborg.vbsupport.ru/showthread.php?t=237129)

elenh 02-27-2010 10:00 PM

Share your banner with other sites
 
1 Attachment(s)
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:
https://vborg.vbsupport.ru/attachmen...1&d=1267541099

Bouncer222 02-28-2010 10:42 PM

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.

elenh 02-28-2010 11:01 PM

yes sure you can use it.Template module.You can change the default size size="105" to the size you need.

Bouncer222 03-01-2010 06:29 PM

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.

Ricsca 03-01-2010 06:55 PM

Demo?

elenh 03-01-2010 08:25 PM

Quote:

Originally Posted by Bouncer222 (Post 1994642)
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.

elenh 03-01-2010 08:25 PM

Quote:

Originally Posted by Ricsca (Post 1994659)
Demo?

Sorry my site is adult site and is not allowed to add for demo.

elenh 03-01-2010 08:56 PM

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)

ChopSuey 03-02-2010 10:08 AM

You can provide a screenshot instead of a demo link.

Bouncer222 03-02-2010 11:39 PM

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 :)


All times are GMT. The time now is 03:18 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.01095 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete