Results 1 to 10 of 134
Threaded View
-
2nd May 2011, 10:01 AM #11OP(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comNo it is a configuration/setting in the database now.
You use:
PHP Code:Core::load()->config('name', 'value');
The admin_links entry contains an array of admin links, so you could do something like this in your mod:
PHP Code:function myAdminLinks() {
$links = Core::load()->parseConfig('admin_links');
$linksCount = count($links);
$myLinks = array(
array('?go=myAdmin', 'SomeThing'),
array('?go=myOtherAdmin', 'Another Thing')
);
// I didnt use array_merge because it will allow duplicate entries
$links = Common::arrayMergeUnique($links, $myLinks);
if(count($links) != $linksCount)
Core::load()->config('admin_links', $links);
}
Core::load()->hook('AdminInit', 'myAdminLinks');
So you can either use something like the above method, or make a sort of install script, then run it once.
E.g. make an installMyMod() function and hook it so it runs on ?go=installMyMod.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] WCDDL Auto Submission Accept Script
By deAthbLisS in forum Completed TransactionsReplies: 14Last Post: 23rd Sep 2011, 12:32 PM -
[Buying] Pre Modded WCDDL Script
By DEViANCE in forum Completed TransactionsReplies: 4Last Post: 15th Jun 2011, 09:08 AM -
[Hiring] for customizing WCDDL script.
By brainst0rm in forum Completed TransactionsReplies: 0Last Post: 17th Oct 2010, 02:09 AM -
WCDDL Theme and Script for KWWH
By Sponge Bob in forum Webmaster ResourcesReplies: 18Last Post: 4th Feb 2010, 12:37 AM -
Customized WCDDL script??
By mobilegangs.com in forum Webmaster ResourcesReplies: 4Last Post: 10th Sep 2009, 08:11 AM
themaCreator - create posts from...
Version 3.55 released. Open older version (or...