footer's Copyright element proplem - PHP/HTML

Started by John Magdy Lotfy, July 26, 2017, 05:42:36 PM

Previous topic - Next topic

John Magdy Lotfy

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 [nofollow] on the footer not 'Copyright BrownTurbo Gaming.... so please some help

edit: i tried $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

Advertisement: