Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: php/html copyright year code

  1. #1
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608

    php/html copyright year code

    I have looked all over on w3schools.com, and cannot find what I am looking for.

    I am using a new wisywig editor, that is better than the last.

    I went to input the html code for the copyright year, and it won't display it correctly.

    The software is basekit. They use CSS and HTML.

    Does anyone know what code can be used?

    Hostgator.com mentioned that the html code I was using was not dynamic, and needed to be static, but my cell got disconnected and I have been on the phone all day, so didnt try calling back.

  2. #2
    NLC wswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud of wswd's Avatar
    Join Date
    Dec 2010
    Posts
    1,120
    No idea what you're talking about.

    Are you just trying to use © ??

    That's the code that will get you the copyright symbol.
    WSWD Inc., Celebrating our 17th year in business
    WSWD.net - Shared, Reseller, VPS, Dedicated Server Hosting
    Blazing Fast SSD VPS That Will Blow Your Mind!! High Performance RAID10 SSD Drives, IPv4, IPv6, and Private IPs

  3. #3
    #anonymous Decker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond repute Decker's Avatar
    Join Date
    Dec 2003
    Location
    West Yorkshire, Englandshire
    Posts
    10,145
    Can you show us what you can't get to work George?

    If Basekit's an editor then you should be able to open a word doc and insert/symbol and choose the © symbol then copy and paste it - I just did that there
    /\__/\ We Do Not Forgive!
    (- o *) We Do Not Forget!
    (")_(") Expect Us!
    IT Help for everyone @ Scotia-IT.com - when it's finished

  4. #4
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608
    I am not referring to the copyright sign. I am referring to the 2nd year in the copyright

    Copyright © 2011-2012 <<< I want the year in red to automatically change when each new year comes.

    They said the html code for it, is dynamic, and I need it to be static (or vice versa).

    The tech was talking about using PHP code that would make the HTML code static, and that w3schools.com, taught you how to do it, and was explaining, but my cell disconnected.

  5. #5
    #anonymous Decker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond repute Decker's Avatar
    Join Date
    Dec 2003
    Location
    West Yorkshire, Englandshire
    Posts
    10,145
    You mean like this;

    HTML Code:
    &copy; <?php 
    $copyYear = 2011; 
    $curYear = date('Y'); 
    echo $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '');
    ?> Company.
    Which shows this;

    © 2011-2012 Company.
    /\__/\ We Do Not Forgive!
    (- o *) We Do Not Forget!
    (")_(") Expect Us!
    IT Help for everyone @ Scotia-IT.com - when it's finished

  6. #6
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608
    I would say yes, but after putting that code in, it took out both years, and just left copyright © company name.

  7. #7
    #anonymous Decker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond repute Decker's Avatar
    Join Date
    Dec 2003
    Location
    West Yorkshire, Englandshire
    Posts
    10,145
    Lets see the code you have so far
    /\__/\ We Do Not Forgive!
    (- o *) We Do Not Forget!
    (")_(") Expect Us!
    IT Help for everyone @ Scotia-IT.com - when it's finished

  8. #8
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608
    Quote Originally Posted by Decker View Post
    Lets see the code you have so far
    Here is the entire code

    <p style="text-align: center;"><span style="color: black;">Copyright &copy; <?php
    $copyYear = 2011;
    $curYear = date('Y');
    echo $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '');
    ?> VIP Recycling LLC.
    A subsidiary of <span style="color: #0f00bd;"><a href="/http://millenniumcapitalcorp.com" target=
    "_blank"><span style="color: #0f00bd;">The Millennium Capital Group,
    LLC.</span></a></span></span></p>

  9. #9
    #anonymous Decker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond repute Decker's Avatar
    Join Date
    Dec 2003
    Location
    West Yorkshire, Englandshire
    Posts
    10,145
    I paste that code in and get;

    Copyright © 2011-2012 VIP Recycling LLC. A subsidiary of The Millennium Capital Group, LLC.



    (take the '/' out of <a href="/http://millenniumcapitalcorp.com" target=
    "_blank">
    /\__/\ We Do Not Forgive!
    (- o *) We Do Not Forget!
    (")_(") Expect Us!
    IT Help for everyone @ Scotia-IT.com - when it's finished

  10. #10
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608
    Quote Originally Posted by Decker View Post
    I paste that code in and get;

    Copyright © 2011-2012 VIP Recycling LLC. A subsidiary of The Millennium Capital Group, LLC.



    (take the '/' out of <a href="/http://millenniumcapitalcorp.com" target=
    "_blank">
    I had the / removed, but it got added back some how.

    Also, I have the code like that, but if you go to http://viprecycling.com/, you will notice there is no years in the footer.

  11. #11
    #anonymous Decker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond repute Decker's Avatar
    Join Date
    Dec 2003
    Location
    West Yorkshire, Englandshire
    Posts
    10,145
    Haven't tried Basekit but looking at the source code of the page it's being stripped out, or you need to insert php code in a particular way.

    I'll look at basekit and see what it does
    /\__/\ We Do Not Forgive!
    (- o *) We Do Not Forget!
    (")_(") Expect Us!
    IT Help for everyone @ Scotia-IT.com - when it's finished

  12. #12
    #anonymous Decker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond reputeDecker has a reputation beyond repute Decker's Avatar
    Join Date
    Dec 2003
    Location
    West Yorkshire, Englandshire
    Posts
    10,145
    Just tried it, Basekit doesn't handle php, dare say anything dynamic being added, so you'll have to take the plunge and change it once a year...
    /\__/\ We Do Not Forgive!
    (- o *) We Do Not Forget!
    (")_(") Expect Us!
    IT Help for everyone @ Scotia-IT.com - when it's finished

  13. #13
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608
    Quote Originally Posted by Decker View Post
    Just tried it, Basekit doesn't handle php, dare say anything dynamic being added, so you'll have to take the plunge and change it once a year...
    knew that nothing could be that damn easy! lol

  14. #14
    Chairman/CEO TMCG GeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really niceGeorgeB is just really nice
    Join Date
    Jan 2005
    Location
    Virginia
    Posts
    2,608
    I am surprised there is no html code for it.

  15. #15
    NLC wswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud ofwswd has much to be proud of wswd's Avatar
    Join Date
    Dec 2010
    Posts
    1,120
    Quote Originally Posted by GeorgeB View Post
    I am surprised there is no html code for it.
    There can't be HTML code for it, as HTML is static. You need some dynamic language for inserting dynamic content.
    WSWD Inc., Celebrating our 17th year in business
    WSWD.net - Shared, Reseller, VPS, Dedicated Server Hosting
    Blazing Fast SSD VPS That Will Blow Your Mind!! High Performance RAID10 SSD Drives, IPv4, IPv6, and Private IPs

Closed Thread

Similar Threads

  1. Need help with HTML code?
    By jennyjackson in forum Webdesign / HTML
    Replies: 4
    Last Post: April 29th, 2011, 06:41
  2. cant do html code stuff
    By monkeyboy900 in forum Webdesign / HTML
    Replies: 1
    Last Post: January 30th, 2007, 13:03
  3. Footer Html Code
    By Chris L. in forum Programming Help
    Replies: 9
    Last Post: November 17th, 2005, 22:17
  4. How do I do code snipplets in HTML?
    By Archbob in forum Webdesign / HTML
    Replies: 7
    Last Post: April 8th, 2003, 00:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts