The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Resize Images in vBadvanced News Module Details »» | |||||||||||||||||||||||||
This mod will automatically resize images in the vBadvanced News Module to a given maximum width.
Step 1: Go to adv_portal_newsbits template (under vbAdvanced CMPS templates) and search for: PHP Code:
If you can't find that, then search for: PHP Code:
Immediately before whichever of those you find in your template, add: PHP Code:
Save --------------------- Step 2: Go to additional.css template (under CSS templates) and add the following to that template (replace "512" with whatever max width you want): PHP Code:
or for better (but still not perfect) support in Internet Explorer, use this instead: PHP Code:
Save That's it. Worked for me. This mod is unsupported, as I have almost no knowledge about these things. I was able to get it working based on what I found here: http://www.vbadvanced.com/forum/showthread.php?t=40139 The vB3.8 version of this mod is here: https://vborg.vbsupport.ru/showthread.php?t=247437 Show Your Support
|
Благодарность от: | ||
donkspurs |
Comments |
#2
|
|||
|
|||
Looks like a great idea but i dont have neither of those codes on my template.
Code:
<vb:if condition="!$mod_options['portal_news_legacy']"> <h2 class="blockrow"> <vb:if condition="$mod_options['portal_news_showicon']">{vb:raw vba_style.portal_blockbullet}</vb:if> {vb:raw news.prefix} <a href="{vb:raw vboptions.bburl}/{vb:link thread, {vb:raw news}}">{vb:raw news.title}</a> </h2> </vb:if> <div class="<vb:if condition="$mod_options['portal_news_legacy']">blocksubhead<vb:else />blockrow</vb:if>"> <div<vb:if condition="$mod_options['portal_news_showrating'] AND $news['rating']"> class="vba_rating{vb:raw news.rating}"</vb:if>> <vb:if condition="$news['subscribed'] AND $mod_options['portal_news_showsubscribed']"> <img alt="" class="inlineimg" src="{vb:stylevar imgdir_misc}/subscribed.gif" title="{vb:rawphrase you_are_subscribed_to_this_thread}" /> </vb:if> {vb:raw news.dateposted} - {vb:rawphrase by_x, {vb:link member, {vb:raw news}, null, 'postuserid', 'postusername'}, {vb:raw news.postusername}} </div> </div> <div class="blockrow"> <vb:if condition="$show['paperclip']"> <span style="float:{vb:stylevar right}"> <a href="#" onclick="vba_attach_win({vb:raw news.threadid}); return false"><img class="inlineimg" src="{vb:stylevar imgdir_misc}/paperclip.gif" border="0" title="{vb:rawphrase x_attachments, {vb:raw news.attach}}" alt="" /></a> </span> </vb:if> <table width="100%"> <tr> <td valign="top"> <vb:if condition="$news['avatarpath']"> <img align="{vb:stylevar left}" style="padding: 0 {vb:math {vb:stylevar padding}/2} {vb:math {vb:stylevar padding}/2} 0" alt="{vb:rawphrase xs_avatar, {vb:raw news.postusername}}" border="0" src="{vb:raw news.avatarpath}" /> </vb:if> {vb:raw news.message} </td> </tr> </table> <vb:if condition="$show['signature']"> <div>__________________<br />{vb:raw news.signature}</div> </vb:if> </div> <vb:if condition="$news['attachment']"> <div class="attachments"> <fieldset> <legend>{vb:rawphrase attached_files}</legend> {vb:raw news.attachment} </fieldset> </div> </vb:if> <div class="postbit vba_news"> <div class="postfoot" style="white-space: nowrap"> <div class="textcontrols"> <span class="postcontrols"> <vb:if condition="$show['editbutton']"> <a class="editpost" href="{vb:raw vboptions.bburl}/editpost.php?{vb:raw session.sessionurl}do=editpost&p={vb:raw news.postid}"><img src="{vb:stylevar imgdir_button}/trans_40b.png" id="editimg_{vb:raw news.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a> </vb:if> <vb:if condition="$show['replybutton']"> <span class="seperator"> </span> <a class="quickreply" href="{vb:raw vboptions.bburl}/newreply.php?{vb:raw session.sessionurl}do=newreply&t={vb:raw news.threadid}" rel="nofollow"><img id="replyimg_{vb:raw news.postid}" src="{vb:stylevar imgdir_button}/trans_40b.png" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a> </vb:if> <vb:if condition="$mod_options['portal_news_showsendfriend']"> <span class="seperator"> </span> <a href="{vb:raw vboptions.bburl}/sendmessage.php?{vb:raw session.sessionurl}do=sendtofriend&t={vb:raw news.threadid}" rel="nofollow" style="padding: 0"><img alt="" border="0" src="{vb:stylevar imgdir_button}/sendtofriend.gif" title="{vb:rawphrase send_to_friend}" style="position: relative" /></a> </vb:if> <vb:if condition="$mod_options['portal_news_showprintable']"> <span class="seperator"> </span> <a href="{vb:raw vboptions.bburl}/printthread.php?{vb:raw session.sessionurl}t={vb:raw news.threadid}" rel="nofollow" style="padding: 0"><img alt="" border="0" src="{vb:stylevar imgdir_button}/printer.gif" title="{vb:rawphrase show_printable_version}" style="position: relative" /></a> </vb:if> </span> <span class="postlinking"> <vb:if condition="$mod_options['portal_news_allowreplies']"> {vb:raw news.replycount} <vb:if condition="$news['reply_noformat'] == 1">{vb:rawphrase reply}<vb:else />{vb:rawphrase replies}</vb:if> </vb:if> <vb:if condition="$mod_options['portal_news_showviews'] AND $mod_options['portal_news_allowreplies']"> | </vb:if> <vb:if condition="$mod_options['portal_news_showviews']"> {vb:raw news.views} {vb:rawphrase views} </vb:if> </span> </div> </div> </div> <br /> <br /> |
#3
|
|||
|
|||
Didnt work just broke everything when i click in portal send me to mysite.com/register.php :s and everything looks bad
|
#4
|
|||
|
|||
El Intocable, in your case I think you'd add it just before
PHP Code:
|
#5
|
|||
|
|||
Thank you bro, it worked very good on vb 4.0.3
|
#6
|
|||
|
|||
Quote:
Thanks anyway |
#7
|
|||
|
|||
works like a sharm
but there are 2 of ''' {vb:raw news.message} ''' choose the first one not the other installed |
#8
|
||||
|
||||
for vBadvanced 4.0.0 ?
in vbulletin 4.0.6 ? |
#9
|
|||
|
|||
work great thank very much.
|
#10
|
||||
|
||||
Works Perfect In Vb 4.0.7 And Vbadv 4.0.1
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|