MyBB Community Forums

Full Version: Making text invisible....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I don't trust a mod forum diffrent forums or sites I am useing only mods from here.


And this is possible without a mod, some diffrent forum has this without useing a mod, only yhey don't want to tell us how.

So annyone knows this
Im making a plugin to do this , but u only download from here so it will be no use to you.
i'm sure this plugin is already available in mybb.com plugin releases. but cant find it. so i directed to the main author's site.

if you cant trust these plugins just wait for someone who can make a plugin for you.
If you don't mind it being in the same place as for guests you can use the code I gave you before but add it to the header_welcomeblock_member template instead.

Zinga's plugins are safe though, he's a brilliant coder and used to be a developer for MyBB.
If I set the code and the tekst in the header_welcomeblock_member the rext shows up on the wrong place I need I right at the top of the forums not underneed the logo and welcome balk (where you see, your post, private massage)

I want to have it like the image so underneed the infobar and before the forums
Then you'll need a plugin.
(2010-10-22, 05:19 PM)1master1 Wrote: [ -> ]Ok. Here is the quick solution. Install this plugin
http://mybbhacks.zingaburga.com/showthread.php?tid=260

and open up your newsbar template.

add this before the text you want to hide.
<if !in_array($GLOBALS['mybb']->user['usergroup'], array(guestgroupid,othergroupids)) then>
and close the tag after that text using
/if

now replace the "guestgroupid" with your guest group id which is 1 by default and othergroupid with other ids that you want to hide like banned, awaiting activation and so on. you can use any number of gids separating them with ,

This will show the text only to group ids that are not mentioned here. Smile

Ok I tryed this option, but is this also available to set this in the Header template because if I set this code I see this in the template


Parse error: syntax error, unexpected ';' in /home/*******/domains/myforum.com/public_html/global.php(500) : eval()'d code on line 31
[-]
myforum.com


I have installed the mod
Anny sollution ?? because this don't works on the newsbar template and header template.
you are not assigning the code in right place. please post your template code here.
(2010-10-22, 11:49 PM)1master1 Wrote: [ -> ]you are not assigning the code in right place. please post your template code here.

Header:

Quote:<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
<div class="menu">
<ul>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
</ul>
</div>
<hr class="hidden" />
<div id="panel">
{$welcomeblock}
</div>
</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
<navigation>
<br />
<br>
<br>
<br>
<script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24888, 58533, 'auto', 'auto', '');"><img src="http://www.yourttworld.nl/images/forum images/5.00 button.png"></a> <script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24889, 58533, 'auto', 'auto', '');"><img src="http://www.yourttworld.nl/images/forum images/7.00 button.png"></a> <script src="https://www.targetpay.com/send/include.js"> </script> </script><a href="javascript: targetpay(24890, 58533, 'auto', 'auto', '');"><img src="/images/forum images/8.50 button.png"></a> <script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24891, 58533, 'auto', 'auto', '');"><img src="/images/forum images/10.00 button.png"></a><b> | <img src="http://www.yourttworld.nl/images/forum images/twitterpagina.png"> <a href="http://www.twitter.com/yourttworld" TARGET="_blank">Onze Twitter pagina</a> | <img src="/images/forum images/nieuwsbriefz.png"> <a href="http://www.yourttworld.nl/showthread.php?tid=961" TARGET="_blank">Afmelden nieuwsbrief</a> | <img src="http://www.yourttworld.nl/images/forum images/onlinehulp.png"> <a href="http://www.yourttworld.nl/showthread.php?tid=66" TARGET="_blank">Online hulp</a> |</b>


The red color text need to be invisible for guest and showing up after logging in!
replace your red code with this code

<if $GLOBALS['mybb']->user['usergroup'] != 1 then>
<script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24888, 58533, 'auto', 'auto', '');"><img src="http://www.yourttworld.nl/images/forum images/5.00 button.png" /></a>
<script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24889, 58533, 'auto', 'auto', '');"><img src="http://www.yourttworld.nl/images/forum images/7.00 button.png" /></a> 
<script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24890, 58533, 'auto', 'auto', '');"><img src="/images/forum images/8.50 button.png" /></a> 
<script src="https://www.targetpay.com/send/include.js"> </script><a href="javascript: targetpay(24891, 58533, 'auto', 'auto', '');"><img src="/images/forum images/10.00 button.png" /></a><b> | <img src="http://www.yourttworld.nl/images/forum images/twitterpagina.png" /> <a href="http://www.twitter.com/yourttworld" TARGET="_blank">Onze Twitter pagina</a> | <img src="/images/forum images/nieuwsbriefz.png" /> <a href="http://www.yourttworld.nl/showthread.php?tid=961" TARGET="_blank">Afmelden nieuwsbrief</a> | <img src="http://www.yourttworld.nl/images/forum images/onlinehulp.png" /> <a href="http://www.yourttworld.nl/showthread.php?tid=66" TARGET="_blank">Online hulp</a> |</b>
</if>
Pages: 1 2 3