Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with the path image #113

Open
phpbb-store opened this issue Apr 8, 2016 · 3 comments
Open

problem with the path image #113

phpbb-store opened this issue Apr 8, 2016 · 3 comments

Comments

@phpbb-store
Copy link

problem with the path image. the "./" path is not recognized as a path root_path
screenshot

@phpbb-store phpbb-store changed the title problem with the path image of extensions problem with the path image Apr 8, 2016
@phpbb-store
Copy link
Author

no solution?

@Erwane
Copy link

Erwane commented Nov 29, 2016

same problem.
defined in includes/function_display

'FORUM_IMAGE'			=> ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $user->lang['FORUM_CAT'] . '" />' : '',

$phpbb_root_path = './' and virtual folder break the link.

No solution i think, except replace by

'FORUM_IMAGE'			=> ($row['forum_image']) ? '<img src="/' . $row['forum_image'] . '" alt="' . $user->lang['FORUM_CAT'] . '" />' : '',

@Erwane
Copy link

Erwane commented Nov 29, 2016

Maybe a solution is to change the image path via the events :

  • core.display_forums_modify_row
  • core.display_forums_modify_forum_rows

check the virtual path and add '../' foreach virtual dirs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants