News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Missed minor problems, a little help.

Started by Panoulis64, April 13, 2022, 10:17:43 AM

Previous topic - Next topic

Panoulis64

Please, if I do not write in the right place, move it.

I have chosen Jane2 v1.1 as the template (I have already asked in the right place.)
Nice, but there are problems and I have not seen an answer for a long time.
So I thought, let's see if anyone else knows how to help.

The key is what you describe here https://www.simplemachines.org/community/index.php?topic=578800.msg4111755#msg4111755

Also, if there are, as an administrator, the number of errors appears next to ΄in the administrator option in the menu or photos are uploaded to the gallery, my menu breaks in a second row. So I want to see a way, how to reduce the difference between the menu options, so that it does not break.

Kindred

issues with specific custom themes should be raised in the thread dedicated to supporting that theme.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Panoulis64

Unfortunately, there are no answers there, as I mention. :'(

TwitchisMental

Quote from: Panoulis64 on April 13, 2022, 11:22:31 AMUnfortunately, there are no answers there, as I mention. :'(
This seems to be a <div> tag not being closed properly..

Mick. is usually good about fixing these bugs.

Give me a few minutes and I will see if I can find the issue.

TwitchisMental

#4
Quote from: TwitchisMental on April 13, 2022, 03:05:02 PM
Quote from: Panoulis64 on April 13, 2022, 11:22:31 AMUnfortunately, there are no answers there, as I mention. :'(
This seems to be a <div> tag not being closed properly..
Mick. is usually good about fixing these bugs.
Give me a few minutes and I will see if I can find the issue.
Alright I have found the cause of the issue.

Open up index.template.php with your favorite text editor in the Jane theme folder.

Find -
  echo '
 <div id="wrapper">';
 // Show a random news item? (or you could pick one from news_lines...)
 if (!empty($settings['enable_news']) && !empty($context['random_news_line']))
 echo '
 <div class="news2">
     <p>', $context['random_news_line'], '</p></div>';
 echo '
 </div>';

Replace with -
echo '
<div id="wrapper">';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']) && !empty($context['random_news_line']))
echo '
<div class="news2">
    <p>', $context['random_news_line'], '</p></div>';

I have also attached the index.template.php with the correct code if that makes it easier.

The issue was that the news section was being closed before the ending </div> was being added. So when news was disabled that </div> was closing another open <div> that did not need closing yet.

Hope that helps :).

Panoulis64

Thank you very much for your immediate help.
This issue has been resolved.
Unfortunately, there are those of us who do not know the code, to solve simple problems, on our own. So your help is important to us.

TwitchisMental

Quote from: Panoulis64 on April 14, 2022, 11:13:24 AMThank you very much for your immediate help.
This issue has been resolved.
Unfortunately, there are those of us who do not know the code, to solve simple problems, on our own. So your help is important to us.
Always happy to help :).

Advertisement: