1
rakrath
bbcode replacement
  • 2005/9/12 20:10

  • rakrath

  • Just popping in

  • Posts: 3

  • Since: 2005/9/12


hi everyone

i try to add some x-tra bbcode.
(XOOPS 2.2.3 / AMS 2.41)
i found the bbcode-inserting in the xoops.js file but cant find where the bbcode is replaced with html.

has someone experience with that?

2
LazyBadger
Re: bbcode replacement

class/module.textsanitizer
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

3
rakrath
Re: bbcode replacement
  • 2005/9/12 20:15

  • rakrath

  • Just popping in

  • Posts: 3

  • Since: 2005/9/12


thank you!

4
rakrath
Re: bbcode replacement
  • 2005/9/24 1:00

  • rakrath

  • Just popping in

  • Posts: 3

  • Since: 2005/9/12


erm... and how can i limit them to one certain module?

5
LazyBadger
Re: bbcode replacement

You can't... easy. because textsanitizer work for the whole site
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

6
marcionline
Re: bbcode replacement

Reviving the topic

I would like know how add a specific bbcode, to edonkey links, example:

ed2k://|file|[Ubuntu.Linux.5.04.The.Hoary.Hedgehog.DVD].ubuntu-5.04-dvd-i386.iso|2929047552|FAA282B48F2888D34E94B102FC210282|/


I tried add this code in class/module.textsanitizer.php

$patterns[] = "/[edonkey=(['"]?)([^"'<>]*)\1](.*)[/edonkey]/sU";
$replacements[] = '\3';;


but dont worked

I think the string is wrong but I dont know what is the correct.

Maybe someone expert in php can help me

7
marcionline
Re: bbcode replacement

Up!

8
iHackCode
Re: bbcode replacement

so
[ed2k=url2]text1[/ed2k] or
[ed2k]url2[/ed2k]
becomes
text1 or
url2 if no text is specified

url2 being ed2k://somelink
text1 being some text

$patterns[] = "/[ed2k=(['"]?)([^"'<>]*)\1](.*)[/ed2k]/sU";
$replacements[] = '\3';

$patterns[] = "/[ed2k](.*)[/ed2k]/sU";
$replacements[] = '\1';


i think that should do it. but im not sure.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

9
marcionline
Re: bbcode replacement

Thanks for your reply.

I tried your sugestion but did not worked. I think because of format of edonkey links, with caracters of many types, like "|" , "]" and others.



Login

Who's Online

489 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 489


more...

Donat-O-Meter

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

Latest GitHub Commits