Author | Message | Time |
---|---|---|
warz | If anyone hangs out in most programming channels on efnet, such as #c++, #asm, etc, then you're probably familiar with the "nopaste" or "pastebin" scripts they encourage you to use. I have made one similar to most others around, but I feel it's quicker and more efficient because it's not flatfile, like a lot of the ones out there. It has syntax highlighting for most languages. Feel free to check it out, and use it. http://www.rafm.org/paste For an example of the syntax highlighting, and a sweet dll injector class, check here http://www.rafm.org/paste/results.php?id=19 :-) | May 9, 2006, 12:37 PM |
FrostWraith | I used something like this b4 ( i think same people) [url]http://rafb.net[/url] | May 9, 2006, 8:54 PM |
Newby | That's hot. :P | May 9, 2006, 9:25 PM |
warz | [quote author=FrostWraith link=topic=14950.msg152242#msg152242 date=1147208084] I used something like this b4 ( i think same people) [url]http://rafb.net[/url] [/quote] Yes. I got the idea for the script from a site similar to rafb.net - I got the idea for my site title from rafb.net. :-P | May 10, 2006, 12:12 AM |
Myndfyr | Eww -- I pasted my DataFormatter class (1.3.0.6) and your bin didn't persist my tabs (which are extended to spaces) and didn't parse my C# XML comments (which you see in my output but not yours). | May 10, 2006, 12:41 AM |
warz | I'll work on it some more. :-( hehe It doesn't like your HTML-style comments. | May 10, 2006, 1:17 AM |
warz | Ok, fixed. http://www.rafm.org/paste/results.php?id=24 | May 10, 2006, 2:12 AM |
Myndfyr | Bueno! | May 10, 2006, 7:28 AM |
warz | [quote author=MyndFyre[vL] link=topic=14950.msg152273#msg152273 date=1147246112] Bueno! [/quote] I didn't know about <pre> tags. :-P | May 12, 2006, 11:24 AM |
warz | Actually, after some research, pre tags seem to be depricated. I've switched it to largely css. I also added line numbers and word wrapping. It looks real pretty in IE, but the word wrapping isn't working yet on firefox. | May 14, 2006, 6:06 AM |
Myndfyr | I don't know if your script does this, but whenever I process HTML, I immediately replace all instances of: & with & < with < > with > Wasn't sure if you did that or not, just thought I'd throw it out there. ;-) | May 14, 2006, 7:25 AM |
warz | [quote author=MyndFyre[vL] link=topic=14950.msg152439#msg152439 date=1147591507] I don't know if your script does this, but whenever I process HTML, I immediately replace all instances of: & with & < with < > with > Wasn't sure if you did that or not, just thought I'd throw it out there. ;-) [/quote] Yes, there is a php function called htmlentities() that does this. | May 14, 2006, 8:18 AM |
raylu | You might htmlspecialchars instead. It doesn't translate quite as much; only the special characters. | May 14, 2006, 6:52 PM |
warz | The pastebin script now supports commenting. Pastes posted by non-registered users, as anonymous, last only 24 hours. Pastes posted by registered users lasts a month. Registered users may comment on any paste. Non-registered users may not make comments, but may view them. Example here | May 19, 2006, 10:52 PM |
rabbit | Any way to get a longer paste without repasting? | May 20, 2006, 3:24 PM |
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. | May 20, 2006, 8:13 PM |
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. | July 18, 2006, 3:27 PM |
KoRRuPT | http://pastebin.com/ > * | July 24, 2006, 8:22 PM |
warz | 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. | July 24, 2006, 11:01 PM |
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. | July 31, 2006, 6:50 AM |
warz | [quote author=Rule link=topic=14950.msg156316#msg156316 date=1154328638] 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. [/quote] 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? | July 31, 2006, 1:05 PM |
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. | July 31, 2006, 2:13 PM |
warz | [quote author=rabbit link=topic=14950.msg156321#msg156321 date=1154355186] 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. [/quote] 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... | July 31, 2006, 2:43 PM |
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? | August 3, 2006, 5:56 PM |
warz | 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. | August 5, 2006, 3:45 PM |
Quarantine | [quote author=warz link=topic=14950.msg156551#msg156551 date=1154792708] 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. [/quote] IE6 doesn't support transparent PNGs, IE7 does. | August 5, 2006, 7:27 PM |
KoRRuPT | [code] <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> [/code] | August 6, 2006, 10:25 AM |