The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have the issue at my site that a few posts need to be really, really big. Like, massive. And I really don't want anyone to be able to make non-approved posts that size-just me and one or two of my mods.
I've been trying to work this in to a plugin, but I've had no luck so far. In postdata_start. PHP Code:
PHP Code:
PHP Code:
It doesn't work. What do I have wrong, and how can I do this right?' |
#2
|
||||
|
||||
![]()
Did you look inside the post data manager file and see how things are called there?
|
#3
|
|||
|
|||
![]()
I have no idea what you're talking about.
![]() I assume you mean the base php file that commands posts? No, I don't know which file that is. ![]() |
#4
|
||||
|
||||
![]()
Find the postdata_start plugin in the code. Look at how variables are called around that hook. $userid is NOT a valid variable there.
|
#5
|
|||
|
|||
![]()
So it would be $something->something['something'], I assume...
I've forgotten how to look for hooks in the files without looking through each file. ![]() |
#6
|
||||
|
||||
![]()
Get a text editor that allows you to search in all files in a directory. There have been threads about good editors that do this. I'm on a Mac and use BBEdit which allows me to do this. (I think it is a very, very necessary tool when working on a site!)
|
#7
|
|||
|
|||
![]()
$this->info['user'] is the correct var, right?
EDIT: I don't think so... I also tried $this->fetch_field['userid'] and it didn't work. I'm a little lost here. Well, more than a little. |
#8
|
||||
|
||||
![]()
$this->info['user'] would not be right if you are looking for the userid. To be honest, I'm not sure that I would use that hook location. I've played with options before and set them differently based on either usergroup or forum or userid and used hooks like fetch_forumind and search_results_start and.... others, I'm not gonna go list them all. Have you tried any other hook locations? (And, of course, look at the code around that hook to see what variable you should be using first.)
|
#9
|
|||
|
|||
![]()
I'll try some other hooks. Thanks.
|
#10
|
|||
|
|||
![]()
Nope. Still lost. No clue. And I really need this.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|