51
iunderwood
Re: Load XOOPS theme w/o headers.

I figured out how to get done what I wanted!

First, in the pop-up code, I still have to include header.php. It's not used for much, but it populates all the important Smarty variables

And ... I added this to the header in my pop-up theme:

<{if $xoops_themecss}>
      <
link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{$xoops_themecss}>" />
    <{/if}>


The CSS assignment of styles to blocks and content seems to vary by theme, so I am finding that I can't use specific classes if I want the popup to work with most themes.

Once again, smarty saves my rear again. :)
++I;
Resized Image



52
iunderwood
Re: Load XOOPS theme w/o headers.

Poopity poop. I was afraid that something like that might be the case, but I wanted to ask before I started digging further.

I'll let the people know what kind of solution I ultimately arrive at and share it. :)

Thanks for the quick response!
++I;
Resized Image



53
iunderwood
Load XOOPS theme w/o headers.

Crew,

I've got a module piece I'm working on, and I would like to include whatever the current theme is. However, I would like to do this without including the header or footer, along with all the blocks that come with it.

Does anyone have a good way to do this?
++I;
Resized Image



54
iunderwood
May 2010 WoX?

It seems to be late in the month to not have the May WoX newsletter out. Any idea when it's going to be published??
++I;
Resized Image



55
iunderwood
Re: No experience building websites whatsoever. Need help.

Looks like you need to slow down just a hair.

Take a break, then go over to Packt Publishing (http://www.packtpub.com) and look for the book Building Websites with XOOPS. You should be able to get the e-book version fairly cheaply.

Bearing in mind that the book was written for XOOPS 2.0, it still contains a lot of valuable information for the new XOOPS user. It should cover a lot of the basics and some of the most popular modules of the era. The interface is a little dated, but the operations are more or less still applicable.



56
iunderwood
Re: Odd Object error under XOOPS 2.4.4

Good to know.

I'm not sure why the UID goes unfound sometimes, but I don't really have much control of my hosting environment, so I'll pin the blame there. :)

Thanks for the explanation!



57
iunderwood
Odd Object error under XOOPS 2.4.4

Recently, I upgraded my development environment to XOOPS 2.4.4, and I was noticing that somewhat randomly, I would get an error report about using getVar on a non-object.

The code in question was the return in this piece:

function uhqradio_username($uid) { 

    
$member_handler =& xoops_gethandler('member'); 
    
$user =& $member_handler->getUser($uid); 
     
    return 
$user->getVar('uname'); 
}


What I ended up doing was just adding a check to see if the piece was actually an object, and if not, just returning the number I passed over.

function uhqradio_username($uid) {

    
$member_handler =& xoops_gethandler('member');
    
$user =& $member_handler->getUser($uid);

    if (
is_object($user)) {
        return 
$user->getVar('uname');
    } else {
        return 
$uid;
    }
    
}


What I do notice is that every now and then, the list I process which calls this function will list the numberic ID for the first entry and then return the usernames for each subsequent entry. But this seems to only happen once every other day or so.

I'm not really all that familiar with object-orientation, so I'm not even sure where to begin looking at that sort of thing.



58
iunderwood
Re: Private Message Is Not Private

Since everything is stored in the database, it seems to make sense that if you can read the database, you can read the messages stored in it.

Nothing to get all hot and bothered about, actually.



59
iunderwood
Re: 2009 XOOPS Website Redesign

In Donations, the Donor list and the Donat-O-Meter don't show up in WoX.



60
iunderwood
Re: Sorry For my absence....

You can't get much done w/o your health, so be sure to get lots of rest and drink plenty of water. :)




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



Login

Who's Online

162 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 162


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