TinyPortal

Development => Support => Topic started by: pvcblue on April 18, 2010, 02:13:35 AM

Title: User Block Edit
Post by: pvcblue on April 18, 2010, 02:13:35 AM
Sorry if this has been asked, or if this is in the wrong place, I have done a search and could not find anything on it, maybe I was using the wrong search terms?

What I want to do is edit out some of the items (highlighted in yellow in the image) in the menu of the "User" block. Is it possible and what files do I need to do this in?

TinyPortal 1.0 beta 5-1 
SMF 1.1.11
Title: Re: User Block Edit
Post by: Renegd98 on April 18, 2010, 02:46:34 AM
I hope that you understand that those are seen by the admin and not by the normal users unless you have set their access to have the ability to do what one of those menu entries allows.
Title: Re: User Block Edit
Post by: pvcblue on April 18, 2010, 03:51:20 AM
Quote from: Renegd98 on April 18, 2010, 02:46:34 AM
I hope that you understand that those are seen by the admin and not by the normal users unless you have set their access to have the ability to do what one of those menu entries allows.

Yes I am aware of that, I just personally find it unecessary when I can access them from the "ADMIN" center itself. It is a quirk of mine. So I would like to "//" them out of whatever file they are in.

Title: Re: User Block Edit
Post by: Xarcell on April 18, 2010, 04:02:48 AM
The best thing to do is create another block with just the features you want for it. There are similar available in block snippets, but none for SMF 2.0.
Title: Re: User Block Edit
Post by: pvcblue on April 18, 2010, 04:07:09 AM
Quote from: Xarcell on April 18, 2010, 04:02:48 AM
The best thing to do is create another block with just the features you want for it. There are similar available in block snippets, but none for SMF 2.0.

As I cannot code that well, i would just like to edit the area where this code is found. I looked in the Block Snippets and there is nothing there like this block. :(
Title: Re: User Block Edit
Post by: bloc on April 18, 2010, 11:22:16 AM
Check out TPsubs.template.php in Themes/default/ (or create a copy inside a new theme) and find the function TPortal_userbox().

That function does all of the links, so if you wish you can just remove the entries you don't need.
Title: Re: User Block Edit
Post by: pvcblue on April 18, 2010, 11:37:01 AM
Quote from: Bloc on April 18, 2010, 11:22:16 AM
Check out TPsubs.template.php in Themes/default/ (or create a copy inside a new theme) and find the function TPortal_userbox().

That function does all of the links, so if you wish you can just remove the entries you don't need.

AWESOME!! That worked great Bloc!! THANK YOU SO MUCH!!  I was even able to move the avatar to the top of the box! :D :D