xoops forums

Forum Index


Board index » All Posts (vinit)




vinit

Just can't stay away
Posted on: 2007/10/2 8:49
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#1

Re: Horizontal main menu - need smarty help

@stefan: Thanks, i got it fixed :)

@Burnning: thanks, I got my own horizontal menu using mootools javascript with some effects, finally it came up very well :) and simple, sobber drop down menu.

All i need to do is, include a menu theme file, in the main theme file and voila the horizontal menu appears up :)
.


vinit

Just can't stay away
Posted on: 2007/10/2 6:54
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#2

Horizontal main menu - need smarty help

Hi,

I have tried to integrate the main menu into my template as default horizontal menu.

i used the same code as that of mainmenu in default template set

<div style="float: right; width: 100%">
        <
ul id="cssmenu">
                <
li><a  href="<{$xoops_url}>/" id="menu1" title="<{$block.lang_home}>"><{$block.lang_home}></a></li>
                <{foreach 
item=module from=$block.modules}>
                        <
li class="havechild">  <a  href="<{$xoops_url}>/modules/<{$module.directory}>/" id="menu-<{$module.name}>"><{$module.name}></a>
                                <
ul>
                                        <{foreach 
item=sublink from=$module.sublinks}>
                                                <
li >  <a  href="<{$sublink.url}>" id="menu-<{$sublink.name}>"><{$sublink.name}></a></li>
                                        <{/foreach}>
                                </
ul>
                        </
li>
                <{/foreach}>

        </
ul>
</
div>


Things came up very nice, now i wanted to disable the the main menu from showing up in any blocks, so i marked the mainmenu block as disabled. This resulted in disabling my custom code of menu in theme too...:(

So i want to know how can i disable the main menu showing up in any of the blocks, yet it is should be active so that i can see its results in custom horizontal menu.


This is how it looks like now
Resized Image


Any help would be appreciated.


Thanks
Vinit
.


vinit

Just can't stay away
Posted on: 2007/9/30 15:36
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#3

Re: Seperate Login Page

Thanks, searching on on on ...

This is where joomla has some good layouts menu presentation etc....Thinking of some method to port them here.
.


vinit

Just can't stay away
Posted on: 2007/9/30 12:06
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#4

Re: mxdirectory 3.01 RC1 blank page

Ok got this fixed. A very small change and now things working great :)

in mxdirectory/index.php line no 37
function add_header($tpl_source, &$xoopsTpl)
{
    return "<?php echo $xoops_module_header?>n".$tpl_source;
}




Added single quotes to $xoops_module_header, somehow this variable is getting null value resulting into a statement echo ; in final template for rendernation and there its getting crashed. so new code would look like this

function add_header($tpl_source, &$xoopsTpl)
{
    return "<?php echo '$xoops_module_header'?>n".$tpl_source;
}


Things working fine for me, i hope it does work good for you guys too...
.


vinit

Just can't stay away
Posted on: 2007/9/30 12:02
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#5

Re: Seperate Login Page

Thanks Marco, thats what i was looking for.

Other than this do you know how can i get main menu block in header bar? like an horizontal menu and submenus comming as drop down menu.
.


vinit

Just can't stay away
Posted on: 2007/9/30 5:03
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#6

Seperate Login Page

Hi,

I am trying to remove the login module for normal users that visit the site. Yet i need a login module/page for the content writers who can visit mysite.com/login.php and login themselves as well as it will help admin to get login.

How do i get this done, any ideas, clues or existing post would be very handy. Thanks

Vinit
.


vinit

Just can't stay away
Posted on: 2007/9/29 11:15
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#7

Seperate Login Page for Admin and no Login module on Main Page.

Hi,

I am trying to remove the login module from main page, i disabled the login module. Now how do i get a login page just for admin?

Right now it directs to main page, and once the login menu is disabled, there no way i can login as admin :(

any hack around for this ? I know i can activate it back from db, but what i am looking for is a separate page for admin login.

Basically the admin login page should be separate and it should not be primarily dependent on the main page. Most of the other cms has different page for admin login.



Thanks for help
.


vinit

Just can't stay away
Posted on: 2007/9/29 9:24
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#8

Re: mxdirectory 3.01 RC1 blank page

This one works fine with default theme, but doesn't work with morphogenesis based themes.

Also Following error are noticed in both default and morphogenesis based themes

Notice: Undefined index: 0 in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined offset: 0 in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined index: 0 in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined offset: 0 in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined index: 0 in file /modules/mxdirectory/include/functions.php line 278
Notice: Undefined offset: 0 in file /modules/mxdirectory/include/functions.php line 278


Any one got this going with morphogenesis based themes ?
.


vinit

Just can't stay away
Posted on: 2006/1/21 5:13
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#9

Re: Server Relocation : Parse Errors :(

Hi Dave,

Yes PHP version is 5.0.5 and i guess XOOPS is 2.0.7.3 series.
Is there any way to get it fixed, as i need to go through it urgently.

On the second thought it would be tough call to upgrade entire site now. Got over 20 modules etc and there are dozens of hack here and there too. :(

Anys suggestions to overcome the problem in hand.

Thanks
.


vinit

Just can't stay away
Posted on: 2006/1/20 12:56
vinit
vinit (Show more)
Just can't stay away
Posts: 530
Since: 2004/1/10
#10

Server Relocation : Parse Errors :(

Hi i am trying to relocate my XOOPS application from one server to other and facing with this problem. Any guess

Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /home/user/public_html/html/kernel/object.php on line 528

This is what i have done.
1. created a db dump and loaded onto new server
2. created a tar.gz of html folder where XOOPS installtion is done on old server.
3. uploaded this tar.gz on new server and using cpanel unpacked it.
4. given chmod 757 to cache, templates_c and upload.
5. modifed the mainfile.php for new db data etc.

now when i visit mydomain.com/html i get the above error. Am i missing something while doing relocation.

this is what i see near line 528 in object.php

/**
* create a clone(copy) of the current object
*
* @access public
* @return object clone
*/
function &clone()
{
$class = get_class($this);
$clone = new $class();
foreach ($this->vars as $k => $v) {
$clone->assignVar($k, $v['value']);
}
// need this to notify the handler class that this is a newly created object
$clone->setNew();
return $clone;
}

Docs on the xoops.org says it might be due to file corruptions, but how to locate which file is corrupted if this is taken as truth

Thanks for support and your time.
.



TopTop
(1) 2 3 4 ... 47 »