21
aubrey
Re: Another template problem...(Firefox issue)
  • 2004/2/13 20:13

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


Ooah, I have heard of and use (Sometimes) FireBird. Thank You.

P.S. FireFox... Reminds me of the story about samson in the Bible where he tied all the foxe's tails together, lit them on fire, and let them loose in the Phillistene's fields

Aubrey



22
aubrey
Re: Another template problem...(Firefox issue)
  • 2004/2/13 17:02

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


I've never heard of FireFox before, but as an initial suggestion i'd reccomend you break your menu into two colums: the left colum has all the menu text with your background image, and the right colum has the rounded edge and the shadow (tiled). This should make it (practically) impossible for any browser to render the over state of your menu over the shadow. I use techniques like this to help reduce the loading time of my page, as it allows you to have much smaller images while still looking respectable.

Hope this helps,

Aubrey



23
aubrey
Re: moving "Main Menu" block to the top
  • 2004/2/13 4:06

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


P.S. You can see my site here to get a better view of my problem:
My Site

Sorry I forgot to add that.

P.S. Am I being stupid or something? Howcome noone can help me

Aubrey



24
aubrey
Re: Remove header and top bar from forum
  • 2004/2/12 20:45

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


I am not sure what you mean about the side bar, but to modify the top bar, open themes/yourtheme/theme.html and edit the top bar part.

If you mean (Regarding the side bar) that you want to put something in it, go to the admin panel > system > blocks > add new block (At the bottom of the page). To put the block in the sidebar, just set the block side to left.

Not sure if this is what you wanted, but hope it helps,

Aubrey



25
aubrey
Re: Editing New Members Block
  • 2004/2/12 20:29

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


Make sure you clone the default template, and then edit the files in the clone as it is impossible to edit the files in the default template. Also make sure that, after cloning, you go to the system preferences and set your clone as the default template.

Good Luck,

Aubrey



26
aubrey
Re: logo help
  • 2004/2/12 18:50

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


Or you can have a table with three cells: the left cell contains your logo, the center cell's width is set to 100% and has a cool looking background image that tiles, and the right cell has another image.
You can see an example at
oopic.com

good luck,

Aubrey



27
aubrey
Re: moving "Main Menu" block to the top
  • 2004/2/10 20:56

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


I copied the below code (from system_block.php) into header.php right above the ?> tag:
Quote:
global $xoopsUser,$xoopsModule;
$block = array();
$block['lang_home'] = _MB_SYSTEM_HOME;
$block['lang_close'] = _CLOSE;
$module_handler =& xoops_gethandler('module');
$criteria = new CriteriaCompo(new Criteria('hasmain', 1));
$criteria->add(new Criteria('isactive', 1));
$criteria->add(new Criteria('weight', 0, '>'));
$modules =& $module_handler->getObjects($criteria, true);
$moduleperm_handler =& xoops_gethandler('groupperm');
$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
$read_allowed =& $moduleperm_handler->getItemIds('module_read', $groups);
foreach (array_keys($modules) as $i) {
if (in_array($i, $read_allowed)) {
$block['modules'][$i]['name'] = $modules[$i]->getVar('name');
$block['modules'][$i]['directory'] = $modules[$i]->getVar('dirname');
$sublinks =& $modules[$i]->subLink();
if ((count($sublinks) > 0) && (!empty($xoopsModule)) && ($i == $xoopsModule->getVar('mid'))) {
foreach($sublinks as $sublink){
$block['modules'][$i]['sublinks'][] = array('name' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']);
}
} else {
$block['modules'][$i]['sublinks'] = array();
}
}
}
return $block;


and this code into my template file (theme.html):

Quote:
<a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->


but when I log onto my site nothing happens (my site works, but the menu doesn't show up). I have the "Update module template .html files from themes/your theme/templates directory?" option set. I am sure I did something majorely wrong but don't know what.

P.S. {unrelated} why does my site's css (which looks great in IE) not even show up in Opera?

Thank you,

Aubrey



28
aubrey
Re: moving "Main Menu" block to the top
  • 2004/2/10 3:41

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


Actually I thought of all that already. If I can find out a way to dispay the menu block at the top I will break it into two rows (using css and tables). The top row will have the main links, and the bottom row will have the suboptions. As to just putting links into the top of the template, I would definiley not want to do that as then it could not be dynamic. All I really need is to know how to put the main menu block at a different place than all the other blocks.

Aubrey



29
aubrey
moving "Main Menu" block to the top
  • 2004/2/10 1:41

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


I want to make my main menu show up where the banner ad normally shows up (right beside the logo in the top bar). I know I could just turn off the main menu block from the admin menu and copy the code for it into the template file but that would be clunky for several reasons. Is there a better way? One way I thought of (But don't know how to implement it), is to add a line of code to the template file near where the banner ad normally is that says something like "if (block == main menu) { put block here instead of anywhere else}" Forgive my code Is there any feasible way to do this while still preserving upgradeability and functionality?

Hope there is,

Aubrey



30
aubrey
Re: Mime Types and myAlbum
  • 2004/2/3 1:13

  • aubrey

  • Just popping in

  • Posts: 31

  • Since: 2004/2/1 2


It Works!

I thought it would be something like that but didn't know
where to look for it.

P.S. I don't know if this matters, but I make all my png's with Macromedia Fireworks (which I think is used by a lot of people), so you may want to put image/png in your program.

Thank you,

Aubrey




TopTop
« 1 2 (3) 4 »



Login

Who's Online

258 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 258


more...

Donat-O-Meter

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

Latest GitHub Commits