|
Page 1 of 1
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Last Post Cell Width & Post Text Width Prosilver_ip
A couple of questions!
Does anybody know how to alter the width of the "Last Post" cell on the forum page, I'm using prosilver_ip template.
Ive tried a couple of things in relation to the post below but nothing appears to work
http://www.icyphoenix.com/viewtopic.php?f=32&p=51756#p51756
Also How can I increase the width of the post text?
|
#1 Wed 23 Feb, 2011 18:19 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
Hi again batman,
I haven't carefully read back in that other thread (just a quicky this morning)
But reading this again something in my memory says another line is the "forcing factor" to that box's width, I'm not really sure if it is explained in that thread but I searched the line I was thinking of in file TheSteffen refered to for IP...
Please try playing with this line:
<td class="row1 row-center-small" width="180" nowrap="nowrap"{catrow.forumrow.LINKS_ROWSPAN}><span class="gensmall"><!-- IF S_BOT --> <!-- ELSE -->{catrow.forumrow.LAST_POST}<!-- ENDIF --></span></td>
I think this will help you on your way on your first question, if not ..I got a good excuse ..I'm not an IP user
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#2 Wed 23 Feb, 2011 21:30 |
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
Its no wonder I'm pulling my hair out, just done that edit again i.e.
templates/default/index_box.tpl
<td class="row1 row-center-small" width="180" nowrap="nowrap"{catrow.forumrow.LINKS_ROWSPAN}><span class="gensmall"><!-- IF S_BOT --> <!-- ELSE -->{catrow.forumrow.LAST_POST}<!-- ENDIF --></span></td>
And changed to
<td class="row1 row-center-small" width="300" nowrap="nowrap"{catrow.forumrow.LINKS_ROWSPAN}><span class="gensmall"><!-- IF S_BOT --> <!-- ELSE -->{catrow.forumrow.LAST_POST}<!-- ENDIF --></span></td>
And as before absolutely no change, that's after clearing the cache and even did a disc cleanup to remove temp files etc. even closed and reloaded the page in Internet Explorer, no change whatsoever.
So I tried in google chrome and the  is bigger  Ive spent hours and hours now going through different files and applying new values and noticed no change, I almost gave up on this project as I don't ever remember having so many problems when editing basic template values etc.
A serious lesson learned, test in different browsers
http://www.cage-aviary-birds.co.uk/fbv1/forum.php
EDIT Its not altered on FireFox either
I can also alter do the edit in templates/prosilver_ip/index_box.tpl and works perfectly in Chrome, but FF and IE are just not having none of it.
Maybe its time to look for something ells, these are basics that shouldn't cause any issues
|
#3 Wed 23 Feb, 2011 23:48 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
The other topic (about phpbb that you linked to) showed similar problems (and I did give an extra warning about being crossbrowser compatible right?  ), and even right now I have found an issue like this I don't love on my own boards (phpbb3) that I could not give a fast css fix yet.
I think this is the important word here.. "CSS", this fixed these problems in the other topic.
What I'm also trying to say is ... it's not just like this in Icy Boards! That box is just designed to stretch with its content.
Now I'm not sure what you have and have not tried allready but I would:
- edit both lines (I have a feeling you allready done that as it is obvious  )
- and I would try adding an extra "class" along with "css rules" for it.
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#4 Thu 24 Feb, 2011 09:12 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
What I'm also trying to say is ... it's not just like this in Icy Boards! That box is just designed to stretch with its content.
Now I'm not sure what you have and have not tried allready but I would:
- edit both lines (I have a feeling you allready done that as it is obvious  )
- and I would try adding an extra "class" along with "css rules" for it.
I second this Josh.
Maybe have a look at CSS, find the textbox and at an extra class to it so it does not stretch.
Or maybe the width is set to 100% in css , so change that to your needs.
And for what i can see.
it´s in Common.css and in style blue.css
____________ Out of Order
|
#5 Thu 24 Feb, 2011 09:21 |
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
Thanks fellas, really is appreciated.
I guess I picked the most awkward style to use LOL
I just find it strange how I can alter it no problems in Chrome, that's the confusing part
In FF it doesn't even show the  Ill have another play, any ideas when adding an extra "class" what to ad?
As you say the box is designed to fit the content so maybe a case of altering its padding rather than physical size?
Thanks again fellas
|
#6 Thu 24 Feb, 2011 19:27 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
I'm getting quite confused of the reason you want this edited..
at first i thought it was because when there is 0 posts the box gets very small compared to other boxes that do have posts, in this case a set width is the way to go i guess (but it has to be big enough to fit all content always to make all boxes always look the same)
now i think you just want some space before and after the content, in this case adding 2x will be enough ...one in fornt and one after:
{catrow.forumrow.LAST_POST}
Or more than one if you like
(EDIT: keep in mind that I have not tested anything I'm saying here and that advice from someone that actually uses Icy will probaly be a better advice  )
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#7 Thu 24 Feb, 2011 19:51 |
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
Hya Josh yes its mainly so the content isn't right up against the border, maybe only needs altering slightly just so it looks a bit more centralised.
The easiest thing as I thought was to just make the box a bit bigger, but that's turned in to a bit of a nightmare  but yeh the padding will work out ideal.
Is the edit to be done in templates/prosilver_ip/index_box.tpl or default/index_box.tpl
|
#8 Thu 24 Feb, 2011 20:45 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
I really would not know but since TheSteffen's advice was about Milky Way and he refered to default ..i'ld say default (however prosilver_ip sounds good too  )...you should really await a reply from someone that really knows.
There's also something wrong in my last advice about the position of the (the more I look at it the more confused I get ATM) ...maybe it should be right outside the span tags???
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#9 Thu 24 Feb, 2011 21:22 |
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
I think Ill take your advice and hang on for somebody who knows exactly.
I think it maybe a case of adding left and right padding to this code? But not sure of what to include for it to work or even if this is the right area to edit
<tr>
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap"> {L_FORUM} </th>
<th width="120" colspan="2"> {L_TOPICS} / {L_POSTS} </th>
<th width="180"> {L_LASTPOST} </th>
</tr>
Ill weight for somebody who knows this stuff, I can then concentrate on doing the other stuff I want to do as this has taken forever and got so much other stuff I need to learn before I move the other site over to IP
|
#10 Thu 24 Feb, 2011 21:55 |
|
mort 
 Spam Basher

Joined: August 2010
Posts: 998
Location:  Up a tree
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
I've just finished about 2,000 edits in a programme I'm working on - One more won't hurt.
I've done this by editing your forum in my browser cache, and I can only assume it's index_body.tpl?
Find this in index_body.tpl without the width:60%; and then add it.
You will probably only need one of them. And they are Not one after the other as in the code below.
<td class="row1" style="background: transparent none repeat scroll 0% 0%; width: 60%; -moz-background-clip: border;
<td class="row1 row-center" style="background: transparent none repeat scroll 0% 0%; width: 60%; -moz-background-clip: border;
|
#11 Fri 25 Feb, 2011 10:26 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
I've just finished about 2,000 edits in a programme I'm working on - One more won't hurt.
I've done this by editing your forum in my browser cache, and I can only assume it's index_body.tpl?
Find this in index_body.tpl without the width:60%; and then add it.
You will probably only need one of them. And they are Not one after the other as in the code below.
<td class="row1" style="background: transparent none repeat scroll 0% 0%; width: 60%; -moz-background-clip: border;
<td class="row1 row-center" style="background: transparent none repeat scroll 0% 0%; width: 60%; -moz-background-clip: border;
Meeeeeeeeppp.
Nope.
I would look in viewforum_body.tpl
and search for something like this
- <tr>
- <th colspan="2"><a href="{U_VF_TITLE_SORT}" title="{L_CURRENT_SORT}">{L_TOPICS}{VF_TITLE_SORT}</a></th>
- <th><a href="{U_VF_TIME_SORT}" title="{L_CURRENT_SORT}">{L_AUTHOR}{VF_TIME_SORT}</a></th>
- <th width="50"><a href="{U_VF_VIEWS_SORT}" title="{L_CURRENT_SORT}">{L_VIEWS}{VF_VIEWS_SORT}</a></th>
- <th width="50"><a href="{U_VF_REPLIES_SORT}" title="{L_CURRENT_SORT}">{L_REPLIES}{VF_REPLIES_SORT}</a></th>
- <!-- BEGIN rating_switch -->
- <th style="max-width: 100px;">{L_RATING}</th>
- <!-- END rating_switch -->
- <th><a href="{U_VF_LAST_POST_SORT}" title="{L_CURRENT_SORT}">{L_LASTPOST}{VF_LAST_POST_SORT}</a></th>
- </tr>
and this - <td class="row3 row-center-small" style="padding-top: 0; padding-left: 2px; padding-right: 2px;" nowrap="nowrap">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} <!-- IF S_BOT --> <!-- ELSE -->{topicrow.LAST_POST_IMG}<!-- ENDIF --></td>
- </tr>
Sorry for this one @mort
was just stumbling over this in templates/default
But batman. you should look for this in prosilver/viewforum_body.tpl
It should look nearly the same. maybe one line less in prosilver
____________ Out of Order
|
#12 Fri 25 Feb, 2011 11:51 |
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
I see that spydie, but what do I edit or ad to it?
Is this making the box bigger or increasing the padding, or do I need to ad padding somewhere? I'm confused.com
EDIT: i give up its giving me a migraine LOL
|
#13 Fri 25 Feb, 2011 13:51 |
|
batman 
Karl
Joined: February 2011
Posts: 162
Location:  Cornwall UK
|
 Re: Last Post Cell Width & Post Text Width Prosilver_ip
Hya fellas, still looking for a solution to this problem
How can I increase the width of the post text?
prosilver_ip and IP 1.3.0.53b
|
#14 Wed 23 Mar, 2011 18:09 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|