![]() |
$userid not found in class_dm_threadpost.php
I'm trying to make it so only the admin has the ability to use all uppercase in a thread title.
Line 183 in the class_dm_threadpost.php file I have added a condtional. if ($userid != 1) { $title = fetch_no_shouting_text($title); } It does not work as expected, I suspect the $userid variable is not know in this php file. Do I use a require once to make this work? Thank you. |
$this->registry->userinfo['userid'] contains the Userid of the current User.
But as I hate File Edits ... Hook: global_start PHP Code:
|
Kirby you are awesome, the plugin works perfect.
Thank you very much I really appreciate it. :up: :) |
All times are GMT. The time now is 03:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|