Jump to content

gamerzfuse

Members
  • Posts

    116
  • Joined

  • Last visited

    Never

Everything posted by gamerzfuse

  1. I'm using a Wordpress theme that was supposedly custom made and modded to my liking. I have a slight CSS issue though and the developer has gone missing. I do know my CSS, but all the changes I've made have yet to work on what appears to be a CSS Padding issue. Basically, www.craighooghiem.com/test shows a nice clean page, but loaded into Internet Explorer the left-hand navigation goes screwy. If you hover over the menu a couple times, you'll note that it slips back into place on what seems like a random occurrence every couple of times. The related CSS: /**** Main Menu ****/ #sidebar ul.navlist { display: block; clear: both; margin: 0; padding: 0; list-style-type: none; width: 268px; font-size: 16px; } #sidebar ul.navlist li { display: inline; line-height: 0px;/* fix the unwanted gap between li elements in FF */ } #sidebar ul.navlist li a { display: block; height: 30px; line-height: 30px; color: white; padding: 2px 2px 2px 24px; text-decoration: none; border-top: 1px solid #2e3a15; border-bottom: 1px solid #5a6b39; } #sidebar ul.navlist a:hover { color: #d4e2ba; background-color: #718e36; border-bottom: 1px solid #2e3a15; } #sidebar ul.navlist li a.noborder, #sidebar ul.navlist li a:hover.noborder { border-bottom: none; } #sidebar ul.navlist .current_page_item a, #sidebar ul.navlist .current_page_item a:hover { background: #718e36 url(images/menu_arrow_active.jpg) no-repeat center left; margin: 0; cursor: default; color: #d4e2ba; } And Possibly: /*links*/ #sidebar ul li a {color: #FFFF99;} #sidebar ul li a:hover { color: #FFFF99; border-bottom: 1px dotted #FFFF99; } #sidebar ul li img { border: 1px solid #302723; padding: 4px; background-color: #718e36; Margin: 0; } #sidebar ul li img a { border: none;/*remove border for linked images*/ } #sidebar ul li img a:hover {border: none;} #sidebar ul li img.noborder { border: none; padding: 0; background-color: transparent; Margin: 0; margin-left: 10px; } Thanks so much!
  2. To be honest, I've never worked with arrays. I'll try and adapt that though.. it certainly looks functional. All the shorthand throws me off a bit, but I'll figure it out.
  3. is_bool isn't really a good fit here as it only checks whether or not the value is a boolean, not if it's true or false. Also, if the OP's type is a string, it won't generate the desired result. To the OP, what is $type, and what's stored in it? $type = Car, SUV, Van, Truck or Special Basically I have a view.php page for all the vehicles, but Special is for trailer hitches, etc. I made a modified view.php file (spview.php) that only displays relevant information to the special items. This code is going to be my way of making sure that special links go to the special view.php page. I already setup a separate link to do so if you do it from the special category, but it's very makeshift: www.goodwillsusedcars.com/inventory.php (click the special tab and it changes to spinventory.php which has ViewUrl change to ViewUrl2, but it doesn't cover the fact that these special items come up under "All" also.
  4. I tried what I thought would work, but it just messed things up and I seem to be unable to fit it in this statement. <tr onMouseover="this.style.backgroundColor='lightblue';" onMouseout="this.style.backgroundColor='transparent';" onclick="document.location='<?php echo $vehicles->ViewUrl() ?>'"; Where it says "<?php echo $vehicles->ViewUrl() ?>" I need an If.. Then statement asking for the variable "type", where it will use ViewUrl if the type is NOT Special, but if the type IS special, then it will use ViewUrl2. I tried, but it's failing all my ways. I'm sure I'm missing something obvious. I'm kinda looking for a quick answer and then I'll see how its done so I can adapt it to the other 20 places I need to perform similiar functions. Thanks in Advance!
  5. If we all add something, he'll be done in a matter of weeks! <?php //rest of code here echo '<h1>Car Dealership Site</h1>'; echo '<table width="650"> <tr> <td width="600">Vehicle Name</td> <td width="50">Price</td> </tr><tr> <td width="600">VEHICLE NAME HERE</td> <td width="50">PRICE HERE</td> </tr> </table>'
  6. Can you tell us the more specific application of this? If you're using it for a profile for myspace, etc then it's slightly different then if you're making a brand new template for something else. Using float: right and float: left you can make them float against each other. ie: float: left and then float: left again would place two divs floating to the left, side by side if you don't put a break between them float: left and then float: right would push each to opposite sides and leave space for whatever inbetween them.
  7. Probably the best way to do this would be PHP (meaning not in the HTML forums) but also post under one of the project idea forums, rather than help. But, back to the point, you will need to make a php form that allows the user to upload an image, store it on the server and link to it in the database. Then, you would have to code your images section to call images from certain categories with a line of code that calls only images under the said category. If this sounds like what you're looking for, you'll need to code it in PHP and ask for more specific PHP help.
  8. It's a little plain with the text, but personally my preferences are as follows: a) Get rid of the PNC animation, it looks old. b) Background should be more professional, less gimmicky c) Get rid of that Contact link and generate yourself a PHP contact page, mailto: links only work for half the people these days. Hope that helps.
  9. Thanks all. Am looking into a redesign, which is why I asked. I'll let you know if I change anything, otherwise keep the criticism coming if you have any more
  10. www.goodwillsusedcars.com Thanks!
  11. Definitely looking into pagination.. the worst part is that it's loading the full images and just sizing them down, not creating thumbnails. It's a work in progress Looking into the fact that you didn't see them, might just be a cache issue. EDIT: Not just my machine. Checked on 3 others. First two rows load fine, then there starts to be blank <div>s with nothing in them. Odd.
  12. Took your advice and used <div> items. Only problem now is that I have some entries that are.. blank? http://www.goodwillsusedcars.com/vehiclesgrid.php (lots of images to load)
  13. I am attempting to make a grid view of an inventory list we have, including images and some brief text beneath them. The problem is that I can't seem to figure out how to make the table go 3-across? Currently I have: ITEM ITEM ITEM ITEM ITEM ITEM I want: ITEM ITEM ITEM ITEM ITEM ITEM I was told it required pseudo-matrix width? Not a clue and googling that was very unrewarding. Thanks!
  14. Unfortunately that doesn't work either. I closed the font tag and changed it to #000000 Right now I am getting a display of black font for all values.
  15. To put things simply, I want to change the font color of a value based on the value from the database. Available = 000 Held = 000 Sold = red <?php $vehstatus = $vehicles->status->ViewAttributes(); if ($vehstatus == "Sold"){$statuscolor="red";} if ($vehstatus == "Available"){$statuscolor="000000";} if ($vehstatus == "Held"){$statuscolor="000000";} ?> <tr onMouseover="this.style.backgroundColor='lightblue';" onMouseout="this.style.backgroundColor='transparent';" onclick="document.location='<?php echo $vehicles->ViewUrl() ?>'"; > <?php if ($vehicles->status->Visible) { // status ?> <td<?php echo $vehicles->status->CellAttributes() ?>> <div<?php echo $vehicles->status->ViewAttributes() ?>><font color="<?php echo $statuscolor ?>"><?php echo $vehicles->status->ListViewValue() ?></div> </td> <?php } ?> Any help would be much appreciated, I know it's not right (the if statement part)
  16. I've tried everything under the sun here. Every example always uses $query and then $row, but I already have my outputs, I just want to reselect the original vehicle so the data is relevant.
  17. Here's the situation: I have a site that displays a vehicle. The site then goes on to show other vehicles from the database with similiar prices, etc Then it goes back to display the features of the car below this. Unfortunately the stats are applicable to the last vehicle that was called for comparison. Ie: Ford Focus Similiar: Sunfire Cavalier Ranger The features at the bottom of the page would be the Ranger's features. For most of the features I fixed this by setting a variable to go back to the original vehicle information, but my checkboxes work on the code: $checked = ($airconditioning == 1) ? 'checked="checked"' : ''; echo '<input type="checkbox" id="airconditioning" name= "airconditioning" onclick="return false;" '.$checked.' />'; ?>Air Conditioning<br /> I'm not sure how to reselect the original vehicle before I display the checkboxes? The code I used in the other sections was: $stocked = $vehicles->stock->ViewValue; (Stock is the Primary Key for the table, and I need it to get the original again) Any help would be much appreciated! For more information, I'm looking for a way to properly implement something like: SELECT * FROM `vehicles` WHERE `stock` = $vehicles->stock->ViewValue; I tried using a variable to represent the data again, but I don't know how to add that code.. Set it up as a query and then execute the query? Thanks!
  18. The fields are both VARCHAR and I use PHPMyAdmin. They both currently hold numbers, like 105000 or 4500 which are formatted when they are displayed to be the correct format. There is no punctuation, decimals, etc only numbers. Thanks!
  19. So I understand that TinyINT was a bad idea because it limits to 127. Can I safely change my KMs and Price fields to SmallINT or INT without worrying about them changing? (Backing up my table now, just edited 300 prices) (edits for spelling)
  20. It's actually VARCHAR. That's my problem isn't it? If I change the table value type to INT will that mess up the data already in the table? EDIT: Damnit. I made the change and all my years changed to 127. I've got a long night ahead of me. Anyway to change the table type without screwing it up. Yes, I was stupid enough not to backup the table because I thought I had a backup, but it's not current.
  21. Wow.. thanks mate! That's alot more than I expected in an answer.
  22. I have two columns in a table that are set to organize by ASC or DESC. The issue is that ASC shows 1000 before 9 because it goes by the first digit. // Sort Url function SortUrl(&$fld) { if ($this->CurrentAction <> "" || $this->Export <> "" || ($fld->FldType == 205)) { // Unsortable data type return ""; } else { $sUrlParm = $this->UrlParm("type=" . mysql_real_escape_string($_GET['type']) . "&order=" . urlencode($fld->FldName) . "&ordertype=" . $fld->ReverseSort()); return ew_CurrentPage() . "?" . $sUrlParm; } } That's the code that's sorting (I think) Any help would be awesome!
  23. Yeah.. that stuff is way over my head. I guess I'll just give up on that one.
  24. Yeah.. but see, the function I'm using gets the SORT from the URL. Meaning example.com/items.php?order=make&ordertype=ASC Can I automatically have a second one the defaults to secondary regardless? $sUrlParm = $this->UrlParm("type=" . mysql_real_escape_string($_GET['type']) . "&order=" . urlencode($fld->FldName) . "&ordertype=" . $fld->ReverseSort()); I'm not sure how I would enter commas into this variable?
  25. Since you guys are so great at sorting, I'll throw another one out there: I have a list that is sorted based on the column header that is clicked (ie: click Price, sorts by Price) Is there anyway to have it secondarily sort? I have 400 items in the list and it lists like: Chevrolet 2008 Honda 2008 Chevrolet 2008 Know what I mean? EDIT: (I want it to sort secondarily by Make or Model regardless, just to keep things looking tidy.)
×
×
  • 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.