Author |
Topic |
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 04 May 2007 : 10:25:07
|
I'm enhancing the graphical qualities of my Snitz site for a bit, but I encountered the following problems:
1) I've made a complete new set of folder-icons for my website (files like icon_folder.gif, icon_folder_new.gif etc) but I encounter the following problem: my new icons are 15x27 pixels and apparently somewhere in the asp it says "Icons shall not exceed 15x15!" so my icons get horribly compressed and disfigured... Is there a way to reset these dimensions?
2) I've added images to each Topic-title to spice it up a little, but if I code it like: "Open this topic now and wisdom will be thine share! {img=left}enlightenment.gif{ /img=left}" (but of course with [] in stead of {})the image gets displayed underneath the text instead of left of the text. Same thing if I use [img=right], however short the actual text, the img is one line below the text, which makes it look very amateuristic. Is there a way to change this without actually having to write in a complete new column? |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 04 May 2007 : 10:29:04
|
1) Have a look in inc_iconfiles.asp
2) Got linkage to illustrate the problem?
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 04 May 2007 : 10:48:16
|
Well everything is on an offline testsite so thats gonna be a bit of a problem... I made a screenie tho and moderated it in photoshop to show you what I want it to look like.
This is how it looks at the moment. This is how I hope it will look soon :)
quote: Originally posted by Shaggy
1) Have a look in inc_iconfiles.asp
2) Got linkage to illustrate the problem?
|
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 04 May 2007 : 10:54:51
|
Oh by the way, I've checked inc_iconfiles.asp and that looks like it is what I ment :) Thanks very much! |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 04 May 2007 : 11:28:46
|
Have a at the code that parses the [img] tags in inc_func_common.asp; you'll need to change the HTML that they are replaced by so that they are floated to the left/right rather than aligned either side.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 07 May 2007 : 03:44:50
|
I'm afraid I am more of a graphics guy then a programmer... Can I ask you to elaborate on this one? Oh btw, the forum is online now and can be seen here!
quote: Originally posted by Shaggy
Have a at the code that parses the [img] tags in inc_func_common.asp; you'll need to change the HTML that they are replaced by so that they are floated to the left/right rather than aligned either side.
|
Edited by - fakeman on 07 May 2007 04:12:41 |
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 08 May 2007 : 05:25:00
|
Alright, I did a little research and tried the following: In inc_func_common.asp I replaced lines 1183 and 1193:
Original: ImgTags(3,1,1) = "[ img=right]" ImgTags(3,2,1) = "[ /img=right]" ImgTags(3,1,2) = "<img align=""right"" src=""" ImgTags(3,2,2) = """ id=""right"" border=""0"">"
ImgTags(5,1,1) = "[ img=left]" ImgTags(5,2,1) = "[ /img=left]" ImgTags(5,1,2) = "<img align=""left"" src=""" ImgTags(5,2,2) = """ id=""left"" border=""0"">"
My version: ImgTags(3,1,1) = "[ img=right]" ImgTags(3,2,1) = "[ /img=right]" ImgTags(3,1,2) = "<img style=""float: right; padding-left: 5px"" src=""" ImgTags(3,2,2) = """ id=""right"" border=""0"">"
ImgTags(5,1,1) = "[ img=left]" ImgTags(5,2,1) = "[ /img=left]" ImgTags(5,1,2) = "<img style=""float: left; padding-right: 5px"" src=""" ImgTags(5,2,2) = """ id=""left"" border=""0"">"
This doesn't work however, nothing changes in the way the images are displayed. I think I know why too: for the float function to work, the img and the text need to be in the same tags. Example: <P><IMG SRC="nicecellphone.gif" STYLE="float: left; padding-right: 5px;">And you can make calls with it as well!</P> This obviously will not be the case here...
Is the only solution left changing the whole forum from forum code to html? |
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 14 May 2007 : 03:56:35
|
Nobody? |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 14 May 2007 : 05:47:53
|
try adding display:inline to your img style block |
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 14 May 2007 : 10:31:50
|
Like so right?
ImgTags(3,1,1) = "[ img=right]"
ImgTags(3,2,1) = "[ /img=right]"
ImgTags(3,1,2) = "<img style=""display: inline; float: right; padding-left: 5px"" src="""
ImgTags(3,2,2) = """ id=""right"" border=""0"">" I tried it but unfortunately nothing happens visualy... |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 14 May 2007 : 11:05:22
|
ok, try adding the image tag infront of the text rather than after it |
|
|
fakeman
Starting Member
Netherlands
17 Posts |
Posted - 15 May 2007 : 10:27:21
|
That does the trick! Thank you very much for staying with me all this time :D
quote: Originally posted by HuwR
ok, try adding the image tag infront of the text rather than after it
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 15 May 2007 : 11:33:50
|
no problem, glad we could sort it out |
|
|
|
Topic |
|