201
dickinsd
Re: Who's online block editing!
  • 2005/4/2 23:06

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hello.

This method will work you can see it at this sitehttp://www.rndinternet.co.uk

You need to FTP to your web server

get this file:
XOOPS DIR/modules/system/blocks/system_blocks.php
Where XOOPS DIR is the folder your XOOPS files are installed to
When you have this file, the FIRST thing you should do is copy it to a safe location, this way if anything goes wrong you can quickly replace the file with a working copy.
Common sense I know, but worth mentioning - ALWAYS make a backup of files your about to change.

Open the system_blocks.php with your favourite text editor (notepad, gedit, etc)

About maybe 20 lines down you should see a section like this:

$onlines =& $online_handler->getAll();
    if (
false != $onlines) {
        
$total count($onlines);
        
$block = array();
        
$guests 0;
        
$members '';
        for (
$i 0$i $total$i++) {
            if (
$onlines[$i]['online_uid'] > 0) {
                [
b]$members .= ' <a href="'.XOOPS_URL.'/userinfo.php?uid='.$onlines[$i]['online_uid'].'">'.$onlines[$i]['online_uname'].'</a>,';[/b]
            } else {
                
$guests++;
            }
        }
I have made the text we're interested in Bold

All you need to do is add the <br> tag to that line e.g.
$onlines =& $online_handler->getAll();
    if (
false != $onlines) {
        
$total count($onlines);
        
$block = array();
        
$guests 0;
        
$members '';
        for (
$i 0$i $total$i++) {
            if (
$onlines[$i]['online_uid'] > 0) {
                [
b]$members .= ' <a href="'.XOOPS_URL.'/userinfo.php?uid='.$onlines[$i]['online_uid'].'">'.$onlines[$i]['online_uname'].'</a>,[size=medium][color=990000]<br>[/color][/size]';[/b]
            } else {
                
$guests++;
            }
        }
Thats it, save the file and upload it via FTP, you may be asked if you want to overwrite the existing file, choose yes and job done!

Dave



202
dickinsd
Re: PHP April Fools Hack??
  • 2005/4/1 22:48

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Oh, so its the Web server that is at fault?

Its nothing that can be a security risk?

Dave



203
dickinsd
PHP April Fools Hack??
  • 2005/4/1 21:58

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Has anyone else noticed this??

if you add this to the address of most (nearly all) php pages

?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

You get a php gift.

e.g.

https://xoops.org/modules/newbb/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

How is this happening?

I know of some sites where it doesn't work, what have they done to stop it?

This does not only effect XOOPS sites, it seems to be a php thing so it covers most php sites e.g.

http://www.fedoraforum.org/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42

Dave

ps look at www.php.net top left where logo should be



204
dickinsd
Re: articles are not shown in main menu
  • 2005/3/31 20:17

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


I would be interested in this also, did you ever figure out this?

Currently I have found that I can use Articles for webamster articles and I am using News2 for articles submitted by other users, this has the Submit News feature built in, so I just needed to change that so it says submit Article instead.

I would prefer to use the Articles module if you figured it out?

Dave



205
dickinsd
Re: Tinycontent Main Menu Items
  • 2005/3/31 20:04

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


If you have managed to make links for your static pages either in the Main menu or in a seperate block (either option is possible) and you now want to remove TinyContent and its sub menus from you main menu then:

Goto the Administration area goto System and to modules.

Look for TinyContent and set its order to 0

This Hides TinyContent from your main menu.

You can use this for any of the modules you do not want on your main menu.

Alternativly you can create a new Main menu with the items you want to appear using something like MultiMenu

Hope that helps, let me know if you need me to clear anything up.

Dave



206
dickinsd
Is xoops.org hosted with Fasthosts?
  • 2005/3/21 11:52

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


I am just asking because I couldn't get access to either this site or my own for the last 50 minutes.

I check the system status at fasthosts, they listed all the servers that where having problems.

When they closed the ticket as they had fixed the issue; my site starts to work again and so does xoops.org

Or was this a complete 'fluke'?

Either way you guys had me worried; My site goes down and the xoops.org site also went down, I thought some little turd had found a way to take down XOOPS sites

I should have known better, XOOPS is rock solid

Dave



207
dickinsd
Re: Can't browse Xoops site from Local Network, but can from Internet
  • 2005/3/21 2:21

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hi.

If you are typing a local address for your local machine e.g. 192.168.1.2, this should work fine.

If you type a domain name or EXTERNAL address e.g. 82.140.64.25 orhttp://www.flakrat.com

Then you WILL have problems becuase your router/modem will detect the start address and the end address, realise this is a local request and point you to your gateway. (the belkin device you mentioned)

If you can access your site from other places on the internet then apache should be working fine, that is not your problem.

To test:

Whilst on your local network follow this link for an anonymous connection:
http://www.proxyone.com/
go to the bottom of the page where it says Free Surf and enter your External IP address or domain name if you have a domain pointing at your home server..

You should find that as the anonymous service masks your start address the modem/router will not detect it as a local request and should just forward the request on to the Apache Server on FC2.

Try this as I definately think that is your problem.

If this is your prob, there is no way around it that I know of (other than using anonymouse proxies (which I believe is not hard to setup on Fedora anyway??)) If this is your prob perhaps you can share some info with me.. Do you use Webalizer? and have you successfully allowed external access to the files? I tried, it worked one night and never worked again

Dave



208
dickinsd
Re: Icons, gifs, logo's and png's do not display
  • 2005/3/21 1:57

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Oh.

Do your images and image folder have the right permissions?

I know you said you can browse to the images directly so I would guess this is not the problem.

However for reference my images and icons folder are 744 and my actual images are 644 - or at least most of the images are 644

Dave



209
dickinsd
Re: Banner/Header Cahnge
  • 2005/3/21 1:41

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Hi.

Something like this at the top of your theme.html file

<center>
 <
table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <
tr>
    <
td width="100%" background="<{$xoops_url}>/[b]picture[/b].gif"></td>
  </
tr>
</
table>
</
center>

This will allow you to see an image.

You may want to edit that code either using a CSS tag or setting the size of the table so that it is not wider than your image other wise the image will be repeated.

Is this what you are looking for?
Or did I miss read your question?

Dave

EDIT:
example of restricted table size:
<center>
 <
table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" [b]width="[i]60%[/i]"[/bid="AutoNumber1" [b]height="[i]152[/i]"[/b]>
  <
tr>
    <
td width="100%" background="<{$xoops_url}>/[b]picture[/b].gif" height="100%"></td>
  </
tr>
</
table>
</
center>
There are other ways of doing this, this is just one way.



210
dickinsd
Re: Pictures on News
  • 2005/3/21 1:30

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Could you not just use the HTML tag for a background image?
Example
<HMTL>
   <
BODY background="http://www.mysite.com/image1.gif">
        [
b]Your text here[/b]
   </
BODY>
</
HTML>

If you try this, you will need probably need to use other HTML tags such as <p> and <br> to format the layout of the text.

Don't know if this would be any easier than using hervet's sollution?

Dave




TopTop
« 1 ... 18 19 20 (21) 22 23 24 ... 27 »



Login

Who's Online

135 user(s) are online (110 user(s) are browsing Support Forums)


Members: 0


Guests: 135


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