PDA

View Full Version : Changing Format of #TMENU#


a_snowden
12-07-2006, 06:33 PM
Hi,
I need to change the way the #TMENU# looks.....

ie take out the [ ] brackets, change the font and text color and size.

Can anyone tell me which file I need to edit to achieve this please?

Mike Armas
12-09-2006, 03:16 PM
Hi,
I need to change the way the #TMENU# looks.....

ie take out the [ ] brackets, change the font and text color and size.

Can anyone tell me which file I need to edit to achieve this please?

You need to edit the custom.css for that template. With will change the font,and text color.

To take out the [ ] you have to edit pgm-auto_menu.php and add this file to you template dir.

webfreak
12-17-2006, 07:47 PM
Hi A Snowden

Mike is quite correct, for the colour and fonts, you'd have to set up a custom.css in your template directory. To change the way it displays, i.e. the brackets etc. would be to copy the pgm_auto_menu.php from root folder to your template folder and then edit it to suit your needs.

What I normally do with the TMENU is to place it inside a table:
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" class="bottom-menu">
<tr>
<td bgcolor="#A8B9D3"><div align="center">#TMENU#</div>
</td>
</tr>
</table>
Obviously you'd have to change the above background color to your own.

Then in my custom.css I do this:

/* TMENU Links */
.bottom-menu {
FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #5173A7; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
}
.bottom-menu a {
FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #5173A7; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
}
.bottom-menu a.link {
color: #5173A7;
text-decoration: none;
}
.bottom-menu a.visited {
text-decoration: none;
color: #5173A7;
}
.bottom-menu a.hover {
text-decoration: underline;
color: #2E518D;
}
.bottom-menu a.active {
text-decoration: none;
color: #2E518D;
}
/* TMENU Links END */

Again, all you'd have to do now is change the color and font size.

See http://soho-templates.edisc.co.za for examples of what the templates look like that I use this method on.

Hope that helps!

Warm Regards
Jaun aka WebFreak

a_snowden
12-17-2006, 10:07 PM
Thanks for your help, but what I really need to do is change the way the #TMENU# appears ie, in most templates it looks something like this.....

[ HOME | ABOUT US | CONTACT US ]

I want to be able to remove the brackets [] and maybe change the look in other ways.

Mike Armas
12-19-2006, 11:05 PM
email me at mike@armaswebdesign.com so we can talk. I can make any change you need to the tmenu.

mathetos
06-16-2007, 07:43 PM
Has anyone made progress on this? I have searched through pgm-auto_menu.php 100 times already an not found any reference to the brackets, nor to the opening div <div id="smt_tmenu">. Can someone point me to a line number in the file or anything?

This should be an easy fix.

~mathetos~

lwyau
06-16-2007, 11:12 PM
The module you look for is actually pgm-realtime_builder.php. Search for "$main_textmenu" and you will find this line of code:
$tmenu = "<div id=\"smt_tmenu\">[ $main_textmenu ]</div>";

Removing those two bracket characters surrounding $main_textmenu should do it.

mathetos
06-18-2007, 07:38 PM
AWESOME! Thanks so much, that's all I needed. I knew the answer had to be out there, but I had spent an hour already searching all the module files with no luck.

~mathetos~

blbrocks
08-03-2007, 02:45 PM
The module you look for is actually pgm-realtime_builder.php. Search for "$main_textmenu" and you will find this line of code:
$tmenu = "<div id=\"smt_tmenu\">[ $main_textmenu ]</div>";

Removing those two bracket characters surrounding $main_textmenu should do it.



This works only temporarily... they always come back within 24 hours. Is there someway to get these brackets gone for good! Please help! (Mathetos and I are working on the same project)

lwyau
08-03-2007, 03:24 PM
There are two folders this file is stored: public_html and public_html/sohoadmin/client_files/base_files/. The former gets overridden by the latter whenever you log into sohoadmin.

See details here: http://wiki.soholaunch.com/index.php?title=The_thing_about_client_files