Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2016-10-20 18:07:10

Blueeyez
Member
Registered: 2016-04-04
Posts: 81
Website

create new page next to Index, User list, Rules, Search Profile...

I know i can add a page in the admistration panel, but how do i create the page files and where? Also what template do they use?

Some docuemntation or well spoken feedback please! :-)

Offline

#2 2016-10-21 08:42:00

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,263
Website

Re: create new page next to Index, User list, Rules, Search Profile...

You create new files in the FluxBB root, and they must be .php files. You must also include header.php and footer.php in your file if you wish to show the forum header and footer.

See this topic for more information: https://fluxbb.org/forums/viewtopic.php?id=7614


Download Panther - The dawn of a new age in forum software.
Why should I use Panther? | Panther demo | Convert to Panther

Offline

#3 2016-10-21 09:58:27

Blueeyez
Member
Registered: 2016-04-04
Posts: 81
Website

Re: create new page next to Index, User list, Rules, Search Profile...

i tried with this:

created links.php and added this code in it:
URL: https://linuxviden.dk/links.php

<?php

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'header.php';

/* 
Content
*/
Content

<?php

require PUN_ROOT.'footer.php';

but i just get a blank page?

i added a few more things in the file.. but dont know what ice done wrong?

Offline

#4 2016-10-21 10:17:32

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,093

Re: create new page next to Index, User list, Rules, Search Profile...

See error.log file in server.


My modification of FluxBB 1.5.10 - rev.75 * Parserus - BBCode parser
I speak only Russian  tongue

Offline

#5 2016-10-21 13:09:58

Blueeyez
Member
Registered: 2016-04-04
Posts: 81
Website

Re: create new page next to Index, User list, Rules, Search Profile...

cant find a error.log file on the server?

Offline

#6 2016-10-22 07:32:54

Otomatic
FluxBB Donor
From: Paris - France
Registered: 2010-01-26
Posts: 530
Website

Re: create new page next to Index, User list, Rules, Search Profile...

Blueeyez wrote:

cant find a error.log file on the server?

If your host does not allow you to see the log files, change of host!


Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Ghandi
An error does not become truth by reason of multiplied propagation. Ghandi

Offline

#7 2016-10-22 12:09:58

Blueeyez
Member
Registered: 2016-04-04
Posts: 81
Website

Re: create new page next to Index, User list, Rules, Search Profile...

My host has an way to see log files, but there is no log files to see...

Offline

#8 2016-10-22 12:14:43

Blueeyez
Member
Registered: 2016-04-04
Posts: 81
Website

Re: create new page next to Index, User list, Rules, Search Profile...

my host has earlier supported this feature, but now i have to contact them over e-mail oto get the www logs.. so i have contacted them..

Offline

#9 2016-10-22 13:30:39

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,263
Website

Re: create new page next to Index, User list, Rules, Search Profile...

The problem with your code above is that you're breaking back into PHP without breaking out of it for your content, and the second string 'Content' is not being commented. That's generating a parse error.

But I would recommend that you make sure that you can see errors in your PHP files. This is generally handled through the following PHP INI settings: error_reporting (should be E_ALL), display_errors, display_startup_errors, log_errors, track_errors, error_log

Last edited by chris98 (2016-10-22 13:31:26)


Download Panther - The dawn of a new age in forum software.
Why should I use Panther? | Panther demo | Convert to Panther

Offline

#10 2016-10-23 21:24:12

Blueeyez
Member
Registered: 2016-04-04
Posts: 81
Website

Re: create new page next to Index, User list, Rules, Search Profile...

Thanks chris98!
An answer i could use! :-)

<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'header.php';
?>
Text on site
<?php
require PUN_ROOT.'footer.php';
?>

Offline

Board footer

Powered by FluxBB