The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need News!!! Image Alignment Module/hack
I am in a DESPERATE need to align my news image on my homepage. I have seen many hacks posted for versions 3.5 but none seem to work with 3.6.
I will even pay for this hack/coding. PLEASE let me know asap. THANK YOU |
#3
|
|||
|
|||
project-Buckfas how are you posting different images with each post or you just using bbcode?
|
#4
|
|||
|
|||
DementedMindz
They are attached images. You attach an image to a post as you normally would. Any attached image will show in vbadvanced. As said above I try to keep my images to 100x100 pixels. It keeps things inline and neat looking! |
#5
|
|||
|
|||
thanks for the response . yeah I was hoping it was something kinda like phpnuke uses where you could chose the image per news post.
|
#6
|
|||
|
|||
Edit the template: adv_portal_newsbits
REPLACE all the code in that template with this code. Don't forget to make a backup of the original beforehand. Code:
<if condition="!$mod_options['portal_news_legacy']"> <tr> <td class="thead"><if condition="$mod_options['portal_news_showicon']">$vba_style[portal_blockbullet]</if> <a href="$vboptions[bburl]/showthread.php?t=$news[threadid]">$news[title]</a></td> </tr> </if> <tr> <td class="<if condition="$mod_options['portal_news_legacy']">thead<else />alt2</if>"> <if condition="$mod_options['portal_news_showrating'] AND $news['votenum']"> <span style="float:$stylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$news[rating].gif" title="<phrase 1="$news[votenum]" 2="$news[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span> </if> $news[dateposted] - <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase> </td> </tr> <tr> <td align="$stylevar[left]" class="alt1" valign="top"> <if condition="$news['avatarpath']"> <img align="$stylevar[left]" style="padding:6px" alt="" border="0" src="$news[avatarpath]" title="$news[postusername]'s $vbphrase[avatar]" /> </if> <if condition="$news['attachment']"> <span style="float: left; margin: $stylevar[cellpadding]px $stylevar[cellpadding]px $stylevar[cellpadding]px 0px"> $news[attachment] </span> </if> $news[message] <if condition="$show['signature']"> <div>__________________<br /> $news[signature]</div> </if> </td> </tr> <tr class="alt2" valign="middle"> <td valign="middle"> <span style="float:right"> <if condition="$show['editbutton']"> <a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&p=$news[postid]"><img alt="$vbphrase[edit_this_post]" border="0" src="$stylevar[imgdir_button]/edit.gif" /></a> </if> <if condition="$show['replybutton']"> <a href="$vboptions[bburl]/newreply.php?$session[sessionurl]do=newreply&t=$news[threadid]"><img alt="$vbphrase[reply_to_this_post]" border="0" src="$stylevar[imgdir_button]/reply_small.gif" /></a> </if> <if condition="$mod_options['portal_news_showsendfriend']"> <a href="$vboptions[bburl]/sendmessage.php?$session[sessionurl]do=sendtofriend&t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/sendtofriend.gif" title="$vbphrase[send_to_friend]" /></a> </if> <if condition="$mod_options['portal_news_showprintable']"> <a href="$vboptions[bburl]/printthread.php?$session[sessionurl]t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/printer.gif" title="$vbphrase[show_printable_version]" /></a> </if> </span> <span class="smallfont"> <if condition="$mod_options['portal_news_allowreplies']">$news[replycount] <if condition="$news['replycount'] == 1">$vbphrase[reply]<else />$vbphrase[replies]</if> | </if> $news[views] $vbphrase[views]</span> </td> </tr> |
#7
|
|||
|
|||
ok another question for you how did you remove the size from the image? cause mine shows the thumbnail fine but it displays the width and height under it also how did you get the feildset around your image on the post?
ok i removed the deminisions i would just like the feild set that looks good if you dont mind |
#8
|
|||
|
|||
For those that are having problems with guests seeing images, you will need to set the usergroups permissions as follows...
Admincp --> Usergroup Manager --> unregistered/not logged in (or desired usergroup) Look for "forum viewing permissions" Set "Can Download Attachments" to yes |
#9
|
|||
|
|||
project-Buckfas I noticed one flaw with this. If you dont give a long enough description where it would say read more it will post the attachment on the left and under the post it will say the word attachment with the link.
|
#10
|
|||
|
|||
project-Buckfas, about your hack. We have vbAdvanced powering our CMPS, but I don't have a adv_portal_newsbits. Am I running an older version or something?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|