[Finished] Fmnorge.com V2

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

[Finished] Fmnorge.com V2

Post by ett » Sun Apr 05, 2009 7:14 pm

Hello folks. I'm currently developing a new forum style for the site Fmnorge.com, and I need some help.

Based on: Prosilver
Version: 0.5 Beta


Questions:
1. How do I add zebra stripes in the forum-list? (forumlist-body.html)

What I want to achive:
Image

Red lines indicates where I want a different colored background to achive a zebra-striped forum

Code: (forumlist-body.html - no changes done)

Code: Select all

<!-- IF not forumrow.S_IS_CAT -->
		<li class="row">
			<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
					<!-- IF forumrow.FORUM_IMAGE --><span class="forum-image">{forumrow.FORUM_IMAGE}</span><!-- ENDIF -->
					<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a><br />
					{forumrow.FORUM_DESC}
					<!-- IF forumrow.MODERATORS -->
						<br /><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}
					<!-- ENDIF -->
					<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}<!-- ENDIF -->
				</dt>
				<!-- IF forumrow.CLICKS -->
					<dd class="redirect"><span>{L_REDIRECTS}: {forumrow.CLICKS}</span></dd>
				<!-- ELSEIF not forumrow.S_IS_LINK -->
					<dd class="topics">{forumrow.TOPICS} <dfn>{L_TOPICS}</dfn></dd>
					<dd class="posts">{forumrow.POSTS} <dfn>{L_POSTS}</dfn></dd>
					<dd class="lastpost"><span>
						<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
						<!-- 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>
		</li>
	<!-- ENDIF -->
Hope someone can help me out with this issue. I'm hoping for something like this:

Code: Select all

<li class="row">
<!-- more code-->
<li>

<li class="row-zebra">
<!-- more code-->
<li>
I would be very happy to receive a little help here! Thanks in front!

Regards, Thomas
Last edited by ett on Sat Apr 25, 2009 2:11 pm, edited 4 times in total.
Idyll

User avatar
camm15h
Former Team Member
Posts: 4981
Joined: Wed Jul 30, 2003 1:02 am
Location: Hull, UK
Name: Paul Cammish

Re: Fmnorge.com V2

Post by camm15h » Sun Apr 05, 2009 7:28 pm

Hi,

I've had to remove your image example as it was linking to a password protected directory or website.

Please use something like tinypic or imageshack if you are having authentication issues.

User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: [In Progress] Fmnorge.com V2

Post by ett » Sun Apr 05, 2009 7:35 pm

Sorry for that. We are keeping it that way to hide the style because it's still under developement. Will upload it to a password free server right now. :)
Idyll

User avatar
patrikstar
Registered User
Posts: 330
Joined: Sun Feb 12, 2006 9:37 am
Location: Phoenix, AZ
Contact:

Re: [In Progress] Fmnorge.com V2

Post by patrikstar » Mon Apr 06, 2009 4:01 pm

You need to add an if statement

if your using it on the forums then here is what phpBB uses:

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 -->">

User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: [In Progress] Fmnorge.com V2

Post by ett » Mon Apr 06, 2009 8:39 pm

Thank you very, very, very much patrikstar!

I would never had figuered this out myself. This is a really great community, and your help is so much appriciated. Keep up the good work. :)

I feel a lack of documentation on things like this. Am I a bad searcher or dosen't it excist? :)
Idyll

User avatar
patrikstar
Registered User
Posts: 330
Joined: Sun Feb 12, 2006 9:37 am
Location: Phoenix, AZ
Contact:

Re: [In Progress] Fmnorge.com V2

Post by patrikstar » Mon Apr 13, 2009 5:58 am

great to hear just pm me if you got any other questions i havent coded any of my style designs yet but i know quite a bit cause i have to code the style pages for my mod's pages

User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: [In Progress] Fmnorge.com V2

Post by ett » Mon Apr 13, 2009 5:29 pm

Hello folks

Hope all of you had a great hollyday. :)

I need zebra stripes both in viewforum.php and on index.php. This is the code I've landed on. (forumlist_body.html)

Code: Select all

<li class="row<!-- IF forumrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- 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 -->">
The problem is that I get classes like row bg1 bf2 or row bg1 bg1 on each li.row. I tried to do it this way, but it's not working:

Code: Select all

<li class="row
<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT-->
<!-- IF forumrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF -->
<!-- ELSE -->
<!-- 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 -->
<!-- ENDIF -->">
The code is working on topicrow, but not on forumrow.

Hope you have a solution for me.

Regards, Thomas. :)
Idyll

User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: [In Progress] Fmnorge.com V2

Post by ett » Thu Apr 16, 2009 7:56 pm

I need some more help from you guys. Because of the zebra stripes, you'll never know what the color on the last forum or topic background would be. I would like a php code that prints different corners at the bottom depending if it's an even or an uneven number. I will give you an image to help you understand.

Image

I've tried this code, but it's not working. Note that corners-bottom-dark is working other places on the site, so I know it should work fine:

Code: Select all

<span class="<!-- IF forumrow.S_ROW_COUNT is even -->corners-bottom-gray<!-- ELSE --> corners-bottom<!-- ENDIF --><!-- IF topicow.S_ROW_COUNT is even -->corners-bottom-gray<!-- ELSE --> corners-bottom<!-- ENDIF -->"><span></span></span></div>
Can anyone help out? I still need help with the question above too. :)

Thanks in advance.

Regards, Thomas
Idyll

User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: [Help needed] Fmnorge.com V2

Post by ett » Sun Apr 19, 2009 6:13 pm

No one that can help out? :(
Idyll

User avatar
ett
Registered User
Posts: 61
Joined: Mon Jul 19, 2004 9:14 am
Location: Oslo, Norway
Contact:

Re: [Help needed] Fmnorge.com V2

Post by ett » Sat Apr 25, 2009 1:26 pm

The style is now released at Fmnorge.com, but won't be downloadable for you.

Sorry about that, but hope you like the style. :)
Idyll

Locked

Return to “[3.0.x] Styles Support & Discussion”