Not Solved [Flatty] Putting Image Above Forum Name
#5
Not Solved
(2016-01-30, 06:30 AM).m. Wrote: okay. basically there are two methods for your requirement.
you can use template conditionals plugin and add required code segment wrapped with a condition
html code at required place in the header template
<if $mybb->user['uid'] < 1 then>
<div style="text-align: center;">steam button code</div>
</if>

or you can use css method
either fixed div element or hide the code segment for other user groups & display it to guests
html code at required place in the header template
<div class="guestnotice gnote{$mybb->user['usergroup']}">steam button code</div>
css code at the bottom of global.css of the theme (edit through admin panel & in advanced mode)
.guestnotice {display: none;
text-align: center;}
.gnote1 {display: block;}

Thanks for the reply, this wont show the steam button to someone already logged in? Smile
nvm read the post properly

(2016-01-30, 06:30 AM).m. Wrote: okay. basically there are two methods for your requirement.
you can use template conditionals plugin and add required code segment wrapped with a condition
html code at required place in the header template
<if $mybb->user['uid'] < 1 then>
<div style="text-align: center;">steam button code</div>
</if>

or you can use css method
either fixed div element or hide the code segment for other user groups & display it to guests
html code at required place in the header template
<div class="guestnotice gnote{$mybb->user['usergroup']}">steam button code</div>
css code at the bottom of global.css of the theme (edit through admin panel & in advanced mode)
.guestnotice {display: none;
text-align: center;}
.gnote1 {display: block;}
Hi I used the non css method, and its centered horizontally but how would I go about centering it vertically as well? (in the space that is has) Sorry for being an inconvenience if this is a noobie question.

Okay, I used my head and added padding to the top of the Steam button in the styles. Thanks so much .m.
Reply


Messages In This Thread
[Flatty] Putting Image Above Forum Name - by adma - 2016-01-30, 04:40 AM
RE: [Flatty] Putting Image Above Forum Name - by adma - 2016-01-30, 07:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)