Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2019
Posts: 44
Newbie
Newbie
Joined: Apr 2019
Posts: 44
not bug

see scripts/showflat.inc.php
if ($topic_info['TOPIC_IS_STICKY'] == '2' && ($user['USER_MEMBERSHIP_LEVEL'] != "Administrator")) {
//$reply = "off";
}

but in scripts/addpost.inc.php

if ($issticky == "2" && ($user['USER_MEMBERSHIP_LEVEL'] != "Administrator")) {
$html->not_right($ubbt_lang['NO_R_ANNOUNCE']);
}

Last edited by BlackMale; 05/13/2019 7:28 PM.
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Checks in the code are commonly commented out versus being removed for a variety of reasons, mainly testing. Just because code in a similar function isn't commented out doesn't mean similar code in other files should be live.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
The commented line has been that way since February 2009, with the release of UBB.threads 7.5.0.
https://www.ubbcentral.com/forums/ubbthreads.php/topics/221187/version-7-5-released-february-24-2009

Quote
[changed] It is now possible to reply to global announcements as long as the user has the ability to reply to regular topics. Locking the announcement will make it so it cannot be replied to.

The code is working as intend.

Please only provide bug reports for actual bugs. Bug reports for results of the code.

Multiple people have worked on the code over the past 20 years -- each with their own programming styles. Since the release of UBB.threads 7.6.0, many of those programming styles have been rewritten/reformatted to follow a single expected format.

Reporting issues about code layout or code-remarked items is not a bug.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 458 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)