We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Add To Facebook & MySpace; By Codes Rock
Topic Started: Jan 23 2010, 01:07 AM (216 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Codes Rock
Add To Facebook & MySpace
 
Code Name: ADD TO FACEBOOK
Author: Codes Rock (a.k.a. HostMyImageSite)
Description: Got a topic or post you want to send to your friends on Facebook, or maybe post on your profile? This is the way to do it!
Preview: see below
Where it goes: Skinning & Styles > Board Wrapper > section: Footer

Installing this script will place a button that links you directly to your Facebook account!

Posted Image

Clicking the link, while viewing a topic, will send the topic to Facebook where you can either message it to your friends or post it on your profile!

Code:
 

<script type="text/javascript">
//Copyright HostMyImageSite
divs=document.getElementsByTagName("DIV");
for (p=0; p<divs.length; p++) {
if (divs[p].className=="activeuserstrip" && divs[p].innerHTML.match('are reading this topic')) {
var url = document.location.href;
divs[p].innerHTML +='<div style="float:right;"><a href="http://www.facebook.com/sharer.php?u=' + url + '" target="_blank"><img src="http://hostmyimagesite.com/images/1polr23cb64crzl7iu6j.jpg" alt="Add To Facebook" border="0" /></a></div>';
}}
</script>


Example of it in use: http://z4.invisionfree.com/HMIS_Example/index.php?showtopic=1
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply