vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   homepage mod (https://vborg.vbsupport.ru/showthread.php?t=137264)

Ac0l0n 01-22-2007 10:44 PM

homepage mod
 
Hey Is There A Hack That Would Ask My Members If They Wanna Make My Forum There Homepage?

cheech47 01-25-2007 10:15 AM

With the code below you can make a button that bookmarks it, if thats any help

================================================== ==========
Script: Bookmark This Page Script

Functions:

In IE browsers, the script automatically opens the dialog
to add your bookmark to the visitor's favorites. In other
browsers, the message in the txt variable is shown.

Update 07-03-01: see tech note at end to use an image
instead of text for the link.

Browsers: IE 4.0 and later (degrades gracefully in others)

Author: etLux
================================================== ==========

Put the following script in the body of your page. Set the
font with tags around the script as shown.

<font color="#000000" size="2" face="Arial">
<script>

// message to show in non-IE browsers
var txt = "Bookmark Us!"

// url you wish to have bookmarked
var url = "http://www.whatever.com";

// caption to appear with bookmark
var who = "Whatever.com"

// do not edit below this line
// ===========================

var ver = navigator.appName
var num = parseInt(navigator.appVersion)
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');
document.write('onMouseOver=" window.status=')
document.write("txt; return true ")
document.write('"onMouseOut=" window.status=')
document.write("' '; return true ")
document.write('">'+ txt + '</a>')
}else{
txt += " (Ctrl+D)"
document.write(txt)
}
</script>
</font>

================================================== ==========

Addendum: Using an Image instead of Text for the Link.

You can use an image instead of the text for this link by
using the following in the txt variable:

var txt = "<img src='some.gif' width='100' height='30' border='0'>"

Use an image name (and full http:// path if needed) as shown
above. Take special care to use single quotes where shown!

================================================== ==========


All times are GMT. The time now is 01:32 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.00963 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete