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-11 00:58:51

jaydenblair@live.co.uk
Member
From: United Kingdom
Registered: 2011-10-30
Posts: 369
Website

Mobile

I manged to add a link to the mobile site in the top row where the upload, profile, sign in ect links are but the mobile link i added will only show if you are signed in, how can i fix this?

Offline

#2 2012-02-11 08:40:15

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

Re: Mobile

Thats because those urls only appear if the user is logged in. See below code in templates/your-template/header.tpl.php

            <?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 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: ?>
            **** ADD YOUR CODE HERE *****
            <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'); ?>

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

Offline

#3 2012-02-11 12:19:53

jaydenblair@live.co.uk
Member
From: United Kingdom
Registered: 2011-10-30
Posts: 369
Website

Re: Mobile

Thanks it worked

Offline

Board footer

Powered by FluxBB