SimplePortal
Support => English Support => Topic started by: Vonotna on September 02, 2015, 07:49:32 PM
-
Hello, so on my homepage I have the User info row.
Made it look like this:
(http://i.imgur.com/FGOIzR9.png?1)
But now I want to delete the
-Recent Unread Topics
-Updated Topics
But I seem not to be able to.
When I delete the
<li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a></li>
<li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
My whole forum get's error. And I am sure I have all the permisions on the file.
Thank you for the help.
Also I have attached the code if its easier for you to just modify it like that.
-
Find:
echo '
<li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a></li>
<li>', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a></li>';
if (!empty($member_info['options']['cust_earned']))
echo'<li>', sp_embed_image('dot'), ' <strong>Points:</strong> ', $member_info['options']['cust_earned'], '</li>';
Replace with:
if (!empty($member_info['options']['cust_earned']))
echo '
<li>', sp_embed_image('dot'), ' <strong>Points:</strong> ', $member_info['options']['cust_earned'], '</li>';
-
You are a god damn life saver.
THANK YOU
THANK YOU
THANK YOU
:applause:
-
That was fast ;D Nice one Sayaka.
Vonotna, I'll go ahead and mark this as solved (next time you can do this yourself by clicking on the relative button) :)
Ah yeah, welcome to SimplePortal!
Regards
P.S.: update your SMF version to 2.0.10 ;)
-
Heh sorry about that i forgot.
I am upgrading right now :)
-
Just be careful editing PHP live when you are not familiar with the language.