vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 06-08-2004, 03:08 AM
Alex@i-Club Alex@i-Club is offline
Junior Member
 
Join Date: May 2004
Posts: 18
Default Image Uber Friendly Front Page News Displaying Template

I always wanted to have the news on the front page look better, so I modded the adv_portal_newsbits template to display attachment in a front page specific way. Looks much cleaner, I think. I am attaching the text file. Remember, that you might need to modify one of the table widths to whatever width you want your attachment thumbnails to be displayed. I am using 300 pixles. It displays them nicely on the left side if they are present and displays news in a normal fasion if they are not there.

I am pretty new to all of this so if you see something I did wrong, please let me know. Also, I was wondering if there is any way to make the text wrap under the thumbnail, if the post is long enough. I tried using the $attachment call as an image and have the text be alligned at its top, but something is causing the align="top" to be "pushed" into becoming text. Oh well. Please let me know if there is a way of doing it so.

Hope someone finds this usefull.
Attached Images
File Type: jpg news.jpg (148.7 KB, 2142 views)
Attached Files
File Type: txt adv_portal_newsbits.txt (3.5 KB, 906 views)
  #2  
Old 06-08-2004, 10:33 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Image Uber Friendly Front Page News Displaying Template

Nice mod.
  #3  
Old 06-08-2004, 10:35 PM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Thumbs up Re: Image Uber Friendly Front Page News Displaying Template

Yes, thank you very much, I was looking for something like this..
  #4  
Old 06-09-2004, 05:35 PM
Ras Masta Ras Masta is offline
Member
 
Join Date: Mar 2004
Posts: 33
Default Re: Image Uber Friendly Front Page News Displaying Template

Wow looks awesome dude. Great job.
  #5  
Old 06-09-2004, 06:10 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

So you just replace the current text in the template with this new code and you are set, correct?
  #6  
Old 06-09-2004, 06:12 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

where do I find the original?
  #7  
Old 06-09-2004, 07:55 PM
ptourvi1@twcny. ptourvi1@twcny. is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Image Uber Friendly Front Page News Displaying Template

Quote:
Originally Posted by mholtum
where do I find the original?
lol I couldn't find it at first either, it's under vbcmps advance templates, or you can search templates for it in the admincp
  #8  
Old 06-09-2004, 08:00 PM
Alex@i-Club Alex@i-Club is offline
Junior Member
 
Join Date: May 2004
Posts: 18
Default Re: Image Uber Friendly Front Page News Displaying Template

adv_portal_newsbits template is in your VbAdvanced template sub-folder under styles.
  #9  
Old 06-09-2004, 08:01 PM
Alex@i-Club Alex@i-Club is offline
Junior Member
 
Join Date: May 2004
Posts: 18
Default Re: Image Uber Friendly Front Page News Displaying Template

And yes, you just replace the contents of your original one. Save the bits from your original one just in case and remember, that you might need to change something in my version.
  #10  
Old 06-09-2004, 08:07 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

Ok I found it and it worked, except for the fact that ip placed all the users signatures outside the blocks
  #11  
Old 06-09-2004, 10:31 PM
Alex@i-Club Alex@i-Club is offline
Junior Member
 
Join Date: May 2004
Posts: 18
Default Re: Image Uber Friendly Front Page News Displaying Template

Oh, I have sigs disabled, so I didn't check that.

Let me play with it and I will fix it and update the tread.
  #12  
Old 06-10-2004, 12:14 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

sweet thanks
  #13  
Old 06-12-2004, 09:55 PM
Kengan Kengan is offline
Junior Member
 
Join Date: May 2004
Posts: 10
Default Re: Image Uber Friendly Front Page News Displaying Template

cool mod man !! thanks !
  #14  
Old 06-13-2004, 08:33 AM
Kengan Kengan is offline
Junior Member
 
Join Date: May 2004
Posts: 10
Default Re: Image Uber Friendly Front Page News Displaying Template

Thanks man I have just changed . it looks cool !
  #15  
Old 07-02-2004, 10:48 AM
bandit bandit is offline
Junior Member
 
Join Date: Jul 2004
Posts: 2
Default Re: Image Uber Friendly Front Page News Displaying Template

Quote:
Originally Posted by Alex@i-Club
Remember, that you might need to modify one of the table widths to whatever width you want your attachment thumbnails to be displayed. I am using 300 pixles. It displays them nicely on the left side if they are present and displays news in a normal fasion if they are not there.

so, how exactly do i modify the table width like you said?

is it in a template, or just a value in the admincp vba options?

thanks,

-jeff
  #16  
Old 07-03-2004, 02:43 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

Quote:
Originally Posted by Alex@i-Club
Oh, I have sigs disabled, so I didn't check that.

Let me play with it and I will fix it and update the tread.
Fix it yet so I can use this?
  #17  
Old 07-03-2004, 06:15 PM
Merjawy Merjawy is offline
Member
 
Join Date: Apr 2004
Posts: 80
Talking Re: Image Uber Friendly Front Page News Displaying Template

Very nice indeed. install it and looks cool

ofcourse I already do not allow sig in news.. but I use avatar and the avatar sitting up there alone doesn't look good so I just disabled the use of avatar.


Quote:
Originally Posted by mholtum
Fix it yet so I can use this?
just disable signature in news from CMPS Default settings.. most are doing that as you really don't want the sig to change the layout.. like me the news forum is not really news forum and anyone can post in it.. so I just disabled the sig all together

also if you wanna make it little nicer..

find valign="top" change it to valign="middle"

change this

PHP Code:
            <if condition="$news['attachmentid']">
                <
tr class="alt1">
                <
td valign="top">
                    
$attachment
                
</td
to this

PHP Code:
            <if condition="$news['attachmentid']">
                <
tr class="alt1">
                <
td valign="middle">
                    
$attachment
                
</td
This will place the attachment in middle rather than the top leaving alot of space under it if the news artical is long
  #18  
Old 07-04-2004, 01:45 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

Quote:
Originally Posted by Alex@i-Club
Remember, that you might need to modify one of the table widths to whatever width you want your attachment thumbnails to be displayed. I am using 300 pixles.
Where would I do this?
  #19  
Old 07-04-2004, 06:58 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Image Uber Friendly Front Page News Displaying Template

Anyone?
  #20  
Old 07-05-2004, 08:10 PM
Jason McConnell's Avatar
Jason McConnell Jason McConnell is offline
Senior Member
 
Join Date: Jun 2004
Location: Syracuse, NY
Posts: 170
Default Re: Image Uber Friendly Front Page News Displaying Template

This sounds like a very kewl hack... and I'd like to use it but I have a problem with uploading attachments. Off to vBulletin I go
 


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


All times are GMT -4. The time now is 06:12 PM.

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.