Back to vBulletin 4.x Template Modifications

Bookmark this Site
Mod Version: 1.00, by TimberFloorAu

vB Version: 4.0.0 Rating: (2 votes - 4.00 average) Installs: 16
Released: 12 Jan 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

Easy to do.

Takes 1 minute max.

Admincp > Styles and Templates > Search In Templates

Locate headinclude.

at very bottom of page add:

Code:
<script type="text/javascript">
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
</script>
Click Save

Then Admincp > Styles and Templates > Search In Templates

Locate: navbar

find this code

Code:
</ul>
	<vb:if condition="$vboptions['enablesearches']">
	<div id="globalsearch" class="globalsearch">
Above it add:

Code:
<li><a class="navtab" href="javascript:bookmarksite('British Expats', 'http://www.yobromofo.com')">Bookmark this site!</a></li>
Change 'British Expats' to your site name
Change 'http://www.yobromofo.com' to your domain

Click Save

Done

Added: For BOOKMARK this PAGE

Change second template edit to:

Code:
<li><a class="navtab" href="javascript:bookmarksite('British Expats', (document.location.href))">Bookmark this Page</a></li>
Change 'British Expats' to your site name

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024