Is it possible to specify post icons for specific forums? I've figured out how to add a new post icon group and set usergroup permissions, but i'd love to have specific post icon groups only show up in specific forums. Is that possible? Thanks!
Post icons for specific forums?
Collapse
X
-
Tags: None
-
The only way I know to do this is to create a unique style for that forum and force it to use that style. Then you can specify a unique image path.Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
Change CKEditor Colors to Match Style (for 4.1.4 and above)
Steve Machol Photography
Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.
-
Originally posted by Steve MacholThe only way I know to do this is to create a unique style for that forum and force it to use that style. Then you can specify a unique image path.Comment
-
Edit the Image Paths in the Style Manager to point to the images you want to show for that style.Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
Change CKEditor Colors to Match Style (for 4.1.4 and above)
Steve Machol Photography
Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.
Comment
-
I see where to edit the image paths. Unfortunately I do not see one where I can specify a different path for post icons Am I not seeing something?Comment
-
Hmmm...you're right. I never noticed this before. Honestly I don't know how to specify the image path for post icons without editing the templates.Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
Change CKEditor Colors to Match Style (for 4.1.4 and above)
Steve Machol Photography
Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.
Comment
-
Originally posted by Steve MacholHmmm...you're right. I never noticed this before. Honestly I don't know how to specify the image path for post icons without editing the templates.Comment
-
The icon paths are defined at the icon level in your:
Admin CP -> Post Icons -> Post Icon Manager
So setting different icons paths for specific forums means building on the existing icon paths by editing the templates. For example, if an icon's path in the Post Icon Manager is images/icons/icon7.gif then you can only add onto the front of that path, not change anything about the existing path.
Go to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Post Icon Templates -> posticonbit
Add the code in red:
<td><input type="radio" name="iconid" value="$iconid" id="rb_iconid_$iconid" tabindex="1" onclick="swap_posticon('pi_$iconid')" $iconchecked /></td>
<td width="12%"><label for="rb_iconid_$iconid"><img src="icons/$iconpath" alt="$alttext" id="pi_$iconid" onclick="rb_iconid_$iconid.click()" /></label></td>
Now make a forum use this style and it will look to that directory for icons. To change the style for a forum go to your:
Admin CP -> Forums & Moderators -> Forum Manager -> Edit Forum -> Custom Style for this Forum
Other templates you need to edit include:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit
<td class="alt2"><if condition="$show['threadicon']"><img src="icons/$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td>
<if condition="$show['messageicon']"><img class="inlineimg" src="icons/$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
Code:<div style="clear:both"> <if condition="$show['icon']"><img class="inlineimg" src="[color=red]icons/[/color]$icon[iconpath]" alt="$icon[title]" border="0" /></if> <a href="showthread.php?$session[sessionurl]goto=newpost&t=$lastpostinfo[lastthreadid]" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a> </div>
edit: adding forumhome_lastpostby above.Last edited by Jake Bunce; Tue 1 Mar '05, 8:37am.Comment
-
Hold up... rather than create a new style with different templates, you can just edit the templates for your existing style and use a replacement variable where the red code is in my previous post.
For example, instead of using icons/, use a replacement variable like {iconpath}. This is in the templates for your existing style. Then create a new child style to your existing style with a replacement variable for {iconpath} that has a replacement value of icons/. The existing style will also have a replacement variable for {iconpath} but it will have a replacement value of nothing.
The new style will have only the replacement variable not in common with the original style. Everything else will be inherited by the existing style.
Thank Zach for this idea.Comment
-
That's excellent, I think I'm going to try this with post icons and smilies.
Cheers,
RobertVisit NoizPollution.com // Your Music Source
Do not PM or email me for support, you will not receive a response. Please post all requests for support in the main vBulletin forums or via the support system in the main members section of the site.
Comment
-
Keep in mind that to do the same thing with smilies you will need to modify some files as well. The includes/functions_bbcodeparse.php file comes to mind.Comment
-
Hmmm, is that the only file you can think of when it comes to the location of smilies? Ideally knowing each file which handles the URL I need to edit will allow me to specify different smilie sets for different styles, this is especially important as my 2 main styles are worlds apart in terms of background colours.
Cheers,
RobertVisit NoizPollution.com // Your Music Source
Do not PM or email me for support, you will not receive a response. Please post all requests for support in the main vBulletin forums or via the support system in the main members section of the site.
Comment
-
That is the only one I have been able to think of. If there are more then I don't know what they are.Comment
-
Perhaps another dev will know, do you know who was working on that part of the system?
Cheers,
RobertVisit NoizPollution.com // Your Music Source
Do not PM or email me for support, you will not receive a response. Please post all requests for support in the main vBulletin forums or via the support system in the main members section of the site.
Comment
-
Unfortunately I don't know.
Because this has to do with file modifications you might try asking on www.vbulletin.org, the official vB hacking site.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment