Author |
Topic |
fgenus
Starting Member
12 Posts |
Posted - 06 June 2002 : 12:21:58
|
quote:
Can anyone lend a hand with this? Code in photoalbum <!--#INCLUDE FILE="..\config.asp" --> <!--#INCLUDE FILE="..\inc_functions.asp" --> <% strImageURL = "..\gallery\" & strImageURL %> <% strTitleImage = "" & strTitleImage %> <% strTitleImage800 = "..\" & strTitleImage800 %> <% strForumPATH = "..\" %> <% strCookieURL = left(strCookieURL,len(strCookieURL)-1) %> <% strCookieURL = left(strCookieURL,InStrRev(strCookieURL,"/")-1) & "/" %> <% intSideMenu = "0" %> <!--#INCLUDE FILE="..\inc_top.asp" -->
The purpose for the code snippet above is to "trick" inc_top.asp into assigning the correct directories for links, graphics ect... (by the way, the memvar "strTitleImage800" is not needed, I created it so I could load a different graphic depending on the user's screen resolution.
IMPORTANT NOTE: You may have to the ADMIN OPTIONS and click on the link "RESET FORUM VARIABLES" to reset your forum variables.
Replace the section of code you mentioned above with this...
--- START OF CODE -------------------------------------------------- <!--#INCLUDE FILE="..\config.asp" --> <!--#INCLUDE FILE="..\inc_functions.asp" --> <% strImageURL = "..\" & strImageURL %> <% strTitleImage = "../" & strTitleImage %> <% strForumPATH = "..\" %> <% strCookieURL = left(strCookieURL,len(strCookieURL)-1) %> <% strCookieURL = left(strCookieURL,InStrRev(strCookieURL,"/")-1) & "/" %> <% intSideMenu = "0" %> <!--#INCLUDE FILE="..\inc_top.asp" --> <%
' add the lines below temporarily so you can see what the memvars contain: response.write "strImageURL = " & strImageURL & "<br>" & vbcrlf response.write "strTitleImage = " & strTitleImage & "<br>" & vbcrlf response.write "strForumPATH = " & strCookieURL & "<br>" & vbcrlf response.write "strCookieURL = " & strCookieURL & "<br><br>" & vbcrlf ' You can delete them after you verify that they point to the right directories.
--- END OF CODE -----------------------------------------------------
The MAIN difference between my code and yours is in "strImageURL" and "strTitleImage".
You want the path for "strImageURL" to end up as "..\images/"
You want the path for "strTitleImage" to end up as "../images/YOURIMAGE.JPG"
I hope that helps.
- Frank.
Edited by - fgenus on 06 June 2002 12:39:38 |
|
|
fgenus
Starting Member
12 Posts |
Posted - 06 June 2002 : 12:37:43
|
Something else I didn't think of...
I'm using HUWs modified version of Snitz. I don't remember if his code uses "strForumPath" as part of the links or if I added it myself. In any case you'll need to look at your "inc_top.asp" code and see if your Navigation Links are using "strForumPATH" as part of the link, and if not, add it...
---------------------------------------------------------------------- EXAMPLE:
"<a href=""" & strForumPATH & "members.asp""><acronym title=""Current members of these forums..."">Members</acronym></a>"
----------------------------------------------------------------------
Peace,
- Frank.
|
|
|
realprotek
Starting Member
USA
11 Posts |
Posted - 06 June 2002 : 15:18:35
|
Okay, I moved things around a bit. PhotoAlbum.asp and ShowPicture.asp are now located in froum dir. I adjusted the includes. I also added your code in "inc_top.asp". All the links work now, but it shows the wrong directory for the images. The images are in folders in /forum/gallery/ As you can see, it is showing folders in /forum/gallery. How do I get it to point to /forum/gallery/(photos1)(photos2)
Edited by - realprotek on 06 June 2002 15:20:00 |
|
|
realprotek
Starting Member
USA
11 Posts |
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 20 June 2002 : 16:26:26
|
I am having a bit of a worry regarding the showing of the pictures.
The first pictures moved to the directory are shown first.. i.e., first come first serve. and its on the first page that user always see when it loads.
To view the most recent pictures, users then have to click on the last page lets say page # 10.
Is there any way we can modify it to show the other way round. old pictures on last page and new pictures first please?
Thanks
|
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 20 June 2002 : 22:15:24
|
I can't even really explain how I accomplished this but I was able to put the photoalbum.asp page in the forum directory and have my images as such:
/forum/photoalbum.asp /forum/album/imagefolder/images.jpg
It will display folders on the 'imagefolder' level in the dropdown and the pictures in those directories.
It took me a while but I accomplished it. Going home to bed now.
Bookie
"May the forces of evil become confused on the way to your home." - George Carlin |
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 20 June 2002 : 22:38:23
|
Also, since I create my own thumbnails, I had the page use thumbnail images from a directory within each directory. Then I can jam more images on a page size the file sizes are small. I removed the script where it restricted the thumbnail to a certain size because of my own images. Once you figure out where things are and what's going on, it's pretty customizeable.
Bookie
"May the forces of evil become confused on the way to your home." - George Carlin |
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 23 June 2002 : 11:31:23
|
I brought this photo gallery over to my neighbor's house to use on a site he's building. He was exstatic about it because it will save him a lot of time. It's for a band site: www.dashboardmary.net , gallery at www.dashboardmary.net/photos/PhotoAlbum.asp" target="_blank">http://www.dashboardmary.net/photos/PhotoAlbum.asp
We tested it on his Compuserve account and we found out that CS doesn't really like the JavaScript in there that resizes the windows. We tested it on his IE and it worked but no-go on Compuserve. This is just a heads-up for those of you who want to use this feature. So we took those codes out and made a straight hyperlink to the ShowPicture.asp page and took out the code that resizes the screen to the picture. Now it works just fine except you might have to scroll a little bit for the larger pictures. Oh well. Darn that Compuserve/AOL!
Bookie
"May the forces of evil become confused on the way to your home." - George Carlin |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 24 June 2002 : 16:13:11
|
I'm using Netscape Communicator 4.72 and got this error when accessing that page:
404 Not Found
The requested URL /style.css was not found on this server.
|
|
|
Bookie
Average Member
USA
856 Posts |
Posted - 24 June 2002 : 16:29:30
|
quote:
I'm using Netscape Communicator 4.72 and got this error when accessing that page:
404 Not Found
The requested URL /style.css was not found on this server.
Thanks, I'll tell my neighbor to fix it.
Bookie
"May the forces of evil become confused on the way to your home." - George Carlin |
|
|
knightsyde
Starting Member
29 Posts |
Posted - 03 July 2002 : 12:17:14
|
I am very new to this and I am stuck....I want to add the photo gallery, I think that I have added the code correctly, I used the mod setup option (I used the modified one from Richardkinser) and received a message saying that the code had been added correctly. I have two main questions. The first one is where do I put the pictures folder, currently it is located at \forum\album\imagefolder.
My second question is how do I use it....I am assuming that something is wrong as I see no way to add or view the photo gallery.
Any help would be greatly appreciated. I am using the latest version 3305 of Snitz forums with the included access database
Thanks Knightsyde
|
|
|
SalmanKhana
Average Member
USA
961 Posts |
Posted - 05 July 2002 : 01:59:27
|
knightsyde if u can give us the link we can see what exactly is wrong.
|
|
|
stylishvn
Junior Member
Vietnam
185 Posts |
Posted - 06 July 2002 : 03:56:27
|
In my PhotoAlbum it unless display some folder like db js jsscript Avatar Image ... How could I hide some folder like it ??
|
|
|
stylishvn
Junior Member
Vietnam
185 Posts |
Posted - 10 July 2002 : 02:28:48
|
Noone here could ans me ???
|
|
|
DoraMoon
Average Member
Taiwan
661 Posts |
Posted - 10 July 2002 : 08:13:39
|
i just add two lines in PhotoAlbum.asp.. (about line 84, add below red color..)
If Left(Folder.Name,1)<>"_" Then if Folder.Name = "photo" or Folder.Name = "avatar" then Response.write "<option " If ShowSub=Folder.Name Then Response.Write "selected " End if Response.Write"value='" & CurFile & "?ShowSub=" Response.Write(Replace(Folder.Name, " ", "%20")) response.write "'>" Response.Write(Folder.Name & "</option>") If ShowSub <= " " Then ShowSub = Folder.Name End if end if End if
and now it will only show the "photo" and "avatar" directory. (change these to fit ur need, just add what directory u want to show dir1 or dir2 or dir3 ...)
hope this will help you a little ...
~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~ |
|
|
Topic |
|