Jump to content

Riseykins

Members
  • Posts

    112
  • Joined

  • Last visited

    Never

Everything posted by Riseykins

  1. Well I am wanting to show an alert on my website at certain times each day. I need it to show up between 2 and 3 am, 10 and 11 am and 2 and 3 pm. I don't really know PHP much at all, so I don't know how to edit much, really.
  2. Can someone help me with this? I want to display certain images at certain times of the day, as well as on certain days of the week. How can I do this? Thanks a lot!
  3. What do I need to add to the following code to make it sort alphabetically? <?php /* Copyright 2007 S. Benjamin Your Membership grants you the right to use this script You may modify this script to suit your needs, but you can not resell this script You are not allowed to give this script away, or resell this script or any part of it. Unauthorized sale or redistribution of this script will result in account termination without refund, and possible legal actions! Contact info: info@creativeaftermath.com http://www.creativeaftermath.com */ //////Build Catergories////// $cats = array(); if ($handle = opendir("/home/burning/public_html/layouts/cat/")) { while (false !== ($file = readdir($handle))) { if(($file != ".")&&($file != "..")){ array_push($cats, $file); } } closedir($handle); } ////End Build Catergories//// /////Build Nav///// $cat_count=1; foreach($cats as $cat){ $cat_strip = trim(preg_replace('/[^a-zA-Z]/', ' ', $cat)); echo '<a href="http://burningviolet.com/layouts/'.$site_url.'index.php?id='.$cat.'&page=1" title="'.$cat.' MySpace Layouts">'.ucfirst($cat_strip).' Layouts</a>'."\n";} /////End Build///// ?> Thanks!
  4. For anyone that is interested. I just needed to change if ($handle = opendir($path."cat/")) { to if ($handle = opendir($path."/home/user/public_html/layouts/cat/")) { *kicks self*
  5. Hi there, I want to include this page: http://burningviolet.com/layouts/include.php in http://burningviolet.com/header.inc When I do that, I get: Warning: opendir(cat/) [function.opendir]: failed to open dir: No such file or directory in /home/burning/public_html/layouts/include.php on line 22 However, when I go to the include.php page, it works. Can someone help? Here's the include.php code: <?php /* Copyright 2007 S. Benjamin Your Membership grants you the right to use this script You may modify this script to suit your needs, but you can not resell this script You are not allowed to give this script away, or resell this script or any part of it. Unauthorized sale or redistribution of this script will result in account termination without refund, and possible legal actions! Contact info: info@creativeaftermath.com http://www.creativeaftermath.com */ //////Build Catergories////// $cats = array(); if ($handle = opendir($path."cat/")) { while (false !== ($file = readdir($handle))) { if(($file != ".")&&($file != "..")){ array_push($cats, $file); } } closedir($handle); } ////End Build Catergories//// /////Build Nav///// $cat_count=1; foreach($cats as $cat){ $cat_strip = trim(preg_replace('/[^a-zA-Z]/', ' ', $cat)); echo ' <a href="'.$site_url.'index.php?id='.$cat.'&page=1">'.ucfirst($cat_strip).'</a> '."\n";} /////End Build///// ?> I'm guessing this is a quick fix. Can anyone help? Thanks!
  6. Okay, this isn't PHP (though might use some eventually). I was wondering if anyone could point me in the right direction to make something like this: http://www.glitterbell.com/generators/romantic-snowglobes/ Sorry if this is in completely the wrong section, but I am TOTALLY clueless! Thanks, all!
  7. Here is what I wanted to do: http://burningviolet.com/myspace/Hearts.php http://burningviolet.com/myspace/Peace-Signs.php Yeah, they are horrible but I was trying out a tutorial. Haha. I feel sick. O.o Thanks!
  8. I have the following code but IDK why it won't work! Can someone please help me? Thanks so much! echo '<div class="contact">'."\n". '<p class="contact_title">'.$name.'</p>'."\n". '<div style="width: 300px; height: 200px; background-image: url("'.$_url.'/backgrounds/'.$_dir.'/'.$OBJ.'"); background-repeat: repeat;"> </div>'."\n". '<textarea class="contact_text" onclick="this.focus(); this.select();" >'."\n".
  9. Do I need to ask my host to do this, or can I do this myself? My host take ages to reply, and it sucks.
  10. DarkWater got it! I knew that it was simple as hell, but as I'm a n00b, I couldn't do it myself! Thank you, all!
  11. Yeah, it would be something like that. Except that $foldername would need to change when the name of the file changed...
  12. Solon, that's not what I'm trying to do. I'll try and explain again. xD Okay, so say I have the following file: <? php include("/home/user/public_html/FILENAMEHERE/file.php"); ?> If I change the name of the file containing that code to bob, the file automatically does this: <? php include("/home/user/public_html/bob/file.php"); ?> When I change it to jim, it becomes: <? php include("/home/user/public_html/jim/file.php"); ?> I have loads of files that are all identical to each other except for that one thing so it's annoying to have to open each file I make and change it. xD
  13. I just need it to take the filename and get it to come out within the file. I have many files that are in a directory. Each file corresponds with images located in directories that have the same name as the file. So, when you visit the page bob.php, the images in the directory bob are displayed. If the filename is tim.php then the images in the tim directory show. I can't really explain it any better. :s I need to echo the filename, really. But can I do this inside: <? php include("/home/user/public_html/ECHOFILENAME/file.php"); ?>
  14. a file called bob.php and I want to use the filename in my file. E.g. <? php include("/home/user/public_html/bob/file.php"); ?> Is there any way to do this? Thanks!
  15. http://www.burningviolet.com/graphics The content area is wayy down below on this page, but works fine on http://www.burningviolet.com/ Can someone help me find out what's causing this problem? I bought the script on that page so didn't code it myself and don't know what does what. Thanks!
  16. I have pages in a directory: http://www.burningviolet.com/graphics I want to include a header that is saved in the public_html directory. How would I do this? I don't like uploading my headers all the time. Thanks!
  17. It turns out that it was some HTML that was causing the headers to look like the CSS was wrong...
  18. http://burningviolet.com/newlays.php I am wanting my <h1> (where it says "New MySpace Layouts") to look like my .h1 (where it says "Updates") but I can't work out why it won't change! Can someone give me a hand? :s Thanks!
  19. I'm wanting to move multiple websites to a new server...This includes emails, FTP accounts, etc... However, when I try and do this, I get this error: "Connecting to Remote Server Failed: Unable to connect to unphased.org:1291: Bad file descriptor " Can someone help me try to resolve this as my host are very slow at replying... Thanks!
  20. I put it live on my site and another counter is saying 4 is online whereas this always says 1...
  21. It seems to be saying that 1 person is online and that's all. :S
×
×
  • 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.