Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Theme Site Themes => Topic started by: gecitli on October 09, 2018, 05:17:02 PM

Title: Badem Smf 2.0 bootstrap Themes
Post by: gecitli on October 09, 2018, 05:17:02 PM
Link to the theme (https://custom.simplemachines.org/themes/index.php?lemma=2923)
(https://custom.simplemachines.org/themes/index.php/action,download/lemma,2923/image,thumb)

Badem is a fully featured, Smf template built with Bootstrap 4, HTML5, CSS3 and JQuery. Badem is also available in  PHP and Ajax version. It’s a minimal responsive.

FEATURES:


Responsive list
-----------------------
.Board Template
.Display Template
.Members List
.Profile Template
.Calendar.template
.Admin Panel

(https://4.bp.blogspot.com/-trX_fEWzHgM/W7enW-x7DJI/AAAAAAAAAg8/YKP0m7hvIU8Z1_ZQST1FuESlh9dXI-N5wCLcBGAs/s320/Badem.jpg)

(https://4.bp.blogspot.com/-m_G45XYseqs/W7eo0YuafvI/AAAAAAAAAhI/Vz8LlHGUyhEIrteRpBYm4LgNQVO2LeHiQCLcBGAs/s1600/badem%2Bon.jpg)
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: The Domain Shop on November 04, 2018, 08:37:36 AM
Hi,

Do you have a live demo?
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: gecitli on November 04, 2018, 08:58:53 AM
Hi,

Do you have a live demo?

yes

DEMO (http://smftheme.byethost18.com/smf/index.php?theme=19)
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: The Domain Shop on November 05, 2018, 04:20:51 PM
Hi,

Do you have a live demo?

yes

DEMO (http://smftheme.byethost18.com/smf/index.php?theme=19)

Thanks looks great!

I did notice a issue though. On mobile you cannot click the home link in the menu.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: oyajoin on December 19, 2018, 03:31:56 AM
please how can i make the theme full width?
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: Shambles on December 19, 2018, 04:33:13 AM
Quote from: oyajoin
please how can i make the theme full width?
Can you provide a link to your copyright-visible SMF forum?
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: m4z on September 21, 2019, 05:39:49 AM
Seeing this error when using your theme in SMF2.1rc2:
Quote
Type of error: Undefined
8: Undefined index: avatar
https://(redacted)/index.php?
/(redacted)/Themes/Badem_RC2/BoardIndex.template.php (Line 238)

Relevant code:
Code: [Select]
   228: /**
   229: * Outputs the board lastposts for a standard board or a redirect.
   230: * When on a mobile device, this may be hidden if no last post exists.
   231: *
   232: * @param array $board Current board information.
   233: */
   234: function template_bi_board_lastpost($board)
   235: {
   236: if (!empty($board['last_post']['id']))
   237: echo '
==>238: <p>'.$board['last_post']['member']['avatar']['image'].'', $board['last_post']['last_post_message'], '</p>';
   239: }
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: gecitli on September 21, 2019, 01:39:07 PM
Seeing this error when using your theme in SMF2.1rc2:
Quote
Type of error: Undefined
8: Undefined index: avatar
https://(redacted)/index.php?
/(redacted)/Themes/Badem_RC2/BoardIndex.template.php (Line 238)

Relevant code:
Code: [Select]
   228: /**
   229: * Outputs the board lastposts for a standard board or a redirect.
   230: * When on a mobile device, this may be hidden if no last post exists.
   231: *
   232: * @param array $board Current board information.
   233: */
   234: function template_bi_board_lastpost($board)
   235: {
   236: if (!empty($board['last_post']['id']))
   237: echo '
==>238: <p>'.$board['last_post']['member']['avatar']['image'].'', $board['last_post']['last_post_message'], '</p>';
   239: }

index.template.php

Find
Code: [Select]
// Set the following variable to true if this theme requires the optional theme strings file to be loaded.
$settings['require_theme_strings'] = false;

// Set the following variable to true if this theme wants to display the avatar of the user that posted the last and the first post on the message index and recent pages.
$settings['avatars_on_indexes'] = false;

// Set the following variable to true if this theme wants to display the avatar of the user that posted the last post on the board index.
$settings['avatars_on_boardIndex'] = false;

Replace With

Code: [Select]
// Set the following variable to true if this theme requires the optional theme strings file to be loaded.
$settings['require_theme_strings'] = true;

// Set the following variable to true if this theme wants to display the avatar of the user that posted the last and the first post on the message index and recent pages.
$settings['avatars_on_indexes'] = true;

// Set the following variable to true if this theme wants to display the avatar of the user that posted the last post on the board index.
$settings['avatars_on_boardIndex'] = true;
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: RockTreeSky on October 08, 2019, 01:14:54 PM
We love Badem!  But I'm getting a couple undefined variable errors.  Please help, is there something I can do to get these variables set?  I assume $ava is something about the avatar, but what is #memCommID55?

My forum uses SMF 2.0.15
MySQL/Percona 5.6.41-84.1
PHP 7.2.7
Theme: Badem, version 2.0.15
only one Mod: SMF Likes Plus 1.5. (Uninstalled, I get the same error.)

File: /forum/Themes/badem/Display.template.php (main sub template - eval?)
8: Undefined variable: memCommID55
Line: 192
8: Undefined variable: ava
Line: 187

lines 185-195:
Quote
   echo'<div class="threadthis">
         <div class="content">
            ', $ava, '
            <div class="threadthis_details">
               <h3 class="for_title">
                  ', $context['subject'], '
               </h3>
               <div class="detailS"><i class="fas fa-user"></i>    ', (!empty($context['topic_starter_id']) && $context['topic_starter_id']!=0) ? '<a href="'.$scripturl.'?action=profile;u='.$memberContext[$memCommID55]['id'].'">'.$memberContext[$memCommID55]['name'].'</a>' : $txt['guest'], ' &middot; <i class="fas fa-comments"></i>    ', $context['total_visible_posts'], ' &middot; <i class="fas fa-eye"></i>    ', $context['num_views'], '<div class="nextlinks">', $context['previous_next'], '</div></div>
            </div>
         </div>
      </div>';
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: spiros on December 20, 2019, 04:47:53 AM
Demo link does not work any more.

By the way, what do you use to zoom images here? https://webtiryaki.com/index.php/topic,291.0.html
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: gecitli on December 20, 2019, 07:47:42 AM
Demo link does not work any more.

By the way, what do you use to zoom images here? https://webtiryaki.com/index.php/topic,291.0.html
yes no demo

second question
css

Code: [Select]
.bbc_img {
    max-width: 400px;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
}

.bbc_img:hover {
    max-width: 100%
}
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: spiros on December 20, 2019, 09:16:12 AM
Wow, amazing trick, teşekkür ederim :)
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: spiros on December 22, 2019, 08:48:34 AM
I think one should add height: auto so that larger images are not distorted, try this one for example:

https://fastdot.com.au/wp-content/uploads/2019/01/company-1280x720.jpg

Code: [Select]
.bbc_img {
    max-width: 400px;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
    height: auto;
}
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: mistics on February 02, 2020, 07:08:29 AM
Hello! Please tell me how you can remove such an error as in the picture? Put on a clean version of the forum SMF 2.1 RC2



(https://d.radikal.ru/d26/2002/53/ff311206c450.png)
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: Texan777 on July 30, 2020, 02:04:18 AM
This theme KILLED my new installation!

PHP Fatal error:  Uncaught Error: Call to undefined function loadCSSFile() in /Sources/Load.php(2229) : eval()'d code:45

I can't even switch back to another theme. What a piece of junk!
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: Bloc on July 30, 2020, 07:30:03 AM
This theme KILLED my new installation!

PHP Fatal error:  Uncaught Error: Call to undefined function loadCSSFile() in /Sources/Load.php(2229) : eval()'d code:45

I can't even switch back to another theme. What a piece of junk!

That function is a SMF 2.1 function I believe, which would fail on SMF 2.0.x.

Try add ;theme=1 on the url when you are logged in as an admin user, that should get you back to be able to un-install the theme.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: DeveloperMcD on July 30, 2020, 05:36:52 PM
Ok, that's great, then why does this theme say it is made for 2.0.X only? That's exactly the version of the software I have installed.

It does NOT claim to be a 2.1.X only theme.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: shadav on July 30, 2020, 05:53:58 PM
Ok, that's great, then why does this theme say it is made for 2.0.X only? That's exactly the version of the software I have installed.

It does NOT claim to be a 2.1.X only theme.
which version did you download?
there are three to choose from....I'd assume that the Badem.zip is the one that you want for 2.0.x

it doesn't state it's only for 2.0.x
I think you confused the name of the theme (I could see why) but the 2.0 in the name refers to the version of the theme not the version of smf.....
if you look at the download page it states
Quote
Compatible With:
2.0.15, 2.1 RC1, 2.1 RC2
it might be helpful if the creator puts a note which download is for which version of smf....

did what Bloc say work for you to reset to default theme?
If not you can try to use the repair settings tool https://wiki.simplemachines.org/smf/Repair_settings.php
once reset to default, delete the theme and in your admin under configuration go to themes and layout settings, then to theme settings and click on the red x to delete the template from your admin

then download the correct version of the theme for your smf version, then upload and install
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: saosangmo on February 18, 2021, 03:50:47 PM
Thank you for this great theme. I install this theme on SMF 2.1 RC3 but I lost the end of topic. You can see it here:
https://huongtinhyeu.net/cho-dien-tu/sua-bao-duong-nap-ga-dieu-hoa-tai-nha-ha-noi/

Please help me.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: saosangmo on February 19, 2021, 02:18:48 AM
I have work around for this issue for 2.1 RC3. I copy file Display.template.php from core theme to current theme. It's working normally!
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: SugarD-x on March 03, 2021, 09:57:10 AM
I have work around for this issue for 2.1 RC3. I copy file Display.template.php from core theme to current theme. It's working normally!
Are you referring to the "default" theme in SMF 2.1 RC3? I tried this fix but it didn't work for me. I have the same bug.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: SugarD-x on March 24, 2021, 11:02:06 PM
I hate to bump this, but I'm really desperate to find a fix for this issue. It is the only bug in this theme I'm not able to find a fix for, and it's a breaking one. I really love this theme in SMF 2.1. Can anyone suggest how to fix the topic issue properly? Using either the SMF 2.1 "default" or SMF 2.0 Badem theme files for Display.template.php don't resolve this. It feels like this theme in the SMF 2.1 version requires its own copy of this file, but it isn't included in the download.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: gecitli on March 25, 2021, 03:35:15 PM
Theme updated.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: SugarD-x on March 25, 2021, 07:40:17 PM
Theme updated.
Thank you! That fixed the issue, however now the Quick Reply at the bottom of the topic's page is a bit broken.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: gecitli on March 26, 2021, 02:26:48 AM
Theme updated.
Thank you! That fixed the issue, however now the Quick Reply at the bottom of the topic's page is a bit broken.

Hello, I did not see such an error. Theme It pulls the section from the default theme.
Title: Re: Badem Smf 2.0 bootstrap Themes
Post by: SugarD-x on April 08, 2021, 01:06:55 AM
Theme updated.
Thank you! That fixed the issue, however now the Quick Reply at the bottom of the topic's page is a bit broken.

Hello, I did not see such an error. Theme It pulls the section from the default theme.
My apologies, it is fixed now. It took me awhile to figure it out, but somehow one of my files ended up corrupted in the download process. (It was an issue on my end with the download).