The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Default Prefix for Reported Posts
I'm guessing the hook is easy enough to find (as there are only a few in report.php), but does anyone know the line of code to add a default prefix to the threads created in the designated forum?
Thanks |
#2
|
||||
|
||||
Did you ever figure this out?
Is there a mod for this? |
#3
|
|||
|
|||
If you want it for reported posts it's a little more complicated.
I have a solution, but it requires a custom hook (or just custom code). If you want it in a non-automated forum (such as a normal thread), that's easy enough! (P.S: Original thread creation date is 2009). |
#4
|
||||
|
||||
Hi James, I would be very grateful if you could help me on this, I found this add-on - https://vborg.vbsupport.ru/showthread.php?t=233364 but it's not working for the reported posts threads.
Thanks. |
#5
|
|||
|
|||
Post reports don't create threads on the same hook, so it won't work.
Open includes/class_reportitem.php Search for (line 243): PHP Code:
PHP Code:
Look for (line 982): PHP Code:
PHP Code:
Hook: report_dataman Code (replace CODE with your prefix id): PHP Code:
Alternative Method When you open class_reportitem.php, instead of adding the custom hook, just add: PHP Code:
Then you're done. I prefer to use hooks so I have more control though. |
#6
|
||||
|
||||
Brilliant James, working perfectly, thanks so much for your help, I really appreciate it. :up:
|
#7
|
|||
|
|||
James, I believe you can use your code without making any edits using the threadfpdata_start hook, with the following code:
PHP Code:
|
#8
|
|||
|
|||
Hi Danny,
Thanks for your code, I posted a while ago wondering how to do it without editing code and it seems its worked! Thanks. |
#9
|
||||
|
||||
danny, this worked perfectly in VB4. same can be done for THIS_SCRIPT == 'infraction'
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|