Log in

View Full Version : Fav links Script-© Dynamic Drive



Rick777
01-12-2009, 01:09 AM
Fav links Script-© Dynamic Drive

The above script just stopped working on our Website. Do we need to buy it, as it no longer looks to be offered here. We still would like to use one on our site.
Zubee.com
Thank you
Rick

Nile
01-12-2009, 01:12 AM
Can you explain what the script used to do?

Rick777
01-12-2009, 03:08 AM
Sorry I thought by posting the name of it people might know. On the bottom left of the page, users you used to be able to add 10 links to whatever site they wished. Up to 10 personal bookmarks. It sure does not work for me on the page anymore. Zubee.com. You can edit the links, but they no longer save. It it was a dhtml script I got from here.
Thanks
Rick


Can you explain what the script used to do?

jscheuer1
01-12-2009, 03:37 AM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

Rick777
01-12-2009, 04:27 AM
Hi,
The credit code is in the page, that I where I got the title from the post for. I would be happy to add more, but it no longer works. I hope we can get it working again. This was the original code that was published, I had no idea you guys wanted to change some code. I would be happy to change it, as I do not wish to source another solution. It lends itself perfect to the page.
Very happy with it.
Thanks
Rick




Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

Rick777
01-12-2009, 05:00 AM
Hi,
I changed the wording to the new one,
http://www.zubee.com/
Hope you can help,
Thank you
Rick




Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

ddadmin
01-12-2009, 07:55 AM
There's actually no such script as "Fav Links script" on DD. Looking at the .js file on your site, it's empty as well (apart from the credit notice): http://www.zubee.com/FavlinksScript.js I'm not sure where you had gotten this script, but it isn't from DD.

jscheuer1
01-12-2009, 08:16 AM
There's actually no such script as "Fav Links script" on DD. Looking at the .js file on your site, it's empty as well (apart from the credit notice): http://www.zubee.com/FavlinksScript.js I'm not sure where you had gotten this script, but it isn't from DD.

@ddadmin,

Well there actually is a script on the page with no credit, that's what I was talking about, I didn't see the linked script you mention.

The one I see looks like it's trying to use a cookie or cookies to save the user's favorites:


<script language="JavaScript"><!--
var cookiename = 'myfavoritelinks';
var urltable= new Array();
var urlvar= new Array();

function editlinks(name,scrwidth,scrheight){ startDate= new Date(); tWin = window.open(name,
startDate.getTime(),
"toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,menubar=no,width="+ scrwidth + "height=" + scrheight);
}


function link(url,text)
{
this.url=url;
this.text=text;
}

function getcookie (cookiename) {
var cname = cookiename + "=";
var i = 0;
while (i < document.cookie.length) {
var j = i + cname.length;
if (document.cookie.substring(i, j) == cname){
var leng = document.cookie.indexOf (";", j);
if (leng == -1) leng = document.cookie.length;
return unescape(document.cookie.substring(j, leng));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return "*";
}


function getlinks()
{
vcookie = getcookie(cookiename);
if (vcookie=="*")
{
return false
}
else
{
urlvar = vcookie.split("##");
for (i=0; i < urlvar.length; i++)
{
text = urlvar[i].split("%%");
urltable[i]= new link(text[0], text[1]);
}
return true;
}
}
// --></script>

Look familiar to you DD?


@Rick777,

Anyways, this isn't a very good strategy because client side cookies are easily lost. So many folks might save their links only to have them disappear anyway. Better in the long run not to lead them on.

ddadmin
01-12-2009, 08:31 AM
Yep, it's definitely not from DD. :) Rick777, it looks like the issue you're having is just that the .js file is empty. You'll want to find the original file before it was emptied.

Rick777
01-12-2009, 09:04 AM
Sorry guys I fixed it I hope. I am almost certain I got it from here, I never found any other good dhtml sites, and I do not know a lot about this stuff, as I got a a lot of scripts from here like this one: http://www.dynamicdrive.com/emailriddler

You are right cookies is not a good solution at all, but I do not know if a good soltution that uses almost no resoureces but I am open to suggests if you do not mind. I have no training for this stuff.
Thank you
Rick




Yep, it's definitely not from DD. :) Rick777, it looks like the issue you're having is just that the .js file is empty. You'll want to find the original file before it was emptied.

djr33
01-13-2009, 07:00 AM
This may not be helpful, but if you are certain that you got it from this site and it isn't in the library, then it may have been a script submitted here in the forum and not included in the library, so searching some of the older posts may be your answer

Rick777
01-13-2009, 10:20 PM
Thanks for the replies, I was able to buy a php script. It works now. We still would not mind paying for someone to remotley host a script, to save bookmarks so people do not rely on a cookie. We are not big enough yet to go dedicated. Thank you for the help.
http://www.zubee.com/
Rick