1
lionhell
Re: Using variable in block title
  • 2014/8/26 12:25

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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




2
lionhell
Re: Using variable in block title
  • 2014/8/26 11:58

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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



3
lionhell
Re: Using variable in block title
  • 2014/8/26 11:42

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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 !




4
lionhell
Re: Using variable in block title
  • 2014/8/26 11:23

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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



5
lionhell
Re: Using variable in block title
  • 2014/8/26 11:10

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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 !



6
lionhell
Re: Using variable in block title
  • 2014/8/26 10:39

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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




7
lionhell
Using variable in block title
  • 2014/8/26 0:18

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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 ?



8
lionhell
Re: XOOPS 2.5.7 Beta 1 Released for Testing
  • 2014/3/21 15:40

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


@Mamba -> PHP version test

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






9
lionhell
Re: Publisher 1.0 Final ready for testing
  • 2014/3/13 10:43

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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 ?



10
lionhell
Re: Publisher 1.0 Final ready for testing
  • 2014/3/13 10:13

  • lionhell

  • Just popping in

  • Posts: 20

  • Since: 2006/8/13


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 »



Login

Who's Online

87 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 87


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