1
il_berry
Re: xlanguage and php 5.2
  • 2009/10/25 23:48

  • il_berry

  • Just popping in

  • Posts: 7

  • Since: 2005/11/13


Hi!
I have the same problem.
Yesterday I have moved a XOOPS web site (2.013.2) with xlanguage from an hosting to another and a welcome blank page appeared...
Permission and all was ok. Difference? yes. old hosting php 4.4.7
The new one, php 5.2.0 -8+erch15

So... Highlander, thank you very very much for your solution.
I've searched for hours, and this is the unique post the solve the problem!
Thank you again

Stefano




2
il_berry
SOLVED
  • 2006/3/27 9:09

  • il_berry

  • Just popping in

  • Posts: 7

  • Since: 2005/11/13


Hi!
in the meantime, I've resolved the trouble!!
Before, I've tryed like you have suggest me. But not only putting a link
with an url like: index.php?lang=english
but adding at the end of the url a $querystring var.
So was good...

After, an idea shining my mind!
I've used Center left block, and I've put it at the top of the left column before the foreach cicle of the left block.
So it's Very good.

This is a small tip! (new for me)
and can be used with whichever block

I hope can be useful!
Thanks and bye!
Ste



3
il_berry
Xlanguage block and theme.html
  • 2006/3/25 19:20

  • il_berry

  • Just popping in

  • Posts: 7

  • Since: 2005/11/13


Hi everyone!
I'm trying to use Xlanguage! It's a great and simple module.
I'd like to display the block not in the left or right column but in the menu or in an other position.
In the theme.html, in the left column for example, there's this code used to display all block:
<{foreach item=block from=$xoops_lblocks}>
<{$block.title}>
<{$block.content}>
<{/foreach}>

How is the code can I use to display only the xlanguage's block?


How can I do it? (if is it possible...)
What code i must put in the theme.html file?

Thanks a lot for your help!
Best regards.



4
il_berry
Re: Make a new block for CATADS
  • 2005/11/14 17:11

  • il_berry

  • Just popping in

  • Posts: 7

  • Since: 2005/11/13



I'm trying thousands of solution and reading a lot of topics but I dont't understand how to realize this block.
No one have five minute (I know that is hard) for this problem that I think should interest a lot of XOOPS users.
Searching in Google I don't find any tutorial near this question.
Thanks, bye



5
il_berry
Make a new block for CATADS
  • 2005/11/13 13:46

  • il_berry

  • Just popping in

  • Posts: 7

  • Since: 2005/11/13


Hi to everyone!
I'm trying to create a personalized block. It would have to show one product, random, from the database.
I've written the correct code in php. If I load it, not in a block, it's really ok!
But I don't know how to put the script in the fuction of the block!

Can someone help me, please?

This is the php script:
include '../../../mainfile.php';
include 
XOOPS_ROOT_PATH.'/header.php';

$link '../adsitem.php?ads_id='.$ads_id;

$sql "SELECT * FROM ".$xoopsDB ->prefix ("catads_ads")."  order by rand() limit 1  ";
$rs $xoopsDB ->query ($sql);
$row $xoopsDB ->fetchArray ($rs);
echo 
$row[ads_title]."<br>";
echo 
$row[ads_desc]."<br>";
echo 
"<a href=".$link."><img src=../images/ads/".$row[photo0]."></a>";


This is the code of an empty block:
<?php

function vetrina_show($options) {

$block['content'] = '

'
;
    return 
$block;
}
?>


Thanks, bye.
Ste




TopTop



Login

Who's Online

192 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

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

Latest GitHub Commits