TinyPortal

Development => Block Codes => Topic started by: crip on December 30, 2005, 07:30:54 PM

Title: Book Mark?
Post by: crip on December 30, 2005, 07:30:54 PM
I think you could consider this a Block snippet..I use it this way in a scriptbox..

Quote
<INPUT TYPE="radio" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href, document.title);'>Add To Favorites

You can use a button, radio, or checkbox..

crip~

[attachment deleted by admin]
Title: Re: Book Mark?
Post by: ontap on January 08, 2006, 03:21:09 PM
Heres a bookmark script for both IE & Firefox.

Make A Javascript/html Block

Add:


<Script>
// Bookmark Script IE & Firefox
// No Need To Change Below
function tpbookmark(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
</script>
<a href="javascript:tpbookmark('Tinyportal.net', 'http://tinyportal.co.uk')">Tinyportal</a>

Title: Re: Book Mark?
Post by: elite_thut on January 17, 2007, 11:24:21 PM
This doesn't work with firefox...when you load the bookmark, it's a side panel at the left...not a full window...
Title: Re: Book Mark?
Post by: akulion on January 17, 2007, 11:27:17 PM
yes these scripts are usually only browser specific

for cross browser functionality you actually have to add 2 or 3 scripts

its to do with the internal workings of the browsers - nothing can be done about it really except use multiple scripts
Title: Re: Book Mark?
Post by: elite_thut on January 18, 2007, 01:32:09 AM
And do you know of a script which works with firefox? I've never found one...
Title: Re: Book Mark?
Post by: akulion on January 18, 2007, 01:29:42 PM
yes there are some
check in the block code snippets index

there is some topic about favorites or bookmarks or something listed there
Title: Re: Book Mark?
Post by: RoarinRow on January 18, 2007, 03:38:39 PM
I use the Bookmark mod from SMF - here (http://www.simplemachines.org/community/index.php?topic=89003.0).  I like it because you can easily bookmark threads and manage it within your forum.
Title: Re: Book Mark?
Post by: [Duncan] on January 26, 2007, 12:38:32 AM
hello,

i realize a translation for the Bookmark_Mod_1-3.zip by Leipe Po (http://custom.simplemachines.org/mods/index.php?mod=350) in French.
And a i change it for work properly with tinyportal 0.9.7.

   
you can do of them what you want :)


edit: just correction off language files.