Advertisement:

Author Topic: Bender Theme Widget invisible at admin widget settings!  (Read 6956 times)

lexosc

  • Sr. Member
  • ****
  • Posts: 344
Bender Theme Widget invisible at admin widget settings!
« on: October 11, 2013, 01:53:40 am »
Hi i had a widget and i think i changed its name or something and it completely disapeared from widget settings page, when i change theme to something other than bender i can see it but switching back to bender it is invisible!

designfjord

  • Newbie
  • *
  • Posts: 1
Re: Bender Theme Widget invisible at admin widget settings! (solved?)
« Reply #1 on: October 30, 2013, 05:24:59 pm »
My results:
  • you can have and use widgets with s_location = header oder footer in your database in table oc_t_widget and you will not see them in your admin-widget-listing
  • you can make a new widget in your admin-widget-listing, which you can change and delete there, but you cannot use it, because the field s_location in your database in table oc_t_widget will be empty
  • you can rename a not "s_located" widget via phpmyadmin in the table with the result, that you can use it anywhere in your site, but you will not see it in your admin-widget-listing and then you are not able to change it, of course
catch22  :D

If you want to use widgets in Bender, it seems to be necessary to add a viwe lines in oc-content /themes /bender /index.php

Theme Name: bender
Theme URI: http://www.osclass.org/
Description: bender
Version: 1.0
Author: Osclass team
Author URI: http://www.osclass.org/
Widgets: header,footer,test1,test2
Theme update URI: modern
*/

    function bender_theme_info() {
        return array(
             'name'        => 'bender'
            ,'version'     => '1.0'
            ,'description' => 'bender'
            ,'author_name' => 'Osclass Team'
            ,'author_url'  => 'http://osclass.org'
            ,'locations'   => array('header', 'footer', 'test1', 'test2')
        );
    }


If this is done, you can manage  ALL widgets as usuall
« Last Edit: October 30, 2013, 06:14:38 pm by designfjord »

lexosc

  • Sr. Member
  • ****
  • Posts: 344
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #2 on: October 30, 2013, 07:01:40 pm »
Thanks!

amoric69

  • Full Member
  • ***
  • Posts: 185
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #3 on: April 04, 2014, 01:32:38 pm »
Doesn't run with 3.3.2
Do you have more recently answer ?

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #4 on: April 25, 2014, 12:32:05 am »
I can't get anything to show up in the sidebar widget. I just went into /bender/main.php and edited under <!---sidebar---->

I would however like to use the sidebar color space as it's just floating around on my sidebar right now.

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #5 on: April 25, 2014, 01:29:29 am »
Proper Bender index.php:

<?php
/*
Theme Name: bender_ Theme
Theme URI:
Description: This is bender theme
Version: 3.0
Author: Osclass
Author URI: http://osclass.org
Widgets: header,footer,main,sidebar
Theme update URI: http://osclasst.org
*/

    function bender_theme_info() {
        return array(
             'name'        => 'bender_Theme'
            ,'version'     => '3.0'
            ,'description' => 'This is bender theme.'
            ,'author_name' => 'osclass'
            ,'author_url'  => 'http://osclass.org'
            ,'locations'   => array('header','footer','main','sidebar')
        );
    }

?>

Create the widgets in Admin.

Insert the following into pages that you want widgets to appear:
header.php=     osc_show_widgets('header');   
footer.php=      osc_show_widgets('footer');             
main.php=        osc_show_widgets('main');             
main.php sidebar section=        osc_show_widgets('sidebar');

Experiment with above code placement for best location.

Tom

« Last Edit: April 25, 2014, 09:30:15 am by tomshaft »

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #6 on: April 25, 2014, 04:30:21 am »
Thanks Tom. I have 3.3.2 I will try this. I've seen a lot of your expertise all over this site. I appreciate your help.

Thanks again.

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #7 on: April 25, 2014, 09:32:12 am »
Please post results.

Tom

amoric69

  • Full Member
  • ***
  • Posts: 185
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #8 on: April 25, 2014, 11:51:47 am »
Thanks too

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #9 on: April 26, 2014, 05:31:33 pm »
Hi @ tomshaft

I made the edits to the /theme/Bender/index.php file and threw a test html link in. Still nothing shows up. you can see right after the adsense at the bottom the widget area.

Code: [Select]
http://www.sportswaponline.com/

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #10 on: May 01, 2014, 04:59:47 pm »
Hi @Tomshaft,

I don't know if you saw this or not. I tried what you suggested. While it did add the additional fields into the ACP>Widgets section, the widgets still don't show anything I type into them.

When I say widgets don't show up, I mean on the live production front end. Nothing shows up in the sidebar. I had to edit main.php for anything to show up in my sidebar.

Thank you,

Ross
« Last Edit: May 01, 2014, 05:09:15 pm by chewyluke »

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #11 on: May 01, 2014, 07:53:23 pm »
In my previous post I said you must place the following into the php file for widgets to show. In your case the main.php file:

main.php=        osc_show_widgets('main');     
OR /AND if wanted in main sidebar:     
main.php sidebar section=        osc_show_widgets('sidebar');
 
But I am unable to say exactly the best pace due to many variables.
tom

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #12 on: May 01, 2014, 07:58:42 pm »
welcome back^^  ;D

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #13 on: May 01, 2014, 08:16:58 pm »
@tomshaft....

My apologies. An obvious misunderstanding on my part. I'll go back and do as you instruct and post back.

Thank you for your help.

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #14 on: May 01, 2014, 11:52:32 pm »
welcome back^^  ;D
Not back. Just stopped by to look around but had to stick a toe in..... You can take over.

Tom