 | changing icons etc |  |
Posted: 07/22/2007 12:37 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
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
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/22/2007 12:48 PM |
|
|
|
|
|
| Citation |
| Posts |
487 |
| Word Cnt. |
35,729 |
| BDay |
Oct 3 |
| Sign |
Libra |
| Sex |
 |
|
|
|
Joined: Oct 29, 2006
Local time: 10:06 PM
Location: Klang, Malaysia
|

|
|
|
|
 |
Chris..can't see what pic you have upload ~~I Dont seen any pic  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/22/2007 2:49 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:06 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/22/2007 3:45 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Aaah I see now thanks Nightrider!
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/22/2007 3:47 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
ps must must be a problem with photobucket... sorry about that guys  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/22/2007 4:29 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:06 PM
Location: St Pete, FL
|

|
|
|
|
 |
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 |
|
|
 | Re: changing icons etc |  |
Posted: 07/23/2007 6:23 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Kewl. will try this when i get home later  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/23/2007 12:52 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/23/2007 3:39 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:06 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: changing icons etc |  |
Posted: 07/23/2007 5:16 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 11:06 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
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
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  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|