Previous Thread
Next Thread
Print Thread
Rate Thread
[7.0] [Finished] - Admin edit message hack #310934
07/30/2006 2:42 AM
07/30/2006 2:42 AM
Joined: Mar 2001
Posts: 22
A
AUS-CITY Offline OP
Newbie
AUS-CITY  Offline OP
Newbie
A

Joined: Mar 2001
Posts: 22
Guys,

Here is my hack for UBB threads 7.0 This mod gives the admin the option of the radio button to edit ANY message and tick off the 'edited by'. It can easily be scripted to allow mods to do this as well.

Enjoy!

MOD START
*****

Admin No Edit hack mod 1.0 - UBB 7 beta 2
by aus-city
http://www.aus-city.com/ubbthreads/ubbthreads.php
files modified (1): /scripts/editpost.inc.php

Code
Find:

	// Signature added to this post?
	$addsigcheck = "";
	if ($addsig) {
		$addsigcheck = "checked = \"checked\"";
	}
	$iconselect = $html -> icon_select($Icon);
	
	if ( $user['USER_ID'] == $Postedby ) {
		$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}
";


Code
Replace with:

	// Signature added to this post?
	$addsigcheck = "";
	if ($addsig) {
		$addsigcheck = "checked = \"checked\"";
	}
	$iconselect = $html -> icon_select($Icon);
	
	if ( $user['USER_ID'] == $Postedby || $user['USER_MEMBERSHIP_LEVEL'] == "Administrator") {
		$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}
";


Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php
Sponsored Links
Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY] #310936
07/30/2006 1:43 PM
07/30/2006 1:43 PM
Joined: Jan 2003
Posts: 3,765
Saint Johns, PA
I
Ian Spence Offline
Master Hacker
Ian Spence  Offline
Master Hacker
I

Joined: Jan 2003
Posts: 3,765
Saint Johns, PA
Edited post to add code tags

Re: Finished [7.0] - Admin edit message hack [Re: Ian Spence] #310980
08/01/2006 12:51 AM
08/01/2006 12:51 AM
Joined: Mar 2001
Posts: 22
A
AUS-CITY Offline OP
Newbie
AUS-CITY  Offline OP
Newbie
A

Joined: Mar 2001
Posts: 22
With beta 2 released they changed stuff, so did I so it still works, but use this now:

Admin No Edit hack mod 1.0 - UBB 7 beta 2
by aus-city
http://www.aus-city.com/ubbthreads/ubbthreads.php
files modified (1): /scripts/editpost.inc.php

Quote
Find:

// Signature added to this post?
$addsigcheck = "";
if ($addsig) {
$addsigcheck = "checked = "checked"";
}
$iconselect = $html -> icon_select($Icon);

if ( $user['USER_ID'] == $Postedby ) {
$markeditselect = " {$ubbt_lang['MARK_EDIT']}
";


Quote
Replace with:

// Signature added to this post?
$addsigcheck = "";
if ($addsig) {
$addsigcheck = "checked = "checked"";
}
$iconselect = $html -> icon_select($Icon);

if ( $user['USER_ID'] == $Postedby || $user['USER_MEMBERSHIP_LEVEL'] == "Administrator") {
$markeditselect = " {$ubbt_lang['MARK_EDIT']}
";


Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php
Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY] #310982
08/01/2006 3:35 AM
08/01/2006 3:35 AM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
I've updated the original post to reflect this change - I would move it to the version 7 forum, but the post move is not working at the moment frown Hopefully this will be fixed in b3 smile

Thanks for the update.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: Finished [7.0] - Admin edit message hack [Re: Ian_W] #311001
08/02/2006 2:00 AM
08/02/2006 2:00 AM
Joined: Mar 2001
Posts: 22
A
AUS-CITY Offline OP
Newbie
AUS-CITY  Offline OP
Newbie
A

Joined: Mar 2001
Posts: 22
Hi Ian!

No problems can leave it here until beta 3 comes out smile I probably have to do a beta 3 revision then anyway! smile


Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php
Sponsored Links
Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY] #311034
08/03/2006 1:50 PM
08/03/2006 1:50 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
Bug is fixed smile


- Allen wavey
- What Drives You?
Re: Finished [7.0] - Admin edit message hack [Re: AllenAyres] #311082
08/05/2006 6:39 AM
08/05/2006 6:39 AM
Joined: Mar 2001
Posts: 22
A
AUS-CITY Offline OP
Newbie
AUS-CITY  Offline OP
Newbie
A

Joined: Mar 2001
Posts: 22
Allen,

Any chance of the fixes required for beta2 for the moving bug? I would like to apply to my forums as I don't know how long to beta3.

Thanks!


Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php
Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY] #311088
08/05/2006 10:45 AM
08/05/2006 10:45 AM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
I posted it in the announcements forum smile


- Allen wavey
- What Drives You?
Re: Finished [7.0] - Admin edit message hack [Re: AllenAyres] #311165
08/09/2006 6:11 PM
08/09/2006 6:11 PM
Joined: Mar 2001
Posts: 22
A
AUS-CITY Offline OP
Newbie
AUS-CITY  Offline OP
Newbie
A

Joined: Mar 2001
Posts: 22
Guys,

I upgraded my boards to beta 3 and just to let you know the hack I did for beta 2 holds exactly the same for beta 3.

Cheers!


Webmaster
AUS-CITY Space and General Interest Forums
http://www.aus-city.com/ubbthreads/ubbthreads.php
Re: Finished [7.0] - Admin edit message hack [Re: AUS-CITY] #318930
07/16/2012 1:56 AM
07/16/2012 1:56 AM
Joined: Jul 2011
Posts: 12
MO, USA
Mythotical Offline
Newbie
Mythotical  Offline
Newbie

Joined: Jul 2011
Posts: 12
MO, USA
As of 7.5 this mod no longer works nor can you add it. I will however find another method to use this mod and post an update.


Mythotical Mods - Custom add-ons for XenForo, MyBB, and vBulletin (UBB.Threads custom work coming soon)
Sponsored Links

Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with, and recommend, the following Web Hosts:
· Stable Host
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,941
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,454
Posts293,496
Members13,800
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,941
Greg Hard 5,533
Top Posters(30 Days)
isaac 8
Gizmo 3
driv 1
Today's Statistics
Currently Online 852
Topics Created 1
Posts Made 1
Users Online 1
Birthdays 21
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.3
(Snapshot build 20180915.dev)
Page Time: 0.055s Queries: 15 (0.024s) Memory: 3.3134 MB (Peak: 3.5004 MB) Zlib enabled. Server Time: 2018-09-22 05:10:41 UTC