Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Simple Subforums/Icon Question
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Simple Subforums/Icon Question
PostPosted: 06/16/2007 4:00 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 7:32 PM
greatbrE.gif
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?

flower
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: Simple Subforums/Icon Question
PostPosted: 06/16/2007 4:24 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
peace.gif
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:

  1. $images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif";
  2. $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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Simple Subforums/Icon Question
PostPosted: 06/16/2007 4:52 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 7:32 PM
greatbrE.gif
Good stuff  headbang

Thanks Nightrider  occasion9
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: Simple Subforums/Icon Question
PostPosted: 06/16/2007 5:04 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 7:32 PM
greatbrE.gif
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
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: Simple Subforums/Icon Question
PostPosted: 06/16/2007 5:10 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Simple Subforums/Icon Question
PostPosted: 06/16/2007 5:32 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 7:32 PM
greatbrE.gif
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 ?  sunny
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: Simple Subforums/Icon Question
PostPosted: 06/16/2007 6:44 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Simple Subforums/Icon Question
PostPosted: 06/17/2007 4:00 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 7:32 PM
greatbrE.gif
headbang Thank you!
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: Simple Subforums/Icon Question
PostPosted: 06/17/2007 6:10 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:32 PM
Location: St Pete, FL
peace.gif
That looks much better...


Applause  Applause  Applause  Applause  Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0559s (PHP: 77% - SQL: 23%) - SQL queries: 55 - GZIP disabled - Debug on