• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Reddit two headers instead of just one

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 527 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JoMa25
    last edited by Apr 15, 2020, 1:54 PM

    Hey Guys, I’m new to the MM community and wanted to put in a Reddit module I found on this forum. (https://github.com/kjb085/MMM-Reddit) Now as you can see in this image, I have two headers instead of just one. Does anyone know a solution? Some other user posted the same issue in the forum of the module maker but he didnt response (12 days ago).

    {
    			module: "MMM-Reddit",
    			position: "top_right",
    			config: {
        				subreddit: 'aww',
    				displayType: 'image',
    				imageQuality: 'high',
    				count: 10,
    				show: 1,
    				width: 500,
    				showNumComments: false,
    				showHeader: true,
    			}
    		},
    
    B 1 Reply Last reply Apr 15, 2020, 3:02 PM Reply Quote 0
    • B Offline
      bhepler Module Developer @JoMa25
      last edited by bhepler Apr 15, 2020, 3:07 PM Apr 15, 2020, 3:02 PM

      @JoMa25 - try turning off the showHeader in your config and see if one of the headers goes away. I didn’t look at the code, but it’s possible the module creator implemented his own header before the Magic Mirror framework started doing it.

      You can probably turn off the module-specific header and use the MagicMirror’s framework header. I don’t know if the header is supposed to be dynamic in the module, but a decent workaround may be:

      module: "MMM-Reddit",
      	position: "top_right",
              header: "Topics from s/aww",
      	config: {
                     subreddit: 'aww',
      	       displayType: 'image',
      		imageQuality: 'high',
      		count: 10,
      		show: 1,
      		width: 500,
      		showNumComments: false,
      		showHeader: false,
           }
      
      J 1 Reply Last reply Apr 15, 2020, 3:07 PM Reply Quote 0
      • J Offline
        JoMa25 @bhepler
        last edited by Apr 15, 2020, 3:07 PM

        This post is deleted!
        B 1 Reply Last reply Apr 15, 2020, 3:08 PM Reply Quote 0
        • B Offline
          bhepler Module Developer @JoMa25
          last edited by Apr 15, 2020, 3:08 PM

          @JoMa25 - sorry, was bouncing around abit on my code. See my edited post for an alternative.

          J 1 Reply Last reply Apr 15, 2020, 3:11 PM Reply Quote 0
          • J Offline
            JoMa25 @bhepler
            last edited by Apr 15, 2020, 3:11 PM

            @bhepler your custom header doesnt show

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            1 / 1
            • First post
              1/5
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy