11
Dave_L
Re: XOOPS_URL in a text area
  • 2004/2/29 0:41

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The code might already work the way you want. Some of the replacement strings for the [ img ] tag have XOOPS_URL in them.

If I have time, I'll play around with it later.

12
marcan
Re: XOOPS_URL in a text area
  • 2004/2/29 16:51

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


I played around a bit. Here what I came up with.

I added a new XoopsCode called siteimg.

All you have to do is write [ siteimg ]imagePath[ /siteimg ], where imagePath is the path of the image, relatively to your XOOPS root. (Note, I inserted spaces before and after the [] so the tag does not get interpreted...)

XOOPS will automaticaly insert the root path of your site before the "images/test.jpg"

You can download the hack here :
siteimg XoopsCode

As I said more then once here, I'm not a coder so if there is some errors in the hack, please inform me so I can learn ! Thanks !

Hope this helps !

13
krayc
Re: XOOPS_URL in a text area
  • 2004/2/29 20:18

  • krayc

  • Not too shy to talk

  • Posts: 107

  • Since: 2004/2/17


Quote:

marcan wrote:
(Note, I inserted spaces before and after the [] so the tag does not get interpreted...)


Good work marcan. I was about to try an decipher 'patterns' but you've done it!.
thanks.

I wonder if the 'spaces' issue is just a matter of refining the pattern?

krayc

Login

Who's Online

384 user(s) are online (264 user(s) are browsing Support Forums)


Members: 0


Guests: 384


more...

Donat-O-Meter

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

Latest GitHub Commits