Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Simple Photogallery for Snitz
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

fgenus
Starting Member

12 Posts

Posted - 06 June 2002 :  12:21:58  Show Profile
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
Go to Top of Page

fgenus
Starting Member

12 Posts

Posted - 06 June 2002 :  12:37:43  Show Profile
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.



Go to Top of Page

realprotek
Starting Member

USA
11 Posts

Posted - 06 June 2002 :  15:18:35  Show Profile
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
Go to Top of Page

realprotek
Starting Member

USA
11 Posts

Posted - 06 June 2002 :  15:54:41  Show Profile
Reset and bang...in action. Thanks for all your help.
http://www.merebagofshells.com/forum/PhotoAlbum.asp




Edited by - realprotek on 06 June 2002 15:55:47
Go to Top of Page

SalmanKhana
Average Member

USA
961 Posts

Posted - 20 June 2002 :  16:26:26  Show Profile
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

Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 20 June 2002 :  22:15:24  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 20 June 2002 :  22:38:23  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 23 June 2002 :  11:31:23  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 24 June 2002 :  16:13:11  Show Profile  Visit Etymon's Homepage

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.



Go to Top of Page

Bookie
Average Member

USA
856 Posts

Posted - 24 June 2002 :  16:29:30  Show Profile  Visit Bookie's Homepage  Send Bookie an AOL message  Send Bookie a Yahoo! Message
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
Go to Top of Page

knightsyde
Starting Member

29 Posts

Posted - 03 July 2002 :  12:17:14  Show Profile
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

Go to Top of Page

SalmanKhana
Average Member

USA
961 Posts

Posted - 05 July 2002 :  01:59:27  Show Profile
knightsyde if u can give us the link we can see what exactly is wrong.

Go to Top of Page

stylishvn
Junior Member

Vietnam
185 Posts

Posted - 06 July 2002 :  03:56:27  Show Profile  Visit stylishvn's Homepage  Send stylishvn an ICQ Message  Send stylishvn a Yahoo! Message
In my PhotoAlbum it unless display some folder like db js jsscript Avatar Image ... How could I hide some folder like it ??

Go to Top of Page

stylishvn
Junior Member

Vietnam
185 Posts

Posted - 10 July 2002 :  02:28:48  Show Profile  Visit stylishvn's Homepage  Send stylishvn an ICQ Message  Send stylishvn a Yahoo! Message
Noone here could ans me ???

Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 10 July 2002 :  08:13:39  Show Profile
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 ...


~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07