• Welcome to Valhalla Legends Archive.
 

pastebin script

Started by warz, May 09, 2006, 07:37 AM

Previous topic - Next topic

warz

Well, naturally there is a maximum length for pastes. I've pasted large amounts of code, and the length allowed right now should be sufficient enough to use this script for what it's purpose is - share, or show people code in a formatted, nice looking and easy to read manner.

Also, I don't want people pasting a bunch of junk and cluttering my database.

warz

I got bored creating my listserve script, so I have returned the paste scripts and the old rafm.org page with all of my files on it. I don't intend to take it down again, so feel free to start pasting again.

Akamas

Quote from: Arta[vL] on August 14, 2006, 04:57 PM
Well, I want some too. Greedy Yoni should stop hogging it.

warz

#18
Well, I'm currently working on integrating my newer login scheme into my old paste bin script. Should be done soon. I'm getting rid of my use of sessions, and moving entirely to cookies so you stay logged in. Not to mention I like my current layout better than my previous one.

You can currently sign up, in and out. Not to mention I have a new feature that I have yet to see in current paste bin scripts in mind. Within the week this should all be fully functional.

Rule

I'd suggest getting rid of the "all content copyright rafm..." under where people paste their scripts.  It gives off the wrong impression.  :P

"Pastebin script copyright..." would be more appropriate.

warz

Quote from: Rule on July 31, 2006, 01:50 AM
I'd suggest getting rid of the "all content copyright rafm..." under where people paste their scripts. It gives off the wrong impression. :P

"Pastebin script copyright..." would be more appropriate.

Maybe, "all non user-generated content..." :-P

Anyways, just an update, the entire paste script is back up and running including the new "private" feature. This new feature makes the "recent paste" page ignore your paste so random viewers don't visibly notice your paste. I'm going to get the comments feature back up today. Other than that, are there any features you would like to see on here that could be of use to anyone?

rabbit

Make a paste's duration based on ratings.  I think you should add in a ratings system so that highly rated pastes won't just go poof.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

warz

Quote from: rabbit on July 31, 2006, 09:13 AM
Make a paste's duration based on ratings. I think you should add in a ratings system so that highly rated pastes won't just go poof.

Ah, very nice. Possibly pastes rated "Exemplary" will never expire. Pastes created by users that are logged in already last a month. I mean, we're talking about pastes being deleted either daily, monthly, after 5 or so months maybe, and then yearly and then never...

warz

Ok, I've started adding rating functionality. Should it be required that you're logged in to rate pastes, or should anyone be able to rate them?

warz

#24
Ok. Rating the pastes is now fully functional with pretty stars to depict the rating (theyre not appearing transparent on IE but they do on FireFox, I think). You can only rate pastes if you're logged in. Pastes by logged in and non-logged in users may be rated. The duration that a paste will stay intact depends on its rating. Pastes with a rating of 4.5 or better are exempt from deletion, and all pastes with less rates are subject to deletion.

Warrior

Quote from: warz on August 05, 2006, 10:45 AM
Ok. Rating the pastes is now fully functional with pretty stars to depict the rating (theyre not appearing transparent on IE but they do on FireFox, I think). You can only rate pastes if you're logged in. Pastes by logged in and non-logged in users may be rated. The duration that a paste will stay intact depends on its rating. Pastes with a rating of 4.5 or better are exempt from deletion, and all pastes with less rates are subject to deletion.

IE6 doesn't support transparent PNGs, IE7 does.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Akamas


<script language="JavaScript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : ""
var imgClass = (img.className) ? "class='" + img.className + "' " : ""
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
var imgStyle = "display:inline-block;" + img.style.cssText
var imgAttribs = img.attributes;
for (var j=0; j<imgAttribs.length; j++)
{
var imgAttrib = imgAttribs[j];
if (imgAttrib.nodeName == "align")
{
if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
break
}
}
var strNewHTML = "<span " + imgID + imgClass + imgTitle
strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
strNewHTML += "(src=\'" + img.src + "\', sizingMethod='none');\"></span>"
img.outerHTML = strNewHTML
i = i-1
}
}
}
window.attachEvent("onload", correctPNG);
</script>
Quote from: Arta[vL] on August 14, 2006, 04:57 PM
Well, I want some too. Greedy Yoni should stop hogging it.