problem editing forumlist_body.html ~ culd sum1 take a look?

phpBB3 styling support, style coding, and style graphics assistance.
Forum rules
Style coding and style related questions only.

problem editing forumlist_body.html ~ culd sum1 take a look?

Postby oneeezy » 30 Nov 2010, 14:42

Hi,
Go checkout http://www.phone7forum.com/ , If you look at the first box on the right that says "Windows Phone 7 Forum", that's the same box I'm trying to use in my forumlist_body.html page.., but as you can see I'm running into some problems when trying mesh my design into the prosilver 3.0.8 original forumlist_body.html design. I'm pretty knew to working with phpBB but I'm slowly starting to figure it out. I mean I got the main jist of it but still figuring out this coding. Can anyone help me out with my problem?

My Code is the first one (my attempt at meshing it) and the 2nd is the original prosilver code:

MY STYLE
Code: Select all
<!-- BEGIN forumrow -->
   <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT  -->
         
   <!-- ENDIF -->

   <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->



<div id="mybox_wrapper">
               <div class="my_sidebox">
               
               
                <div class="box_tl"></div>
              <div class="box_tm">
             <div class="box_tmbg">
               
                <h1>
                <!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF -->
                </h1>
               
                </div></div>
              <div class="box_tr"></div>

               
                <div class="boxwrap">
               
                <div class="blue_bg">
                         <ul class="topiclist">
                            <li class="header">
                                <dl class="icon">
                                   <dd class="topics">Forum</dd>
                                    <dd class="topics">{L_TOPICS}</dd>
                                    <dd class="posts">{L_POSTS}</dd>
                                    <dd class="lastpost"><span>{L_LAST_POST}</span></dd>
                                </dl>
                            </li>
                         </ul>
                </div>
               
                <div class="boxbody_left"></div>
   
             <div class="boxbody">
               
                <ul class="topiclist forums">
   <!-- ENDIF -->

   <!-- 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 S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><!-- <a class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f={forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" /></a> --><!-- ENDIF -->

               <!-- 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.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF -->
                  <!-- 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 -->

   <!-- IF forumrow.S_LAST_ROW -->
         </ul>

         </div>
      </div>
       
      <!-- ENDIF -->
            <!-- END forumrow --> 
 
       
       
       
       
       
       
       
       
               
            </div> <!-- boxbody end -->
       
              <div class="boxbody_right"></div>
     
       
            </div> <!-- boxwrap end -->
               
                <div class="boxwrap2">
               <div class="box_bl"></div>
                <div class="box_bm"></div>
                <div class="box_br"></div>
            </div> <!-- boxwrap2 end -->
       
       
                </div> <!-- my sidebox ends -->
               
            </div>  <!-- mybox_wrapper ends -->



ORIGINAL CODE

Code: Select all
<!-- BEGIN forumrow -->
   <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT  -->

         </div>
      </div>
   <!-- ENDIF -->

   <!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
   
      <div class="forabg">
         <div class="inner">
         <ul class="topiclist">
            <li class="header">
               <dl class="icon">
                  <dt><!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF --></dt>
                  <dd class="topics">{L_TOPICS}</dd>
                  <dd class="posts">{L_POSTS}</dd>
                  <dd class="lastpost"><span>{L_LAST_POST}</span></dd>
               </dl>
            </li>
         </ul>
         <ul class="topiclist forums">
   <!-- ENDIF -->

   <!-- 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 S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><!-- <a class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f={forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" /></a> --><!-- ENDIF -->

               <!-- 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.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF -->
                  <!-- 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 -->

   <!-- IF forumrow.S_LAST_ROW -->
         </ul>

         </div>
      </div>
   <!-- ENDIF -->

<!-- END forumrow -->


Thanks for the help guys! :grin:
oneeezy    
Cadet III
Cadet III
 
Posts: 33
Joined: 30 Nov 2010, 14:10
Gender: Male
phpBB Knowledge: 4


Re: problem editing forumlist_body.html ~ culd sum1 take a look?

Postby oneeezy » 01 Dec 2010, 17:51

anything guys? I cannot figure this thing out :/
http://www.phone7forum.com ❝Tricks, Tips, Hacks, Apps, and Games for your Windows Phone 7!❞
oneeezy    
Cadet III
Cadet III
 
Posts: 33
Joined: 30 Nov 2010, 14:10
Gender: Male
phpBB Knowledge: 4

Re: problem editing forumlist_body.html ~ culd sum1 take a look?

Postby Sniper_E » 01 Dec 2010, 18:38

I don't think anyone would want to touch that. We would have to have that style installed to see what's up.

Why are the two </div>s missing from your codes?
Code: Select all
<!-- BEGIN forumrow -->
   <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT  -->

         </div>
      </div>
   <!-- ENDIF -->

That first section at the top is what ends the cat and after that it starts a new one. You have those removed from your codes.
Whatever it is that you have in your custom style that ends your <div> needs to be up there.
You can not end it lower in the codes like you are doing. That is not the way the forumlist works.

When your cat starts it will bypass that top section. After all the forums have been listed then it will close the cat using those top lines.
It's a loop that happens though that template calling for the codes needed to open or close a <div> depending what's been loaded already.
You would have to study the original forumlist codes and understand how it works to know what I'm talking about.

That page will grab a cat first and then all the forums in that cat and then it will use those first lines to end that cat.
Then it will grab the next cat and all of the forums in that cat and then it will use those first lines again, nothing else in the page.
It will keep looping through that page doing that until all the cats and their forums are read from the database.

Your forum is not closing the cats like that template was designed to do. I see that at your site.
Move your closing </div>s from lower in your page and put them up there in that first section.
You could zip up that style and have someone look at it.

Even in the original codes that you posted up there.... they are wrong. That is not the original codes that comes with a style.

This is:
Code: Select all
   <!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT  -->
         </ul>

         <span class="corners-bottom"><span></span></span></div>
      </div>
   <!-- ENDIF -->

Put that up there and see what happens to your page.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: problem editing forumlist_body.html ~ culd sum1 take a look?

Postby oneeezy » 02 Dec 2010, 11:07

Awesome info man, thanks. I had no idea it was a loop.., those closing divs were really throwing me off... Well, knowing what I know now from what you just said I'm going to play around with it a bit and see if I can't get it going... Would you maybe want to look at it? I'll be happy to zip it up but that's kinda asking a lot it seems. I'm betting I just need to start from scratch (the original file), and give it another go now w/ what you told me. Hopefully I will have some better luck.

So are there any other surprises like that I should look out for? B'cuz when i get done w/ this I'll be getting into the topics and what not
http://www.phone7forum.com ❝Tricks, Tips, Hacks, Apps, and Games for your Windows Phone 7!❞
oneeezy    
Cadet III
Cadet III
 
Posts: 33
Joined: 30 Nov 2010, 14:10
Gender: Male
phpBB Knowledge: 4

Re: problem editing forumlist_body.html ~ culd sum1 take a look?

Postby oneeezy » 02 Dec 2010, 13:38

I got it first try!!!!!!!!!!!!! thanks so much for your help Snipe
http://www.phone7forum.com ❝Tricks, Tips, Hacks, Apps, and Games for your Windows Phone 7!❞
oneeezy    
Cadet III
Cadet III
 
Posts: 33
Joined: 30 Nov 2010, 14:10
Gender: Male
phpBB Knowledge: 4

Re: problem editing forumlist_body.html ~ culd sum1 take a look?

Postby Sniper_E » 02 Dec 2010, 21:08

Thank you oneeezy, it is so nice to see someone digging in and learning.
I bet you studied those codes and half way figured it out. I'm glad you got it.
It's real nice to see someone take the effort and succeed. Great Job! :good:

But if you would have tried and tried and couldn't get it.... I, uh, someone may have rolled up their sleeves and come to your rescue. :grin:
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6980
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: problem editing forumlist_body.html ~ culd sum1 take a look?

Postby oneeezy » 03 Dec 2010, 00:55

LOL, yea man.. i definitely eyed them up but knowing that extra bit of info you had really help me stick it. Well hopefully I won't have to be doing any zippin' lol... but I'm sure I'll have more questions I'll be posting up on here somewhere..

Thanks again!
http://www.phone7forum.com ❝Tricks, Tips, Hacks, Apps, and Games for your Windows Phone 7!❞
oneeezy    
Cadet III
Cadet III
 
Posts: 33
Joined: 30 Nov 2010, 14:10
Gender: Male
phpBB Knowledge: 4


Return to phpBB3 Styling Assistance

Who is online

Users browsing this forum: No registered users and 3 guests