Results 31 to 40 of 134
-
2nd May 2011, 01:05 AM #31
-
2nd May 2011, 09:35 AM #32OP(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comAs I said before, 'delayed by a day', so hopefully today.
Mr Happy, here's an example admin module now:
PHP Code:function myAdminPage($go) {
if($go != 'myAdminPage') return false;
// output some html here
// and handle things
}
Core::load()->hook('AdminHandleContent', 'myAdminPage');
Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
2nd May 2011, 09:46 AM #33MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comso....now we have to add the admin links manually in admin page? i am a little confused
-
2nd May 2011, 10:01 AM #34OP(╯?□?)╯︵ ┻━┻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!
-
2nd May 2011, 10:06 AM #35Respected Member
I have feature suggestion JmZ. How about adding static page creator. A lot of people have DMCA, TOS, Advertise and other pages, so mod for that would be useful, I think. Also "installed by default" contact page would be nice. I know you try to keep it as small as possible but every download need contact and those pages I talked about.
-
2nd May 2011, 10:33 AM #36Respected DeveloperWebsite's:
wrzc.orgBetter idea. On the list modules pade can we have a link for each module that runs installMyMod function. Would also be cool to have a uninstallMyMod link. Maybe use if function exists so it only shows is these functions are available. That way all people have to do is upload the module and click the install link for it.
EDIT
A checkupdateMyMod function would be cool too though not necessary. If the returned code is_numeric the it checks with the version hardboard and displays the builtin message if an update existsTutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
2nd May 2011, 11:23 AM #37OP(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comHooks exist for you to implement such features.
You can make the update thing by hooking to the admin content, e.g. make an updateCheck page which loops through Core::load()->getModules() and checks each for an update method.
Example:
PHP Code:function updateChecker($go) {
if($go != 'updateChecker') return false;
foreach(Core::load()->getModules() as $module) {
// $module is an array($filename, $path)
// $filename being like 'wcddl_mymod.php'
$name = substr($module[0], 6, -4);
if(function_exists($name . '_updateCheck')) {
$updateNeeded = call_user_func($name . '_updateCheck');
if($updateNeeded)
echo $name . ' - UPDATE AVAILABLE!<br />';
}
}
}
Core::load()->hook('AdminHandleContent', 'updateChecker');
Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
2nd May 2011, 05:36 PM #38Respected DeveloperWebsite's:
wrzc.orgOK I know you can do that but it would be really cool if at least the install one was in by default. I remember with IPB 2.3 that you had to install a Plugin Manager first in order to be able to install and configure lots of modules. Most wouldn't work on their own. I know I could create a Plugin Manager like what the early IPB had to offer the install, uninstall, update options but I think it would be better if at least the install options were in by default.
Just do a config bit in the list modules that searches for the function eg configMyMod, as from that we can offer the other install/uninstall/update options/settings/whatever. It will only be 10-12 extra lines of code for you to have in the default script.
Let's be honest. At the moment list modules is sorta pointless. If you add the config link (if configMyMod function exists) it would give the whole area purpose and get rid of all those custom install files and other bloated crap that can come with modules.
OFFTOPIC:
Desperately disappointing that this is the only topic on KWWH in the last week (probably longer) that has interested me in any way.Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
2nd May 2011, 06:27 PM #39OP(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comYes but my point is, you can just hook your install function into AdminHandleContent as its own admin page, e.g. ?go=installmymod.
And if you want to set cookies, send headers, etc, in there, hook into AdminInit instead and check _GET['go'].
I don't want to make mods use a specific function name to install, i want them to hook in and make their own install page. It shouldn't be too hard.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
3rd May 2011, 11:21 AM #40Respected DeveloperWebsite's:
wrzc.orgThat's a fair point. I see now why you don't want to do that and your probably right. I've another feature request. Again I don't mind if it's not added but I think it could be useful and I know this could easily be done as a hook but that relies on people adding it which most probably wouldn't so hear me out.
Why not include a submit api system by default that would return a json reply saying if submits were rejected and why. eg site is banned, not whitelisted etc or how many were accepted.
Then in three months or whenever you find time to update warezlinkers/auto you can have it give a far more accurate response. Right now it just says downloads submitted even if they are rejected by the DDL site. This is where rardownloads is slightly better as it tries to crawl the returned page and shows the error message if they were rejected. It's really useful.
With rardownloads and linkplz-auto now the top autosubmitters you could use this to regain ground.
It's also better for the DDL admin as by just returning a json reply it's less stress on the server.
Everyone wins. Interested to hear what you think.Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
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
themaManager - edit and manage...
Version 4.04 released. Open older version (or...