Rounding prosilvers corners

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
adaptusaaf
BBCoder I
BBCoder I
Posts: 3
Joined: 31 Jul 2010, 06:32

Rounding prosilvers corners

Post by adaptusaaf »

Hi, I need a way to achieve rounded corners on the forum boxes (not category boxes, those are round by default), using images (so it's cross-browser supported)
I'm sure it's really simple but I'm a complete noob.

Image
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Rounding prosilvers corners

Post by Steve »

Should be easy enough todo will post results later ;)
NAPWR wrote: Nice, Stoker is Hot
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Rounding prosilvers corners

Post by Steve »

Open styles/prosilver/template/forumlist_body.html

find:

Code: Select all

	<!-- IF not forumrow.S_IS_CAT -->
		<li class="row">
add after:

Code: Select all

<span class="corners-toper"><span></span></span>
find:

Code: Select all

		<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{forumrow.LAST_POST_TIME}<!-- ELSE -->{L_NO_POSTS}<br />&nbsp;<!-- ENDIF --></span>
					</dd>
				<!-- ENDIF -->
			</dl>
add after:

Code: Select all

<span class="corners-bottomer"><span></span></span>
pressume view forum also
Open styles/prosilver/template/viewforum_body.html

find:

Code: Select all

		<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
		
add after:

Code: Select all

<span class="corners-toper"><span></span></span>
find:

Code: Select all

					<!-- IF not S_IS_BOT --><a href="{topicrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{topicrow.LAST_POST_TIME}</span>
				</dd>
			</dl>
add after:

Code: Select all

<span class="corners-toper"><span></span></span>
Open styles/prosilver/theme/colours.css

find:

Code: Select all

span.corners-bottom span {
	background-image: url("{T_THEME_PATH}/images/corners_right.png");
}
add after:

Code: Select all

span.corners-toper {
	background-image: url("{T_THEME_PATH}/images/corners_left.png");
}

span.corners-toper span {
	background-image: url("{T_THEME_PATH}/images/corners_right.png");
}

span.corners-bottomer {
	background-image: url("{T_THEME_PATH}/images/corners_left.png");
}

span.corners-bottomer span {
	background-image: url("{T_THEME_PATH}/images/corners_right.png");
}
Open styles/prosilver/theme/common.css

find:

Code: Select all

.rules span.corners-bottom {
	margin: 5px -10px 0 -10px;
}
add after:

Code: Select all

span.corners-toper, span.corners-bottomer, span.corners-toper span, span.corners-bottomer span {
	font-size: 1px;
	line-height: 1px;
	display: block;
	height: 5px;
	background-repeat: no-repeat;
}

span.corners-toper {
	background-image: none;
	background-position: 0 0;
	margin: 0px;
}

span.corners-toper span {
	background-image: none;
	background-position: 100% 0;
}

span.corners-bottomer {
	background-image: none;
	background-position: 0 100%;
	margin: 0px;
	clear: both;
}

span.corners-bottomer span {
	background-image: none;
	background-position: 100% 100%;
}
Refresh template/theme for prosilver and refresh your web browser.
Awaits for i want to change the corner image and remove the border top and bottom.

pic:
corner.PNG
NAPWR wrote: Nice, Stoker is Hot
adaptusaaf
BBCoder I
BBCoder I
Posts: 3
Joined: 31 Jul 2010, 06:32

Re: Rounding prosilvers corners

Post by adaptusaaf »

I guess you caught my backup plan post on phpBB.com :)
'i want to change the corner image and remove the border top and bottom.'
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Rounding prosilvers corners

Post by Steve »

Theres two places in prosilvers theme css files to remove the border top and bottom so,

Open styles/prosilver/theme/colours.css
find:

Code: Select all

li.row {
	border-top-color:  #FFFFFF;
	border-bottom-color: #00608F;
}
replace with:

Code: Select all

li.row {
	border-top-color:  none;
	border-bottom-color: none;
}
Open styles/prosilver/theme/content.css
find:

Code: Select all

li.row {
	border-top: 1px solid #FFFFFF;
	border-bottom: 1px solid #8f8f8f;
}
replace with:

Code: Select all

li.row {
	border-top: none;
	border-bottom: none;
}
I will make some images tommorow getting late now.
NAPWR wrote: Nice, Stoker is Hot
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Rounding prosilvers corners

Post by Steve »

ok i made it look spot on and changed viewforum images around also.
Upload these images to prossilver/theme/images/*.*
images (2).zip
** Make sure you do the thml code changes as posted above for forumlist_body.html and viewforum_body.html.

Open styles prosilver/theme/colours.css
find:

Code: Select all

.forabg {
	background-color: #0076b1;
	background-image: url("{T_THEME_PATH}/images/bg_list.gif");
}

.forumbg {
	background-color: #12A3EB;
	background-image: url("{T_THEME_PATH}/images/bg_header.gif");
}
replace with:

Code: Select all

.forabg {
	background-color: #0076b1;
	background-image: url("{T_THEME_PATH}/images/bg_list.gif");
}

.forumbg {
	background-color: #0076b1;
	background-image: url("{T_THEME_PATH}/images/bg_list.gif");
}
find:

Code: Select all

span.corners-bottom span {
	background-image: url("{T_THEME_PATH}/images/corners_right.png");
}
add after:

Code: Select all

/* duplice for internal corners css */
span.corners-toper {
	background-image: url("{T_THEME_PATH}/images/corners_lefter.png");
}

span.corners-toper span {
	background-image: url("{T_THEME_PATH}/images/corners_righter.png");
}

span.corners-bottomer {
	background-image: url("{T_THEME_PATH}/images/corners_lefter.png");
}

span.corners-bottomer span {
	background-image: url("{T_THEME_PATH}/images/corners_righter.png");
}
find:

Code: Select all

li.row {
	border-top-color:  #FFFFFF;
	border-bottom-color: #00608F;
}
replace with:

Code: Select all

li.row {
	border-top: none;
	border-bottom: 1px solid #0076b1;
}
Open styles prosilver/theme/content.css
find:

Code: Select all

	border-top: 1px solid #FFFFFF;
	border-bottom: 1px solid #8f8f8f;
replace with:

Code: Select all

li.row {
	border-top: none;
	border-bottom: 1px solid #0076b1;
}
Refresh theme in admin control panel for prosilver will look like this now.
index.PNG
vforum.PNG
NAPWR wrote: Nice, Stoker is Hot
User avatar
neptune
BBCoder II
BBCoder II
Posts: 35
Joined: 09 Mar 2010, 12:23

Re: Rounding prosilvers corners

Post by neptune »

wooow looks great now, thx a lot for your edits xD

is this only for forums or are the edits also affect all boxes in phpbb3
Last edited by neptune on 05 Aug 2010, 14:55, edited 1 time in total.
Image
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Rounding prosilvers corners

Post by Steve »

Where else do you want internal rounded corners?
NAPWR wrote: Nice, Stoker is Hot
User avatar
neptune
BBCoder II
BBCoder II
Posts: 35
Joined: 09 Mar 2010, 12:23

Re: Rounding prosilvers corners

Post by neptune »

on all "forabg" corners on every box like arcade or nv recent topics or anouncement centre etc.
Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Rounding prosilvers corners

Post by cisco007 »

seems like you want a completely different style than the default prosilver!
Locked