Page Index Toggle Pages: [1] 2 3 ... 6 Send TopicPrint
Very Hot Topic (More than 25 Replies) Sidebar v1.6 for SP1.3 (Read 23433 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Sidebar v1.6 for SP1.3
May 10th, 2003 at 12:44pm
Print Post  

Description:
Adds a sidebar to your YaBB Board through which you can see each board and if there are new posts. You can see an example here: http://www.boardmod.org/sidebar.php
The sidebar has been tested and works fine for Mozilla 1.0, Netscape 6.0, Opera 6.0 and Internet Explorer 5.5.

Instructions:
To add a button for your sidebar on your homepage, simply add the following code to your site:

Code
Select All
To add a sidebar to your browser, click below:<br>
<script language="JavaScript">
<!--
// SET THESE VARIABLES ACCORDING TO YOUR BOARD URL AND TITLE
	var YOUR_BOARD_URL = 'http://boardmod.yabbforum.com/yabb/YaBB.pl';
	var YOUR_BOARD_TITLE = 'BoardMod Support Board';
	var LINK_TEXT = 'Add Sidebar';
	// var LINK_TEXT = '<img src="myicon.gif" alt="add sidebar">';

// NO NEED TO CHANGE ANYTHING BELOW
	var agt = navigator.userAgent.toLowerCase();
	var is_major = parseInt(navigator.appVersion);
	var is_minor = parseFloat(navigator.appVersion);
	var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
		&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
		&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_opera = (agt.indexOf("opera") != -1);

	function addPanel(){
		if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
			window.sidebar.addPanel (YOUR_BOARD_TITLE,YOUR_BOARD_URL+'?action=sidebar',"");
		} else {
			var rv = window.confirm ("This page is enhanced for use with Mozilla." + "Would you like to visit Mozilla's website?");
			if (rv) document.location.href = "http://www.mozilla.org";
		}
	}

	if (is_nav) {
		document.write('<a href="javascript:addPanel();">'+LINK_TEXT+'</a>');
	} else if (is_ie) {
		if (agt.indexOf("mac") != -1) {
			document.write('Please drag <a href="'+YOUR_BOARD_URL+'?action=sidebar&type=IE">this link</a> into your page holder tab manually.');
		} else {
			document.write('<a ch\'))" rel="sidebar" title="'+YOUR_BOARD_TITLE+'">'+LINK_TEXT+'</a>');
		}

	} else if (is_opera) {
		document.write('<a href="'+YOUR_BOARD_URL+'?action=sidebar" rel="sidebar" title="'+YOUR_BOARD_TITLE+'">'+LINK_TEXT+'</a>');
	} else {
		document.write('Sorry, Your browser does not support sidebars.');
	}
//-->
</script>
<noscript>Sorry, you have to enable Javascript to add a sidebar.</noscript>
 



Make sure to change the YOUR_BOARD_URL and YOUR_BOARD_TITLE variables in the beginning of that code to fit for your board.

Next upload template_sidebar.html to your YaBB directory. You can access your sidebar through http://www.yourboard.com/YaBB.pl?action=sidebar.

Notes:
Note for IE users: Whenever you close your browser, the sidebar will be gone. To force IE to load the sidebar everytime you open your browser, you have to execute "add_sidebar_in_ie.ins". Also note that you have to modify the path to your forum in that file first before executing it! You may encounter an error message like "The Internet Wizard could not configure you computer for Internet. You will have to manually set up ..." when executing it but you can ignore it. All you have todo now is to activate the search bar in your browser.


Note: this mod was originally Hinkle's idea so all credits to him Smiley
New in version 1.6: compatible with MBC2 (More Board & Category Options 2)
New in version 1.5: added link for Mac IE users, replaced .reg file by .ins file because .reg file didn't work on all windows systems, support for SP 1.3.x
New in version 1.4: fixed some html errors
New in version 1.3: Added support for Internet Explorer
New in version 1.2: Smallish typo fixed, would cause the Opera part to malfunction. - SchOX.
« Last Edit: Aug 24th, 2004 at 12:24am by Administrator »  

sidebar_v16.zip (Attachment deleted)

The Administrator.
Back to top
WWW  
IP Logged
 
-:MiKAeL:-
Junior Member
**
Offline



Posts: 95
Location: Karlskrona
Joined: Nov 13th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #1 - May 10th, 2003 at 3:44pm
Print Post  
How do I execute that *.ins file?? It starts the Internet Connection Wizard when double clicked, and then I get an error message from it.
  
Back to top
WWW  
IP Logged
 
louisle
God Member
*****
Offline


With a little bit of love
everything goes better

Posts: 1124
Location: Muenchen
Joined: Apr 9th, 2003
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #2 - May 10th, 2003 at 3:55pm
Print Post  
hello michael prager ,

please can you write a code with one button / <a> for all browsers ? or a subroutine, which detect the browser ?
thanx.

greetings
louisle
  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #3 - May 10th, 2003 at 4:11pm
Print Post  
Quote:
How do I execute that *.ins file?? It starts the Internet Connection Wizard when double clicked, and then I get an error message from it.

Do you have at least IE 5.5 and the latest service packs installed?

What kind of error do you get?

Quote:
hello michael prager ,

please can you write a code with one button / <a> for all browsers ? or a subroutine, which detect the browser ?
thanx.

greetings
louisle
Sorry, I'm not a javascript wizzard.
  

The Administrator.
Back to top
WWW  
IP Logged
 
-:MiKAeL:-
Junior Member
**
Offline



Posts: 95
Location: Karlskrona
Joined: Nov 13th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #4 - May 10th, 2003 at 4:29pm
Print Post  
IE 6.0.2800.1106.xpsp2.021108-1929

The error is something like this:

"The Internet Wizard could not configure you computer for Internet. You will have to manually set up the bla bla bla..."

Is it the correct program that starts when I double click the *.ins file?!
  
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #5 - May 10th, 2003 at 4:39pm
Print Post  
Oh I see. Well you can ignore that error. Just open your browser and activate the search bar and you'll see your new bar Wink

P.S. I've updated the mod description, it tells you to ignore this error now Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
-:MiKAeL:-
Junior Member
**
Offline



Posts: 95
Location: Karlskrona
Joined: Nov 13th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #6 - May 10th, 2003 at 4:50pm
Print Post  
So it was there all the time!  Grin

I never use that search bar, and I thought there would be a new bar appearing to use... Anyhow, this works fine!

Thanks!
  
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #7 - May 10th, 2003 at 4:54pm
Print Post  
yeah that's why * Administrator uses Mozilla instead

IE doesn't really support sidebars, the way it's done with this mod is more a hack than a feature Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #8 - May 10th, 2003 at 7:28pm
Print Post  
Michael this is cool!  8)

Any reason this won't work with 1.1?
  
Back to top
WWW  
IP Logged
 
louisle
God Member
*****
Offline


With a little bit of love
everything goes better

Posts: 1124
Location: Muenchen
Joined: Apr 9th, 2003
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #9 - May 10th, 2003 at 7:49pm
Print Post  
hello michael prager ,

maybe that helps

http://www.xs4all.nl/~ppk/js/detect.html

please .

greetings
louisle
  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #10 - May 10th, 2003 at 7:57pm
Print Post  
caliman wrote on May 10th, 2003 at 7:28pm:
Michael this is cool!  8)

Any reason this won't work with 1.1?

Did you install the Sp1.1-compatible mod file (sidebar_v15_sp1_sp11_sp12.mod)?
  

The Administrator.
Back to top
WWW  
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #11 - May 10th, 2003 at 8:10pm
Print Post  
No I did a search before asking, but now that I downloaded this mod, I see that version.  Wink

I can do the javascript detect stuff if you want.  Smiley
  
Back to top
WWW  
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #12 - May 10th, 2003 at 9:03pm
Print Post  
Hey Michael, just tried to install on my 1.1 board. It seems to load the normal template.html instead of template_sidebar.html. Any suggestions?  Undecided
  
Back to top
WWW  
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #13 - May 10th, 2003 at 9:10pm
Print Post  
Never mind, I forgot to upload YaBB.pl. lol.  Roll Eyes

GREAT MOD!
  
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #14 - May 10th, 2003 at 10:15pm
Print Post  
Quote:
I can do the javascript detect stuff if you want.

That would be great Smiley
  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 6
Send TopicPrint