Page 1 of 1

Troubles having added topic starter column

Posted: Wed Jul 23, 2008 5:31 pm
by *Christian*
Hey everyone, i'm having trouble (again :( )

I have followed this guide,
prototech wrote:subsilver2 already has one... it's the "Author" column.
As for prosilver...in viewforum_body.html, find:

Code: Select all

<dt><!-- IF S_DISPLAY_ACTIVE -->{L_ACTIVE_TOPICS}<!-- ELSEIF topicrow.S_TOPIC_TYPE_SWITCH and topicrow.S_TOPIC_TYPE gt 1 -->{L_ANNOUNCEMENTS}<!-- ELSE -->{L_TOPICS}<!-- ENDIF --></dt>
After, add:

Code: Select all

<dd class="topic-author">Topic Starter</dd>
Find:

Code: Select all

<dd class="posts">{topicrow.REPLIES} <dfn>{L_REPLIES}</dfn></dd>
Before, add:

Code: Select all

<dd class="topic-author">{topicrow.TOPIC_AUTHOR_FULL} <dfn>Topic Starter</dfn></dd>
In content.css, find:

Code: Select all

ul.topiclist dt {
	display: block;
	float: left;
	width: 50%;
	font-size: 1.1em;
	padding-left: 5px;
	padding-right: 5px;
}
Replace with:

Code: Select all

ul.topiclist dt {
	display: block;
	float: left;
	width: 38%;
	font-size: 1.1em;
	padding-left: 5px;
	padding-right: 5px;
}
Find:

Code: Select all

dd.posts, dd.topics, dd.views {
	width: 8%;
	text-align: center;
	line-height: 2.2em;
	font-size: 1.2em;
}
Replace with:

Code: Select all

dd.posts, dd.topics, dd.views, dd.topic-author {
	width: 8%;
	text-align: center;
	line-height: 2.2em;
	font-size: 1.2em;
}
After, add:

Code: Select all

dd.topic-author {
  width: 12%;
}
Then refresh your theme and template - ACP => Styles => Style Components => Templates/Themes.
however my index page now shows some unwelcome padding:

Image

Any ideas?

Re: Troubles having added topic starter column

Posted: Wed Jul 23, 2008 11:25 pm
by *Christian*
Bertie Bump :mrgreen:

Re: Troubles having added topic starter column

Posted: Wed Jul 23, 2008 11:27 pm
by Thatbitextra
We have a six hour minimum bump rule here, please obey it :twisted:

Re: Troubles having added topic starter column

Posted: Thu Jul 24, 2008 12:18 am
by prototech
Try changing:

Code: Select all

ul.topiclist dt {
   display: block;
   float: left;
   width: 38%;
   font-size: 1.1em;
   padding-left: 5px;
   padding-right: 5px;
}
To:

Code: Select all

ul.topiclist dt {
   display: block;
   float: left;
   width: 42.5%;
   font-size: 1.1em;
   padding-left: 5px;
   padding-right: 5px;
}

Re: Troubles having added topic starter column

Posted: Thu Jul 24, 2008 11:59 am
by *Christian*
Unfortunately, whilst that made the column on the index page smaller, it caused big problems on viewforum:
Image

@Thatbitextra: Where's the harm in bumping 6 minutes early? ;)

Re: Troubles having added topic starter column

Posted: Thu Jul 24, 2008 8:44 pm
by prototech
After:

Code: Select all

ul.topiclist dt {
   display: block;
   float: left;
   width: 42.5%;
   font-size: 1.1em;
   padding-left: 5px;
   padding-right: 5px;
}
Add:

Code: Select all

.forabg ul.topiclist dt {
  width: 50%;
}
*Christian* wrote:it caused big problems on viewforum
Post a link to your board... I'm not experiencing any problems in viewforum.

Re: Troubles having added topic starter column

Posted: Thu Jul 24, 2008 10:11 pm
by *Christian*
Would you be cool if i PMed you the link?

Site's not quite ready for public view yet :|

Re: Troubles having added topic starter column

Posted: Thu Jul 24, 2008 10:58 pm
by prototech
That would be fine. :)