Jump to content

eleven0

Members
  • Posts

    75
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

eleven0's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello, all. I own a blog and was wondering if anyone could suggest a script. I use images for my blog posts, it's getting hard to keep them organized. Script should be able to do following: Resizing Image Editing - more stuff the better (cropping and etc) URLs for uploaded images
  2. There are many sites that you can learn CSS from. If you're a starter, You should take a look at W3 CSS school. Or one of my favorites cssbasics.com. Once you get going, use tools like stumbleupon to find different css tricks and tips to practice your skill.
  3. $quotes = array( 'This is my quote', 'Another quote', 'Another line' ); Is it possible to use a variable in this array? if so, can someone show me the right way to do it? I keep receiving error. I have these variables $GLOBALS["nav"] $GLOBALS["ver"] I'm going to write an if statement, but i don't know the right syntax format. Thanks
  4. Thanks for the quick reply. That didn't work though. "New Random Headline" is not clickable. Here is what i did; I added the script to my page. I placed following <script type="text/javascript"> $("#request-new").click(function(){ $.ajax({ type: "GET", url: "./headline.php", error: function(xml, status, error){ alert("Sorry but we encountered an error."); }, success: function(data, status){ $("#latest-headline").html(data); } }); });</script> between <head> and </head>. Then; <div id="latest-headline"> <?PHP $quotes = array( "This is my quote", "To be or not to be", "<b>You can</b> <u>use html</u>"); $count = count($quotes); $random = (rand()%$count); echo $quotes[$random]; ?> </div> <a id="request-new">New Random Headline</a> New Random Headline is not even clickable. What am i doing wrong?
  5. <?PHP $quotes = array( "This is my quote", "To be or not to be", "<b>You can</b> <u>use html</u>"); $count = count($quotes); $random = (rand()%$count); echo $quotes[$random]; ?> I have this script and it shows the array on random. everytime page reloads, it shows something different. I want to do the same thing with a button(like a link) without reloading the page. I pretty much don't know anything about Ajax or javascript. Can someone point me to the right direction? so i can do more search on it. Thanks.
  6. <?php $status = $_GET["status"]; if (!$status) { echo("this is when everything is working fine"); } else if($status=="1") {echo("This is status 1, it will set to '1' when page is under construction."); } else { echo "<b><h1>404 Error</h1></b>"; } ?> I'm trying to create a control panel for my website. I want to configure couple of modes for certain pages. For instance, lets say that a web page is under construction, I'd be setting the status to 1, which shows my maintenance mode message. But the code I have requires my users to type "?status=1" in the URL to see the message, which is useless. Maybe i can redirect them to "?status=1"? is it possible to control this through a control panel? if so, how? Edit: This is probably not a good way of doing what I want. Because, users can type "status=0" to see the page even though status 1 is set. Any ideas?
  7. This was kind of weird. I tried UTF-8 in file, it didn't work. Then I changed it to "UTF-8" in my text editor. It works now. I don't know why text editor overrides what it's in meta. Anyone?
  8. I need help with encoding different characters. My pages can't show turkish characters such as "ö,ç,ş,ü". All I get is a question mark instead of these characters. Can someone tell me how I can fix this? It seems it works fine on these forums. FYI: I use "jEdit" if it matters.
  9. I'm not too sure if it's the right place to ask. I'm looking for a script that can change text every time you click refresh. Like news bar at the top of this forum, every time you refresh forums, it will change.
  10. Thanks, I know how to use floats. That's a great site btw.
  11. Hmm, I have a single centered column where i put my content and I decided add a sidebar on the right side. it seemed real easy to put that sidebar using that property.
  12. I use position:absolute; top: 120px; left:24%; It works fine, I have set my div as i wanted but when you resize your browser, div moves around too(positions itself with those values within the resized browser). Is there a way for me to stick that div at that place. I don't want it to move as you resize your browser. I chose position:absolute because it's really easy for me to put whatever i want wherever i want, but everything gets messed up when you resize your browser. Any alternative ways or ideas?
  13. It works allright but there are still many things that need to be fixed. http://us3.php.net/manual/en/function.get-browser.php#51673 I also found this at rhodesa's link, it works pretty good. No details, simply prints out what browser your visitor is using, including the version. Using this I can put up a notice for IE6 users, which was the point. Thanks again.
  14. thanks for the replies, I at least want to put a notice up in the top of my site to warn my users. I asked this because, lately I accessed my web site with a public pc using IE6. Everything was messed up. Although, It looks okay in my pc(same vers.). I'm just tired of seeing these problems. Everything in my site looks great in every browser except IE6< versions.
  15. I know this is possible but Can i do it with php? or javascript? Also, I want to restrict mysite to certain browsers. So I won't have to spend time fixing my css for those old browsers. thanks...
×
×
  • 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.