editing affiliates widget
3 posters
Page 1 of 1
editing affiliates widget
guys help! i deleted my affiliates widget and now i want to retrieve it, is there any way to retrieve it? if there is.. please let me know.
the reason why i delted the widget is because i try to edit it customizing the affiliates. i did a javascript for photoslide, its working in but when i load it in my portal it doesn't work, it frustrates me,... i don't know what to do. i write down belows the script i had made. please check it and try to run it in your portal.
<html>
<head>
<title>Slideshow</title>
<script language="JavaScript" type="text/javascript">
//<!--
//<![CDATA[
first = 1;
last = 4;
current = 1;
function nextPicture() {
// Hide current picture
object = document.getElementById('slide' + current);
object.style.display = 'none';
// Show next picture, if last, loop back to front
if (current == last) { current = 1; }
else { current++ }
object = document.getElementById('slide' + current);
object.style.display = 'block';
}
function previousPicture() {
// Hide current picture
object = document.getElementById('slide' + current);
object.style.display = 'none';
if (current == first) { current = last; }
else { current--; }
object = document.getElementById('slide' + current);
object.style.display = 'block';
}
//]]>
// -->
</script>
<style type="text/css">
<!--
.slideShow {
background-color: #34A703;
text-align: center;
margin-bottom: 10px;
padding: 5px;
}
.slides {
position: relative;
z-index: 1;
display: none;
}
.setTitle, .slideTitle {
font-family: "TAHOMA", Arial, Helvitica, sans-serif;
}
.slideTitle {
color: #995a01;
font-size: 12px
font-weight: bold;
}
.controls {
position: relative;
z-index: 10;
}
#slide1 {
display: block;
}
img {
border: outset 1px #999999;
}
-->
</style>
</head>
<body>
<div class="slideShow">
<div id="slide1" class="slides">
<div class="slideTitle">Pitbull Legends</div>
<img src="http://www.pitbull-legends.com/forums/styles/proDark/imageset/pitbull-legends.jpg" height="140" width="160" border="0" />
</div>
<div id="slide2" class="slides">
<div class="slideTitle">Bully Inc.</div>
<img src="http://www.bully-inc.com/20081028220648_20081028152302_Untitled-1.jpg" height="55" width="160" border="0" />
</div>
<div id="slide3" class="slides">
<div class="slideTitle">Cavite Pitbull Kennel Club</div>
<img src="http://www.pitbull-legends.com/forums/download/file.php?avatar=104_1234338601.jpg" height="140" width="140" border="0" />
</div>
<div id="slide4" class="slides">
<div class="slideTitle">Picture 04</div>
<img src="pic04.jpg" height="140" width="140" border="0" />
</div>
<div class="controls">
<a href="javascript:previousPicture()" style="margin: 10px;">« Previous</a>
<a href="javascript:nextPicture()" style="margin: 10px;">Next »</a>
</div>
</div>
</body>
</html>
the reason why i delted the widget is because i try to edit it customizing the affiliates. i did a javascript for photoslide, its working in but when i load it in my portal it doesn't work, it frustrates me,... i don't know what to do. i write down belows the script i had made. please check it and try to run it in your portal.
<html>
<head>
<title>Slideshow</title>
<script language="JavaScript" type="text/javascript">
//<!--
//<![CDATA[
first = 1;
last = 4;
current = 1;
function nextPicture() {
// Hide current picture
object = document.getElementById('slide' + current);
object.style.display = 'none';
// Show next picture, if last, loop back to front
if (current == last) { current = 1; }
else { current++ }
object = document.getElementById('slide' + current);
object.style.display = 'block';
}
function previousPicture() {
// Hide current picture
object = document.getElementById('slide' + current);
object.style.display = 'none';
if (current == first) { current = last; }
else { current--; }
object = document.getElementById('slide' + current);
object.style.display = 'block';
}
//]]>
// -->
</script>
<style type="text/css">
<!--
.slideShow {
background-color: #34A703;
text-align: center;
margin-bottom: 10px;
padding: 5px;
}
.slides {
position: relative;
z-index: 1;
display: none;
}
.setTitle, .slideTitle {
font-family: "TAHOMA", Arial, Helvitica, sans-serif;
}
.slideTitle {
color: #995a01;
font-size: 12px
font-weight: bold;
}
.controls {
position: relative;
z-index: 10;
}
#slide1 {
display: block;
}
img {
border: outset 1px #999999;
}
-->
</style>
</head>
<body>
<div class="slideShow">
<div id="slide1" class="slides">
<div class="slideTitle">Pitbull Legends</div>
<img src="http://www.pitbull-legends.com/forums/styles/proDark/imageset/pitbull-legends.jpg" height="140" width="160" border="0" />
</div>
<div id="slide2" class="slides">
<div class="slideTitle">Bully Inc.</div>
<img src="http://www.bully-inc.com/20081028220648_20081028152302_Untitled-1.jpg" height="55" width="160" border="0" />
</div>
<div id="slide3" class="slides">
<div class="slideTitle">Cavite Pitbull Kennel Club</div>
<img src="http://www.pitbull-legends.com/forums/download/file.php?avatar=104_1234338601.jpg" height="140" width="140" border="0" />
</div>
<div id="slide4" class="slides">
<div class="slideTitle">Picture 04</div>
<img src="pic04.jpg" height="140" width="140" border="0" />
</div>
<div class="controls">
<a href="javascript:previousPicture()" style="margin: 10px;">« Previous</a>
<a href="javascript:nextPicture()" style="margin: 10px;">Next »</a>
</div>
</div>
</body>
</html>
ryanmcwhole- New Member
- Posts : 23
Reputation : 0
Language : english
Re: editing affiliates widget
Avoid using scripts in widgets. Place them in your Homepage message box or on Html pages.
Your slide show script works as a Homepage message but it's missing an image url for slide #4.
[ Go to your Admin Panel's Display tab: Generalities, Add script to "Homepage message content" ]
__________________________________________________________________________________
create a new forumotion affiliates widget with this
Your slide show script works as a Homepage message but it's missing an image url for slide #4.
[ Go to your Admin Panel's Display tab: Generalities, Add script to "Homepage message content" ]
__________________________________________________________________________________
create a new forumotion affiliates widget with this
- Code:
<div align="center"><a href="http://www.forumotion.com/"><img src="http://www.illiweb.com/fa/banner/en/banner5.png" alt="free forum" title="forumotion.com" width="113" height="50" /></a><div align="center"><a href="http://www.brothersoft.com/?referral=forumotion"><img src="http://www.illiweb.com/fa/partenaires/brothersoft.gif" border="0" /></a></div><div align="center" style="text-align:center"><a href="http://www.facebook.com/pages/Forumotion/35684307357" alt="Support Forumotion on Facebook"><img src="http://2img.net/i/fa/social_bookmarking/facebook.gif" style="vertical-align:middle;" style="vertical-align:middle;" alt="Facebook" title="Facebook" />Support Forumotion on Facebook</a></div><div align="center" style="text-align:center"><a href="http://twitter.com/forumotion/"><img src="http://i86.servimg.com/u/f86/13/76/68/98/twitte10.jpg" alt="Follow us on Twitter" width="125" border="0" height="50"></a></div>
[ it's a good idea to save text file backups of codes before editing ]
Re: editing affiliates widget
bro thanks for your reply. i already solve the problem. i insert a flash player in my widget and it works well. i use third party program to create the photo slides. thank you so much!
the problem is solve so pls. locked this thread now.
the problem is solve so pls. locked this thread now.
ryanmcwhole- New Member
- Posts : 23
Reputation : 0
Language : english
Re: editing affiliates widget
Since this thread appears to be solved, I will lock this thread and mark it as solved.
Sanket
Sanket
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Affiliates Widget Question
» Widget Code - editing
» Lost editing functions in widget creation
» Affiliates and Widget Management Problem
» Editing widget
» Widget Code - editing
» Lost editing functions in widget creation
» Affiliates and Widget Management Problem
» Editing widget
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum