The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Hide widgets on Blog View

View previous topic View next topic Go down

Solved Hide widgets on Blog View

Post by Luffy on Sun Apr 24, 2016 11:31 am

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari, Other
Screenshot of problem : http://i86.servimg.com/u/f86/19/06/26/04/image10.jpg
Who the problem concerns : All members
Forum link : http://www.thinktankforum.net

Description of problem

Hello,

I would like the widgets that appear on the Blog View of Posts to disappear but only in the Blog Categories and not to the rest of the forum. Is that possible?

On my forum there's no category like that now but i am working on it to make it as i like.

If someone know something that could help me that'd be appreciated!

Edit: I currently use this code in the topics_blog_box and viewcomments_body templates. But is this code ok? I mean does it affect anything else and will i have future trouble on something?
Code:
 #content-container div#main {
    margin-bottom: 1em;
    overflow: hidden;
    width: 120%;
}
  #right{display:none}

Thanks a lot,
Regards,
Luffy :rose:

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Hide widgets on Blog View

Post by Luffy on Mon Apr 25, 2016 12:06 pm

Bump!






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Hide widgets on Blog View

Post by Ange Tuteur on Tue Apr 26, 2016 6:04 pm

@Luffy including those style rules in your templates shouldn't cause a problem. In fact it's better that way because you wont need to use JavaScript to tell what page the user is on. ( e.g. blogs, topics, forums.. ) However, I'd recommend using these rules :
Code:
#right { display:none; }
#content-container div#container, #content-container div#content { margin-right:0; }

Because they'll reset the margins to 0 so the page content will have full width. That way you wont need to increase the width to 120%.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Hide widgets on Blog View

Post by Luffy on Tue Apr 26, 2016 6:38 pm

Thank you @Ange Tuteur,

That seems to work perfectly!

My question is now solved! Smile

Luffy :rose:






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Hide widgets on Blog View

Post by brandon_g on Tue Apr 26, 2016 6:54 pm

Thanks for the help again as always Ange. You are truly awesome Very Happy.

Topic solved and archived ~ brandon_g


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum