xoops forums

Forum Index


Board index » All Posts




mktwain124

Just popping in
Posted on: 2003/2/9 17:08
mktwain124
mktwain124 (Show more)
Just popping in
Posts: 44
Since: 2002/9/27
#292301

Re: Adding Links in the Main Menu

thanks, sitekeep...I forgot to include that part.

To summarize the procedure, clone the default theme with Admin Theme Manager ["Themes"]. In the Templates column of your cloned theme, click on System [LIST(22)], click on edit for system_block_mainmenu.html and add one of the following scripts either before the <tr> tag which puts your links before the regular menu items or after the </tr> tag which puts them at the bottom of the menu block:

[size=small]
<!-- 
Link to file on your site: -->
  <
tr>
    <
td id="mainmenu">
      <
class="menuMain" href="<{$xoops_url}>/path_to_your_file">Link Title</a>
    </
td>
  </
tr>
 
 
<!-- 
Link to outside url: -->
  <
tr>
    <
td id="mainmenu">
      <
class="menuMain" href="foo.bar.com">Link Title</a>
    </
td>
  </
tr>
[/
size]




kcnelson

Just popping in
Posted on: 2003/2/9 17:06
kcnelson
kcnelson (Show more)
Just popping in
Posts: 4
Since: 2003/2/8 7
#292302

Re: Adding Links in the Main Menu

I tried that - I believe I found an alternate by creating a rudimentary module system. Not what I wanted, but it at least creates the links in the same fashion as the main theme. For now, This will work.

Thanks for your help - If you know of any other fixes faster than this as my pages are already pre-assembled, let me know.


Fireater

Friend of XOOPS
Posted on: 2003/2/9 12:55
Fireater
Fireater (Show more)
Friend of XOOPS
Posts: 65
Since: 2002/1/4 1
#292303

Re: A tip about Xoops 2's backend.php

Thanks Mate!


sitekeep

Just popping in
Posted on: 2003/2/9 11:32
sitekeep
sitekeep (Show more)
Just popping in
Posts: 12
Since: 2003/2/7 7
#292304

Re: Adding Links in the Main Menu

kcnelson,

Are you trying to edit the templates in the default theme? You cannot edit the default theme, clone it and then you will be able to edit the cloned theme.

I hope this helps....


kcnelson

Just popping in
Posted on: 2003/2/9 4:22
kcnelson
kcnelson (Show more)
Just popping in
Posts: 4
Since: 2003/2/8 7
#292305

Re: Adding Links in the Main Menu

Hmmm...I get the idea now - thanks! However ----When I attempt to edit the template for my copy of the main menu, it only let's me view it (without a save option even in the pop up window). Also, after locating the file of:

system_block_mainmenu.html - Which I have located only in the directories of the system/templates and system/templates/blocks ...I attempted to do the change myself and it still doesn't want to add the items even after uploading it to the web site. The template file doesn't show the changes I made unless I am going into a different directory.

Could this be due to a permissions setting (I even chmod to 777 as a test).

In short, I want to create a menu using the exact same format that this site is using with the 'buttons' used exactly the same as they are here except with my own links of course. I am a complete novice when it comes to the smarty protocol so please forgive my ignorance.

Creating the secondary menu, or the menu with plain links is easy enough and I don't want to go there unless necessary.

X2 is the best I have seen yet after testing the 1.3 etc for a while. I have tried Postnuke, PHP nuke and others and this by far is blowing the doors off of them. I am planning on using this for a full site once the final release comes out.


mktwain124

Just popping in
Posted on: 2003/2/8 16:03
mktwain124
mktwain124 (Show more)
Just popping in
Posts: 44
Since: 2002/9/27
#292306

Re: Adding Links in the Main Menu

Quote:
w4z004 wrote:
add the html links to the template of the main menu.


This is perhaps the best feature of x2! In most cases, to change the visual presentation of a block, you will only need to modify [make a copy of the original template first ] the smarty template file for that block and not the x2 code itself. It's simpler to accomplish for non-PHP coders and it's safer-to assure compatibility with future upgrades. Great vision devs!


RicoCali

Not too shy to talk
Posted on: 2003/2/8 14:03
RicoCali
RicoCali (Show more)
Not too shy to talk
Posts: 120
Since: 2002/7/29
#292307

Re: A better approach for Polls

But that is already done. When you redirect to the page with the graphical result...(10% yes 90% no) all that information is already there. Just post it on the block instead of a separate page.


w4z004

XOOPS Advisor
Posted on: 2003/2/8 14:00
w4z004
w4z004 (Show more)
XOOPS Advisor
Posts: 340
Since: 2001/12/13
#292308

Re: A better approach for Polls

i never say that we can't only say that for now is not posible.
you need think in many factors, the principal factor, the QUERIES.


RicoCali

Not too shy to talk
Posted on: 2003/2/8 13:54
RicoCali
RicoCali (Show more)
Not too shy to talk
Posts: 120
Since: 2002/7/29
#292309

Re: A better approach for Polls

Quote:

w4z004 wrote:
But are a excelent suggest.


Gracias Sergio..

Quote:

...We thinked in this many time ago.
For now is not posible...


It is possible...you guys are the best! But I see that this makes sense. Why can't you display the graphical result on the block? I see other polls do it.

Thank you for listening...


PompeyScot

Just popping in
Posted on: 2003/2/8 13:53
PompeyScot
PompeyScot (Show more)
Just popping in
Posts: 1
Since: 2003/1/9 1
#292310

Re: Adding Links in the Main Menu

Yep, I do this by following suggestion 1 in w4z004's posting. I completely disable the main menu and create a navigation system of my own using HTML links. Lovely