The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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.<
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
Last edited by Davecl on 28 November 2005, 04:54
Posted
Posted
You need running the " burthold's" photoablum 1.82mod
and you'll need to edit inc_latestalbumthumb2.asp
Edit the address (in RED)
And you may have to remove the following part in RED
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<
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>"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<
Last edited by Helterskelter on 20 November 2005, 03:33
Posted
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/
<
I have a demo of it working at http://www.vncommodore.com/forum/
<
Cheers,
David Greening
David Greening
Posted
Thanks David, glad you got it working<
Dave
Posted
How may I change the font size for the members' names that appear with their recent photo?<
Posted
In inc_latestalbumthumb2.asp
replace line 39 with the following code.
This will now call the text formatting of the forum.
Helter<
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<
Last edited by Helterskelter on 21 November 2005, 13:40
Posted
Much better ... thanks!<
Posted
Posted
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. <
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
David Greening
Posted
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;
<
Last edited by imweazel on 23 November 2005, 14:43
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...