Jump to content

Woolf

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

About Woolf

  • Birthday 04/11/1991

Contact Methods

  • AIM
    Mister+Woolfy
  • MSN
    woolf@bluewoolf.com

Profile Information

  • Gender
    Male

Woolf's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Try this. [code=CSS]/*** Main CSS ***/ body { background-color:#FFFFFF; margin-top:0px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; background-image:url(../images/bg1.gif); background-repeat:repeat; } a:link { color: #00CCFF; text-decoration: none; background-color:inherit; } a:visited { text-decoration: none; color: #00CCFF; background-color:inherit; } a:hover { text-decoration: none; color: #000000; background-color:inherit; } a:active { text-decoration: none; color: #00CCFF; background-color:inherit; } /*** Layout ***/ #body_wrapper { text-align: left; width:760px; background-color:#FFFFFF; color:#000000; margin-left:auto; margin-right:auto; } #top{ height:24px; width:760px; } #top_lower{ height:47px; width:760px; background-image:url(../images/3.gif); } #top_links{ text-align:right; padding-top:20px; padding-right:50px; } #main_top{ width:760px; height:148px; } #links{ width:760px; height:32px; } #links_bod_sep{ width:760px; height:44px; } /*** Main ***/ #maincontent{ width:760px; background-image:url(../images/main_middle.gif); } #main{ padding-left:40px; padding-right:40px; } #main .title{ color:#000000; background-color:#FFFFFF; font-weight:bold; text-align:center; } #main p{ margin:0px; padding:5px; } .title{ color:#000000; background-color:#FFFFFF; font-weight:bold; } #footer_sep{ width:760px; height:21px; } #footer{ width:760px; height:34px; background-image:url(../images/footer.gif); text-align:center; } #bottom{ width:760px; height:19px; } /*** Other Stuff ***/ img{ border:0px; } .wrong{ color:#FF0000; background-color:inherit; } .correct{ color:#33CC00; background-color:inherit; } .answer{ font-weight:bold; } input { color: #000; background-color: #eaf0da; border: 1px solid #96bd38; } .error{ color:#FF0000; background-color:#FFFFFF; font-weight:bold; } .plate{ width:203px; margin:8.5px; } .plate .top .text{ background-image:url(../images/plate_01.gif); width:137px; height:24px; float:left; font-weight:bold; } .plate .middle{ background-image:url(../images/plate_04.gif); } .plate .bottom{   background-image:url(../images/plate_05.gif);   background-repeat: no-repeat; height:8px; }[/code] [code=HTML] <div id="maincontent"> <div id="main"><!-- TemplateBeginEditable name="Main" --><div style="float:left;width:210px"><div class="plate"> <div class="top"> <div class="text"><div style="padding-left:5px;padding-top:5px;">Manage Account</div></div><div style="float:left;"><img src="images/plate_02.gif" width="31" height="24" alt=""><img src="images/plate_03.gif" width="35" height="24" alt=""></div></div> <div class="middle"> <div style="padding:5px;"><img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php" title="Member Home">Member Home</a><br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Update_Account" title="Update Account Information">Update Account Information</a><br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Membership" title="Membership Information">Membership Information</a><br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Donations" title="Membership Contributions">Membership Contributions</a><br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Change_Pwd" title="Change Password">Change Password</a> <br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Logout" title="Logout">Logout</a></div></div> <div class="bottom"></div> </div> <div class="plate"> <div class="top"> <div class="text"><div style="padding-left:5px;padding-top:5px;">Participate</div></div><div style="float:left;"><img src="images/plate_02.gif" width="31" height="24" alt=""><img src="images/plate_03.gif" width="35" height="24" alt=""></div></div> <div class="middle"> <div style="padding:5px;"><img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Poll" title="Take Poll">Take Monthly Poll</a><br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Quiz" title="Take Monthly Quiz">Take Monthly Quiz</a> <br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Discussions" title="Discussions">Discussions</a></div></div> <div class="bottom"></div> </div> <div class="plate"> <div class="top"> <div class="text"><div style="padding-left:5px;padding-top:5px;">Progress & Goals</div></div><div style="float:left;"><img src="images/plate_02.gif" width="31" height="24" alt=""><img src="images/plate_03.gif" width="35" height="24" alt=""></div></div> <div class="middle"> <div style="padding:5px;"><img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Verify" title="Accept the Great American Diet Challenge">Accept the GAD! Challenge</a><br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Goals" title="Personal Weight Goal">Personal Weight Goal</a> <br /> <img src="images/arr.gif" alt="a" width="8" height="7" /> <a href="users.php?cmg=Progress" title="Your Weight Progress">Your Weight Progress</a></div></div> <div class="bottom"></div> </div></div>[/code] In the HTML, I removed the image in the 'bottom' div, and then set the div to have it as a background. I also modified some other parts of the CSS. Let me know if there are any problems.
  2. Use something like if($i % 8 == 0){//show spacer image or whatever} That should separate them.
  3. I'm not sure if you guys are willing to do this... or even if my suggestion should be made, but I'll say it anyway. What if you 'merged' all the sites into one portal. You can still have AJAXFreaks, MySQLFreaks, ApacheFreaks, etc., however, they can all be on the same 'site'. Perhaps just change the colors, but keep the same design/style and links. Perhaps having some nice quick-nav buttons at the top would be a great way. I think this could increase the people who read the content and ask for help on those sites. Just my two cents, though.
  4. You might try to tell your PHP script to see if the file exists already, if it does - delete the file, then upload the new one. [code]<?php if(file_exists('myfile.ext')){   unlink('myfile.ext'); } //Continue Upload.... ?>[/code]
  5. [quote author=Manipe link=topic=104203.msg429137#msg429137 date=1157545381] Thanks to you all, I've fixed it now. I re-uploaded everything and it just worked. Don't know how, but all I know now is that it's working fine. cheers for the help. [/quote] Excellent. Let us know if you have any more problems. :)
  6. You could try using something along the lines of if(!isset($_FILES['image1']['name'])){   error stuff here... } That should, in theory, prevent uploading of files without names (in other words... not uploading anything).
  7. I like it, it all flows together very nicely. Great job!
  8. mysql_query("DROP TABLE tablename"); where tablename is the actual name of the table.
  9. Instead of this: deny from 193.220.64.0-193.220.64.255 use this: deny from 193.220.64 Essentially, this will block anybody with the ipaddress of 193.220.64.*, * being the wildcard, matching any number.
  10. [quote author=Manipe link=topic=104203.msg415425#msg415425 date=1155562630] I'm having major trouble with a PHP script which is accessed through a forcetype definition in a .htaccess file in the same folder. When I run the file through the forcetype file path, it gives me the following error: Parse error: parse error, unexpected $ in 'file' on line 246 But then when i change the contents of the file to a normal PHP file, it works fine and as expected, with no errors at all. I have isolated the problem code, and have tried putting it in a function to bypass the error, but it still doesn't work. Because it works as a PHP file, I believe that the problem lies in the apache side of things. Can anyone help, or has anyone had a similar problem before. All help is greatly appreciated.  ;) [/quote] Have you tried this? AddType application/x-httpd-php .myextension 'myextension' being whatever extension you are using If that doesn't work, then it's a problem with your host (a problem I've had in the past). I believe it has something to do with the host not allowing you to override the extensions, or it could be a PHP safe mode protocol. If all comes to worse, you should switch your host.
  11. I would think the second choice (26 tables) would be better, but that's just my opinion. My reasoning behind this is: If you were to use one table, with hundreds of thousands of words... that'd be a big table, right? Well, just think... in order to query the results by letter, you would either have to a) create a 'first letter' column or b) pull all the results from the table and then check to see if they contain the correct first letter. Even if you were to use the 'first letter' column, you would still have to use extra processing by using WHERE first_letter='x' (where x is the letter). So, if you were to use 26 separate tables, when you run your query you would just have to do it like normal. (SELECT * FROM letter_x ORDER BY word ASC) That's really quite simple, and I would think that it would be much faster. Especially with pagination.
  12. This [i]can[/i] be done with PHP, as even I use PHP for collapsing / expanding content boxes in my admin panel. However, it's not as simple as 1-2-3. It will require a bit of knowledge that I'm not sure you have, if you have limited PHP knowledge as you say. Anyway, I'll give you an overview of what it's like: 1) For your categories, when clicked on, it will go to that section as normal. 2) For the other categories (that are not currently clicked on), they will be collapsed as normal. 3) In your navigation script, you can check to see if a category is set (in the url... display.php?cat=X). If it is (and it matches the current one in the loop), you can get the subcategories for it. Otherwise, only the main category will be displayed. Here's an example of what your script might look like: [code]<? include("config.php"); // connect to database $link = mysql_connect("$dbhost","$dbuser","$dbpass"); mysql_select_db("$dbname",$link); ?> <style type="text/css"> table            { font-family: verdana; font-size: 11px } a                  { font-family: verdana; font-size: 11px; text-decoration: none } a:hover      { font-family: verdana; font-size: 11px; text-decoration: underline } </style> <center>   <table border="0" cellpadding="2" cellspacing="0" width="100%"> <? $result = mysql_query("SELECT * FROM cats WHERE active='1'"); while ($row = mysql_fetch_array($result)) { ?>     <tr background="images/website_seo_34.jpg">       <td><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="display.php?cat=<?=$row[cid];?>&scat=n"><b><font color="#000000"><?=$row[name];?></font></b></a> <br> <? //Check if current category is being viewed if($_GET['cat'] == $row['cid']){ $result2 = mysql_query("SELECT * FROM scats WHERE cid='$row[cid]' AND active='1'"); while ($row2 = mysql_fetch_array($result2)) { ?>     <tr>       <td>&nbsp;&nbsp;<a href="display.php?cat=<?=$row[cid];?>&scat=<?=$row2[scid];?>"><?=$row2[name];?></a></td>     </tr> <? }}} ?> </td>     </tr>    </table> </center>[/code]
  13. You could use sessions. [list] [*]Put session_start(); at the top of your pages [*]When someone submits the form, save the variable like this: $_SESSION['employee_num'] = $employee_num. Where $employee_num is the variable that you have when someone submits the form. [*]To recall the ID number on another page, use $_SESSION['employee_num'] (e.g. $employee_num = $_SESSION['employee_num']) [/list]
×
×
  • 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.