The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
exclude forums from @stream
I was searching for a possibility to exclude couple of forums from being published into activity stream
Here is the code that was working before but it doesn't anymore on 4.2.pl2. Maybe someone can help and fix it please plugin at hook postdata_presave PHP Code:
https://www.vbulletin.com/forum/show...32#post2340532 |
#2
|
|||
|
|||
That code works, but only when replying to an existing thread. If you want to stop new threads from going in the activity stream, you can use the same code in an additional plugin on hook threadfpdata_presave.
|
Благодарность от: | ||
zascok |
#3
|
|||
|
|||
Thanks, I'll give it a try
|
#4
|
|||
|
|||
Using this code I've got 2 parse errors:
Parse error: syntax error, unexpected ',', expecting ')' in /***/forums/includes/class_dm_threadpost.php(1827) : eval()'d code on line 1 Parse error: syntax error, unexpected ',', expecting ')' in /***/forums/includes/class_dm_threadpost.php(1827) : eval()'d code on line 1 Any ideas? --------------- Added [DATE]1351479572[/DATE] at [TIME]1351479572[/TIME] --------------- Put them in two hooks to remove posts and threads.... First: Hook: postdata_presave Second: Hook: threadfpdata_presave Code I've been using in both: Code:
if (in_array($this->info['forum']['forumid'], array(138,139,140,141,142,143,144,145,146,193,199,184,148,12,14,154,155,156,157,158,159,,160,,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183))){ $this->set_info('skip_activitystream', true); } |
#5
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|