News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Redirect after mod installation

Started by checkmater, December 15, 2013, 10:29:46 AM

Previous topic - Next topic

checkmater

Good day, I'm trying to code a redirection for my mod, but I have no idea how to do it, I added a

redirectexit('path_to_mod')

at the end of my install.php file but everytime I try to install my mod, I get redirected but the mod is not installed, I have this on my package-info file:

<install for="2.0.6">
<readme>readme.txt</readme>
<modification>modification.xml</modification>
<code>install.php</code>
</install>



Any suggestion on how to perform it?

Thanks in advance!
SMF, other software developing and some other stuff on my website, you can also hire someone at myFreelancing website . xD

Arantor

Inside the <install> block, preferably as the last time, you can use <redirect>

For example, SimpleDesk has:
<redirect url="?action=admin;area=corefeatures#js_feature_shd" />

I can't remember if the ? is required or not though, that was 3 years ago I wrote that...
Holder of controversial views, all of which my own.


checkmater

Yep it works, and yes we need to use the ?.

Thank you very much!
SMF, other software developing and some other stuff on my website, you can also hire someone at myFreelancing website . xD

Advertisement: