Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Vveb.ws on July 16, 2009, 01:52:02 AM

Title: How insert picture on left of topics names and subforums instead of icons ?
Post by: Vveb.ws on July 16, 2009, 01:52:02 AM
How can I insert a picture on the left of topics names and subforums instead of icons?

1. When creating a new topic is "message icon": Standard, Thumb Up, Thumb Down, etc.
How do I get icons instead could insert a small picture (let 100x100px) - such a form to select a file with the "Browse" button

2. How can I icon SMF (stick and triangle) to the left of name of subforum replace with my image?
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: JeremyB. on July 16, 2009, 11:39:00 PM
On the topic there should be one appear automattically to change the icon- Look under Subject when posting a new topic and find Message icon: click the drop down box and select the icon you want it to display you can also create icons, to place an image under the subforum name use the following code: <img src="IMAGE URL HERE" /><br /> Rest of board description goes here.

Place that coed in the board description of the desired board and there you go.
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: Vveb.ws on July 17, 2009, 02:58:08 AM
Thanks !
It's very simple !

I insert this in forum desription ( upgrade ;)  )
<table cellpadding="2" cellspacing="0">
<tr>
<td><img src="icon/icon.jpg"></td>
<td>Subforum Description</td>
</tr>
</table>
Title: How insert my own icons in drop-down list Message icon ?
Post by: Vveb.ws on July 17, 2009, 03:25:46 AM
How insert my own icons in drop-down list  Message icon ?

There is folders with icons to create a new topic:
\Themes\babylon\images\post\
\Themes\default\images\post\
\Themes\classic\images\post\  
But in the drop-down list <form select> are not names of files (icon.gif), but is their descriptions (Standard, Thumb Up, Thumb Down etc.)
I can not simly copy my icons to these folders - in drop-down list message icon they don't appear
How do I insert my icon in the <form select> icon message ?
(Pehaps, best for me to remove names of icons from the drop-down list and do simple list of images
icon1.gif
icon2.gif
icon3.gif
Or names of images without JPG GIF PNG
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: Bulakbol on July 19, 2009, 08:50:33 AM
Have you tried replacing the current icons with your own without editing any files?
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: peng_117 on September 18, 2009, 07:25:37 AM
I would ike to add picture to each topic as well.
The function of "Message Icon" is too complex for the forum that contain a number of moderators.

Does SMF have some MOD that can change this function to "Browse" button, so we can easily choose each topic picture as we need???
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: DSfirerescue on September 18, 2009, 08:00:58 AM
Quote from: peng_117 on September 18, 2009, 07:25:37 AM
I would ike to add picture to each topic as well.
The function of "Message Icon" is too complex for the forum that contain a number of moderators.

Does SMF have some MOD that can change this function to "Browse" button, so we can easily choose each topic picture as we need???

I don't think that there is a mod for this no.  I would allow you to contact me via pm and I would be of better assistance in helping you accomplish what you would like done. :)
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: Vveb.ws on November 09, 2009, 04:47:26 AM
I think I realized how I want to do

1) I can insert a picture in the description in the forum administration panel, and the description text will not be.
In what file do I change places "icon SMF", indicating the presence of new topics in the forum, and "Description", in which I would like to insert a picture?

What code is indicated: "icon SMF" and "Description"
(see picture: top - as is in the SMF 1.1.10, at the bottom - as I want)


2) I have a long name of my forums, and I did not want to cut it. bottom SELECT becomes too wide, which displays all the forums and sub-forums.
Please answer, in which file to insert </tr><tr>, so that SELECT will a new line <tr>
(see picture: top - as is in the SMF 1.1.10, at the bottom - as I want)
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: Vveb.ws on November 09, 2009, 11:57:52 PM
Allready I have all done

1) forum pictures
rename *.php in *.txt and search in TotalCommander: <td rowspan="2" class="windowbg" or <td colspan="3" class="windowbg3"> or <div class="catbg"
\Themes\default\BoardIndex.template.php - lines 118-129

2) forum names SELECT
rename *.php in *.txt and search in TotalCommander:
<select name="jumpto
folders: \Themes\default\ , \Themes\babylon\ , \Themes\classic\
MessageIndex.template.php - lines-358-368 - I insert </tr> and <tr><td colspan="4"
Help.template.php - line 464 - I insert </tr><tr><td colspan=2
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: musc on December 30, 2009, 05:47:20 AM
Quote from: Vveb.ws on November 09, 2009, 11:57:52 PM
Allready I have all done

1) forum pictures
rename *.php in *.txt and search in TotalCommander: <td rowspan="2" class="windowbg" or <td colspan="3" class="windowbg3"> or <div class="catbg"
\Themes\default\BoardIndex.template.php - lines 118-129


Hello.I want to add image on the left of each topic.Can you explain how or what to do to in  \Themes\default\BoardIndex.template.php?
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: musc on January 04, 2010, 04:25:35 AM
Can anyone help me with the above?I think there is a similar mod in ipb.
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: gbsothere on January 04, 2010, 08:32:04 AM
Maybe I'm just not understanding, but this mod is what we use and it seems to do what is being discussed.

http://custom.simplemachines.org/mods/index.php?mod=1151 (http://custom.simplemachines.org/mods/index.php?mod=1151)

If that isn't it, then I apologize.   :)
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: musc on January 05, 2010, 05:39:49 AM
Thanks.This is what I want.  ;)
Title: Re: How insert picture on left of topics names and subforums instead of icons ?
Post by: wedost.com on January 20, 2010, 03:38:00 AM
Thank you all for this thread. Helpful..