Advertisement:

Author Topic: footer's Copyright element proplem - PHP/HTML  (Read 1177 times)

Offline John Magdy Lotfy

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
  • Member
    • BR.Zoro on Facebook
    • JohnMagdy on GitHub
    • @brtdmfounder on Twitter
    • BrownTurbo Gaming
footer's Copyright element proplem - PHP/HTML
« on: July 26, 2017, 05:42:36 PM »
Hello Everybody, so i was updating my forums's SMF Theme's Footer and added this element <p id="copyright">Copyright <strong><a href="http://' .strpos($_SERVER['SERVER_NAME'], "forums.") == True ? str_replace("forums.", "", $_SERVER['SERVER_NAME']) : $_SERVER['SERVER_NAME']. '/?p=1.0">BrownTurbo Gaming</a></strong> &copy2015-' .date('Y'). ' All Rights Reserved.</p><br /> and it just shows example.com on the footer not 'Copyright BrownTurbo Gaming.... so please some help

edit: i tried
Code: [Select]
$index_uri = strpos($_SERVER['SERVER_NAME'], "forums.") == False ? str_replace("forums.", "", $_SERVER['SERVER_NAME']) : $_SERVER['SERVER_NAME'];
echo '<p id="copyright">Copyright <strong><a href="http://' .$index_uri. '/?p=1.0">BrownTurbo Gaming</a></strong> &copy; 2015-' .date('Y'). ' All Rights Reserved.</p><br />';

and it worked. Thanks
« Last Edit: July 26, 2017, 06:07:57 PM by John Magdy Lotfy »