• Welcome to Simple Machines Community Forum. Please login or sign up.
January 28, 2022, 06:02:25 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Curve Reborn

Started by shadav, October 28, 2021, 06:22:13 PM

Previous topic - Next topic

shadav

yeah sorry I looked around a bit and couldn't see what's messing up the footer, I mean I see what it's doing, it's acting like there's an extra end div somewhere so it knocked the footer outside of the wrapper div. But I can't find where it's doing it at.
I think it's still something to do with the portal but for the life of me why is it only messing up the messageindex, one would think it'd be messing up other things as well.
I'll poke around again maybe tonight or tomorrow
a bit heavily medicated today so not sure I'll really be doing much today

Dave J

I have now started from scratch and reinstalled the whole site including all mods except the portal.

Everything seems to be working ok with no errors at present. I am going to run a full backup of the site now as it is now. Then tomorrow I'm going to attempt to install the portal and see what happens.

EDIT: There is an error as follows

8: Undefined index: report_board_id
Apply Filter: Only show the errors from this file
File: /Themes/Curve_Reborn/Display.template.php
Line: 491

It happened following a new test post I made in the admin area.
All the Quiz info is here

shadav

hm apparently since I moved the report button up into the quicklinks it now throws an error
not sure why, all I did was literally just moved the code into the quicklinks and made it an image 🤷�♀️

searched the forum and found a mod that sort of did what I did (it just made it an image) and well it gave the same error so to fix this someone says
in Display.template.php
find
        if ($context['can_report_moderator'] && ($context['current_board'] != $modSettings['report_board_id']))replace with
        if ($context['can_report_moderator'])
seems to work, i'll roll out another update in a bit
just saw my error logs and I've got a few other Undefined index in there  :-\
so i'll work on fixing them before I roll out another update but in the meantime you can do the above to fix the Undefined index: report_board_id

===
edit oh hahahaha nevermind my other Undefined errors in my log was when I was playing with your messageindex file on my test site, so yeah I can ignore those  :laugh:
posting another update to fix the  Undefined index: report_board_id
but for those that don't want to update, you don't have to just do the replace mentioned above

Dave J

Thanks again shadav, that's a weight off my mind as I thought by importing the db tables something had gone wrong.
All the Quiz info is here

Dave J

all done and now no errors.

All I have to do now is backup again then test portals.

Wish me luck  ;)
All the Quiz info is here

shadav


Dave J

Well I've managed to get it all working correctly. I finally used the Tiny Portal which is actually better than Simple Portal as far as I can see with more options for blocks etc.

So I'm now happy and can sleep better tonight.

The browser inspect is showing 3 errors and 6 warnings which seems to be related to jquery. I have left the admin password as it is for the time being in case you want to look back of house for the errors.

I did change one thing to Curve Reborn and that's the thumbnail.gif to really show the difference between it and the old SMF default theme.

I have attached it here in case you want to add it to the new file.

Thanks for everything shadav it's much appreciated.
All the Quiz info is here

Dave J

Hi shadav,

I have made some changes to the _blue theme to make it into a Christmas theme. If you go to my site you'll see it.

One thing I've been trying to do with no luck is remove the search button/box in the header.

Can you help please?

Regards

Dave
All the Quiz info is here

shadav

to remove the search box from the header in index.template.php
find and remove
                <form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
                    <input type="text" name="search" value="" class="input_text" />&nbsp;
                    <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
                    <input type="hidden" name="advanced" value="0" />';

    // Search within current topic?
    if (!empty($context['current_topic']))
        echo '
                    <input type="hidden" name="topic" value="', $context['current_topic'], '" />';
    // If we're on a certain board, limit it to this board ;).
    elseif (!empty($context['current_board']))
        echo '
                    <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

    echo '</form>
make sure to leave the
'; at the end of all of that there else you'll get template errors

this will remove the search box but leave the news part in the header, if you don't ever want to use that either then find and remove
            <div class="news normaltext">
                <form id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
                    <input type="text" name="search" value="" class="input_text" />&nbsp;
                    <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
                    <input type="hidden" name="advanced" value="0" />';

    // Search within current topic?
    if (!empty($context['current_topic']))
        echo '
                    <input type="hidden" name="topic" value="', $context['current_topic'], '" />';
    // If we're on a certain board, limit it to this board ;).
    elseif (!empty($context['current_board']))
        echo '
                    <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

    echo '</form>';

    // Show a random news item? (or you could pick one from news_lines...)
    if (!empty($settings['enable_news']))
        echo '
                <h2>', $txt['news'], ': </h2><br />
                <p>', $context['random_news_line'], '</p>';

    echo '
            </div>
this will remove both the search box and the news bit from the header

shadav

hm I don't know why it's showing console errors with the js on your site, it doesn't do that on my test site, guessing it's conflicting with something you installed on your site maybe? honestly sorry I have no clue, but everything seems to be working correctly so I mean, meh....

Dave J

Quote from: shadav on December 09, 2021, 10:36:14 PMhm I don't know why it's showing console errors with the js on your site, it doesn't do that on my test site, guessing it's conflicting with something you installed on your site maybe? honestly sorry I have no clue, but everything seems to be working correctly so I mean, meh....

No I'm not sure either. I will try and get to the bottom of it later.

Thanks very much shadav. I did remove all that and didn't leave the '; and was getting an error as you say. It looks a lot better now the search box has gone. I always have the news disabled anyway so that bit can stay

Have a great Christmas and New Year
All the Quiz info is here

Dave J

It seems the errors are mainly caused by the front page games, especially the codeword and anges. The crossword seems to have no errors associated with it.

It's not breaking the site so for the moment I'm going to leave it.
All the Quiz info is here

shadav

Small update
- Fixed thumbnail.gif to use the themes default version thumbnail
- Updated theme to smf 2.0.19

for the moment I'm leaving the smf 2.0.18 version available for download, so make sure which version you download

*side note: if you updated your forum using the patch method and applied the patch to the theme then there really isn't any reason to download the updated theme here*

rcane

I may have missed it, but is this theme responsive?  Trying to find a 2.0.19 one that I can test the sub-buttons on since I can't get Ant's to work.  I need a comparison.

And, which package is 2.0.19?  the 2nd file there is larger, but it's got no date or version in the title.

shadav

the second one is the one for 2.0.19
(the first one says 2.0.18 ;) )

it should be responsive, yes, to the best of my abilities any

Dave J

Quote from: rcane on Yesterday at 07:45:40 PMI may have missed it, but is this theme responsive?  Trying to find a 2.0.19 one that I can test the sub-buttons on since I can't get Ant's to work.  I need a comparison.

And, which package is 2.0.19?  the 2nd file there is larger, but it's got no date or version in the title.

If you want to see it in action go to my website and use the theme selector on the portal right block.
All the Quiz info is here

rcane

Quote from: Dave J on Today at 01:36:36 AM
Quote from: rcane on Yesterday at 07:45:40 PMI may have missed it, but is this theme responsive?  Trying to find a 2.0.19 one that I can test the sub-buttons on since I can't get Ant's to work.  I need a comparison.

And, which package is 2.0.19?  the 2nd file there is larger, but it's got no date or version in the title.

If you want to see it in action go to my website and use the theme selector on the portal right block.

and is the unlabeled package the one for 2.0.19?

Dave J

Quote from: rcane on Today at 01:25:10 PMand is the unlabeled package the one for 2.0.19?

I'm sorry I don't understand the part 'unlabeled package'.

The version I have installed is 2.0.18 which is basically the same as 2.0.19 except shadav changed a gif and also changed the version to respresent it now works with 2.0.19.
All the Quiz info is here

Advertisement: