1
trspice
How do you add smarty tags to a block with the editor?
  • 2007/3/25 0:09

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I want to add an RW_BANNER tag <{$left_banner}> to a block using the editor but nothing happens when I choose PHP and the tag displays as text when I choose HTML.

After some searching I found- echo xoops_getbanner(); which works well to display the XOOPS banner. Evidently there has to be a print/echo command to PHP to make it happen. How can I use this command with the RW_BANNER tags.

Many thanks
There's nothing but science....
The Reggae Album

2
huzhenghui
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/25 2:53

  • huzhenghui

  • Just popping in

  • Posts: 53

  • Since: 2007/3/24


Quote:

trspice wrote:
I want to add an RW_BANNER tag <{$left_banner}> to a block using the editor but nothing happens when I choose PHP and the tag displays as text when I choose HTML.

After some searching I found- echo xoops_getbanner(); which works well to display the XOOPS banner. Evidently there has to be a print/echo command to PHP to make it happen. How can I use this command with the RW_BANNER tags.

Many thanks

I have search "RW_BANNER" in XOOPS 2.0.16 version. But find nothing. Where are you find "RW_BANNER"?
gmail & gtalk: huzhengh (at) gmail (dot) com
Skype: huzhenghui

3
trspice
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/25 14:30

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Get the module at Sourceforge.net

http://sourceforge.net/project/showfiles.php?group_id=41586&package_id=105497&release_id=458182

This question is about using the XOOPS editor and not about the RW_Banner so please don't focus on the module. Ignore that the module was mentioned and help me figure how to get the tag <{$left_banner}> into a block.
There's nothing but science....
The Reggae Album

4
trspice
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 0:58

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Is it that no one has a clue about this? With 88 views I figure one might be a developer or have some inside knowledge. This is strange for a support forum. I'll check again later.
There's nothing but science....
The Reggae Album

5
huzhenghui
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 5:51

  • huzhenghui

  • Just popping in

  • Posts: 53

  • Since: 2007/3/24


Quote:

trspice wrote:
Get the module at Sourceforge.net

http://sourceforge.net/project/showfiles.php?group_id=41586&package_id=105497&release_id=458182

This question is about using the XOOPS editor and not about the RW_Banner so please don't focus on the module. Ignore that the module was mentioned and help me figure how to get the tag <{$left_banner}> into a block.

I search XOOPS 2.0.16 again, and can not find the keyword "left_banner".
gmail & gtalk: huzhengh (at) gmail (dot) com
Skype: huzhenghui

6
stefan88
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 13:46

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


@huzhenghui:

In RW Banner you can define your own smarty tags. There is one when you install the module - <{$rw_banner}>

@trspice:

Try using the bbcode hack it will be [RW align=center]left_banner[/RW]. Make shure you did the hack XOOPS_ROOT_PATH/class/module.textsanitizer.php file.
If it doesn't work try using only the inclide ... part without $mod=... and if{}
The last one did work for me on my test xampp on windows with XOOPS 2.0.13.2 and RW banner 1.5
..

7
nachenko
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 17:35

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The real question here is how to call an Smarty tag into a custom block. Isn't it?

Well, I have no idea if it's possible, but i'd want to know.

8
trspice
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 18:49

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


nachenko you get it! That's exactly what I am trying to achieve.

stefan88 I have no clue what this means. It doesn't seem to relate
Quote:
If it doesn't work try using only the inclide ... part without $mod=... and if{}


The BBcode method didn't work even with the textsanitizer hack.

Is there a php command that I can wrap it in.
There's nothing but science....
The Reggae Album

9
stefan88
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 18:56

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


I mean:

instead of adding all this:

le="color: #000000"><?php #### Hack by rw-banner $mod = XoopsModule::getByDirname("rw_banner"); if ($mod){ include(XOOPS_ROOT_PATH.'/modules/rw_banner/include/bbcode.php'); } #### end of the Hack by rw-banner


add only this

le="color: #000000"><?php #### Hack by rw-banner include(XOOPS_ROOT_PATH.'/modules/rw_banner/include/bbcode.php'); #### end of the Hack by rw-banner


I thought that you whant to display RW banner with ustom block and offered an alternative ...
..

10
trspice
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 19:14

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


stefan88 I appreciate your effort and I do want to display the rw_banner ad but ultimately I want to figure how to use the editor to publish a smart tag.

I tried the methods you suggested but neither have worked. Thanks.

Using XOOPS 2.0.16
There's nothing but science....
The Reggae Album