NamelessMC

Internet Explorer

Internet Explorer is not supported. Please upgrade to a more modern browser.

Solved Where are located all the custom pages?
Started by Ariuw

Ariuw

Ariuw

Contributor
Joined
28 May 2016
Last Seen
26 Apr 2024
Topics
13
Posts
70

Hello! I am here to ask where are the custom pages located? please help

x1
<p>• 22 | @ElReinoOficial</p>
Ariuw · over 8 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
08 May 2024
Topics
41
Posts
1054

They are stored in the database, but the template used to display the content is pages/extra.php

It's worth noting that the extra.php file is used for all custom pages, so you can't really customise on a per-page basis.

Samerton · over 8 years ago
Ariuw

Ariuw

Contributor
Joined
28 May 2016
Last Seen
26 Apr 2024
Topics
13
Posts
70
Samerton said:

They are stored in the database, but the template used to display the content is pages/extra.php

It's worth noting that the extra.php file is used for all custom pages, so you can't really customise on a per-page basis. 

Ok.. I am looking for a way to create a report system as like Staff Aplications is and I can't can you help me?

<p>• 22 | @ElReinoOficial</p>
Ariuw · over 8 years ago
Samerton

Samerton

Owner
Joined
30 Mar 2015
Last Seen
08 May 2024
Topics
41
Posts
1054

You'd need to code this manually using PHP instead of using the custom page system. I can't really help too much but you can look at the built-in forum report system as a start (the files you'd need to look at are pages/forum/report_post.php and pages/mod/reports.php, you can look at these and base your own code off them).

This is a good idea for a future built-in feature though, I can try and add one for version 1.2.

Samerton · over 8 years ago
Ariuw

Ariuw

Contributor
Joined
28 May 2016
Last Seen
26 Apr 2024
Topics
13
Posts
70
Samerton said:

You'd need to code this manually using PHP instead of using the custom page system. I can't really help too much but you can look at the built-in forum report system as a start (the files you'd need to look at are pages/forum/report_post.php and pages/mod/reports.php, you can look at these and base your own code off them).

This is a good idea for a future built-in feature though, I can try and add one for version 1.2.

Thanks! 

<p>• 22 | @ElReinoOficial</p>
Ariuw · over 8 years ago