![]() |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
Nice mod.
|
|
#3
|
|||
|
|||
|
Yes, thank you very much, I was looking for something like this..
|
|
#4
|
|||
|
|||
|
Wow looks awesome dude. Great job.
|
|
#5
|
||||
|
||||
|
So you just replace the current text in the template with this new code and you are set, correct?
|
|
#6
|
||||
|
||||
|
where do I find the original?
|
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
adv_portal_newsbits template is in your VbAdvanced template sub-folder under styles.
|
|
#9
|
|||
|
|||
|
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
|
||||
|
||||
|
Ok I found it and it worked, except for the fact that ip placed all the users signatures outside the blocks
|
|
#11
|
|||
|
|||
|
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
|
||||
|
||||
|
sweet thanks
|
|
#13
|
|||
|
|||
|
cool mod man !! thanks !
|
|
#14
|
|||
|
|||
|
Thanks man I have just changed . it looks cool !
|
|
#15
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
Quote:
|
|
#17
|
|||
|
|||
|
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:
also if you wanna make it little nicer.. find valign="top" change it to valign="middle" ![]() change this PHP Code:
PHP Code:
|
|
#18
|
||||
|
||||
|
Quote:
|
|
#19
|
||||
|
||||
|
Anyone?
|
|
#20
|
||||
|
||||
|
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 | |
|
|