1. mod_rewrite and php problems

    Date: 05/16/05 (Web Development)    Keywords: php, css, html

    I have a simple php file that inserts 1 row into a db. It's in a
    directory with a mod_rewrite in a .htaccess file. The mod_rewrite
    appears to be causing the php script to be run twice for every page
    request because it inserts two rows into the db for each page request.
    If I remove the .htaccess then it works fine. Can someone tell me why
    this is happening and how I can fix it? Here is my php file

    test.php
    ---------------------------
    $db = mysql_connect('localhost', 'xxxxx', 'xxxxx');
    mysql_select_db('xxxxxx');
    echo 'create cache' . "
    \n";
    $query1 = "insert into searches (keywordId, relatedId)
    values('1','764419')";
    mysql_query($query1);
    ?>
    ---------------------------

    here is my .htaccess
    ---------------------------
    Options FollowSymLinks
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} .*sitemap(.*).html.*
    RewriteRule ^(.*)$ sitemap.php [L]

    RewriteCond %{REQUEST_FILENAME} !.*main.css.*
    RewriteCond %{REQUEST_FILENAME} !.*sm.css.*
    RewriteCond %{REQUEST_FILENAME} !.*banner.gif.*
    RewriteCond %{REQUEST_FILENAME} !.*disclaimer.html.*
    RewriteCond %{REQUEST_FILENAME} !.*sitemap.php.*
    RewriteCond %{REQUEST_FILENAME} !.*index.php.*
    RewriteCond %{REQUEST_FILENAME} !.*test.php.*
    RewriteCond %{REQUEST_FILENAME} !.*404.html.*
    RewriteRule ^(.*)$ index.php

    Source: http://www.livejournal.com/community/webdev/200040.html

  2. Seeking Redesign Advice

    Date: 05/17/05 (WebDesign)    Keywords: css, html, asp, web

    I’m planning a site redesign in order to take advantage of CSS and XHTML. My existing site uses frames, is heavy on graphics - and the architecture combines several different enterprises along with some more personal pages. At this point I’m looking for some general ideas about approaching the redesign:

    ie: whether to split off the personal aspect of the site, to split off the various enterprises (illustration portfolio, web design portfolio, fine craftwork sales site and an online coloring book) and if so, along what lines. If I split things off would I still want a portal page to tie things together?

    I’m also looking for feedback about how to showcase both CSS skills and Flash skills; I want to take advantage of both, and am wondering what people think are the best roles for each of these tools. Where is CSS best used? What are the best uses for Flash? Is it feasible to use Flash in the context of a CSS design?

    At the same time, I really hate to get rid of Frames. They are easy and useful for creating a thumbnail menu to display larger image files. Does anyone have suggestions for equally easy and useful alternatives for displaying portfolio images?

    Source: http://www.livejournal.com/community/webdesign/881408.html

  3. CSS Cheat Sheet

    Date: 05/19/05 (WebDesign)    Keywords: php, css

    Hello. Long time lurker, first time poster.

    Quick question. Awhile back someone posted a link to a CSS and PHP cheat sheet. I can't remember if it was an actual post or in a comment, but I searched the community and can't find the information. Can someone point me in the right direction?

    Thanks in advance!

    Source: http://www.livejournal.com/community/webdesign/883985.html

  4. positioning

    Date: 05/21/05 (WebDesign)    Keywords: css, java

    Hello,

    Is there a way to center the content of a page vertically using css ?
    What I'm looking for is the equivalent of something like :
    #container { margin:0px auto; }
    This would center the content horizontaly, but setting top and bottom margin to auto won't center it vertically.
    The idea is that all the content would go in a div, and depending on the screen resolution, there would be margins above and below.
    I know one can detect a screen resolution using javascript, but I was wondering if there was a way to do this using css, so it would be W3C valid, as the "align" property is deprecated for div.
    Any idea ?
    Thx all for you help.

    Source: http://www.livejournal.com/community/webdesign/886035.html

  5. CSS in IE6???

    Date: 05/22/05 (Web Development)    Keywords: css, html, java, web

    I just tried setting up my first website. I'm not a professional, but I am trying to teach myself about web development. I set up this website by creating .htm docutments in Dreamweaver. I wrote out all the code myself and didnt really use any of Dreamweaver's features.

    So far I've only been able to test it in IE6 and AOL (using IE6). In both, I recieve error messages telling me that AOL or IE6 must close due to an error. I predefined the window size using a javascript, but in AOL the size comes up incorrectly. With or without this resizing script, the error messages still occur, and AOL/IE6 needs to close. Here is the site. (BTW, this site is only meant for family and friends...these bags are not for sale to the general public.)

    I've been researching this, and read that IE6 can have some doctype issues. The doctype on all of my pages is this: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN", and shouldnt cause any problems.

    What is the best solution? I ljcut my CSS code below. Is the syntax wrong, or not strict enough, so that it's causing errors? If I want my page to be universally viewed, should I not be using CSS? I had heard that using frames is outdated, and I really like the control CSS gives me over everything on the page.

    Thanks for any and all help!!! It will be very much appreciated! (I apologize for any x-posting.)


    All of the below code is formatted correctly on the actual page. The syntax is correct, and the entire website works correctly when I test it in Internet Explorer through Dreamweaver.

    body {background: url(background_image.jpg) fixed; scroll: no}

    p {color: red}

    p.white {background-color: white}

    p.topmenu {background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14;

    line-height: 15pt; border-style: dotted; border-width: 4px; border-color: red;

    position: absolute; left: 20px; top: 100px; width: 100px; text-align: center}

    p.menu {background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14;

    line-height: 15pt; border-style: dotted; border-width: 4px; border-color: red;

    position: relative; left: 30px; top: 5px; width: 120px; text-align: center}

    p.main {font-family: Verdana, Arial, Helvetica, sans-serif; background-color: white; font-size: 13;

    line-height: 13pt; font-weight: bold; position: absolute; left: 220px; top: 20px; height: 500;

    width: 420; border-style: dotted; border-width: 4px; border-color: red}

    p.title {background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14;

    line-height: 15pt; border-style: dotted; border-width: 4px; border-color: red;

    position: relative; left: 10px; top: 5px; width: 120px; text-align: center}



    p.lower_right_image {position: absolute; left: 510px; top: 340px}

    p.image2 {position: absolute; left: 260px; top: 360px}

    p.thumb {position: absolute; left: 230px; top: 30px}



    a:link {text-decoration: none; color: black; border: 0}

    a:active {text-decoration: none; color: black}

    a:visited {text-decoration: none; color: black}

    a:hover{text-decoration: none; color: red}

    Source: http://www.livejournal.com/community/webdev/202907.html

  6. CSS in IE6???

    Date: 05/22/05 (WebDesign)    Keywords: css, html, java, web

    I just tried setting up my first website. I'm not a professional, but I am trying to teach myself about web development. I set up this website by creating .htm docutments in Dreamweaver. I wrote out all the code myself and didnt really use any of Dreamweaver's features.

    So far I've only been able to test it in IE6 and AOL (using IE6). In both, I recieve error messages telling me that AOL or IE6 must close due to an error. I predefined the window size using a javascript, but in AOL the size comes up incorrectly. With or without this resizing script, the error messages still occur, and AOL/IE6 needs to close. Here is the site. (BTW, this site is only meant for family and friends...these bags are not for sale to the general public.)

    I've been researching this, and read that IE6 can have some doctype issues. The doctype on all of my pages is this: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN", and shouldnt cause any problems.

    What is the best solution? I ljcut my CSS code below. Is the syntax wrong, or not strict enough, so that it's causing errors? If I want my page to be universally viewed, should I not be using CSS? I had heard that using frames is outdated, and I really like the control CSS gives me over everything on the page.

    Thanks for any and all help!!! It will be very much appreciated! (I apologize for any x-posting.)


    All of the below code is formatted correctly on the actual page. The syntax is correct, and the entire website works correctly when I test it in Internet Explorer through Dreamweaver.

    body {background: url(background_image.jpg) fixed; scroll: no}

    p {color: red}

    p.white {background-color: white}

    p.topmenu {background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14;

    line-height: 15pt; border-style: dotted; border-width: 4px; border-color: red;

    position: absolute; left: 20px; top: 100px; width: 100px; text-align: center}

    p.menu {background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14;

    line-height: 15pt; border-style: dotted; border-width: 4px; border-color: red;

    position: relative; left: 30px; top: 5px; width: 120px; text-align: center}

    p.main {font-family: Verdana, Arial, Helvetica, sans-serif; background-color: white; font-size: 13;

    line-height: 13pt; font-weight: bold; position: absolute; left: 220px; top: 20px; height: 500;

    width: 420; border-style: dotted; border-width: 4px; border-color: red}

    p.title {background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14;

    line-height: 15pt; border-style: dotted; border-width: 4px; border-color: red;

    position: relative; left: 10px; top: 5px; width: 120px; text-align: center}



    p.lower_right_image {position: absolute; left: 510px; top: 340px}

    p.image2 {position: absolute; left: 260px; top: 360px}

    p.thumb {position: absolute; left: 230px; top: 30px}



    a:link {text-decoration: none; color: black; border: 0}

    a:active {text-decoration: none; color: black}

    a:visited {text-decoration: none; color: black}

    a:hover{text-decoration: none; color: red}

    Source: http://www.livejournal.com/community/webdesign/886639.html

  7. Bookmarks for web-developers

    Date: 05/24/05 (WebDesign)    Keywords: css, html, xml, web, seo

    The "Bookmarks for web-designers and web-developers" contains over 200 links to resources related to webdesign.

    Categories:

    01. Creativity
    02. CSS techniques and examples
    02 a. CSS techniques
    02 b. Tabs & Navigation Menus
    02 c. CSS- & HTML-Web-Tools
    02 d. CSS/HTML-Specifications
    02 e. Other useful Web-Tools
    03. Web design
    03 a. Written & unwritten rules
    03 b. Color Tools, Mixers etc.
    03 c. Web Design magazines
    03 d. Royalty free photos
    04. Usability
    05. Freelancers resources
    06. Search engines & SEO
    07. Other catalogs
    08. Bookmarks: Maxi version
    Submit a link

    The list is updated once a week and has an XML Feed.

    Source: http://www.livejournal.com/community/webdesign/888530.html

  8. Essential bookmarks for web-developers

    Date: 05/24/05 (Web Development)    Keywords: css, html, xml, web, seo

    The "Bookmarks for web-designers and web-developers" contains over 200 links to resources related to web-design and web-development.

    Categories:

    01. Creativity

    02. CSS techniques and examples

    02 a. CSS techniques
    02 b. Tabs & Navigation Menus
    02 c. CSS- & HTML-Web-Tools
    02 d. CSS/HTML-Specifications
    02 e. Other useful Web-Tools

    03. Web design
    03 a. Written & unwritten rules
    03 b. Color Tools, Mixers etc.
    03 c. Web Design magazines
    03 d. Royalty free photos

    04. Usability

    05. Freelancers resources

    06. Search engines & SEO

    07. Other catalogs

    08. Bookmarks: Maxi version
    Submit a link

    The list is updated once a week and has an XML Feed.

    Source: http://www.livejournal.com/community/webdev/203770.html

  9. CSS Frames

    Date: 05/25/05 (WebDesign)    Keywords: css

    I just had a quick inquiry if anyone has come across this before or maybe even done it.

    A client of mine wants a navigation layout that stays static on the bottom of the page, something that I would have traditionally done with a frame at the bottom (see: www.sagesfous.com click on logo to enter main page).

    Now my question is this, is there any way to simulate the horizontal frames concept using pure CSS? I've seen the vertical frames done, but never the horizontal frames in CSS. The client wants a static navigation bar on the bottom.

    Any ideas?

    Thanks.

    Source: http://www.livejournal.com/community/webdesign/888577.html

  10. Help

    Date: 05/26/05 (WebDesign)    Keywords: css, html

    How would you encode dhtml/css using a template or layout like csszengarden. Would I use photoshop or just straight up css/dhtml to create the page.

    Source: http://www.livejournal.com/community/webdesign/890113.html

  11. Looking for www-newspapers/magazines template sets

    Date: 05/26/05 (WebDesign)    Keywords: css, html

    Hallo!
    Does anyone here has the links to available collections/examples of newspapers' (online-periodicals) template sets ? HTML + CSS sets are of interest.
    Want to browse such sets collections (but not to browse ready newspapers).
    (Search-engines search gives not much...)

    Source: http://www.livejournal.com/community/webdesign/889375.html

  12. Help

    Date: 05/26/05 (Web Development)    Keywords: css, html

    How would you encode dhtml/css using a template or layout like csszengarden. Would I use photoshop or just straight up css/dhtml to create the page.

    Source: http://www.livejournal.com/community/webdev/204300.html

  13. Position: absolute a no no? Or am I misled?

    Date: 05/26/05 (Web Development)    Keywords: php, css

    I've read in a few CSS guides and in a spattering of places online that using position: absolute in any kind of stylesheet is in general a no-no, much to my dismay as it's ease of use for position has always been my favorite. I've discovered that when used it presents problems on Macs, specifically in IE 5, but this could just have been because of my z-index ordering.

    Two questions here:

    1. Is it actually not a good idea to use position: absolute, or is there a "safe" way to use it?

    2. If it isn't a good idea, what's an alternative that would enable me to place things absolutely at a location on a page?

    X-posted to php community

    Source: http://www.livejournal.com/community/webdev/204089.html

  14. position:absolute a no no? Or am I misled?

    Date: 05/26/05 (PHP Community)    Keywords: css, web

    I've read in a few CSS guides and in a spattering of places online that using position: absolute in any kind of stylesheet is in general a no-no, much to my dismay as it's ease of use for position has always been my favorite. I've discovered that when used it presents problems on Macs, specifically in IE 5, but this could just have been because of my z-index ordering.

    Two questions here:

    1. Is it actually not a good idea to use position: absolute, or is there a "safe" way to use it?

    2. If it isn't a good idea, what's an alternative that would enable me to place things absolutely at a location on a page?

    PS: I know this isn't the webdev community, but for some reason, I couldn't post to it this morning when I did this.

    Source: http://www.livejournal.com/community/php/300989.html

  15. Footer in CSS

    Date: 05/31/05 (WebDesign)    Keywords: php, css, html, web

    Ok...what am I doing wrong? I decided to really try to conquer CSS. I created a site that looks fine in IE, but in Netscape and Firefox, it looks crappy. What am I missing??

    http://www.activedigitalmedia.com/azzarello/index.php

    How do I get the footer to actually go to the bottom of the page??

    Anyone here adept at using html in custom LJ styles? I need help with my journal style, I want to add my userpic to each entry on the main page, and it's being difficult.
    Any help is appreciated, thanks in advance. :)

    EDIT:

    Fixed version is here:

    http://www.activedigitalmedia.com/azzarello/index2.php

    It took some rewrite of code after reviewing this page:

    http://www.builderau.com.au/webdev/0,39024680,39130624-1,00.htm

    Hope it helps someone.

    Source: http://www.livejournal.com/community/webdesign/892943.html

  16. Dynamic Subdomain Generation

    Date: 06/04/05 (Apache)    Keywords: css, xml, web, apache

    I've been looking around, trying to find information about how I should go about setting up a system for dynamic subdomain generation. Here's the way I currently have to create a new subdomain:

    1. Add the Virtual Host to httpd.conf
    2. Request that the subdomain be added to my Web host's DNS (I'm using a VDS)
    3. Wait for the changes to propagate
    4. Hope that what I asked for is what I really wanted
    5. GOTO STEP 1 As Needed
    I feel that I should be able to create subdomains (img.cparker15.com, xml.cparker15.com, css.cparker15.com, dtd.cparker15.com, etc.) on the fly. Is there a way to accomplish this with Apache and/or an Apache module?

    I've heard things about mod_rewrite, but I don't know where to begin, if mod_rewrite is even a viable solution.

    Source: http://www.livejournal.com/community/apache/20897.html

  17. CSS??

    Date: 06/07/05 (WebDesign)    Keywords: css

    Hello,

    I am making a quick site and it seems to be displaying oddly in Internet Explorer, but fine in Firefox.

    The CSS for the page can be found here:

    http://testsite.voxtheatre.ca/layout.css

    and the actual page (nothing much yet, just trying to get the look) is here:

    http://testsite.voxtheatre.ca/index2.htm

    Before anyone says anything, I know frames are bad. This client is stubborn and will no relent on having the nav on the bottom, fixed in place and content at the top.

    This is frankly just for the positioning right now, which is way out of wack in IE.

    Any help would be appreciated.

    Source: http://www.livejournal.com/community/webdesign/897589.html

  18. 2 Questions

    Date: 06/08/05 (WebDesign)    Keywords: css, html

    I'm having trouble with two things on two different layouts:

    Here, you can see in the HTML and CSS that there is a div called 'nav'. However, 'nav' does not display. When I had simply nested div's it did show, but when I converted it to an iframe nested in a div, it disappeared. How do I get it to display again?

    Question #2 has to do with the IE Box Model Hack. I don't really understand it too much, but here(please view in IE) I want to expand the iframe to the end of the right side of the page, but the whole width thing in objects is getting in the way. Because of the picture, I needed to use pixel amounts not percentages. However, I can't exactly declare the iframe to be a certain width because of monitor resolutions.

    Any help would be appreciated!

    Source: http://www.livejournal.com/community/webdesign/898214.html

  19. css help

    Date: 06/10/05 (WebDesign)    Keywords: css

    Re doign my site and i cant seem to figure this out.
    The idea is to have a right column at 100% height and 200px width and a left column where all the content will go.

    wheni tried this it worked in mozzilla but not in IE. I'm on a PC at the moment and havn't looked at it at home on a mac yet so if anyone can check that'd be awesome.


    Here's the css:

    #main {
    background:#ffffff;
    margin-left: 0px;
    margin-right:200px;
    border:1px solid #000;
    margin-left: 0px;
    margin-right:200px;
    margin-top: 0px;
    }

    #right {
    position: absolute;
    right:0px;
    top:0px;
    width:200px;
    height:100%;
    background:#fff;
    border:1px solid #000;
    }

    #bottom{
    float:left;
    width: 300px;
    background:#ffffff;
    margin: 10px 0px 0px 0px;

    And a link to the page:
    here


    any help would be really really really great.

    thanks!

    Source: http://www.livejournal.com/community/webdesign/899729.html

  20. Here is a challenge!

    Date: 06/13/05 (Web Development)    Keywords: css, java, web

    I have a table inside of a table.
    I want to make the two table columns line up.
    I have made all of my widths exactly the same.
    What can I do?

    See code here.

    See code without any styles here.

    See CSS here.

    x-posted to '[info]'webdesign and '[info]'webdev

    **Edit - the tables I'm trying to line up are the javascript dropdown nested table.

    Source: http://www.livejournal.com/community/webdev/210715.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home