Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
changing icons etc
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
changing icons etc
PostPosted: 07/22/2007 12:37 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
greatbrE.gif
Hi Nightrider,

i need to change the size of the icons on the homepage (see pic) but i can't figure out what file to edit Sad

Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: changing icons etc
PostPosted: 07/22/2007 12:48 PM Reply with quote
Citation
masteranu84
Citation
Posts 487
Word Cnt. 35,729
BDay Oct 3
Sign Libra
Sex Sex:Male
Joined: Oct 29, 2006
Local time: 10:06 PM
Location: Klang, Malaysia
malaysiC.gif


Chris..can't see what pic you  have upload ~~I Dont seen any pic  dontknow
Back to Top
View user's profile Find all posts by masteranu84 Send private message   Visit poster's website Yahoo Messenger MSN Messenger Phoogle Map
Re: changing icons etc
PostPosted: 07/22/2007 2:49 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: 6:06 PM
Location: St Pete, FL
peace.gif
The screenshot isn't working, but I think I know what you're referring to...

The icon image dimensions are hardcoded in several files.  For instance, the following line in your index.php file is what is used to display the Latest Reviews section:

Code:
<?php require_once('s-inc/reviewhome.php');?>

So the file with the display code is s-inc/reviewhome.php.  Opening the s-inc/reviewhome.php file, the icon is displayed with this code:

Code:
<img src="/img/forum_old.gif" height="25" width="25" alt="DJ Passion review" />

So if you want to change the dimensions or the filename, this is where you would do it for the Latest Reviews icon...

The other sections are very similar, so you would follow the same logic to find and modify the icons in those files as well...

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: changing icons etc
PostPosted: 07/22/2007 3:45 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
greatbrE.gif
Aaah I see now thanks Nightrider!  headbang

What I wanted to do also was use the forum icons instead of the current ones ie replace the current ones with these ones

When I replaced the current images with the new ones on the server though the new icons show with a blue rectangle background = there's a transparency thing going on  crybaby
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: changing icons etc
PostPosted: 07/22/2007 3:47 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
greatbrE.gif
ps must must be a problem with photobucket... sorry about that guys  Brick wall
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: changing icons etc
PostPosted: 07/22/2007 4:29 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: 6:06 PM
Location: St Pete, FL
peace.gif
Yes, the images have a white background.  I just set the background to transparent with PSP.  See if this is any better:



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: changing icons etc
PostPosted: 07/23/2007 6:23 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
greatbrE.gif
Kewl. will try this when i get home later  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: changing icons etc
PostPosted: 07/23/2007 12:52 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
greatbrE.gif
Works now, but I can't seem to get them to be the exact size as the forum ones. They seem all pixilated and stretched which is weird because I tried using 46 x 25 the exact size the forum is showing  dontknow
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: changing icons etc
PostPosted: 07/23/2007 3:39 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: 6:06 PM
Location: St Pete, FL
peace.gif
I just checked and the news image was set to 30x30.  I changed it to 46x25 and now it is displaying correctly.  I imagine the same is true for the other image dimensions as well...

munky2
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: changing icons etc
PostPosted: 07/23/2007 5:16 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
greatbrE.gif
Yeah I did have it as 46x25 thing was in one file he had width then height and in another file it was the other way round which is was the image was stretching because I put the wrong values in  Embarassed

I see what you mean about the code not being user-friendly.

There's a lot of code though and over a period of 3 months or so he put the code together just on his own so we can't knock him really. His not done a bad job really. The way the front end of the site works is cracking. He just let it down a bit not being able to get it to work with the passion forum accounts that’s all. 8)

Cheers nightrider  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 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
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0716s (PHP: 62% - SQL: 38%) - SQL queries: 57 - GZIP disabled - Debug on