WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My first wordpress site [NSFW] (17 posts)

  1. AdultBabes
    Member
    Posted 1 year ago #

    i dunno its good or not, the only problem for me is only about code, still a long way to make it good,,,, any reference or article to make it more good are welcome.... thanks...

    AdultBabes [NSFW]

    [please read http://codex.wordpress.org/Forum_Welcome#Warn_About_Adult_Content ]

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    You'll have to be more specific on the problem, other than "about code... Make it good".

  3. AdultBabes
    Member
    Posted 1 year ago #

    i check my theme css using w3 validator and i got it contain many error found, and confuse about php code too...
    like this which i cannot solve it, i want to hyperlink , AdultBabes.net
    here is link format i use. , AdultBabes.net
    but when do that i always get error parser.

    $year = date('Y');
    if ($year != 2012){
    echo '© 2012 – '.$year.', AdultBabes.net';
    } else {
    echo '© 2012, AdultBabes.net';
    }

    please help me and thanks in advance....

  4. AdultBabes
    Member
    Posted 1 year ago #

    oh my bad, here is my link format code.

    <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    Do you get the parse error with PHP, not W3C validator?

  6. AdultBabes
    Member
    Posted 1 year ago #

    yes error with php. can you help me to fix it ?

    the one i got error in w3c validation are my theme style.css

    any suggestion how i can learn css the easy way. thank andrew :)

  7. Andrew
    Forum Moderator
    Posted 1 year ago #

    What is the entire error message and what line of code is it referring to?

  8. AdultBabes
    Member
    Posted 1 year ago #

    $year = date('Y');
    if ($year != 2012){
    echo '© 2012 – '.$year.' <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>';
    } else {
    echo '© 2012 <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>';

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' on line 7

  9. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which line is line 7?

  10. AdultBabes
    Member
    Posted 1 year ago #

    i use online php run test code.. everything fine, but when i replace , AdultBabes.net with these code i got error.

    <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>

    thank you.

  11. Andrew
    Forum Moderator
    Posted 1 year ago #

    Could you post just the code on line 7, that the error is referring?

  12. AdultBabes
    Member
    Posted 1 year ago #

    i tried to use other online php code tester, and here the other result

    $year = date('Y');
    if ($year != 2012){
    echo '© 2012 – '.$year.' <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>';
    } else {
    echo '© 2012 <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>';
    }

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /homepages/26/d94605010/htdocs/lz/writecodeonline.com/php4/index.php(138) : eval()'d code on line 3

    i got that error message when i test using php4. and its mean i use php4 code or what? and are there an easy way to convert it to php5 code.?

    thanks

  13. Andrew
    Forum Moderator
    Posted 1 year ago #

    Replace that code excerpt with this;

    $year = date('Y');
    if ($year != 2012){
    echo "© 2012 – "'.$year.'" <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>";
    } else {
    echo "© 2012 <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>";
    }
  14. AdultBabes
    Member
    Posted 1 year ago #

    i got this error message

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /homepages/26/d94605010/htdocs/lz/writecodeonline.com/php4/index.php(138) : eval()'d code on line 3

  15. Andrew
    Forum Moderator
    Posted 1 year ago #

    Sorry, try this instead;

    $year = date('Y');
    if ($year != 2012){
    echo "© 2012 – ".$year." <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>";
    } else {
    echo "© 2012 <a href='http://www.adultbabes.net' title='Free Quality Porn Downloads'>, AdultBabes.net</a>";
    }
  16. AdultBabes
    Member
    Posted 1 year ago #

    hooray......... wow.... so many thank a lot mate.....
    its work.... hehehe..... sorry for wasting your time mate... :)

  17. Andrew
    Forum Moderator
    Posted 1 year ago #

    You're welcome.
    Remember to mark the thread resolved if the issue is resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.