e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
323 stars 214 forks source link

SITEINFO plugin - sitebutton menu revels hash folder #4867

Open Jimmi08 opened 2 years ago

Jimmi08 commented 2 years ago

Bug Description

If you upload site button via media manager, outputed path displays full path (including hash folder)

Sitelogo shortcode uses toImage() but sitebutton not.

Thanks

Jimmi08 commented 2 years ago

https://github.com/e107inc/e107/issues/1342

Jimmi08 commented 11 months ago

Still problem.

How to reproduce

  1. Check Preview Activation email for main admin
  2. Inspect element image in footer, there is {SITEBUTTON: type=email&h=60} in template . Path is ./e107_media/hash/temp/800x60_sitelogo.png

Note

And if you install e107 in subdirectory, this is not working: <img src="'. $path.'" alt="'.SITENAME.'" /> I had to add SITEURL to get it displayed on localhost. <img src="'. SITEURL. $path.'" alt="'.SITENAME.'" />