PDA

View Full Version : replacement variable's based on forum style don't work for forum display


mooreaa
09-22-2008, 05:05 AM
Hi,

I am running into a problem with replacement variables. I am using replacement variables to change the buttons to new file names. As an example, I replace reply.gif to reply-trans.png. This works with the default style just great.

I have a forum which has a different required style. This forum is used to post articles and as such instead of "New Thread" and "Add Reply" I want to change it to "New Article" and "Add Comment".

Using the replacement variables I updated the reply.gif to my new addcomment-trans.png and its working just fine.

The problem is with the newthread.gif image. When the forum is in forumdisplay and displaying this forum, it seems to be using the default style.

I was able to fix the look a little by adding a plugin that does the following on the hook: style_fetch


if( in_array($forumid,$ARTICLE_FORUM_IDS) )
{
$styleid = $STYLE_ID_ARTICLESYSTEM;
}


This causes it to use the right style to be used, but it is still doing the replacement variables for the default style.

Are there any ways to workaround / fix this problem?

Marco van Herwaarden
09-22-2008, 10:18 AM
Do you have set a fixed style for that forum in the forum options?

mooreaa
09-22-2008, 07:10 PM
Under the forum options I set the correct forum style and also the Override Users' Style Choice option to yes.

Still no luck in getting the replacement variables to work... And i feel like the plugin method of changing the style may be a hack. Maybe somethign isn't setup right? Or is this normal behavior?