1
topgod6
Custom Blocks
  • 2005/7/29 9:07

  • topgod6

  • Just popping in

  • Posts: 30

  • Since: 2005/7/27


When creating a custom block and using smarty tags, it just displays the text from the smarty tag not the desired information. This still happens when you set the content type to html. Any suggestions?

2
jdseymour
Re: Custom Blocks

Smarty tags are not supported in custom blocks, only in the theme and templates.

3
ladon
Re: Custom Blocks
  • 2005/7/29 9:22

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Using a PHP custom block will alow you to make use of defined php variables that are used to fill the smarty tags.
I am the BEST.......... at overstating things! - Resized Image

4
topgod6
Re: Custom Blocks
  • 2005/7/29 9:41

  • topgod6

  • Just popping in

  • Posts: 30

  • Since: 2005/7/27


we have a problem which people have suggested an answer to, but their suggestions do not seem to work or I'm not doing it properly!
https://xoops.org/modules/newbb/viewtopic.php?topic_id=39209&forum=27

when i say we i mean another user is also interested to know and has tried the answers but they dont work for him either

5
Joey79
Re: Custom Blocks
  • 2005/7/29 9:48

  • Joey79

  • Just popping in

  • Posts: 39

  • Since: 2005/7/28


Quote:

topgod6 wrote:

when i say we i mean another user is also interested to know and has tried the answers but they dont work for him either


Yep here I am!!!

6
ladon
Re: Custom Blocks
  • 2005/7/29 9:58

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


seems to me that lang_totalusers (from the other topic) is just a language variable. Don't have any XOOPS files here atm, so can't help you with that. If it is a smarty variable containing the number of users, try finding where it's defined and use that to display it in a php custom block (might need to include the phpfile).
I am the BEST.......... at overstating things! - Resized Image

7
Joey79
Re: Custom Blocks
  • 2005/7/29 10:19

  • Joey79

  • Just popping in

  • Posts: 39

  • Since: 2005/7/28


Where are smarty variables saved? Is there a directory where I can found all the files where they are saved?

Login

Who's Online

331 user(s) are online (265 user(s) are browsing Support Forums)


Members: 0


Guests: 331


more...

Donat-O-Meter

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

Latest GitHub Commits