The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have this in posting.php in the "start do open / close thread" section.
PHP Code:
When I try to open any thread the icon changes just fine to the appropriate one (icon #31). But when I try to close a thread, it will set the thread icon to locked only if the thread starter was an admin or mod (who are the only ones allowed to select it when creating a thread), and for the others who aren't mods the threadicon is just blank and in the database it becomes "0" as opposed to 65, which is the locked icon id. Any idea where this permission checking is coming from, and how I can get around it? Thanks! |
#2
|
||||
|
||||
![]()
This is due to the verify icon function within the datamanager.
|
#3
|
|||
|
|||
![]()
Is there a way to ignore it? Or should I just just do a SQL query?
|
#4
|
||||
|
||||
![]()
You need to override the icon permission check within the DM. Check out post #5 in this thread.
I just had a similar issue and this worked for me. |
#5
|
|||
|
|||
![]() Quote:
1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system? 2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation. |
#6
|
||||
|
||||
![]()
You need to override the permission check within the thread datamanager by reassigning the value of the $validfields array like this...
PHP Code:
You need to use a conditional however (replace $myhack) with your own conditional which will ensure that the override is only executed when you want it to, and not all the time. |
#7
|
|||
|
|||
![]()
Thank you so much!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|