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.
How to change url of Contact plugin
Chanux
✭✭
@vrijvlinder This is a verry usefull and nice one. i have a problem.
How to change url of Contact plugin
as example deffauld url is
Domain.com/plugin/contact.
but i want to addDomain.com/plugin/chanux.
can we add this without Plugin part.. ex
Domain.com/chanux
0
Comments
You can use http://vanillawiki.homebrewforums.net/index.php/Routes
There was an error rendering this rich post.
@Tama i think this is the answer for 2nd question. im using it. but i have no idea how to use it in plugin
This is my URL http://geek.lk/plugin/page/games i routed it to http://geek.lk/games
If you are looking to add a route pragmatically, check out SetRoute in class.router.php.
E.g:
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.
I put the instructions on the plugin page , replace the setup function with this one. at the very end
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder i tried and couldn't. you have created your plugin url without routing.
i mean
domain.com/plugin/contact
i want to create a new plugin with custome page. when enable the plugin, should create a additional page like
domain.com/plugin/chanux
ordomain.com/chanux
i dont want to use custome page plugin or Routing system. you created it using few lines in Default.php
could you help me to create my own page ??
@Chanux You can create a new "page" on any controller using the create magic method.
E.g:
This will "create" a url at http://www.example.com/plugin/chanux.
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.
I don't think so Chanux, I use it on 6 forums without problems and I used that code up there to route.
If it does not work you must have done something wrong. The link it under this function, you would need to change this part from contact to whatever. and also add the route code from above.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@hgtonight yes. that is the answer.. Thanx
@vrijvlinder Problem solved. Thanx