Post by Former Member on Dec 9, 2012 14:20:20 GMT -8
I followed a thread that JJ posted where Patrick Posted this.
Okay I used this code below for the image uploaders. I even added it to the Javascript as Jordan mentioned in the Tutorial for Basic Plugins. Could someone help me as to why it will not work. Thanks.
chrissystutorials.freemessageboards.com/post/new/187
Providing they are stand alone codes like my forum age (they don't modify parts of the forum), just copy that code into a plugin
How to:
Go to plugins > build > create new plugin > name it (add a description if you want)
On the page that comes up, go to components tab, on the right, select where you want it to go (global or main are normal), padte the code into header or footer and save, you should see it appear where you put it.
in plugins > manage, you can turn them on or off, or edit the coding in 'build'
How to:
Go to plugins > build > create new plugin > name it (add a description if you want)
On the page that comes up, go to components tab, on the right, select where you want it to go (global or main are normal), padte the code into header or footer and save, you should see it appear where you put it.
in plugins > manage, you can turn them on or off, or edit the coding in 'build'
Okay I used this code below for the image uploaders. I even added it to the Javascript as Jordan mentioned in the Tutorial for Basic Plugins. Could someone help me as to why it will not work. Thanks.
chrissystutorials.freemessageboards.com/post/new/187
<script type="text/javascript">
/* Add Image Upload Links to Posting Page by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
var divider=" | "; // Divider character or HTML
var iLinks=[ // Format ["SITE URL","TEXT OR IMG HTML FOR LINK"]
["http://www.imagehousing.com/","ImageHousing"],
["http://imageshack.us/","ImageShack"],
["http://imgur.com/","Imgur"],
["http://picoodle.com/","Picoodle"],
["http://photobucket.com/","Photobucket"]
]; // DO NOT TOUCH
if(document.postForm&&pb_username!="Guest"){ var pf=document.postForm;
var m=(pf.subject.parentNode.parentNode).cloneNode(true),a,n="",x=-1;
var t=((pf.icon)?pf.icon:pf.color.parentNode).parentNode.parentNode;
a=m.firstChild;a.firstChild.innerHTML="Image Upload Links:";
while(iLinks[++x]){
n+="<a href='"+iLinks[x][0]+"' target='_blank'>"+iLinks[x][1]+"</a>"+divider;
} a.nextSibling.innerHTML="<font size='2'>"+n.slice(0,-divider.length)+"</font>";
t.parentNode.insertBefore(m,t);
}
</script>