The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Hide links to users - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: Hide links to users (/showthread.php?tid=688)

Pages: 1 2 3


Hide links to users - Brandin - 08-26-2017

The issue is in your navigation right? If so, please paste that.

Your issue is most likely this spacing you have in here
<? Php if (checkMenu (2, $ user-> data () -> id)) {?> <! - Link -> <? Php}?>

Try this:
Code:
<?php if(checkMenu(2,$user->data()->id)) {?><a href="#" Link</a><?php } ?>



Hide links to users - dormido - 08-26-2017

Many thanks to everyone for their support, they were definitely not the spaces and try with
Code:
hasPerm
and
Code:
checkMenu
but everything went wrong. I guess I have to forget that blog, thank you very much.


Hide links to users - Brandin - 08-26-2017

Is the error coming from your navigation? What is the whole error including file and line? Can you paste that file?


Hide links to users - dormido - 08-26-2017


<pre>
Code:
<aside id="sidebar-left" class="sidebar-left">
                
                    <div class="sidebar-header">
                        <div class="sidebar-title">
                            Barra de navegación
                        </div>
                        <div class="sidebar-toggle hidden-xs" data-toggle-class="sidebar-left-collapsed" data-target="html" data-fire-event="sidebar-left-toggle">
                            <i class="fa fa-bars" aria-label="Toggle sidebar"></i>
                        </div>
                    </div>
                
                    <div class="nano">
                        <div class="nano-content">
                            <nav id="menu" class="nav-main" role="navigation">
                                <ul class="nav nav-main">
                                    <?php if (checkMenu(2,$user->data()->id)){  //Links for permission level 2 (default admin) ?>
                                    <li><a href="escritorio.php"><i class="fa fa-home" aria-hidden="true"></i><span>Escritorio</span></a></li>
                                    <li class="nav-parent">
                                        <a>
                                            <i class="fa fa-tasks" aria-hidden="true"></i>
                                            <span>Blog</span>
                                        </a>
                                        <ul class="nav nav-children">
                                            <li>
                                                <a href="../blog">
                                                     Ver blog
                                                </a>
                                            </li>
                                            <li>
                                                <a href="administrar-blog.php">
                                                     Administrar blog
                                                </a>
                                            </li>
                                            <li>
                                                <a href="nuevo-post.php">
                                                     Agregar post
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li><a href="administrar-paginas.php"><i class="fa fa-copy" aria-hidden="true"></i><span>Páginas</span></a></li>
                                    <li><a href="admin_permissions.php"><i class="fa fa-lock" aria-hidden="true"></i><span>Permisos</span></a></li>
                                    <li><a href="admin_users.php"><i class="fa fa-user" aria-hidden="true"></i><span>Usuarios</span></a></li>
                                    <li><a href="email_settings.php"><i class="fa fa-paper-plane" aria-hidden="true"></i><span>Configuración Email</span></a></li>
                                    <?php } // is user an admin ?>
                                    <li>
                                        <a href="mailbox-folder.html">
                                            <span class="pull-right label label-primary"><?=$msgC?></span>
                                            <i class="fa fa-envelope" aria-hidden="true"></i>
                                            <span>Mensajes</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="http://shoropiolabs.com/" target="_blank">
                                            <i class="fa fa-external-link" aria-hidden="true"></i>
                                            <span>Example <em class="not-included">(http://ejemplo.php/)</em></span>
                                        </a>
                                    </li>
                                </ul>
                            </nav>
                
                        </div>
                
                    </div>
                
                </aside>
</pre>



Hide links to users - dormido - 08-26-2017

Sorry, https://hastebin.com/uwoboboqot.xml


Hide links to users - dormido - 08-26-2017

https://hastebin.com/zedekoqopi.xml


Hide links to users - Brandin - 08-27-2017

What changes did you make to the admin blog? Can you post that code?
administrar-blog.php


Hide links to users - dormido - 08-27-2017

This https://hastebin.com/xuyevorapo.xml


Hide links to users - Brandin - 08-27-2017

Try moving
Code:
$query = $db->query("SELECT * FROM blog ORDER BY datetime");
Line 8 above the foreach statement on line 90. Did it break after you added this header on line 47 and this lateral on line 50?


Hide links to users - dormido - 08-27-2017

I work, congratulations friend you are good.