MOD Add-On: Latest Albums - updated v1.1 - نوشته شده در (4215 Views)
Junior Member
Davecl
مطلب: 105
105
The code for mine & Helters latest albums add-on for Burtholds photo album mode is now available here.
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=45

This add-on displays thumbnails of the latest uploaded pic in 20 albums, very easy to install and can be modified to display any number of albums.<
Dave
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Junior Member
Helterskelter
مطلب: 331
331
Davecal done all the hard work.

How ever It's good that some one has at last figered out a way to do this.
Helter<
نوشته شده در
Junior Member
Helterskelter
مطلب: 331
331
You need running the " burthold's" photoablum 1.82mod

and you'll need to edit inc_latestalbumthumb2.asp

Code:
Response.Write strname&"<br><a href=photo_album_cat.asp?sqldtl="&strmemid&"><img src=""http://yourdomain.com/albums/"&strname&"/tn/tn_"&strphoto&"""width=""100"" height=""75""></a>"
Edit the address (in RED)


And you may have to remove the following part in RED
Code:
Response.Write strname&"<br><a href=photo_album_cat.asp?sqldtl="&strmemid&"><img src=""http://yourdomain.com/albums/"&strname&"/tn/tn_"&strphoto&"""width=""100"" height=""75""></a>"

Of course if you have configered to upload to a different file, then you'll have to change from albums (default) to your new folder.
Helter<
نوشته شده در
Development Team Leader
Classicmotorcycling
مطلب: 2085
2085
OK, I have used your MOD, but had to adjust a few things in it, but got it working with a simple 2 lines at the top of the file that needs changing to the one file to make it work for me easier. I also took away the need to adjust your red code above to make it easy for users.

I have a demo of it working at http://www.vncommodore.com/forum/
<
Cheers,

David Greening
نوشته شده در
Junior Member
Davecl
مطلب: 105
105
Thanks David, glad you got it working<
Dave
نوشته شده در
Average Member
richfed
مطلب: 999
999
How may I change the font size for the members' names that appear with their recent photo?<
نوشته شده در
Junior Member
Helterskelter
مطلب: 331
331
In inc_latestalbumthumb2.asp

replace line 39 with the following code.
Code:
Response.Write "<font align=left face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"&strname&"<br><a href=photo_album_cat.asp?sqldtl="&strmemid&"><img src=""http://www.yoursite.com/photo/"&strname&"/"&strphoto&"""width=""100"" height=""75""></a>"

This will now call the text formatting of the forum.
Helter<
نوشته شده در
Average Member
richfed
مطلب: 999
999
Much better ... thanks!<
نوشته شده در
Junior Member
Helterskelter
مطلب: 331
331
No probs. Just need the download file reziped at some point.<
نوشته شده در
Development Team Leader
Classicmotorcycling
مطلب: 2085
2085
OK, found a slight issue with the code. The actual photos do not update on the front page. I will give an example:

I have set the display to 10 photos (on a site not for the public) and it displays the first 10 users in alphabetical order (which will consist of say 3 users starting with A, 4 starting with D, 2 starting with F and 1 with H), but when a user with a name that starts with I or above updates their photo album, the photos do not change on the front page. In other words their phot doesn't show on the front page.
Any help getting this resolved would be great. <
Cheers,

David Greening
نوشته شده در
Starting Member
imweazel
مطلب: 49
49
Originally posted by Classicmotorcycling
OK, found a slight issue with the code. The actual photos do not update on the front page. I will give an example:

I have set the display to 10 photos (on a site not for the public) and
it displays the first 10 users in alphabetical order (which will
consist of say 3 users starting with A, 4 starting with D, 2 starting
with F and 1 with H), but when a user with a name that starts with I
or above updates their photo album, the photos do not change on the
front page. In other words their phot doesn't show on the front page.
Any help getting this resolved would be great.

Try changing the SQL statement to use TOP for Access and LIMIT for SQL
and if you order by the primary key in a descending fashion you should
get the last 10 entries made to the table. Something like this:

SELECT TOP 10 FORUM_ALBUM.Photo_id, FORUM_ALBUM.Photo_Name AS ID,
FORUM_ALBUM_USERS.M_NAME, FORUM_ALBUM.Member_id
FROM FORUM_ALBUM, FORUM_ALBUM_USERS
WHERE (((FORUM_ALBUM.Member_id)=[FORUM_ALBUM_USERS].[MEMBER_ID]) AND
((FORUM_ALBUM.Photo_Status)=1))
GROUP BY FORUM_ALBUM.Photo_id, FORUM_ALBUM.Photo_Name,
FORUM_ALBUM_USERS.M_NAME, FORUM_ALBUM.Member_id
ORDER BY FORUM_ALBUM.Photo_id DESC;



<
شما باید یک متن وارد کنید