| Re: How do you add smarty tags to a block with the editor? |
| by trspice on 2007/3/27 5:26:17 Stefan that edit did work so now the banner displays, thanks. I guess there is no method of publishing a smart tag with the editor. I'll keep testing. |
| Re: How do you add smarty tags to a block with the editor? |
| by stefan88 on 2007/3/26 19:53:06 sorry, my mistake - forgot one more thing i did: open your bbcode.php file in rw_banner/include folder and in the begining add this(red code): le="color: #000000"><?php // Descriзгo: Sistema de gerenciamento de mнdias publicitбrias // // ------------------------------------------------------------------------- // include_once (XOOPS_ROOT_PATH."/modules/rw_banner/class/class.tags.php"); [b][color=FF0000]include_once (XOOPS_ROOT_PATH."/modules/rw_banner/class/class.banner.php");[/color][/b] global $xoopsConfig; Tested this on clean 2.0.16, default theme and template set, on my xampp and it worked: Used the default rw_banner tag and added this in custom block: le="color: #000000"><?php [RW align=center]rw_banner[/RW] Make shure you have align=... part! (left, right or center)- it did not made a diference with me, but without it, it doesn't work. I do not understand the editor part. If you mean tping in the editor field when creating custom block - you add bbcode the same way.
|
| Re: How do you add smarty tags to a block with the editor? |
| by trspice on 2007/3/26 19:14:42 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 |
| Re: How do you add smarty tags to a block with the editor? |
| by stefan88 on 2007/3/26 18:56:30 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 ... |
| Re: How do you add smarty tags to a block with the editor? |
| by trspice on 2007/3/26 18:49:06 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. |