msg# 1
Hi,
All front page blocks display images vertical. Which one displays images horizontal?
I want to have a block for center column. Blocks available 2.82 made for side blocks left or right only.
I read in another post about xcgal has the correct block it's right. I have both running myalbum & xcgal in one cms. Center block in xcgal can set number of images displays horizontal. I played with block code from xcgal to make it work in myalbum but it's no good. Need professional help!!
Regards,
rocket98
Votes:0
Average:0.00
msg# 1.1
hi rocket98.
What a well-designed module xcgal is !
Of course, I respect Predator.
If I had met xcgal first, I didnot make myAlbum-P.
BTW, it is not so difficult to implement it.
I've added it to my TODO.
Votes:0
Average:0.00
msg# 1.1.1
Hi GIJOE
You say it's so difficult. Is this just some changes in block code or is there more todo under the hood of myalbum in different files?
I play with some block code already but can't figure the horizontal display even using tables. I tried just replacing code from xcgal block with code from my album block but that don't work for me.
xcgal is good but I had some problems with image sizes it does not always present proper size maybe it''s just me or my cache so i fall back on myalbum since you're always around doing things.
thank you keep up excellent work!
Votes:0
Average:0.00
msg# 1.1.1.1
hi rocket98
You can make it only by editing your template.
This is a sample of myalbum*_block_rphoto.html
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<{foreach item=photo from=$block.photo}>
<td align='center' style='margin:0px;padding:5px 0px;'>
<a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a>
</td>
<{if $photo.count is div by 4 }>
</tr>
<tr>
<{/if}>
<{/foreach}>
</tr>
</table>
You can change 4 to any number you want.
Votes:0
Average:0.00
msg# 1.1.1.1.1
Hi GiJoe
I thought so and have played with templates for hours. I see you change code from what's in archive it still only displays a vertical column, how can it display horizontally
image image image
not
image
image
image
Votes:0
Average:0.00
msg# 1.1.1.1.1.1
I can't understand what you mean.
Did you edit the files in templates/blocks/*.html directly?
If so, you have to update the module.
Votes:0
Average:0.00
msg# 1.1.1.1.1.1.1
Hi GiJoe,
Ok,
myalbum_block_rphoto.html
looks like this from fresh install 2.8.2
<center>
<{foreach item=photo from=$block.photo}>
<a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.img_attribs}> alt="<{$photo.title}>" title="<{$photo.title}>" /></a><br />
<{/foreach}>
</center><br />
I swapped out the code you provided above and there was no change in how block displays on site. Was the code you gave a example or working?
http://servicelance.com/index.php have a look here see
I placed code in template then replaced template in myalbum by upload and then upgraded the module now this block shows your code instead of what I have pasted here which is default from install.
Votes:0
Average:0.00
msg# 1.1.1.1.1.1.1.1
It's an issue of XOOPS template.
If you use your custom template,
insert the HTML source into myalbum_block_rphoto.html in your custom template.
Votes:0
Average:0.00
msg# 1.1.1.1.1.1.1.2
hi rocket98.
I've just tested my sample template, and I've found it does not work properly.
I'm sorry that I had never tested the template.
myAlbum-P 2.83 has such a feature.
You can specify the number of cols in block option.
Votes:0
Average:0.00
msg# 1.1.1.1.1.1.1.2.1
Hey GiJoe no problem, I tried it, it would not go for me. Otherwise system works very good.
Cheers
rocket98
Votes:0
Average:0.00