Page Index Toggle Pages: 1 [2] 3 4 ... 6 Send TopicPrint
Very Hot Topic (More than 25 Replies) Sidebar v1.6 for SP1.3 (Read 23434 times)
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #15 - May 11th, 2003 at 12:33am
Print Post  
Ok.  Smiley
Well this is a 'Saturday night special.'
It works.
I did try to put it all in the function, but Opera wasn't happy with that. It keep trying to store the function instead of the URL.

So this was my second guess.

Code
Select All
<html>
<head>
<title>sidebar test</title>
<script language="JavaScript">
<!--
    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","");
  } 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";
  }
}

//-->
</script>
</head>

<body>

<script language="JavaScript">
<!--
if (is_nav)
{document.write('<a href="javascript:addPanel();">Sidebar&lt;/a>')}
if (is_ie)
{document.write('<a ))" rel="sidebar" title="YOUR_BOARD_TITLE">Sidebar&lt;/a>')}
if (is_opera)
{document.write('<a href="YOUR_BOARD_URL?action=sidebar" rel="sidebar" title="YOUR_BOARD_TITLE">Sidebar&lt;/a>')}
else {document.write('Your browser does not support Sidebar.')}

//-->
</script>

<br>
Mac users using IE should drag <a href="YOUR_BOARD_URL?action=sidebar&type=IE">this link</a> into their search bar manually.

</body>
</html>
 






  
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 #16 - May 11th, 2003 at 1:57am
Print Post  
Thx a lot, caliman. I've used your code and improved it a bit. You can take a look at the result here

If nobody reports problems with it, I'll add it to the mod description.
« Last Edit: May 12th, 2003 at 12:01am by Administrator »  

sidebar.html.txt ( 2 KB | Downloads )

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 #17 - May 11th, 2003 at 2:21am
Print Post  
Glad to help!   Smiley
  
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 #18 - May 11th, 2003 at 9:10am
Print Post  
hello michael and caliman,

thanx for your code ...  Kiss

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

they also describe how to detect the  OS .. maybe you can add a function with if OS=mac and Browser=IE ... so that it is just ONE button ?
i hope i don't get on your nerves . just want help improve your mod  Wink

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 #19 - May 11th, 2003 at 12:34pm
Print Post  
Alright, here is another version displaying the mac info only on macs Wink
  

The Administrator.
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 #20 - May 11th, 2003 at 12:48pm
Print Post  
you are the greatest mod developer  Wink

is this version in the .zip ?

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 #21 - May 11th, 2003 at 2:39pm
Print Post  
not yet, I'm waiting for someone testing this javascript on a mac, to make sure that my changes really work.
  

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


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #22 - May 11th, 2003 at 9:52pm
Print Post  
it shows:

Code
Select All
To add a sidebar to your browser, click below:
Please drag this link into their search bar manually.  



and it does show the correct link, whihc works fine. Just to clear up the language you use, it's the 'Page Holder' Tab that you should direct people to drag it to - dragging it to the 'search' tab opens up the page in the main window.
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
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 #23 - May 11th, 2003 at 10:40pm
Print Post  
hello michael prager ,

i don't want get on your nerves , but if you could do it so , that there is just one Button ( sidebar.gif ) for all browsers ... and if the combination MacOS and IE is present, the button automatically create the sidebar, too. i think that would be the best ...  Wink
because there is no place for textes on many boards. if you want i make an icon for you ...

greetings
louisle
  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
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 #24 - May 11th, 2003 at 11:10pm
Print Post  
how about that ?

  

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 #25 - May 11th, 2003 at 11:59pm
Print Post  
Thanks for testing, Loony. I've fixed the file once more and also added a new variable which lets you define the link text, so louisle could for example replace the text by an image more easily. Automatically adding the sidebar on mac+IE is not possible however. People will have to drag manually!
  

The Administrator.
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 #26 - May 12th, 2003 at 12:04pm
Print Post  
hello michael ,

what is "... page holder tab ..." in german ?

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 #27 - May 12th, 2003 at 2:09pm
Print Post  
Don't ask me Roll Eyes
  

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


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: Sidebar v1.5 for SP1.3
Reply #28 - May 12th, 2003 at 3:14pm
Print Post  
"Seite Halter Tabulator"

That's what my translator comes up with, whether it is correct, I do not know....  Lips Sealed
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
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 #29 - May 12th, 2003 at 4:25pm
Print Post  
yeah I tried that too but it doesn't make sense Grin
  

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