Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Custom Pages
DogHam
✭
Comments
@DogHam I suggest you read the instructions that come with a plugin before posting here.
What version of Vanilla are you running?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
My vanilla is Version 2.0.18.4
Sorry maybe I don't understand the descripion I can't speak english very well.
What you do is you clone the default.php page in the pages folder of the Custom pages Plugin. not the default.php of the Plugin. They are both called default.php
You name each page something else. And put them in the pages folder. Then you can custom route the pages .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I did exacly what you wrote vrjvlinder
I have 3 Files:
Advertise.php
default.php
News.php
It's showing always the "advertise" page when I go to "/plugin/page/news.php"
@DogHam
I assume you are using the Custom Pages plugin. Per the description, you need to add the pages your want to the pages folder of the plugin.
If you are unsure of what you want to do, copy the
/plugins/CustomPages/pages/default.php
file and name it something else. For example, say I want a page called About. I would copy the default.php file to/plugins/CustomPages/pages/about.php
. Then I can edit that file to be whatever I want. That page is can be viewed athttp://www.yoursite.com/plugin/page/about
.You can have as many as you want by copying and renaming it to something else.
EDIT - @vrijvlinder beat me to it.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
/plugin/CustomPages/pages/news.php
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ok you need to create a custom route in the Dashboard
go to Routes and add a Route
Route= News
Target= plugin/CustomPages/pages/news.php
Type= Internal
assuming you placed the new pages in the pages folder, make sure the url says pages not page
this /plugin/CustomPages/pages/news.php
not this /plugin/page/news.ph
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Maybe i'm idio* but it's not working
did you enable the plugin in the dashboard?
do you have a link maybe?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Of course.
moneytalkforum.org
In Dashboard -> Custom Pages I have shown the advertise.php and no settings or something else.
You installed the forum in the root directory ?
This may have to do with htaccess file
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
I have hosting from GoDaddy. It's in root directory.. istalled in "/"
I also put news.php into the root directory and tryed but it's the error page.
I changed only the text in default.php. May I have to change something else?
try changing this in your conf/config.php the default is FALSE
$Configuration['Garden']['WebRoot'] = TRUE; // You can set this value if you are using htaccess to direct into the application, but the correct webroot isn't being recognized.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
hmm... Webroot is missing. So I added it but nothing happend.
I can see the page here
http://moneytalkforum.org/plugin/page/news.php
tell me if it is the correct page. If it is then that is the way to write the url
try saving the pages in separate page folder.
so you have
plugin/CustomPages/pages/page1/news.php
and use that in the routes see if it works
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Yes I can see it now too.
THANK YOU SO MUCH FOR YOUR HELP ... again!
news.php should be placed in the
/plugins/CustomPages/pages/
folder.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
well ok then good for you!
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌