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 ".$mods_image."' height='30px'>";


Or

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


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 ".XOOPS_UPLOAD_URL."/TDMCreate/images/modules/".$mods_image."' height='30px'>";


Also its better to define a template and use smarty

Login

Who's Online

256 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 256


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