Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Adding the requiredloginlevel to a static page
Author « Topic »  

Terry Paulhus
Ecommerce Template Expert

Canada
543 Posts

Posted - 12/18/2019 :  06:43:15  
I have found info how and where to add the requiredloginlevel info. However on my pages I have the following code at the top of the page (below) and just wondering how to add this in there... syntax is different.

<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>

Terry (Redsei)

dbdave
ECT Moderator

USA
10278 Posts

Posted - 12/18/2019 :  06:55:23  
Hy Terry, down further in your html, in the content area, should be the include line that's unique for each page.
Try adding it in just before that and don't alter that bit you posted.

David

Terry Paulhus
Ecommerce Template Expert

Canada
543 Posts

Posted - 12/18/2019 :  06:57:38  
Oh I thought I had to put it above the

include "vsadmin/inc/incfunctions.php";


statement.....at least that's what the instructions said?

Terry (Redsei)

Terry Paulhus
Ecommerce Template Expert

Canada
543 Posts

Posted - 12/18/2019 :  07:14:22  
I tried adding it lower... above the head area, in the head area and in the body area... error after error. Any help on this?

Terry (Redsei)

Vince
Administrator

42472 Posts

Posted - 12/18/2019 :  07:51:28  
Hi Terry
How about...

<?php
session_cache_limiter('none');
session_start();
ob_start();
$requiredloginlevel=4;
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Terry Paulhus
Ecommerce Template Expert

Canada
543 Posts

Posted - 12/18/2019 :  08:29:03  
Perfect-exactly what I was looking for...

thanks!

Terry (Redsei)

dbdave
ECT Moderator

USA
10278 Posts

Posted - 12/18/2019 :  10:30:50  
Hi Terry, sorry about that. I think I misunderstood what you were trying to do.
It looks like your all set...

David

Terry Paulhus
Ecommerce Template Expert

Canada
543 Posts

Posted - 12/19/2019 :  05:31:03  
No worries David

Terry (Redsei)
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000