MyBB Community Forums

Full Version: Need help making post icons mod-only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Show me what was the modification you did to show a default icon so that i work upon it..
zaher1988 Wrote:Show me what was the modification you did to show a default icon so that i work upon it..

Well,
I just edited the functions_forumlist.php & then added the code u gave in my forumbit_depth2_forum_lastpost template.
The  result can be views by the file  i have attched.

[attachment=5672]

Th url of the default icon is :

http://www.freewebworld.jmfhosting.com/F...n/post.gif

Thank You.
Zaher...I am waiting for ur reply...
But you had previously a modification that shows a default icons isnt? can i see how you did so that i know how to work it outBig Grin
No..I didnt install Any Mod regarding the display of the icons.
I had only changed the Default Icon By a new icon [ By simply uploading a new File overwring the old post.gif]
This default icon was dispalyed from the time i actually installed MyBB.

I only modified what u told me to .
Hmmm i really dont get this way but anyway i will assume a removal for that thing.. in forumbit_depth2_forum_lastpost template please remove the image tag which you have added to display post.gif.

Now in the code i have provided above..instead of

$lastpost_icon = "";

put
$icon = $icon_cache['X'];
						$lastpost_icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />&nbsp;";

X would be the number of the icon you want.. so replace it. Or you can simply chaneg
{$icon['path']}
to the path for the new default icon.
Pages: 1 2