1
Peekay
Can I hack image manager to use XOOPS_URL?
  • 2006/11/3 20:47

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Unless I missed a tip somewhere, the image manager uses absolute URLs when it places an image, e.g.
http://192.168.***.***/uploads/img454b9.gif

Which means I have a *lot* of changes to make when the site I'm building on my PC goes live.

Is there a way to make it use a relative path?
A thread is for life. Not just for Christmas.

2
m0nty
Re: Can I hack image manager to use XOOPS_URL?
  • 2006/11/3 21:26

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


i could be wrong, but from what i remember of it, it stores the filename in the db.

then adds the url when you see it on the output.. the url is taken from XOOPS_URL in mainfile.php

so i'm almost sure it'll be fine.

mydownloads & a few other modules that store url's in the db will have to be edited tho.

3
Peekay
Re: Can I hack image manager to use XOOPS_URL?
  • 2007/1/17 17:57

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Sorry to resurrect this old thread, but I can confirm if I develop a site locally and use image manager it puts absolute URLs into the article - or block - and they remain after uploading. Just had to change another load manually.
A thread is for life. Not just for Christmas.

4
Peekay
Re: Can I hack image manager to use XOOPS_URL?
  • 2007/7/23 22:27

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


And again today.... (sigh)

The reason this catches me every time is because when you preview your uploaded site from a PC on a LAN, the images are there... because the browser uses the LAN address. Only when your client looks at it do you get the 'where are the images?' phone call.

Does anyone know the SQL to perform a global search and replace across all the MySQL tables in a site, e.g. to change:

http://localhost

to

http://www.example.com

It has to be global because this affects news, blocks, articles, everything where the image manager is used.
A thread is for life. Not just for Christmas.

Login

Who's Online

337 user(s) are online (259 user(s) are browsing Support Forums)


Members: 0


Guests: 337


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