1
saadahmed
MY Album MODULE HELP!!!!
  • 2006/8/6 22:42

  • saadahmed

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 2


For the My Album Module, there is a Block which enables to display the newest uploaded pictures on the frontpage or anywhere on the website. The default scripting of the block displays a default size of the resized original image. Is there a way i can change the resized image that appears in the block??? i want to make it smaller. Here is the code.. please help.. thank you in advance!!

Quote:

2
khuhner
Re: MY Album MODULE HELP!!!!
  • 2006/8/6 23:26

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

saadahmed wrote:
image. Is there a way i can change the resized image that appears in the block??? i want to make it smaller. Here is the code.. please help.. thank you in advance!!


The value is referenced inside the block file myalbum_topnews.php. But it gets the default value from the MyAlbum Preferences in Admin:

Size of thumbnails (pixel)

Change this to your new value. Note, you need to 'update' the module for it to take affect.

Kurt

3
saadahmed
Re: MY Album MODULE HELP!!!!
  • 2006/8/7 4:40

  • saadahmed

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 2


Awesome it worked!!! well now.. i want to put it in the middle, not in the side blocks.. i also want to take out the date and the title of the photo and line the pictures up horizontally with 5 pictures in each row. how would i do that??

4
saadahmed
Re: MY Album MODULE HELP!!!!
  • 2006/8/7 4:50

  • saadahmed

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 2


i did some changes already... this is how it looks so far.
<ul>
  <{foreach 
item=photo from=$block.photo}>
    <
li><a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"a
    <
a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.width_spec}> alt="<{$photo.title}>" title="<{$photo.title}>" 
  
<{/foreach}>
ul>

5
saadahmed
Re: MY Album MODULE HELP!!!!
  • 2006/8/7 4:59

  • saadahmed

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 2


ok.. done.. it was pretty easy..

here is the code if anyone wants it in the future
<ul>
  <{foreach 
item=photo from=$block.photo}>
    <
a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"a
    <
a href="<{$block.mod_url}>/photo.php?lid=<{$photo.lid}>&cid=<{$photo.cid}>"><img src="<{$photo.thumbs_url}>/<{$photo.lid}>.<{$photo.ext}>" <{$photo.width_spec}> alt="<{$photo.title}>" title="<{$photo.title}>" 
  
<{/foreach}>
ul>

Login

Who's Online

360 user(s) are online (250 user(s) are browsing Support Forums)


Members: 0


Guests: 360


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits