Internet Explorer is not supported. Please upgrade to a more modern browser.
Hello! I need your help for something, I want to change the "www.mywebsite.com/apply" thing to a new one like this one: "www.mywebsite.com/staffapps" how do I do that? please help
Greetings
Samerton said:Try renaming pages/apply.php to pages/staffapps.php, and then replace the contents of core/modules/Staff_Applications/iniialisation.php with this code.
Done, but when I click in "Accepted" it redirects me to http://mywebsite.com/mod/applications/?view=accepted​ and I want it to be http://mywebsite.com/mod/staffapps/?view=accepted
Sorry if I am annoying :(
In that case you'll need to change line 62 of pages/staffapps.php to
'url' => '/mod/staffapps/?app=' . $app_id,
and line 6 of pages/mod/sidebar.php needs changing so instead of the href attribute being "/mod/applications" it needs to be "/mod/staffapps", and finally, you need to rename pages/mod/applications.php to pages/mod/staffapps.php, and then you need to edit the file and change every occurrance of the text "/mod/applications" to "/mod/staffapps" within the file.
Samerton said:In that case you'll need to change line 62 of pages/staffapps.php to
and line 6 of pages/mod/sidebar.php needs changing so instead of the href attribute being "/mod/applications" it needs to be "/mod/staffapps", and finally, you need to rename pages/mod/applications.php to pages/mod/staffapps.php, and then you need to edit the file and change every occurrance of the text "/mod/applications" to "/mod/staffapps" within the file.
It doesn't work I've changed everything, but when I click in accepted it still redirects me to /mod/applications/?view=accepted
You'll still need to edit pages/mod/applications.php and replace every occurrance of "mod/applications" to "mod/staffapps", that's the only cause.
Samerton said:You'll still need to edit pages/mod/applications.php and replace every occurrance of "mod/applications" to "mod/staffapps", that's the only cause.
I've already do that and I can't find any way of what it isn't working :/
Have you cleaned your browser cache?
i have gotten my self in trouble for this
just food for thought...
barecool said:Have you cleaned your browser cache?
i have gotten my self in trouble for this
just food for thought...
Yeah I've do that already, the problem is that when I click in accepted or declined. it redirects me to http://mywebsite.com/mod/applications/?view=accepted and I want it to be: http://mywebsite.com/mod/staffapps/?view=accepted
Ah right, in that case you need to change your language file.
The exact line number depends on which translation you're using, but if you open the language file (in styles/language) with a text editor and run a search for "viewing_open_applications", you need to change the link within this line and the two lines afterwards as well.