Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
Como pongo Panel Control?
dark_topo   20 Oct, 2011, 6:33 pm
#1
Bno creo que el titulo es bastante especifico, lo que quiero hacer es Colocar un boton o algo para acceder al panel de control muchas gracias
[Imagen: je79uVTUBllvW.jpg]
Omar G.   20 Oct, 2011, 6:43 pm
#2
Tendrias que agregarlo en el header.
Cluster   20 Oct, 2011, 7:24 pm
#3
puedes poner el link y ya, y para que solo lo vean los usuarios usa el Template Conditionals

:)
dark_topo   20 Oct, 2011, 7:24 pm
#4
(20 Oct, 2011, 6:43 pm)Sama34 escribió: Tendrias que agregarlo en el header.

Código PHP:
<?php 
<a name="top" id="top"></a>
<
div id="header">
<
table width="100%" cellpadding="0" cellspacing="0">
<
tr>
<
td height="36px">
<
div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
</
td></tr>
<
tr><td>
<
div class="menu">
<
ul>
<
li><a href="index.php" class="activate">Foro</a></li>
<
li></li>
<
li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
<
li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
</
ul>
</
div>
</
td>
<
td>
{
$welcomeblock}
</
td>
</
tr>
</
table>
</
div> <hr class="hidden" />

<
br/>
<
div id="hmenu">
<
a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a>
<
a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a>
<
div style="float: right;margin-right: 5px;">
<
form method="post" action="{$mybb->settings['bburl']}/search.php" style="margin: 1px;">
<
input type="text" class="textbox" name="keywords" placeholder="Search..." size="30" style="width: 230px; height: 18px;" />
<
input type="image" class="button-search" src="{$mybb->settings['bburl']}/images/blueoverlay/search.gif" name="submit"/>
<
input type="hidden" name="action" value="do_search" /><input type="hidden" name="postthread" value="1" checked="checked" />
<
input type="hidden" name="showresults" value="threads" checked="checked" />
</
form>
</
div>
</
div>
<
div id="container">
<
div id="content">
<
hr class="hidden" />
<
br class="clear" />

{
$pm_notice}
{
$bannedwarning}
{
$bbclosedwarning}
{
$unreadreports}
{
$pending_joinrequests}
<
navigation>
<
br />

Ahy esta el headeramigo espero que me puedas ayudar
Ryuuseiken   20 Oct, 2011, 7:31 pm
#5
Deberias editar el header_welcomeblock_member, pero bueno ahì ya te lo puse en el header.

Código PHP:
<?php 
<a name="top" id="top"></a>
<
div id="header">
<
table width="100%" cellpadding="0" cellspacing="0">
<
tr>
<
td height="36px">
<
div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
</
td></tr>
<
tr><td>
<
div class="menu">
<
ul>
<
li><a href="index.php" class="activate">Foro</a></li>
<
li></li>
<
li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
<
li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
<
li><a href="{$mybb->settings['bburl']}/usercp.php?action=options">Panel de Control</a></li>
</
ul>
</
div>
</
td>
<
td>
{
$welcomeblock}
</
td>
</
tr>
</
table>
</
div> <hr class="hidden" />

<
br/>
<
div id="hmenu">
<
a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a>
<
a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a>
<
div style="float: right;margin-right: 5px;">
<
form method="post" action="{$mybb->settings['bburl']}/search.php" style="margin: 1px;">
<
input type="text" class="textbox" name="keywords" placeholder="Search..." size="30" style="width: 230px; height: 18px;" />
<
input type="image" class="button-search" src="{$mybb->settings['bburl']}/images/blueoverlay/search.gif" name="submit"/>
<
input type="hidden" name="action" value="do_search" /><input type="hidden" name="postthread" value="1" checked="checked" />
<
input type="hidden" name="showresults" value="threads" checked="checked" />
</
form>
</
div>
</
div>
<
div id="container">
<
div id="content">
<
hr class="hidden" />
<
br class="clear" />

{
$pm_notice}
{
$bannedwarning}
{
$bbclosedwarning}
{
$unreadreports}
{
$pending_joinrequests}
<
navigation>
<
br />
dark_topo   20 Oct, 2011, 8:50 pm
#6
(20 Oct, 2011, 7:31 pm)Ryuuseiken escribió: Deberias editar el header_welcomeblock_member, pero bueno ahì ya te lo puse en el header.

Código PHP:
<?php 
<a name="top" id="top"></a>
<
div id="header">
<
table width="100%" cellpadding="0" cellspacing="0">
<
tr>
<
td height="36px">
<
div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
</
td></tr>
<
tr><td>
<
div class="menu">
<
ul>
<
li><a href="index.php" class="activate">Foro</a></li>
<
li></li>
<
li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
<
li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
<
li><a href="{$mybb->settings['bburl']}/usercp.php?action=options">Panel de Control</a></li>
</
ul>
</
div>
</
td>
<
td>
{
$welcomeblock}
</
td>
</
tr>
</
table>
</
div> <hr class="hidden" />

<
br/>
<
div id="hmenu">
<
a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a>
<
a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a>
<
div style="float: right;margin-right: 5px;">
<
form method="post" action="{$mybb->settings['bburl']}/search.php" style="margin: 1px;">
<
input type="text" class="textbox" name="keywords" placeholder="Search..." size="30" style="width: 230px; height: 18px;" />
<
input type="image" class="button-search" src="{$mybb->settings['bburl']}/images/blueoverlay/search.gif" name="submit"/>
<
input type="hidden" name="action" value="do_search" /><input type="hidden" name="postthread" value="1" checked="checked" />
<
input type="hidden" name="showresults" value="threads" checked="checked" />
</
form>
</
div>
</
div>
<
div id="container">
<
div id="content">
<
hr class="hidden" />
<
br class="clear" />

{
$pm_notice}
{
$bannedwarning}
{
$bbclosedwarning}
{
$unreadreports}
{
$pending_joinrequests}
<
navigation>
<
br />

Hehehe no funciono amigo quedo peor xD

Gracias de todas maneras Wink

Olvidalo ya funciono era un error de mi firefox xD

Thanks bro Smile
Omar G.   20 Oct, 2011, 9:15 pm
#7
Veo que ya pudiste, o me equivoco?
dark_topo   20 Oct, 2011, 9:17 pm
#8
(20 Oct, 2011, 9:15 pm)Sama34 escribió: Veo que ya pudiste, o me equivoco?

Si gracias
puedes cerrar el tema Wink
Omar G.   20 Oct, 2011, 9:31 pm
#9
Ok, lo unico es que es visible para todos, si tienes el plugin PHP In Templates o Template Conditionals, envuelve tu codigo en esto:
Código PHP:
<?php 
<if ($mybb->user['usergroup'] != '1') then>
//codigo aqui...
</if>
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.