1
jamesh1
Change XOOPS_IMAGEURL
  • 2005/11/22 14:16

  • jamesh1

  • Just popping in

  • Posts: 11

  • Since: 2005/11/9


How do I change the xoops_imageurl variable?

2
m0nty
Re: Change XOOPS_IMAGEURL
  • 2005/11/22 14:31

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it would mean changing in quite a few places. but i can't think why you would want to?

it would affect your themes location too.

3
jamesh1
Re: Change XOOPS_IMAGEURL
  • 2005/11/22 14:32

  • jamesh1

  • Just popping in

  • Posts: 11

  • Since: 2005/11/9


I need to do this because I moved the site over to a different location, but in quite a weird way. All I want it to be able to do is find my images in the template.

EDIT: This is weird: I changed the image url of the images to an absolute path (i.e. the http://domain.com/etc..) and it still didnt show up?

EDIT AGAIN: I feel so stupid - I didnt upload hte image in the first place!!!

4
m0nty
Re: Change XOOPS_IMAGEURL
  • 2005/11/22 14:38

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


hmmm (not quite sure of the weird way)

imageurl is defined accordingly and changes depending on the theme used. you can change the location it points to but i think you would also need to then move the themes to that location aswell.

which version of xoops?

5
frankblack
Re: Change XOOPS_IMAGEURL
  • 2005/11/22 14:44

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


xoops_imageurl is defined twice in XOOPS: xoopsroot / header.php and xoopsroot / include / common.php.

Change
'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/'


to
'xoops_imageurl' => 'http://www.yourdomain.com/pathtoimages/'


But as before mentionend, if you want to change the theme the path to the images will be wrong.

6
m0nty
Re: Change XOOPS_IMAGEURL
  • 2005/11/22 14:54

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


is that for XOOPS 2.0.x frank?


as in 2.2.3 it's different..

i have found it in class/theme.php

line 255:

'xoops_imageurl' => $this->url.'/'.$this->name.'/',

Login

Who's Online

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


Members: 0


Guests: 445


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