Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 24, 2012, 07:25:22 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155442
Posts in
21702
Topics by
7734
Members
Latest Member:
zvaigzdzius
WebsiteBaker Community Forum
English
Help & Support
(Moderators:
Argos
,
badknight
)
How to aquire a page file name by using page id
Pages: [
1
]
Go Down
Author
Topic: How to aquire a page file name by using page id (Read 340 times)
phillbooth
Offline
Posts: 27
How to aquire a page file name by using page id
«
on:
October 07, 2008, 09:43:40 AM »
Hi i need to set up a system that allows me to re-direct users that are logged in to a different page than those who are not. Iv been able to do this (as below) but xxx.php may be renamed (by other people) and I dont want to have to keep comming back and edditing the template so is there anyway I can use the page ID to GET the file name of the page?
i.e. $WB_ID=20->$file_name;
--------------------
Working code:
if(FRONTEND_LOGIN AND $wb->is_authenticated()) {
header('Location: '.WB_URL.'/pages/xxx1.php');
}elseif{
header('Location: '.WB_URL.'/pages/xxx2.php');
}
Thanks!
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...