TinyPortal

Development => Feedback => Topic started by: brianjw on November 28, 2006, 03:26:56 AM

Title: menu manager
Post by: brianjw on November 28, 2006, 03:26:56 AM
Ok. Here goes my long lecture for the idea.

It is getting really old and tiring to have to login to ftp then open up index.template.php when it takes so long.
I think there should be a way to bypass that and do this in the admin.

What I am trying to get in the index.template.php file is the menus so I can add more items to the main menu. Im talking the top menus (the ones that come with the smf program)
anyway... maybe you can have it in a menu manager thingy where it allows you to put the image url or text and place it in order how you want on the top, it can also let you type the link for each menu.
I admit i can be a little lazy... :idiot2: But I am sure many members would agree with this. I mean... Some of the members use SMF and TP but do everything from the admin section. They probably dont know to go into the index.template.php file and look up the curtain area to delete, edit, or add a menu button.

Please take this thought into consideration...

Thanks,
Brianjw
Title: Re: menu manager
Post by: Techdomain on November 28, 2006, 03:55:28 AM
you can edit the index.template.php for all themes except the default directly from the admin. The problem doing what you are suggesting is that different themes all use different ways to generate links. Some are text, some are images, and some only show if the user meets the criteria (ie admin, logout, register). While it technically would be possible (more so if all themes used exactly the same sort of codes for the menu) it would probably be difficult...

That is imho of course!!!
Title: Re: menu manager
Post by: anunlike on November 28, 2006, 04:59:24 AM
I'd love to see SMF tackle this, not TP. If SMF could try with this, TP could possibly enhance it.

That said, I think I remember reading that something like this was being considered for SMF. I'm not sure about that, though. I'd have to go and look to confirm it. :-\
Title: Re: menu manager
Post by: rebelrose on November 28, 2006, 05:01:17 AM
Brianjw dude;

1. go to the admin area
2. go to current theme
3. go to modify themes
4. Browse the templates and files in this theme. (option for all themes installed except default)
5. You can edit to your hearts desire.

The draw back is that if you do not make a backup copy of the file you are going to edit and you make a mistake, it will be much harder to correct.

You should explore your forum and see all the features that are available to you.  ;)

As anunlike said this is an area for SMF, Tiny Portal will only enhance and expand your SMF forum.
Title: Re: menu manager
Post by: anunlike on November 28, 2006, 05:11:25 AM
Yes, you can easily do this as RR says.

But, I was thinking that SMF was considering an easier and more direct way to edit the menu... not by needing to alter the template files directly, but by using an actual admin interface dedicated to altering the menu. :-\
Title: Re: menu manager
Post by: Techdomain on November 28, 2006, 05:37:12 AM
There really should be.. Its porbably the first php that you have to edit when you start messing with smf/tp (provided your package manager works well) so to take that step out, could really help out the less technical users.
Title: Re: menu manager
Post by: brianjw on November 29, 2006, 02:29:46 AM
yeah. i think so... RebelRose, the point is to make it easier to edit with a simple form in a section of the admin that lets you edit it there. It defeats the purpose to find another way to edit the template.

Also,
how to edit links in the default theme...
in my default it shows the links Forum Forum twice and i didnt change any code!
Title: Re: menu manager
Post by: IchBin on November 29, 2006, 02:51:25 PM
Suggestions in the Suggestions board, support in the support board brian. Thanks!
Title: Re: menu manager
Post by: bloc on November 29, 2006, 07:20:36 PM
The idea is actually a old one, and will be explored further in future versions of SMF. But as mentioned its really the themes that create the trouble: even if the menu system is array-based (so it can modified through SMF ) the themes will still need to adress that array. Which means any old theme will simply not see it until its updated to do so.

But TP can also do this of course..modifying the template_menu is probably MORE important in TP than in SMF, since TP is bound to generate the need for more general buttons. Still the themes will need update though.
Title: Re: menu manager
Post by: brianjw on November 30, 2006, 01:12:50 AM
Well. You know how crip is a tp converter and maybe modifies the theme just a little. Maybe crip or someone could modify the older themes and make it compatible with this new knowledge.
Title: Re: menu manager
Post by: IchBin on November 30, 2006, 01:24:47 AM
Tell you what, I'll teach you how to do it then you can do all of them.
Title: Re: menu manager
Post by: brianjw on November 30, 2006, 02:29:42 AM
Well... I know how to edit the menu links. Just it is getting old and thought up a much easier way to fit peoples convenience.

Although, I do not know how to edit the links in the default theme. Which is it possible?
Title: Re: menu manager
Post by: bloc on November 30, 2006, 06:45:21 PM
Its not so easy as changing links...the actual links would not even be in the template, only the reference to the array containing them. :)

The way it is now is for a reason though: its very easy to change, and you can customise as you like in different themes even. Once you convert to a array-based all themes will have the same links. And of course you don't use database call to fetch them, as they are only pure html/php in the theme now.

So it may be "old", but its certainly well thought through.
Title: Re: menu manager
Post by: brianjw on December 01, 2006, 02:34:10 AM
i need help changing the links in the default theme ???