Jump to content


- - - - -

(SOS30) Change Topic Author v1.0.1


  • Please log in to reply
49 replies to this topic

#1 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 03 June 2009 - 05:34 PM

Posted Image

File Name: (SOS30) Change Topic Author v1.0.1
File Submitter: SOSInvision
File Submitted: 3 Jun 2009
File Updated: 13 Sep 2009
File Category: IP.Board v3.0.x Mods
Resource Type: Hook
Version: 1.0.1

This mod allows admins and supermoderators to change topic author (and his posts) directly on topic view.
Number of posts of new and old author will be updated.

Compatibility:
  • IP.Board 3.0.0
Changes from 1.0.0 to 1.0.1:
  • Fixed the ajax on member name, since it has changed on IP.Board 3.0.2

Click here to download this file

#2 Guardsman

Guardsman

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 246 posts
  • IPB Version:v2.3.x

Posted 04 July 2009 - 09:43 PM

Adriano, will this mod just change one topic or ALL posts by the original author?

If it will just change single posts I have a use for this.
Nobody reads this bit...

#3 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 05 July 2009 - 12:03 AM

It will change change topic author AND all post made by original author IF you select the checkbox when you type the new author.

#4 Guardsman

Guardsman

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 246 posts
  • IPB Version:v2.3.x

Posted 05 July 2009 - 09:24 AM

So if you do not select the checkbox it will only change the author of the single post?

That's what I want ;)
Nobody reads this bit...

#5 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 05 July 2009 - 10:44 AM

Yep... it will only change the author of the first post which is the post of the topic.

#6 Guardsman

Guardsman

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 246 posts
  • IPB Version:v2.3.x

Posted 05 July 2009 - 10:45 AM

Installed and working perfectly.

Thank you  ;)
Nobody reads this bit...

#7 Tibbetts24

Tibbetts24

    Member

  • Members
  • PipPipPip
  • 42 posts
  • Location:East of Nowhere
  • Real Name:Goofy Bastard
  • IPB Version:v3.0.x

Posted 23 July 2009 - 09:19 PM

Some of the Mod is in Portuegese.  Will that effect my board?  It's only in English.


-Tibbetts
"No dictator... No invader... Can hold an imprisoned population by force of arms forever. There is no greater power in the Universe, than the need for freedom. Against that power, governments, and tyrants, and armies, cannot stand. Though it take a Thousand Years. We. Will. Be. Free." -- Citizen G'Kar, Babylon 5

My Forums | MySpace

#8 Tibbetts24

Tibbetts24

    Member

  • Members
  • PipPipPip
  • 42 posts
  • Location:East of Nowhere
  • Real Name:Goofy Bastard
  • IPB Version:v3.0.x

Posted 23 July 2009 - 10:35 PM

Is there a way to allow Global Moderators to use this feature as well as Admins?


-Tibbetts
"No dictator... No invader... Can hold an imprisoned population by force of arms forever. There is no greater power in the Universe, than the need for freedom. Against that power, governments, and tyrants, and armies, cannot stand. Though it take a Thousand Years. We. Will. Be. Free." -- Citizen G'Kar, Babylon 5

My Forums | MySpace

#9 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 23 July 2009 - 11:22 PM

Any user group that has access to Admin CP can do it:

		if ( $this->memberData['g_access_cp'] )
		{
			$pass = TRUE;
		}


#10 Tibbetts24

Tibbetts24

    Member

  • Members
  • PipPipPip
  • 42 posts
  • Location:East of Nowhere
  • Real Name:Goofy Bastard
  • IPB Version:v3.0.x

Posted 24 July 2009 - 01:31 AM

I don't want my Global Moderators to access my ACP.  Is there code I can add somewhere to allow for Global Mods to use this as well?


Regards,

-Tibbetts
"No dictator... No invader... Can hold an imprisoned population by force of arms forever. There is no greater power in the Universe, than the need for freedom. Against that power, governments, and tyrants, and armies, cannot stand. Though it take a Thousand Years. We. Will. Be. Free." -- Citizen G'Kar, Babylon 5

My Forums | MySpace

#11 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 24 July 2009 - 01:38 AM

Change the script above to:

		if ( in_array( $this->memberData['member_group_id'], array(X,Y,Z) ) )
		{
			$pass = TRUE;
		}
Where X, Y and Z are the groups allowed to use it.

#12 Tibbetts24

Tibbetts24

    Member

  • Members
  • PipPipPip
  • 42 posts
  • Location:East of Nowhere
  • Real Name:Goofy Bastard
  • IPB Version:v3.0.x

Posted 24 July 2009 - 01:45 AM

Which file would I need to edit?  Moderator, or profile?

I just want to make sure I don't edit the wrong one. lol...


Regards,

-Tibbetts
"No dictator... No invader... Can hold an imprisoned population by force of arms forever. There is no greater power in the Universe, than the need for freedom. Against that power, governments, and tyrants, and armies, cannot stand. Though it take a Thousand Years. We. Will. Be. Free." -- Citizen G'Kar, Babylon 5

My Forums | MySpace

#13 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 24 July 2009 - 01:47 AM

My bad! The right is:

if ( in_array( $this->memberData['member_group_id'], array(X,Y,Z) ) )
And you will edit everywhere it appears on instructions file.

#14 Tibbetts24

Tibbetts24

    Member

  • Members
  • PipPipPip
  • 42 posts
  • Location:East of Nowhere
  • Real Name:Goofy Bastard
  • IPB Version:v3.0.x

Posted 24 July 2009 - 02:08 AM

Do I have to change the X,Y,Z to the group names I wish to allow?


Regards,

-Tibbetts
"No dictator... No invader... Can hold an imprisoned population by force of arms forever. There is no greater power in the Universe, than the need for freedom. Against that power, governments, and tyrants, and armies, cannot stand. Though it take a Thousand Years. We. Will. Be. Free." -- Citizen G'Kar, Babylon 5

My Forums | MySpace

#15 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 24 July 2009 - 02:16 AM

member_group_id = Group ID!

#16 Tibbetts24

Tibbetts24

    Member

  • Members
  • PipPipPip
  • 42 posts
  • Location:East of Nowhere
  • Real Name:Goofy Bastard
  • IPB Version:v3.0.x

Posted 24 July 2009 - 02:30 AM

I get this message when trying it.  Whether as Admin, or Global Mod.

[#10367] You do not have permission to carry out that function.

Is there a setting in the ACP I need to turn on to allow this?


Regards,

-Tibbetts
"No dictator... No invader... Can hold an imprisoned population by force of arms forever. There is no greater power in the Universe, than the need for freedom. Against that power, governments, and tyrants, and armies, cannot stand. Though it take a Thousand Years. We. Will. Be. Free." -- Citizen G'Kar, Babylon 5

My Forums | MySpace

#17 pRieStaKoS

pRieStaKoS

    Novice

  • Members
  • PipPip
  • 14 posts
  • Real Name:John
  • IPB Version:v2.1.x

Posted 26 July 2009 - 01:25 PM

Update for 3.0.1 ?

#18 Adriano Faria

Adriano Faria

    ...a curious guy...

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,268 posts
  • Location:Brazil
  • Real Name:Adriano
  • IPB Version:v3.3.x
Contributor

Posted 26 July 2009 - 01:32 PM

It works on 3.0.X

#19 andrews8602

andrews8602

    Member

  • Members
  • PipPipPip
  • 32 posts
  • IPB Version:v2.3.x

Posted 27 July 2009 - 08:08 AM

I get this error as well: [#10367] You do not have permission to carry out that function.

#20 Dazer

Dazer

    Advanced Member

  • Members
  • PipPipPipPip
  • 76 posts
  • Real Name:Graeme
  • IPB Version:v3.0.x
Contributor

Posted 28 July 2009 - 10:58 AM

Great mod, thanks!

Edited by Dazer, 28 July 2009 - 11:01 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users