Correction - break layout if user has not set loca

  • Topic Author
  • Visitor
  • Visitor
12 years 8 months ago #6909 by
[happening in Jomsocial]
In my case if the user has not set their location, it was breaking my entire right side layout.

After doing some research on the code, I found a small bug and the correction, if that is happening to you too.

File: plugins/community/geommunitylocator.php

line: 780

This line:
Code:
$html .='<div style="width:'.$width.';text-align:right\"><img src="'.$juri.$appfiles_path.'favicon.png" alt="Geommunity" width="16" height="16"/> <b>'.$user_username.'</b> '.JText::_('PLG_GEOLOC_HASNOTYET');

is not closing the div and that's why the layout is breaking.

just close the div at the end:
Code:
$html .='<div style="width:'.$width.';text-align:right\"><img src="'.$juri.$appfiles_path.'favicon.png" alt="Geommunity" width="16" height="16"/> <b>'.$user_username.'</b> '.JText::_('PLG_GEOLOC_HASNOTYET').'</div>';

Hope that helps

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #6910 by nordmograph
Hello
Yes, thank you , I also posted this yseterday in another post and I updated the archive this morning. Thank you for reporting.

Actually we can also remove the useless style:
Code:
$html .='<div><img src="'.$juri.$appfiles_path.'favicon.png" alt="Geommunity" width="16" height="16"/> <b>'.$user_username.'</b> '.JText::_('PLG_GEOLOC_HASNOTYET').'</div>';

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

  • Topic Author
  • Visitor
  • Visitor
12 years 8 months ago #6912 by
Thanks nordmograph.

btw, great plug in! good job!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #6913 by nordmograph
You're welcome!
Happy you like it

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.311 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.