11
stefan88
Re: How do you add smarty tags to a block with the editor?
  • 2007/3/26 19:53

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


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):

// 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:

[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.
..

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

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


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.
There's nothing but science....
The Reggae Album

Login

Who's Online

230 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 230


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