phpBB.com     phpBB Academy     phpBB Modders     phpBB Weekly     ktuk     phpBB Hacks     Vlad Studio  

2 Column Forum Layout

Allows you to show your forums in a 2 column layout, rather than 1 long list.

Not enough for a full proper MOD, but too useful not to share
Forum rules
Please read over our forum guidelines

2 Column Forum Layout

Postby Daan » 29 Nov 2008, 18:20

Six String Mods doesn't support any SubSilver2 snippets. Al snippits will only provide ProSilver styles.
User avatar
Daan Daan has donated to 6 String MODs
Donator
Donator
 
Posts: 13
Joined: 28 Sep 2008, 15:39
Location: The Netherlands

Donate to 6 String MODs
If you like any of the work that I do here, please consider donating.
click the image on the left for a list of some of the advantages of donating



2 Column Forum Layout

Postby halabit » 01 Dec 2008, 04:04

Code for SubSilver2 don't work properly , I rewrite a code for forumlist_body.html a little , enjoy ... :D

Code: Select all
    <table class="tablebg" cellspacing="1" width="100%">
    <!-- BEGIN catrow -->
       <tr>
             <td class="cat" colspan="2"><h4><a href="{catrow.U_VIEWFORUM}">{catrow.FORUM_NAME}</a></h4></td>
       </tr>
       <tr>
          <td width="50%" valign="top">
             <table width="100%">
                <!-- BEGIN forumrow -->
                   <!-- IF forumrow.S_ROW_COUNT is even -->
                      <tr>
                         <td class="row1" width="80" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
                         <td width="100%" class="row1">
            <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
                               <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
                               <p class="forumdesc">{forumrow.FORUM_DESC}</p>
            <!-- IF forumrow.CLICKS -->
                      <span>{L_REDIRECTS}: {forumrow.CLICKS}</span>
                   <!-- ELSEIF not forumrow.S_IS_LINK -->
                      <br /><br />{forumrow.TOPICS} {L_TOPICS} / {forumrow.POSTS} {L_POSTS} &nbsp;
                      <!-- IF forumrow.LAST_POST_TIME --> <a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_TIME}">{LAST_POST_IMG} {L_LAST_POST}</a> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}<br />
                       <!-- ELSE -->{L_NO_POSTS}<!-- ENDIF -->
                   <!-- ENDIF -->
                               <!-- IF forumrow.SUBFORUMS -->
                                     <p class="forumdesc"><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}</p>
                               <!-- ENDIF -->
                         </td>
                      </tr>
                   <!-- ENDIF -->
                <!-- END forumrow -->
             </table>
          </td>
          <td width="50%" valign="top">
             <table width="100%">
                <!-- BEGIN forumrow -->
                   <!-- IF forumrow.S_ROW_COUNT is odd -->
                      <tr>
                         <td class="row1" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
                         <td width="100%" class="row1">
            <div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
                               <a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
                               <p class="forumdesc">{forumrow.FORUM_DESC}</p>
            <!-- IF forumrow.CLICKS -->
                      <span>{L_REDIRECTS}: {forumrow.CLICKS}</span>
                   <!-- ELSEIF not forumrow.S_IS_LINK -->
                      <br /><br />{forumrow.TOPICS} {L_TOPICS} / {forumrow.POSTS} {L_POSTS} &nbsp;
                      <!-- IF forumrow.LAST_POST_TIME --> <a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_TIME}">{LAST_POST_IMG} {L_LAST_POST}</a> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}<br />
                       <!-- ELSE -->{L_NO_POSTS}<!-- ENDIF -->
                   <!-- ENDIF -->
                               <!-- IF forumrow.SUBFORUMS -->
                                     <p class="forumdesc"><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}</p>
                               <!-- ENDIF -->
                         </td>
                      <!-- ENDIF -->
                   </tr>
                <!-- END forumrow -->
             </table>
          </td>
       </tr>
    <!-- END catrow -->
    </table>
User avatar
halabit
Registered User
Registered User
 
Posts: 2
Joined: 01 Dec 2008, 04:01

2 Column Forum Layout

Postby kenny » 01 Dec 2008, 20:52

Copied from .com
halabit - thanks for your work on this. I have not tested it, but will try.
If anyone else can test and confirm it works, I can update the code on my site :)
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

2 Column Forum Layout

Postby halabit » 02 Dec 2008, 02:58

Hey np , I forgot to put demo pic , here you go quick demo :

http://www.ajwot.net/demo

Problem was that forum img didn't show up , also number of topics and last posters didn't show up as well . Also sometime with old code forum have double every category .
User avatar
halabit
Registered User
Registered User
 
Posts: 2
Joined: 01 Dec 2008, 04:01

2 Column Forum Layout

Postby kenny » 02 Dec 2008, 08:44

Excellent, that demo is good enough for me to go on.
Thanks for your work on this, i'm sure people will be happy - 1st post updated :mrgreen:
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

2 Column Forum Layout

Postby V02 » 05 Feb 2009, 05:11

how to remove 'Last post by xxx'?
User avatar
V02
Registered User
Registered User
 
Posts: 2
Joined: 05 Feb 2009, 02:33

2 Column Forum Layout

Postby kenny » 05 Feb 2009, 12:22

V02 wrote:how to remove 'Last post by xxx'?

Look in the HTML for this code and remove it :)
Code: Select all
{L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

2 Column Forum Layout

Postby V02 » 07 Feb 2009, 09:37

Image

how to adjust that one to 1 line?

thanks kenny.

my site : http://vs-zone.org
User avatar
V02
Registered User
Registered User
 
Posts: 2
Joined: 05 Feb 2009, 02:33

2 Column Forum Layout

Postby kenny » 07 Feb 2009, 18:06

Open up your content.css file (styles/YOUR_STYLE/theme/content.css)
FIND:
Code: Select all
ul.topiclist dt

FIND:
Code: Select all
   width: 50%;

REPLACE WITH:
Code: Select all
   width: 52%;

Save, close and upload - now refresh the theme in your ACP and purge the cache :)
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

2 Column Forum Layout

Postby RAdamWilliams » 20 Feb 2009, 02:27

Just a quick question, how can I remove the default post icons and just have the special ones?
User avatar
RAdamWilliams
Registered User
Registered User
 
Posts: 1
Joined: 20 Feb 2009, 02:20

PreviousNext



Return to Code Snippets

Who is online

Alexa [Bot], Yahoo [Bot]


cron