21
jonsimmonds
Re: whos online module question

right ive found and done what I wanted to do, which was to add the hostname to the whos online more link, under the IP.
heres the code from the popup, the bits in bold are what I added, did I do it right? will it cause much of a slowdown?
$isadmin 0;
        echo 
'<table  width="100%" cellspacing="1" class="outer"><tr><th colspan="3">'._WHOSONLINE.'</th></tr>';
        
$start = isset($HTTP_GET_VARS['start']) ? intval($HTTP_GET_VARS['start']) : 0;
        
$online_handler =& xoops_gethandler('online');
        
$online_total =& $online_handler->getCount();
        
$limit = ($online_total 20) ? 20 $online_total;
        
$criteria = new CriteriaCompo();
        
$criteria->setLimit($limit);
        
$criteria->setStart($start);
        
$onlines =& $online_handler->getAll($criteria);
        
$count count($onlines);
        
$module_handler =& xoops_gethandler('module');
        
$modules =& $module_handler->getList(new Criteria('isactive'1));
        for (
$i 0$i $count$i++) {
            if (
$onlines[$i]['online_uid'] == 0) {
                
$onlineUsers[$i]['user'] = '';
            } else {
                
$onlineUsers[$i]['user'] =& new XoopsUser($onlines[$i]['online_uid']);
            }
            
$onlineUsers[$i]['ip'] = $onlines[$i]['online_ip'];
            [
b]$onlineusers[$i]['host'] = gethostbyaddr($onlineUsers[$i]['ip']);[/b]
               
$onlineUsers[$i]['updated'] = $onlines[$i]['online_updated'];
            
$onlineUsers[$i]['module'] = ($onlines[$i]['online_module'] > 0) ? $modules[$onlines[$i]['online_module']] : '';
        }
        
$isadmin = ($xoopsUser && $xoopsUser->isAdmin()) ? 0;
        
$class 'even';
        for (
$i 0$i $count$i++) {
            
$class = ($class == 'odd') ? 'even' 'odd';
            echo 
'<tr valign="middle" align="center" class="'.$class.'">';
            if (
is_object($onlineUsers[$i]['user'])) {
                
$avatar $onlineUsers[$i]['user']->getVar('user_avatar') ? '<img src="'.XOOPS_UPLOAD_URL.'/'.$onlineUsers[$i]['user']->getVar('user_avatar').'" alt="" />' '&nbsp;';
                echo 
'<td>'.$avatar."</td><td><a href="javascript:window.opener.location='".XOOPS_URL."/userinfo.php?uid=".$onlineUsers[$i]['user']->getVar('uid')."';window.close();">".$onlineUsers[$i]['user']->getVar('uname')."</a>";
            } else {
                echo 
'<td>&nbsp;</td><td>'.$xoopsConfig['anonymous'];
            }
            if (
$isadmin == 1) {
                echo 
'<br />('.$onlineUsers[$i]['ip'].')';
                [
b]echo '<br />('.$onlineusers[$i]['host'].')';[/b]
            }
            echo 
'</td><td>'.$onlineUsers[$i]['module'].'</td></tr>';
        }
        echo 
'</table><br />';
        if (
$online_total 20) {
            include_once 
XOOPS_ROOT_PATH.'/class/pagenav.php';
            
$nav = new XoopsPageNav($online_total20$start'start''action=showpopups&amp;type=online');
            echo 
'<div style="text-align: right;">'.$nav->renderNav().'</div>';
        }
        break;



22
jonsimmonds
Re: whos online module question

Cheers mate! and i knew it would be something obvious

Many thanks

Jon :)



23
jonsimmonds
Re: whos online module question

BUMP!!

Surly someone must know the answer to this...



24
jonsimmonds
whos online block question

I wish to edit the pop-up from the whos online block, from the template of the block the link to the pop up is $block.lang_more but were can I find the code?

If im totaly blind to were the code is then sorry but I spent 20 mins searching for it with no luck

Thakns

Jon

[fixed title to reflect that it is a block and not a module: Mith]



25
jonsimmonds
Re: Random Picture

Id also suggest myAlbum-P 2.70 (Click here)

just installed it on my site, and does everything I need!



26
jonsimmonds
Need a UK host!

Currently got my XOOPS page on a free shared server, but since its free the server is never up or apache has crashed so looking to move to a paid server, so heres what I need, anyone who currently have a good deal similar to what i need then please let me know who you use!!!!

- 1 - 2 gigs space
- 5 gig (ish) trafic (though would like the option to upgrade that if needed)
- MySQL php etc (everything that XOOPS needs, cpannel 9.x would be nice!)
- name server service
- at least 5 emails, ftp
- preff accept payment on a date of my choosing and pref either paypall or direct debit/standing order

Many thanks

Jon



27
jonsimmonds
Re: Google Ads colours tied into XOOPS theme

I dont know smarty tags at all, but a solution to this would be to use googles colour choser thing to create a colour scheme for each of the different themes in use then using smarty tags (someone else will have to help here!)

if theme =theme A
then
code for googleaddA here
else if theme=theme b
code for googleaddB here
else if...

etc

hope that makes sense



28
jonsimmonds
Re: My home page

Thanks for the advice tripmon :)

Totally agree with the background's, I'm defo going to change that

What do you refer to when you say bold text? the links? or the news title? Eitherway im contemplating chaging the news headline font colour, and possibly chainging the links from bold to underlined (though i personally hate underlined links, but thats my opinion and not the opinion of my visitors maybee)

The theme selector box will disappear, i have only left it there so I can test differences between tweaked theams and my main "hamster" one.

Im glad it works out in both IE and mozilla for someone else, my main aim when designing the theme was to have a "one theme for all browsers", eventually I hope to get rid of the tables and use DIV's instead but thats a long way away yet!

Thanks

Jon



29
jonsimmonds
Re: My home page

Quote:

tripmon wrote:
getting connection refused for:
www.jonsimmonds.co.uk

can't comment.....


grr frandts free service sucks, cant really complain though as im not paying for anything...

**edit** Looks like apache has failed on the server *edit**

**edit 2** working now **edit 2**



30
jonsimmonds
My home page

www.jonsimmonds.co.uk

Its not 100% finished yet, need to add some form of photo gallery and a blog module + find a host that doesnt crash all of the time (using a free service from www.frandt.com but its so un-relaible so i need to find a good uk based host (used frand to see if I liked XOOPS or not))

So far i used my old color scheme from my static based html site, and around 4 days of editing the defult theme I came up with the theme called "hamster" the only one selectable on my site.

So far i need to change the news title font colour for visited/active link (somewere one is set to white and one is set to black font colour)

but to me im not sure if the colour scheme works or not, I dont want to revert to a white background, id much rather make the blue scheme work so if anyone has any suggestions then please let me know!


Thanks

Jon

p.s content hasnt been added yet as i wanna get the look right then add the content1




TopTop
« 1 2 (3) 4 »



Login

Who's Online

137 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 137


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