1
migoe
Glossary Module with bb-code or html-code
  • 2003/6/3 22:13

  • migoe

  • Just popping in

  • Posts: 68

  • Since: 2003/4/2 9


Hi all,

is there someone who can tell me if there is a hack that allow me to format the content in the glossary-module with bb-code or html-code.

I'm using XOOPS 2.0.2 and have install the glossary version 2.0 for XOOPS 2

migoe

2
BradM
Re: Glossary Module with bb-code or html-code
  • 2003/8/15 22:28

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


^^ bump ^^

3
mvandam
Re: Glossary Module with bb-code or html-code
  • 2003/8/15 23:56

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Should be pretty simple, depending how the module is written. If you can point me to the code for a module you'd like to use, I can have a quick look and see if this is an easy hack or not...

4
BradM
Re: Glossary Module with bb-code or html-code
  • 2003/8/15 23:59

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Okay I figured this one out -- I'm new to this whole thing, so use this hack at your discretion, but it seems to work.

Edit the following files:

function.php:
After $glo_definition = $myts->makeTboxData4Show($glo_definition); add this line:
$glo_definition = $myts->xoopsCodeDecode($glo_definition, $allowimage = 1);

glossaire-aff.php:
After $glo_definition = $myts->makeTboxData4Show($glo_definition); add this line:
$glo_definition = $myts->xoopsCodeDecode($glo_definition, $allowimage = 1);

glossaire-rech.php:
After $glo_definition = $myts->makeTboxData4Show($glo_definition); add this line:
$glo_definition = $myts->xoopsCodeDecode($glo_definition, $allowimage = 1);

glossaire.php (for the marquee block):
After $definition = $myts->makeTboxData4Show($myrow['definition']); add this line:
$definition = $myts->xoopsCodeDecode($definition, $allowimage = 1);

Note: this will only convert XOOPS code, I couldn't figure out a way to convert HTML. If you want to add more XOOPS code, check out the xoopsCodeDecode function in /class/module.textsanitizer.php.


Brad

5
mvandam
Re: Glossary Module with bb-code or html-code
  • 2003/8/16 7:28

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


That looks pretty good to me. There are lots of other functions in class/module.textsanitizer.php you can use too... e.g. makeTarea4Show will automatically handle HTML, smilies and XOOPS code.

6
charly
Re: Glossary Module with bb-code or html-code
  • 2003/11/21 12:52

  • charly

  • Just popping in

  • Posts: 28

  • Since: 2002/7/24


And what is the correction for the Version V1.1 ??

I use Glossaire V1.x

7
Catzwolf
Re: Glossary Module with bb-code or html-code
  • 2003/11/21 13:29

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


There will be a new version of the glossary module released very soon that uses XOOPS core and smarty templates.

8
charly
Re: Glossary Module with bb-code or html-code
  • 2003/11/21 14:40

  • charly

  • Just popping in

  • Posts: 28

  • Since: 2002/7/24


OK, but how translate code (V2) $definition = # xoopscodedecode($definition>, $allowimage = 1) ; for XOOPS V1 ??

9
minimum
Re: Glossary Module with bb-code or html-code
  • 2003/12/11 5:45

  • minimum

  • Just popping in

  • Posts: 19

  • Since: 2003/8/17


the new version.. have date?

has it categories?

salutation from spanish
minimum

10
BradM
Re: Glossary Module with bb-code or html-code
  • 2003/12/11 6:33

  • BradM

  • Just popping in

  • Posts: 78

  • Since: 2003/8/14


Glad to hear that there will be a new version out in the (near) future. I've been trying to learn php code, and I've been hacking this mod in the process.

If possible, along with the 'associated link', any chance of adding an 'associated image' as well? I hacked mine so that I can use the link for an image instead, but it would be handy to have both options.


Brad

Login

Who's Online

141 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

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

Latest GitHub Commits