The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

What is the ADD me to your forum code for a widget?

3 posters

Go down

What is the ADD me to your forum code for a widget? Empty What is the ADD me to your forum code for a widget?

Post by Bear queen December 24th 2008, 6:50 pm

Is there a code for phpbb3 that will allow you to make a widget for people to add it to their favorites?
Bear queen
Bear queen
Forumember

Female Posts : 191
Reputation : 0
Language : English
Location : Earth!!

Back to top Go down

What is the ADD me to your forum code for a widget? Empty Re: What is the ADD me to your forum code for a widget?

Post by Guest December 24th 2008, 7:03 pm

...make script not widget!
widgets are based on flash....
script (java script) is text based code...
i don't no how its done coz its about action=....bla bla!!
you can google it!!!

maybe

herf="yoursitename.com/portal.htm&action="add to favorites"

or something like that!!!
avatar
Guest
Guest


Back to top Go down

What is the ADD me to your forum code for a widget? Empty Re: What is the ADD me to your forum code for a widget?

Post by briella December 24th 2008, 7:16 pm

I'm not sure if this will work with your forum but here are the codes I used.


Code:
<a href="YOUR FORUM ADDRESS"><img src="URL of image"></a>

Code:
<textarea onClick = select()><a href="YOUR WEBSITE URL"><img src="YOUR IMAGE URL"></a>

The first one is just the picture and the last one is the code. The first one is the only one that worked in my widget.

Good luck.
briella
briella
Forumember

Female Posts : 58
Reputation : 0
Language : english
Location : In between Dreaming and Awake

Back to top Go down

What is the ADD me to your forum code for a widget? Empty Re: What is the ADD me to your forum code for a widget?

Post by Guest December 24th 2008, 7:28 pm

both are img codes,but second changes on click!

i found this:
1
Code:
<a href="javascript:window.external.AddFavorite('http://www.java-scripts.net', 'Java-scripts.net')">Click here to add Java-scripts.net to your favorites</a>
2
Code:
<a href="javascript:window.external.addFavorite('http://www.website.com','Website Title');">
Click here to add the homepage to your favorites!</a>
3
Code:
<FORM>
<INPUT TYPE="button" VALUE="Add to Favorites" onClick='window.external.AddFavorite(location.href, document.title);'>
</FORM>
4
Code:
<span style="cursor: hand; text-decoration: underline;" onclick="window.external.AddFavorite(location.href, document.title);">
Click here to add this page to your favorites</span>

thats it... Very Happy...it must work Very Happy....num 3 is button type Very Happy...for portal or what ever Very Happy...
contact me with MSN so i can diliver scripts to you!:
mixa205@gmail.com
avatar
Guest
Guest


Back to top Go down

What is the ADD me to your forum code for a widget? Empty Re: What is the ADD me to your forum code for a widget?

Post by cybernet2u December 25th 2008, 12:40 pm

the best one until now
no need to modify something else

tested on firefox 3 and IE 6 with last updates

Code:
<script type="text/javascript">var pageurl=location.href;var pagetitle=document.title;function bookmarksite(title,url){if (window.sidebar)    window.sidebar.addPanel(title, url, "");else if(window.opera && window.print){    var elem = document.createElement('a');    elem.setAttribute('href',url);    elem.setAttribute('title',title);    elem.setAttribute('rel','sidebar');    elem.click();} else if(document.all)    window.external.AddFavorite(url, title);}</script><p class="newstext"><a class="bookmark" href="javascript:bookmarksite(pagetitle, pageurl)">Bookmark this page</a></p>
cybernet2u
cybernet2u
New Member

Male Posts : 20
Reputation : 0
Language : English
Location : Constanta

http://cfun.1talk.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum