Jump to content

mikey3521

Members
  • Posts

    39
  • Joined

  • Last visited

    Never

Everything posted by mikey3521

  1. Hey Everyone, I have a directory with a few photos in it. Image1_img Image2_img etc. I have a php script that generates thumbnails for these to match so Image1_tmb Image2_tmb ... now what I need is a script to generate an xml file which will look like this: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <content> <gallery> <image Thumb="image1_tmb" Large="image1_img"></image> <image Thumb="image2_tmb" Large="image2_img"></image> <image Thumb="image3_tmb" Large="image3_img"></image> </gallery> </content> any thoughts would be greatly appreciated! = )
  2. Hello, I have an XML file which will look like this: <?xml version="1.0" encoding="utf-8"> <gallery> <path>/gallery/folder1</image> <name>Weddings</caption> </gallery> <gallery> <path>/gallery/folder2</image> <name>Models</caption> </gallery> So on and so forth. How do I load this so that it will display a scrollable list of all the gallery names? so -Weddings -Models but also make them clickable so that onRelease it exicutes a function that I have yet to write lol Any help on this would be more then appreciated, demo files, link to tutorial that address's this, code, etc. Thank you all! -Mike
  3. Hello, I'm working on a fullscreen flash project. I've got everything working fine, background tile, autocenter, etc one thing I can't find out is how to have a circle gradient over the background (fullscreen / autoresize) http://s3.envato.com/files/41768/index.html < an example of what I'm trying to do is there... thoughts?
  4. Hello, I'm sure there are a lot of "Which Framework" questions so I'm going to be as detailed as I can with what I'm trying to accomplish with my project and maybe someone here will have an idea or two as to which route I should take. The project will allow unsigned artists to signup, upload there music and sell it/display it online for free. This is going to be an artist run project. Basically what we we're trying to build is. Register/Login. Basic profile. An uploder where you can type in the track name, price & select a .mp3 file. It will be uploaded, stored to a database. trying to find the best framework or even a small app that already has some of these functionality but on a very basic level as we plan to put in a heavy amount of customization. Any thoughts anyone has are more then welcome.
  5. Ok below is the code I have thusfar, I need to make it toggle. So IF the classname = Viewable then i want to set it to hidden, and visa versa... <script type="text/javascript" language="JavaScript"> <!-- function toggleDiv(idname) { document.getElementById(idname).className = "hidden"; return false; } --> </script> So now I've got this: <script type="text/javascript" language="JavaScript"> <!-- function toggleDiv(idname) { if (document.getElementById(idname).className = "viewable") { document.getElementById(idname).className = "hidden"; return false; } else if (document.getElementById(idname).className = "hidden") { document.getElementById(idname).className = "viewable"; return false; } } --> Now I think the problem is with my actual IF question, I don't know how to return just the name of a div class. any thoughts? </script>
  6. Hey right now I'm using JQUERY to just do a simple .toggle function to show and hide a div. The problem is once I hide it. then goto a new page it un-hides itself. So I guess I need to set a cookie.. but I'm have some troubles with that part. I know I'll have to use a jquery cookie plugin, if anyone could help me with a simple example of how to set a cookie and check it to see if the div is "hidden" or "viewable" that would be awesome. Thanks -Mike
  7. or the other way around, strip all www's. .. please advise..
  8. I've got an IFRAME with some js code, some advanced calls from other sites etc, and I just found out it's not working for half my users. After going through the code 100x times I realized it's the same domain policy. Problem is some of my users are using http://sitename.com and others are using http://www.sitename.com , and it only works for one. Is there a way that anytime my users are going to http://sitename.com it will auto add in the www, or just quickly redirrect them to the same address they typed + the www.?
  9. I've got an IFRAME with some js code, some advanced calls from other sites etc, and I just found out it's not working for half my users. After going through the code 100x times I realized it's the same domain policy. Problem is some of my users are using http://sitename.com and others are using http://www.sitename.com , and it only works for one. Is there a way that anytime my users are going to http://sitename.com it will auto add in the www, or just quickly redirrect them to the same address they typed + the www.?
  10. Wouldn't this not fall under that category though? because the IFRAME has xyz.com open but when you click "add" it calls a script on abc.com... so in the end the iframe is abc.com and the site is abc.com... one of the users reported this from the error console. Error: Permission denied to get property Window.insert_text Source File: http://****.com/photocallback. ... %5B/IMG%5D Line: 6
  11. Apparently now this is also not working for some FF users. What I'm trying to accomplish is I am using the Photobucket media plugin on a forum I run. I've embeded it in an IFRAME so when people are making post's they can just log in, select there image and hit add... when they hit "add" it calls the script above and attaches the URL to the image. which then gets inserted into the text box. It workes fine for me and many others. a small percentage of IE & FF users are having difficulties. So now it's not just an IE problem. Is there a better way to write this code.
  12. Okey I have a website abc.com, abc.com has an iframe that loads up a plug-in from xyz.com Yes I know Iframes are bad lol moving on. Now that IFRAME content has to pass a var into a text box on abc, so the iframe loads this script which is on abc.com: now this works fine in FF but not IE, any thoughts? When you click it in IE it dosn't pass it to the text input box, it just does nothing, show's no errors.. <html> <head> <script language="JavaScript" type="text/javascript"> function sendpb() { parent.parent.insert_text(getParameter(document.location.href, "url")); }; function getParameter ( queryString, parameterName ) { var parameterName = parameterName + "="; if ( queryString.length > 0 ) { begin = queryString.indexOf ( parameterName ); if ( begin != -1 ) { begin += parameterName.length; end = queryString.indexOf ( "&" , begin ); if ( end == -1 ) { end = queryString.length } return unescape ( queryString.substring ( begin, end ) ); } return ""; } } </script> </head> <body onload = "sendpb();"></body> </html>
  13. Hello, Pretty much what I'm trying to-do is show a website, Unless your ip is in a list, if your IP is in the list I just want to echo a msg at them, instead of showing the website. any thoughts? I don't need a separate file for the ip's just an array all 1 file so index.php if your ip = (123, 234,3545, 655) { then echo "howdy"} else { ""display wbesite"" fini, any thoughts on how to accomplish this? I know some basic php but the IP part is what's getting me.
  14. Your my hero, worked like a charm. Thank you!
  15. Thank you very much. Though I still need a bit more to get there, I've got the basic idea of what's going on but the image I want to disable is actually the submit button. let me show you the code.. <input type=hidden name="testmode" value="on" /> <input type="checkbox" name="tos" value="ON">Agree? <input type=hidden name="merchantAccount" value="omitted"> <input type=hidden name="amount" value="399.99"> <input type=hidden name="item_id" value="testproduct"> <input type=image disabled name="cartImage" id="cartImage" src="http://solidtrustpay.com/images/buttons/buttontinySTP.gif"> </form> so basically if theres a checkbox in that TOS then i'll be able to click on the image, (submit input type, last line) if there is no check box, it's disabled (as it is now)... thoughts?
  16. Hello. I have an image link on my page that is a button that will send a payment to payment gateway. Now I don't want them to be able to click it unless they put a checkmark in the box that says that've read and understand the TOA Is there anyway to have the image disabled by default.. BUT once they put a check in the checkbox it enables it but if they uncheck it re disables it? Thanks -Mike
  17. Hello, Basically i'm designing a custom CMS, When a user press's "publish" the new pictures they selected ill be uploaded & it will reflect on the html page. So now the HTML looks different then how it just did. Pretty basic. Now on the main page of the CMS, what i'd like to-do is have little thumbnails beside the link to edit each page, so what i'm trying to acomplish, is anytime someone makes a change, ajax/php i dont know but some type of script takes a picture of how the page looks now, and voila.. I was thinking using php & GD but i'm not sure of a way to be at x.com/index.php and have it take a picture of x.com/testpage.html someone suggested I may be able to-do it with Ajax, anyone have any thoughts?
  18. I think your not getting quite what i'd like to-do. I want a script (php or otherwise) that will be able to take a picture of how a page looks, even though i'm not on that page, i'm going to use this as a part of a bigger script, i'm not trying to print out pictures..
  19. Hey say i'm running a script x.com/getpic.php is it possible through GD -or- some other script to take a picture of x.com/home.html bascially want I want is a picture of what the html page looks like, weather thats taking a picture of it, or "rendering" the html on the fly in the script then outputting a picture? I don't know. If anyone could offer up some advice, and if it could be done that would be awesome.
  20. Hey, I'm working on a test script here, this is what i've gotten thus far: $proxies = array("proxy1.net", "proxy2.com", "proxy3.org"); $h = fopen($proxies[rand(0, count($proxies)], 80); fwrite($h, "OPEN recordedhits.php"); fclose($h); Pretty much want I want to-do here, is make a txt document full of proxy servers & or ip's then when this script is called it should go threw them one at a time and hit my recordedhits.php script which should record it all. I've got the recordedhits.php one finished now I just need a little help on this one. I'm not quite sure how to pull the proxy's from an array, and well im not even sure if this will work and im pretty sure this just randomlly picks a proxy and dosn't actually go threw them all 1 at a time.... Any help would be greatly apperciated. thanks.
  21. im just curious how it works in the way say I have several people all upload videos within moments of each other. Will it naturally start a queue, or will it try to convert them all at the same time causing a large spike on CPU usage? Or is there a way I can decide (I think the queue method would be the best) but i'm open to thought's on this.
  22. Thanks i'll find the command I need. My other question is in PHP how do I do this so that it's running in the background, and the user isn't awaiting a result. For example uploads, then says Thanks, Uploaded, in line for processing shouldn't be long... then they can navigate around and it will keep doing it things / generating a thumb?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.