vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v4.x > Modifications (version 4.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2012, 08:29 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default 2 Column news format

Ok...I have done a fresh new install of vb (suite) v4.1.9 and CMPS v4.1.2 and only has vb and CMPS installed.

This is what I ended up with:

and you can see it in action on http://www.aviationenthusiasts.net

1. Replace the entire adv_portal_newsbits template with:

Code:
<vb:if condition="$newscount % 2"> 
    <table cellpadding="0" width="100%">   
        <tr>  
            <td valign="top" style="border:1px solid #e9e9e9;">   
<vb:else />
            <td valign="top" width="50%" style="border:1px solid #e9e9e9;">   

</vb:if>
                <h2 class="blockrow">
                    <a style="color:#930000;" href="{vb:raw vboptions.bburl}/{vb:link thread, {vb:raw news}}"><b><font size="3">{vb:raw news.title}</font></b></a><br />
                    <i><font size="1">{vb:raw news.dateposted} - {vb:rawphrase by_x, {vb:link member, {vb:raw news}, null, 'postuserid', 'postusername'}, {vb:raw news.postusername}}</font></i>
                </h2>

                <div class="blockrow">
                    <blockquote class="postcontent restore">{vb:raw news.message}</blockquote>
                </div>
            </td>
<vb:if condition="$newscount % 2 != 1"> 
        </tr>
    </table>
</vb:if>
2. I then changed the settings of the News Module from default to:
News Forum(s) - I selected the forum that the news posts were in
Maximum Number of Threads to Display - 4 (MUST BE AN EVEN NUMBER i.e. 2 or 4 or 6 etc)
Maximum Characters to Display - I changed to 200 but you can enter the number of characters your want to be displayed before the "Read more" link is shown
Separate News Posts - NO (this is very important to have no instead of yes)

That's it

Naturally you can change the template to include other things but what I have provided here is just an example that works.

Hope it helps!
__________________
Regards
Ian
www.recreationalflying.com
Reply With Quote
  #2  
Old 01-17-2012, 08:42 PM
Demojames Demojames is offline
Junior Member
 
Join Date: Jan 2007
Location: Kent, WA
Posts: 9
Default

Very Nice!

I was looking at redo one of our sites and I just may have to "borrow" the layout.
__________________
Demolition Forum
Reply With Quote
  #3  
Old 01-17-2012, 08:44 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

My pleasure Mate...hope it works out for you
__________________
Regards
Ian
www.recreationalflying.com
Reply With Quote
  #4  
Old 01-20-2012, 05:18 PM
Interista Interista is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Default

So nice, I like it .
Thank u ^_^
Reply With Quote
  #5  
Old 01-30-2012, 06:14 AM
viper357 viper357 is offline
Member
 
Join Date: Jun 2006
Location: UK
Posts: 31
Default

Anybody know how to do this for vb3.8?
Reply With Quote
  #6  
Old 01-30-2012, 07:22 AM
CareyCrew CareyCrew is offline
Gone. vB is worthless now
 
Join Date: Sep 2007
Posts: 1,676
Default

Quote:
Originally Posted by viper357 View Post
Anybody know how to do this for vb3.8?
Try playing with this http://www.vbadvanced.com/forum/showthread.php?t=19918
Reply With Quote
  #7  
Old 01-30-2012, 12:45 PM
CareyCrew CareyCrew is offline
Gone. vB is worthless now
 
Join Date: Sep 2007
Posts: 1,676
Default

Quote:
Originally Posted by 3kshopvn View Post
up cho bác, chúc bác bán d?t hÃ*ng.
Post in English
Reply With Quote
  #8  
Old 03-09-2012, 02:49 PM
GreenGuitarGuy GreenGuitarGuy is offline
Junior Member
 
Join Date: Dec 2011
Posts: 5
Default

Quote:
Originally Posted by ibaker View Post
Ok...I have done a fresh new install of vb (suite) v4.1.9 and CMPS v4.1.2 and only has vb and CMPS installed.

This is what I ended up with:

and you can see it in action on http://www.aviationenthusiasts.net
I love the look of your site. Very well done.

If you don't mind me asking, where did you get the video module on your home page, and is it tied in with vbtube?
Reply With Quote
  #9  
Old 03-09-2012, 04:54 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

Yes, it is a part of vbTubePro although it is simply the video player of JW Player (http://www.longtailvideo.com/)
__________________
Regards
Ian
www.recreationalflying.com
Reply With Quote
  #10  
Old 04-06-2012, 04:51 PM
konficus konficus is offline
Junior Member
 
Join Date: Apr 2012
Posts: 2
Default

Is it possible to 2 column without the merging, i mean seperated news like CMS home page.
All news seen in 2 column format.

Even if its possibe to Flash News format like;
1 News
below that 2 column news.

thanks.
Reply With Quote
  #11  
Old 04-08-2012, 03:39 AM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

Do you mean like this:
1 (Copy).JPG

There is one featured news item in 1 col followed by other news items in a 2 col
__________________
Regards
Ian
www.recreationalflying.com
Reply With Quote
  #12  
Old 04-08-2012, 04:22 AM
konficus konficus is offline
Junior Member
 
Join Date: Apr 2012
Posts: 2
Default

Ok it seems ok.
But i really mean news are seperated. and if like a slide show with links it will be perfect. some people did it for vbulletin cms. i am looking for vbadvanced.
Reply With Quote
  #13  
Old 04-09-2012, 03:33 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
Junior Member
 
Join Date: Apr 2011
Location: UK
Posts: 6
Default

Thanks ...looks great
__________________
http://www.groovie-baby.co.uk
Reply With Quote
  #14  
Old 07-30-2012, 12:48 AM
unit1stealth unit1stealth is offline
Junior Member
 
Join Date: Feb 2012
Posts: 16
Default

When I used the code, it pushed my right column off the page. (my page is fixed width, not fluid). Anyway to fix that?
Reply With Quote
  #15  
Old 01-20-2013, 08:27 AM
BUDIMAN's Avatar
BUDIMAN BUDIMAN is offline
Junior Member
 
Join Date: Jul 2010
Posts: 9
Default

Hi, I have a request

Which code to edit if I want to make it in 3 columns ?

Tq
Reply With Quote
  #16  
Old 01-20-2013, 04:22 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

I don't use vb any more mainly because my sites depend on vba if using vb and I am sorry to see Brian having to focus on other things now then vba products so I use Xenforo now.

However, give this a try:
Code:
<vb:if condition="$newscount % 3"> 
    <table cellpadding="0" width="100%">   
        <tr>  
            <td valign="top" style="border:1px solid #e9e9e9;">   
<vb:else />
            <td valign="top" width="33%" style="border:1px solid #e9e9e9;">   

</vb:if>
                <h2 class="blockrow">
                    <a style="color:#930000;" href="{vb:raw vboptions.bburl}/{vb:link thread, {vb:raw news}}"><b><font size="3">{vb:raw news.title}</font></b></a><br />
                    <i><font size="1">{vb:raw news.dateposted} - {vb:rawphrase by_x, {vb:link member, {vb:raw news}, null, 'postuserid', 'postusername'}, {vb:raw news.postusername}}</font></i>
                </h2>

                <div class="blockrow">
                    <blockquote class="postcontent restore">{vb:raw news.message}</blockquote>
                </div>
            </td>
<vb:if condition="$newscount % 3 != 1"> 
        </tr>
    </table>
</vb:if>
Note that the number of news items in Maximum Number of Threads to Display has to be a number dividable by 3
__________________
Regards
Ian
www.recreationalflying.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
date format in news module bela-meaad "How Do I..." Questions 2 04-12-2011 06:24 AM
Can this be done? News Format RetroDreams "How Do I..." Questions 4 06-26-2007 09:19 PM
Modules change format from center to right column... djroppolo Troubleshooting & Problems 7 05-12-2007 11:01 AM
News module: How can I change date format? tresor "How Do I..." Questions 4 04-28-2007 12:04 PM


All times are GMT -4. The time now is 07:49 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.