![]() |
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 |
Are you using vBadvanced??
If so they can look like THIS I try to keep my images to around 100 x 100, however image size is totally up to you.... |
project-Buckfas how are you posting different images with each post or you just using bbcode?
|
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! |
thanks for the response :). yeah I was hoping it was something kinda like phpnuke uses where you could chose the image per news post.
|
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']"> |
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 |
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 |
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.
|
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?
|
you must be cause its in there. which version are you running?
|
Quote:
|
This is not my hack. I seen it posted somewhere else, but there was no author e.t.c...
I cannot offer support for this, but can help to a certain extent... |
only thing im trying to figure out is how to get the attachment to open the thread instead of the attachment.
|
Great idea. I'll have a look later when I get home
|
yeah Im going to look it over more today and see what I see. Would make it so much nicer since all it does right now is open the attachment.
|
project-Buckfas I was able to get it working great.
postbit_attachmentthumbnail erase what you have in there and add this. Code:
<if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$news[threadid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a></if> |
1 Attachment(s)
It works great on vbadvanced, but when I attach an image in a post, the attachment doesn't show.
|
I havent tried it that way Ill look now and see if I can see why
|
Great, thanks DementedMinds
|
Try this and let me know if it works for you.
Code:
<if condition="THIS_SCRIPT == 'adv_index'"><a href="showthread.php?$session[sessionurl]t=$news[threadid]"><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1" border="0" alt="<phrase 1="$attachment[filename]" 2="$attachment[counter]" 3="$attachment[filesize]">$vbphrase[image_larger_version_x_y_z]</phrase>" /></a> |
Thats it! Works a treat.
Thanks for that! |
No problem I been messing with it and I kept going till I got It. At first my members had to be going crazy cause I had 2 attachments per news post until I figured out.
I also edited the phrase for it so it didnt show click to show larger image this way it just shows the image name and size. |
is that any hack for resize [img]files in vbadvanced ?? i realy need it ..
|
how small do you want the images?
|
250 * 300 pixel . and if possible fix the images so that it automaticly shows up in the top left corner of the box .
tnx |
thats a huge image.. you might want to look on vbadvanced to see if anyone resized them that large. personally I would never have them that large on my main page.
|
u know in this site ( link in post #2 ) : http://www.niinterests.com/
all the pics are in 118*112pixel . i think its alitlle small for my job .. if i know the quality of big pics are not going to be low , this size is perfet size . otherwise i think 150*180 PIXEL is great .. tnx |
no the quality of the pics dont change at all. test it out see how you like it. I use mine for news post this way I can have different images on each news post.
|
ok .. good .. so the size is not important anymore .. i can use this size too ( 118 * 112 ) but how can i make it ? with which code or hack ?
Tnx anyway for ur quick response :) |
it will auto size the image read the thread it explains how to do it.
|
i have read this thread and i did as it said but i it is for attachments images . but in my site no one attach any image .. they just put URL of images in [img] html codes ..
i think if u do me a favor to take ur time and visit my vbadvanced u will see what i exactly mean .. Tnx Code:
http://mechodownload.com/forum/cmps_index.php |
i know what ur using but i dont think your going to get it any other way with out using the attachments. good luck
|
its so bad for me . caz i cant say to my users that u must attach ur images 2 ur topics :( . so i think if we couldnt make any resizer for this images i think i must go and serach for fix ke height and width of news moudle .
' tnx anyway :) |
when i use
Code:
<if condition="!$mod_options['portal_news_legacy']"> |
its cause there set to post them to the left look at the code.
|
Quote:
|
its the way you are doing it ill have to look at my settings and see what i have if you read this whole thread it will make it show on your vbadvanced on the left side perfect
|
Quote:
Thanks a lot . Thats working ! |
All times are GMT. The time now is 11:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|