1
talon39
Section image prolem in wfsection
  • 2004/6/30 19:54

  • talon39

  • Just popping in

  • Posts: 94

  • Since: 2002/6/13


Windows 2000
IIS
PHP/Mysql
I have installed WFsection. When I go to create a new section I have the option to add a "section image". I discovered that it uses image located in \modules\wfsection\images\category.
I place my image there and then chose my image from the drop down menu for "section image" in the "Create New Section" form. however my image shows as a broken image.
If I right click the broken image and click properties, it show the following path.
http://domain.com/modules/wfsection/admin//modules/wfsection/images/category/image.gif
You can see the path is incorrect.
I located the bit of code that create this image in the file category.php on line 72
$indeximage_tray = new XoopsFormElementTray(_AM_CATEGORYIMG' ');
$indeximage_tray->addElement($indeximage_select);
$indeximage_tray->addElement(new XoopsFormLabel(''"<br /><br /><img src='".$xoopsConfig['xoops_url']."/".$xt->imgurl."' name='image' id='image' alt='' />" ));
$sform->addElement($indeximage_tray);

Any Idea what is wrong?

2
Bender
Re: Section image prolem in wfsection
  • 2004/7/1 0:00

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10



Which version of wf-section is this?

It is not 2.01 (which still has bugs but is the latest public release)

A quick check gave that the third line you quoted has been changed into this:

$indeximage_tray->addElement( new XoopsFormLabel''"<br /><br /><img src='" WFS_SECTIONIMG_URL "/" $xt->imgurl"E" ) . "' name='image' id='image' alt='' />" ) );


But i would guess there is much more that has been changed to the version you are currently running.

You might try this but i donĀ“t know if it really helps.

We hope to see a new release of wf-section out shortly.
You are welcome to check over to the wf-section forum on wfsections.xoops2.org

3
talon39
Re: Section image prolem in wfsection
  • 2004/7/1 14:30

  • talon39

  • Just popping in

  • Posts: 94

  • Since: 2002/6/13


I believe it's version 1.01a

4
Catzwolf
Re: Section image prolem in wfsection
  • 2004/7/1 16:43

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Replace $xoopsConfig['xoops_url'] with $wfsConfig['sgraphicspath'].

Where did you download this version from? As I have just looked at the code for this part in v1.0.1 and that line is not there.

Liquid
WF-Section Webmaster


5
cynikalone
Re: Section image prolem in wfsection
  • 2006/1/9 8:40

  • cynikalone

  • Just popping in

  • Posts: 11

  • Since: 2006/1/4 1


I have the same problem (the broken section images - all of them). It's not a theme problem. Does anyone think the problem is in section/index.php?

I have XOOPS 2.0 | Section v1

Login

Who's Online

159 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

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

Latest GitHub Commits