SimplePortal

Support => English Support => Topic started by: Vonotna on September 02, 2015, 07:49:32 PM

Title: Can't delete User Info row
Post 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.
Title: Re: Can't delete User Info row
Post by: ccbtimewiz on September 02, 2015, 07:55:53 PM
Find:
Code: [Select]
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:
Code: [Select]
if (!empty($member_info['options']['cust_earned']))
echo '
<li>', sp_embed_image('dot'), ' <strong>Points:</strong> ', $member_info['options']['cust_earned'], '</li>';
Title: Re: Can't delete User Info row
Post by: Vonotna on September 02, 2015, 08:04:58 PM
You are a god damn life saver.
THANK YOU
THANK YOU
THANK YOU
 :applause:
Title: Re: Can't delete User Info row
Post by: ♦ Ninja ZX-10RR ♦ on September 02, 2015, 08:06:48 PM
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 ;)
Title: Re: Can't delete User Info row
Post by: Vonotna on September 02, 2015, 08:15:23 PM
Heh sorry about that i forgot.
I am upgrading right now :)
Title: Re: Can't delete User Info row
Post by: ccbtimewiz on September 02, 2015, 08:35:31 PM
Just be careful editing PHP live when you are not familiar with the language.
SimplePortal 2.3.8 © 2008-2024, SimplePortal