xoops forums

Forum Index


Board index » All Posts (lionhell)




lionhell

Just popping in
Posted on: 2014/8/26 12:25
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#1

Re: Using variable in block title

OK , I've inserted the code in header.php , now it works.

// LionHell
        
$m['01']='janvier';
        
$m['02']='février';
        
$m['03']='mars';
        
$m['04']='avril';
        
$m['05']='mai';
        
$m['06']='juin';
        
$m['07']='juillet';
        
$m['08']='août';
        
$m['09']='septembre';
        
$m['10']='octobre';
        
$m['11']='novembre';
        
$m['12']='décembre';
        
$jour=new DateTime();
        
$ce_jour $jour->format('d').' '.$m[$jour->format('m')];
        
$xoopsTpl->assign('cejour'$ce_jour);
// Fin - LionHell



lionhell

Just popping in
Posted on: 2014/8/26 11:58
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#2

Re: Using variable in block title

The code itself is working, it's only the $xoopsTpl that is generating blank page.


lionhell

Just popping in
Posted on: 2014/8/26 11:42
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#3

Re: Using variable in block title

Hum hum ... a tiny problem ...
I've inserted in theme.html:
<{php}>
$m['01']='janvier';
$m['02']='février';
$m['03']='mars';
$m['04']='avril';
$m['05']='mai';
$m['06']='juin';
$m['07']='juillet';
$m['08']='août';
$m['09']='septembre';
$m['10']='octobre';
$m['11']='novembre';
$m['12']='décembre';
$jour=new DateTime();
$ce_jour $jour->format('d').' '.$m[$jour->format('m')];
$xoopsTpl->assign('aujourdhui'$ce_jour);
<{/
php}>


But " $xoopsTpl->assign('aujourdhui', $ce_jour); " generates a blank page !



lionhell

Just popping in
Posted on: 2014/8/26 11:23
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#4

Re: Using variable in block title

Working nicely ! Thanks ...
If you had an idea to hack xoops , well ...


lionhell

Just popping in
Posted on: 2014/8/26 11:10
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#5

Re: Using variable in block title

So simple !? thanks trying that immediately !

But if it was possible to hack so that smarties would be granted directly in block management, it would be great, and making that change independant of theme !


lionhell

Just popping in
Posted on: 2014/8/26 10:39
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#6

Re: Using variable in block title

Block templates manage block content, not block title !? Right ?

I'd like to insert smarty in the block title (not content), mainly a smarty, but any variable would be nice ...

For example:

With Birthday module, I'd like to set block title like that: "It happened on [the date]" , "the date" would be a smarty for current month and day.

I tried to enter a smarty in the xoops admin block page, but of course it didn't work



lionhell

Just popping in
Posted on: 2014/8/26 0:18
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#7

Using variable in block title

It would be nice to have the possibility of using variables in block titles, like dates or indexes, etc ..., to have dynamic titles in blocks.

I really would appreciate to use smarty in block title !

Does someone know a hack to do that ?


lionhell

Just popping in
Posted on: 2014/3/21 15:40
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#8

Re: XOOPS 2.5.7 Beta 1 Released for Testing

@Mamba -> PHP version test

Hi Mamba ... it was on Xoops 2.5.6 as I was testing Pages 1.20





lionhell

Just popping in
Posted on: 2014/3/13 10:43
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#9

Re: Publisher 1.0 Final ready for testing

Disregard ! Sorry guys ... I have been confused because the input form looked like "news" module !

I mean: 1 scoop area and 1 body area ...

But it seems it doesn't work in same way ! The scoop is displayed when on category index page, but in the item page itself the body of article is displayed and not its scoop !

Am I right or is it a bug ?


lionhell

Just popping in
Posted on: 2014/3/13 10:13
lionhell
lionhell (Show more)
Just popping in
Posts: 20
Since: 2006/8/13
#10

Re: Publisher 1.0 Final ready for testing

Hi everybody !

I just installed publisher on a clean xoops 2.5.6 and I encountered a problem.

After having created an article the scoop is not displayed ... only the body of the text.

Not checked in database if scoop exists yet ...



TopTop
(1) 2 »