Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 27
User
User
Offline
Joined: Mar 2001
Posts: 27
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
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Edited post to add code tags

Joined: Mar 2001
Posts: 27
User
User
Offline
Joined: Mar 2001
Posts: 27
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
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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....)
Joined: Mar 2001
Posts: 27
User
User
Offline
Joined: Mar 2001
Posts: 27
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
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Bug is fixed smile


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 27
User
User
Offline
Joined: Mar 2001
Posts: 27
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
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I posted it in the announcements forum smile


- Allen wavey
- What Drives You?
Joined: Mar 2001
Posts: 27
User
User
Offline
Joined: Mar 2001
Posts: 27
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
Joined: Jul 2011
Posts: 11
Newbie
Newbie
Joined: Jul 2011
Posts: 11
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

Link Copied to Clipboard
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
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)