Help needed (again)

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Help needed (again)

Post by Martin_K »

Not sure if I can work this one out.

I want a special message in the posting_editor.html for new topics in certain forums only.

I've seen this code for php

Code: Select all

$template->assign_vars(array(
    'S_CAN_SEE_CONTENT'    => ($user->data['group_id'] == $group1 || $user->data['group_id'] == $group2 || $user->data['group_id'] == $group3) ? true : false,
)); 
If I want to define S_TECH_FORUM for a large number of forums, in our Technical Category, to input forum id's in posting_editor

Code: Select all

 <-- IF S_TECH_FORUM  -->{SPECIAL_MESSAGE}<-- ENDIF -->
how would I write this (for forum ids of 31, 32, 33 say).

Code: Select all

$template->assign_vars(array(
    'S_TECH_FORUM'    => ($forum->data['forum_id'] == $forum31 || $forum->data['forum_id'] == $forum32 ||$forum->data['forum_id'] == $forum33) ? true : false,
)); 
Is this correct?

And where to put it, in posting.php at root of forum?

Help needed (again)

Post by Martin_K »

I've been helped by Rich, on phpbb.com. Thanks.

Help needed (again)

Post by Stoker »

Im so dissapointed in you Martin!

Help needed (again)

Post by Martin_K »

You won't be the first (or last).

Help needed (again)

Post by Stoker »

Thought the two of us had something speciel going...

Help needed (again)

Post by RMcGirr83 »

here's the topic

You two need a room ;)

Help needed (again)

Post by Martin_K »

I hate to say it Stoker, because I know how sensitive you are


..... but there are some modders that are just more attractive and intelligent than you.

;)

Help needed (again)

Post by RMcGirr83 »

Martin_K wrote: ..... but there are some modders that are just more attractive and intelligent than you.

;)
ty