link on log out

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
dragoth
BBCoder III
BBCoder III
Posts: 81
Joined: 05 Mar 2010, 02:57

link on log out

Post by dragoth »

well alright i made my own custom page and when your loged-in to the forum and click a link like domain.com/rules.php and it logs you out for no reason its my own custom page that i added
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: link on log out

Post by cisco007 »

what does the rules.php file look like?
dragoth
BBCoder III
BBCoder III
Posts: 81
Joined: 05 Mar 2010, 02:57

Re: link on log out

Post by dragoth »

Code: Select all

<?php
/**
*
* @package phpBB3
* @version $Id: template.php Raimon $
* @copyright (c) 2008 Raimon ( http://www.phpBBservice.nl )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/rules');

// Output page
page_header($user->lang['rules']);

$template->set_filenames(array(
	'body' => 'rules_body.html')
);

page_footer();

?>
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: link on log out

Post by Stoker »

Just a quickie you could try

Open includes/functions.php
Find:

Code: Select all

'U_FAQ'
add before:

Code: Select all

'U_RULESPAGE'			=> append_sid("{$phpbb_root_path}rules.$phpEx"),
and when you need to create a link use this code:

Code: Select all

<a href="{U_RULESPAGE}">Rules</a>
Board rules! No PM support
dragoth
BBCoder III
BBCoder III
Posts: 81
Joined: 05 Mar 2010, 02:57

Re: link on log out

Post by dragoth »

i try that and it take me to the home http://postfactory.co.cc/index.php?sid= ... b023488354 never mind found the problem i thought it was missing something
Last edited by dragoth on 27 Apr 2010, 20:28, edited 1 time in total.
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: link on log out

Post by Steve »

Stoker missed a line try this:

Code: Select all

    <a href="{U_RULESPAGE}">Rules</a>
NAPWR wrote: Nice, Stoker is Hot
dragoth
BBCoder III
BBCoder III
Posts: 81
Joined: 05 Mar 2010, 02:57

Re: link on log out

Post by dragoth »

after i posted that i seen the problem
Locked