 | [Solved] Simple Subforums/Icon Question |  |
Posted: 06/16/2007 4:00 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 7:32 PM
|

|
|
|
|
 |
I have installed simple subforums but the folder icons didn't change for those forums when I tried a new icon, the path to the image is the same as the basic forums so where would I look to see what's wrong? Or is it a case of going through the whole mod?
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/16/2007 4:24 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
|

|
|
|
|
 |
The Simple Subforums MOD added the following line to your index.php file:
| Code:
|
|
$last_post_sub = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . ($unread_topics ? $images['icon_newest_reply'] : $images['icon_latest_reply']) . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
|
In this line, this is where the images are assigned:
| Code:
|
|
$images['icon_newest_reply'] : $images['icon_latest_reply']
|
So if you look for the following in your template cfg file, this is the images that are being used:
- $images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif";
- $images['icon_latest_reply'] = "$current_template_images/icon_latest_reply.gif";
If you want to keep those for your Parent forums but want different images for your Subforums, you could add the next two lines to the template cfg file and change the image assigned to each of these:
| Code:
|
$images['icon_latest_reply2'] = "$current_template_images/icon_latest_reply.gif";
$images['icon_newest_reply2'] = "$current_template_images/icon_newest_reply.gif";
|
Then you can go into the Index and add 2 to the name of the two image assignments from the row above:
| Code:
|
|
$images['icon_newest_reply2'] : $images['icon_latest_reply2']
|
Then your images will be independent of your Parent forums...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/16/2007 4:52 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 7:32 PM
|

|
|
|
|
 |
Good stuff
Thanks Nightrider  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/16/2007 5:04 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 7:32 PM
|

|
|
|
|
 |
Ahh sorry, I didn't explain mtself properly again..
I meant where you get an overall change in icon for the forum. The big yellow clouds should be a dodgy looking butterfly.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/16/2007 5:10 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
|

|
|
|
|
 |
The Simple Subforums MOD added the following two lines to your Diddle.cfg file:
| Code:
|
// Begin Simple Subforums MOD
$images['forums'] = "$current_template_images/folders_big.gif";
$images['forums_new'] = "$current_template_images/folders_new_big.gif";
// End Simple Subforums MOD
|
You can either point the files to the same files you are using for the forums that do not contain subforums or you can use a different image altogether...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/16/2007 5:32 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 7:32 PM
|

|
|
|
|
 |
That is the file name I'm using for forums with and without subforums, but its not recogninsing it - unless I'm misunderstanding what you are saying ?  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/16/2007 6:44 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
|

|
|
|
|
 |
Notice the extra S in the filename. This is a different file assignment from the normal forums. So if you use the same filename as the normal forums, the butterfly will display instead of the clouds...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/17/2007 4:00 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 7:32 PM
|

|
|
|
|
 |
Thank you! |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Simple Subforums/Icon Question |  |
Posted: 06/17/2007 6:10 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
|

|
|
|
|
 |
That looks much better...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|