View Single Post
Old January 7th, 2009, 01:09 AM   #1 (permalink)
skidpics
Ultimate Member
Verified Customer
 
skidpics's Avatar
 
Join Date: Jun 2007
Location: Texas
Posts: 1,353
Send a message via AIM to skidpics Send a message via Yahoo to skidpics
Social Widget for your photos!

This little script/Widget is awesome! I have it working to get any image on the site tagged to your myspace, facebook, etc.. profile pages!

Check it out here: Skidpics - Fast, free image hosting - DSCF6784

and look at the widget below the pic!

Now for the integration part. Most sites accept the html coding, so that is what I am using.. since those social sites dominate the market.

in showphoto.tmpl.
First line, BEFORE the <?php

<script src="http://cdn.gigya.com/wildfire/js/wfapiv2.js"></script>

then, roughly around line 94, which will show below the image,add this below the </table>:

<center>
<!-- Start Gigya widget code -->
<div id="divWildfirePost"></div>
<script>
var pconf={
defaultContent: '$showhtmlcode&lt;a href=&quot;http://skidpics.com&quot;&gt;Share your images at skidpics.com&lt;/a&gt;',
UIConfig: '<config><display showDesktop="false" showEmail="true" useTransitions="true" showBookmark="true"></display><body corner-roundness="8;8;8;8"><background frame-color="#dcdcdc" background-color="#f8f8f8" gradient-color-begin="#ADC8FF" gradient-color-end="" corner-roundness="8;8;8;8"></background><controls><snbuttons type="textUnder" frame-color="#cacaca" background-color="#FFFFFF" over-frame-color="#bababa" over-background-color="#FFFFFF" color="#376DDA" corner-roundness="0;10;0;10" size="11" bold="false" over-color="#0D1B6D"></snbuttons><textboxes><codeboxes color="#6A6A6A" frame-color="#1B366D" background-color="#F4F4F4"></codeboxes></textboxes><buttons gradient-color-begin="#0099FF" gradient-color-end="#223276" color="#FFFFFF" corner-roundness="0;8;0;8" size="11" bold="true" over-gradient-color-begin="#0099FF" over-gradient-color-end="#0099FF"></buttons><servicemarker gradient-color-begin="#F4F4F4" gradient-color-end="#F4F4F4"></servicemarker></controls><texts color="#FFFFFF" bold="true"><privacy color="#AAAAAA"></privacy><labels color="#1B366D"></labels><messages color="#F4F4F4" background-color="#1B366D" bold="true"></messages><links color="#376DDA" underline="false" over-color="#1B366D"></links></texts></body></config>'
};
Wildfire.initPost('466242', 'divWildfirePost', 500, 200, pconf);
</script>
<!-- End: Gigya widget code -->
</center>

Note: defaultContent: '$showhtmlcode', is set to $showhtmlcode to include the base html code to show image in most social sites. you can change this to anything you want.

Chuck, Michael, if you like this, look into this for the new UI.
Attached Images
File Type: jpg widgetshot1.jpg (36.0 KB, 11 views)
__________________
-- Skidpics



Skidpics.com is for sale! Domain Name + content - contact me

I decided to get out of the photo hosting business. It was good while it lasted. With that, I present FacesofWoW.net - World of Warcraft Social Site[/color]

Last edited by skidpics; January 7th, 2009 at 12:14 PM.
skidpics is offline   Reply With Quote