Jump to content


Photo
- - - - -

Changing Format of #TMENU#


  • Please log in to reply
9 replies to this topic

#1 a_snowden

a_snowden

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 07 December 2006 - 10: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?

#2 Mike Armas

Mike Armas

    Senior Member

  • Members
  • 393 posts
  • LocationBoston

Posted 09 December 2006 - 07: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.

#3 webfreak

webfreak

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

Posted 17 December 2006 - 11: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

#4 a_snowden

a_snowden

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 December 2006 - 02:07 AM

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.

#5 Mike Armas

Mike Armas

    Senior Member

  • Members
  • 393 posts
  • LocationBoston

Posted 20 December 2006 - 03:05 AM

email me at mike@armaswebdesign.com so we can talk. I can make any change you need to the tmenu.

#6 mathetos

mathetos

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 16 June 2007 - 10: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~

#7 lwyau

lwyau

    a soho enthusiast

  • Moderators
  • 5,605 posts

Posted 17 June 2007 - 02:12 AM

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.

#8 mathetos

mathetos

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 18 June 2007 - 10: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~

#9 blbrocks

blbrocks

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 03 August 2007 - 05: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)

#10 lwyau

lwyau

    a soho enthusiast

  • Moderators
  • 5,605 posts

Posted 03 August 2007 - 06: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.soholaun...ut_client_files




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users