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?
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?