Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2012-02-15 04:35:31

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

[HOW TO] Remove Top Menu Links..

Edit - templates/your-template/header.tpl.php

Then select from all this code or the the links you want to remove:


<div class="top-links">
            <?php if (VAuth::loggedin()): echo __('welcome'),' '; ?>
            <a href="<?php echo RELATIVE_URL; ?>/user/dashboard/"><strong><?php echo e($_SESSION['username']); ?></strong></a> &middot;
            <a href="<?php echo RELATIVE_URL; ?>/user/dashboard"><strong><?php echo __('dashboard'); ?></strong></a> &middot;
            <a href="<?php echo RELATIVE_URL; ?>/users/<?php echo e($_SESSION['username']); ?>/"><strong><?php echo __('profile'); ?></strong></a> &middot;
            <a href="<?php echo RELATIVE_URL; ?>/upload/"><strong><?php echo __('upload'); ?></strong></a> &middot;
            <a href="<?php echo RELATIVE_URL; ?>/user/logout/"><strong><?php echo __('log-out'); ?></strong></a>
            <?php else: ?>
            <a href="<?php echo RELATIVE_URL; ?>/user/signup/" rel="noffolow"><?php echo __('signup'); ?></a> &middot;
            <a href="<?php echo RELATIVE_URL; ?>/user/login/" rel="noffolow"><?php echo __('login'); ?></a> &middot;
            <a href="<?php echo RELATIVE_URL; ?>/kb/" rel="nofollow"><?php echo __('help'); ?></a>
            <?php endif; ?>
            <?php echo p('language'); ?>
        </div>
        <div id="search">
            <ul>
                <li><span id="search-video"<?php if ($this->menu == 'home' OR $this->menu == 'video'): echo ' class="active"'; endif; echo '>',__('videos'); ?></span></li>


Thnx Adrian!  ;-)

Last edited by xsporntv (2012-02-15 04:36:11)

Offline

#2 2012-02-15 08:03:52

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [HOW TO] Remove Top Menu Links..

I think you selected more code that its necesary. You will also remove the search. Should i edit your code?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2012-02-19 22:19:14

xsporntv
Member
Registered: 2011-04-20
Posts: 139
Website

Re: [HOW TO] Remove Top Menu Links..

No thank you.  I put the entire code only to show all options if the person chooses to edit the top menu links.

Cheers!

Offline

Board footer

Powered by FluxBB