MyBB Community Forums

Full Version: Windows programmer anywhere?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
Thanks Magic stuff/
Yumi's looks pretty nice. But it's just the easiest part. Still great job, really. Something more advanced would be amazing.
(2009-08-07, 11:42 AM)Lennart Sauter Wrote: [ -> ]By the way - my AntiVir told me it'd be a trojan - I ran it in virtual environment now.
If you don't trust the EXE you can always compile the source, which is only a few lines long.
Only the .frm file is required - load it in VB6 (assuming you have a copy of that) and compile.

On a side note, it's why I don't trust AV apps and never use them.
Am I the only one who thinks it would take longer to open this program and enter your data than to just CTRL+C, CTRL+V the code and change it?

Can you just clarify this Lennart Sauter, is the aim to make plugin production quicker or easier for novice users?
In what way an entended engine?
(2009-08-08, 07:40 AM)Yumi Wrote: [ -> ]If you don't trust the EXE you can always compile the source, which is only a few lines long.
Only the .frm file is required - load it in VB6 (assuming you have a copy of that) and compile.

On a side note, it's why I don't trust AV apps and never use them.

I trust you so no problem at all Wink
I couldn't live without proper firewall, defense and AV.

(2009-08-08, 07:47 AM)TimB. Wrote: [ -> ]Am I the only one who thinks it would take longer to open this program and enter your data than to just CTRL+C, CTRL+V the code and change it?

Can you just clarify this Lennart Sauter, is the aim to make plugin production quicker or easier for novice users?
(2009-08-08, 04:38 PM)magicstuff Wrote: [ -> ]In what way an entended engine?

Well, Yumi made the basics, the info list. That's something you can do pretty well with STRG+C and so on.
But did you ever look into deeper stuff, for example setting creation?

Let's take a look at the source code:
function eliminator_install() {

	global $db;

	$eliminator_group = array(

		'gid'			=> 'NULL',

		'name'			=> 'eliminator',

		'title'			=> 'Eliminator',

		'description'	=> 'Settings for the eliminator plugin',

		'disporder'		=> '1',

		'isdefault'		=> 'no',

	);



	$db->insert_query('settinggroups', $eliminator_group);

	$gid = $db->insert_id();

	$eliminator_setting_1 = array(

		'sid'			=> 'NULL',

		'name'		=> 'eliminator1',

		'title'		=> 'Enable or disable',

		'description'	=> 'Enable or disable the plugin',

		'optionscode'	=> 'onoff',

		'value'		=> '0',

		'disporder'		=> 1,

		'gid'			=> intval($gid),

	);



	$eliminator_setting_2 = array(

		'sid'			=> 'NULL',

		'name'		=> 'eliminatortid',

		'title'		=> 'Thread ID where the eliminator appears',

		'description'	=> 'Enter the thread ID here.',

		'optionscode'	=> 'text',

		'value'		=> '1',

		'disporder'		=> 2,

		'gid'			=> intval($gid),

	);
	$db->insert_query('settings', $eliminator_setting_1);
	$db->insert_query('settings', $eliminator_setting_2);
}
function eliminator_is_installed()
  {
 		global $db, $mybb;
		$query = $db->simple_select("settinggroups", "name", "name='eliminator'");
 		$menge = $db->num_rows($query);
		if($menge != "0"){
   		return true;
 		}
		if($menge == "0"){
 		return false;
		}
}
function eliminator_uninstall() {

	global $mybb, $db;

$db->query("DELETE FROM ".TABLE_PREFIX."settinggroups WHERE name='eliminator'");

	$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name IN(

	'eliminator1',
	'eliminatortid'

	)");

}

Do you see how often the name "eliminator" repeats itself here?

And the uninstalling and the "is installed" checker does only have to take the vars from the install procedure.

Now let's go into an EXE, could look like that:
[attachment=14987]

Much simpler, easier to use and less time consuming I think.

Now, that has been the settings. We could also implement a drop down list for hooks (including all MyBB has, like the Hook Finder plugin), simple template replacement, auto escaping quotes and $s, premade functions for example to disable guest access and more.

Do you see my point now?

Kind regards
Lennart Sauter
And linux version... Toungue
*gulp*

Well i'm currently working on something similar to the exe the other guy posted, but i'm considering releasing a pro version with colored syntax highlighting... Toungue

I'll look into the ideas, but this could be a long old project. Maybe a few days to a week for release.

Exected release date: 15th August.
Thanks Magic Big Grin
EDIT: The linux version will take longer to make. Expect a release date of around 30th August Toungue
Pages: 1 2 3 4 5 6 7