EasyMod 0.0.10a automatic database work!!!

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
bas
Registered User
Posts: 43
Joined: Fri Oct 31, 2003 12:57 pm

EasyMod 0.0.10a automatic database work!!!

Post by bas »

On my computer... i have added this. But... it has still bugs(yes, bugs... so like it also displays the SQL-command at unprocessed commands but is processed...) I will make a official mod or something from this... Till now and next week...
What do you think i am using for my forum? phpBB, as you already guessed...

User avatar
GPHemsley
Registered User
Posts: 1617
Joined: Fri Apr 18, 2003 4:01 am
Location: Long Beach, NY
Contact:

Re: EasyMod 0.0.10a automatic database work!!!

Post by GPHemsley »

I'm sure some people will appreciate it, but this feature will be in the next EM version, IIRC. 8)

bas
Registered User
Posts: 43
Joined: Fri Oct 31, 2003 12:57 pm

Re: EasyMod 0.0.10a automatic database work!!!

Post by bas »

Yes... but i can't wait for the next version

That mod is not that official but i will post a link to the mod... Just a function-change for me.
What do you think i am using for my forum? phpBB, as you already guessed...

bas
Registered User
Posts: 43
Joined: Fri Oct 31, 2003 12:57 pm

Re: EasyMod 0.0.10a automatic database work!!!

Post by bas »

The mod is available on:

http://members.home.nl/famde.jong/em0010a-mod-db.mod

Don't install it with EasyMOD, install it manually!!!!

I don't know if this will work on MOD-type...
What do you think i am using for my forum? phpBB, as you already guessed...

User avatar
GPHemsley
Registered User
Posts: 1617
Joined: Fri Apr 18, 2003 4:01 am
Location: Long Beach, NY
Contact:

Re: EasyMod 0.0.10a automatic database work!!!

Post by GPHemsley »

Wait... How exactly does this work? What does it do? :?

bas
Registered User
Posts: 43
Joined: Fri Oct 31, 2003 12:57 pm

Re: EasyMod 0.0.10a automatic database work!!!

Post by bas »

Okay, it goes to the piece

Code: Select all

if ( $commands[$i]['command'] == 'SQL' )
			{
in admin_easymod.php

After this we replace this:

Code: Select all

$display_sql_warning = true ;
with

Code: Select all

$display_sql_warning = false ;
And after that, we add:

Code: Select all

$query = "" ;
				for ($j=0; $j<count($body[$i]); $j++)
				{
					$query .= $body[$i][$j] ;
				}
				$db->sql_query($query);
This is the complete but simple (and buggy) hack in EasyMOD. I had installed the Favorites Mod on 2.0.6 and only had to edit some other files but not the database... And it worked!!!!!
What do you think i am using for my forum? phpBB, as you already guessed...

bas
Registered User
Posts: 43
Joined: Fri Oct 31, 2003 12:57 pm

Re: EasyMod 0.0.10a automatic database work!!!

Post by bas »

If you use it and want to say something about it you can reply...
What do you think i am using for my forum? phpBB, as you already guessed...

User avatar
GPHemsley
Registered User
Posts: 1617
Joined: Fri Apr 18, 2003 4:01 am
Location: Long Beach, NY
Contact:

Re: EasyMod 0.0.10a automatic database work!!!

Post by GPHemsley »

Oh, I get it now. I didn't realize that it used the phpBB database query function. :oops: Yeah, this would probably work... at least on MySQL. :)

Ptirhiik
Registered User
Posts: 144
Joined: Sun Apr 06, 2003 12:29 pm

Re: EasyMod 0.0.10a automatic database work!!!

Post by Ptirhiik »

Quite tedious : you don't consider neither other sql engines, nor other prefixes than phpbb_, which can be quite dangerous. It is a very specifical tool, so not really in the way easymod wants to walk I think.

User avatar
GPHemsley
Registered User
Posts: 1617
Joined: Fri Apr 18, 2003 4:01 am
Location: Long Beach, NY
Contact:

Re: EasyMod 0.0.10a automatic database work!!!

Post by GPHemsley »

Wow... this does work.. at least on MySQL.... I used this: http://www.phpbb.com/phpBB/viewtopic.php?t=108421" target="_blank to test it.

And also, if you delete the second FIND (since it's the same line), you can install it with EasyMOD. :mrgreen:

Locked