51
russtik
Modifying Menu Templates
  • 2005/2/2 11:33

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Hello,

I would like to modify the core menu templates which in there standard state utilise tables. I intend to use an unordered list structure in replace of this:

<ul id="mainmenu">
  <{foreach 
item=module from=$block.modules}>
  <
li><class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a></li>
    <
ul>
    <{foreach 
item=sublink from=$module.sublinks}>
    <
li><class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a></li>
    <{/foreach}>
    </
ul>
  <{/foreach}>
</
ul>


The problem with the above code is that if a menu item doesn't have an attached submenu, it leaves unused < ul > tags in the markup which I don't want.

E.g.
<ul id="mainmenu">
  <
li>menu 1</li>
    [
b]<ul>
    </
ul>[/b]
  <
li>menu 2</li>
    <
ul>
      <
li>sub 1</li>
      <
li>sub 2</li>
      <
li>sub 3</li>
    </
ul>
</
ul>


Does anyone know how to include a conditional statement that says something like if (there is a submenu) show < ul > tags else hide them, or any other solution?



52
russtik
Re: Styling the admin area & others
  • 2004/12/17 11:14

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


What about the holding page when you turn the site off?



53
russtik
Re: Styling the admin area & others
  • 2004/12/15 13:40

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Great, thanks a lot.



54
russtik
Styling the admin area & others
  • 2004/12/15 11:58

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Does anyone know how to go about changing the style of the admin pages, image manager etc.?



55
russtik
Re: Possible image display bug?
  • 2004/12/13 16:19

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Quote:

JMorris wrote:
I look forward to seeing your work on the Koivi editor.


I'm engaged in another topic about the Koivi editor which you can view by clicking here. The main problem at the moment is that my knowledge of PHP isn't as good as I'd like it to be so I'm relying on the assistance of others to guide through the hack installation.



56
russtik
Re: Possible image display bug?
  • 2004/12/13 15:55

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


In reply to your suggestion of a wysiwyg editor, I'm in the process of learning how to hack the Koivi editor into the site. Maybe this will alter the situation once installed?

Also, in reply to:

Quote:
Given your comments earlier, it was a pretty safe assumption that you were the one that didn't know html and css. I apologies if I offended.


Not at all, we just crossed wires.

Quote:
It's true that the image manager does have some limitations. Perhaps you could offer a suggestion to improve opposed to just criticism.


I wasn't critising the image manager, I was saying that for me to leave this issue undealt with in a live site would be bad design on my part.

Wysiwyg aside, I think it's a worthy point to highlight that the standard setup produces this problem.



57
russtik
Re: Possible image display bug?
  • 2004/12/13 15:45

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


The issue is not prevalent in NewBB (evidently), I've experienced it in modules like News and XOOPS FAQ.

using the image manager to include aligned images produces the same results as it inevitably uses the XOOPS code. The only difference being that the image is uploaded the host server instead of an external link.

Following the original link I posted to my test site you'll see the latest news article I submitted using the image manager.



58
russtik
Re: Possible image display bug?
  • 2004/12/13 15:25

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


JMorris,

Ha ! I do know planty of html + css thanks, but I can't assume the users of site's I put online will. That's just bad design.

I forgot to mention in the first post that I've tried it with all three themes packaged with XOOPS and the same problem arises.

The solution needs to allow users with no knowledge of code to be able to include aligned images solely through interface controls.



59
russtik
Re: Possible image display bug?
  • 2004/12/13 15:03

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Yeah, that workaround assumes the user has a knowledge of html and css. It's not really a solution is it?

What's needed is the ability to align images without having to personally include non-semantic markup at the end of the article.

Any ideas?



60
russtik
Re: could you help me with koivi editor ?
  • 2004/12/13 14:06

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


@Rowdie

If you follow this topic from the beginning you'll see that it was discussed that this is a hack to be included on a module by module basis.

In my post you refer to I was stating that in order to include this sitewide I would like to see a set of guidelines (not specific to any particular modules) to help out the not-so-PHP-savvy get to grips with the hack.

I really like the hack, I'm just finding it hard to find the information I'm looking for to get it implemented.




TopTop
« 1 ... 3 4 5 (6) 7 »



Login

Who's Online

133 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 133


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits