1
timgno
Bug path
  • 2012/9/2 10:23

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Hello!

I do not know if I consider it a bug, but I would submit the question for clarification.

The paths of the route and those of modules, work differently.

For example, I am experiencing these difficulties:

echo "<td><img src='../uploads/TDMCreate/images/modules/".$mods_image."' height='30px'></td>";


Or

echo "<td><img src='".TDMC_UPLOAD_PATH."/images/modules/".$mods_image."' height='30px'></td>";


If I insert these lines of code, the result is this:

http://localhost/xoops-2.5.5testTDMCreate/htdocs/modules/TDMCreate/admin/TDMC_UPLOAD_PATH/images/modules/default_slogo.png
http://localhost/xoops-2.5.5testTDMCreate/htdocs/modules/TDMCreate/uploads/TDMCreate/images/modules/default_slogo.png


If it's a problem that can be solved, I think it's important for xoops 2.6

2
irmtfan
Re: Bug path
  • 2012/9/2 10:32

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


huum.
you should use URL in img html tag and not path
echo "<td><img src='".XOOPS_UPLOAD_URL."/TDMCreate/images/modules/".$mods_image."' height='30px'></td>";


Also its better to define a template and use smarty

Login

Who's Online

255 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 255


more...

Donat-O-Meter

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

Latest GitHub Commits