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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Photo Album 1.82 (name in description)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  10:32:47  Show Profile
Is there a way to AUTOMATICALLY insert the name of the user that is uploading an image DIRECTLY in the section where is written :"Type here your description"?
It's important 'cause if you search for ALL images you have as a result a gallery of images which you don't know who has uploaded it.

Escuse me for my english..

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2005 :  10:46:18  Show Profile
Find the following on line 241 of photo_album_upload.asp:
" <textarea cols=""40"" rows=""5"" name=""Description"">Type your description here</textarea><BR>"& vbNewLine
And replace it with the following:
" <textarea cols=""40"" rows=""5"" name=""Description"">"&strDBNTUsername&"</textarea><BR>"& vbNewLine

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  10:58:42  Show Profile
the problem is that user can now delete the name..
what i want is that:
A user upload his image and his description then automatically when he click on the button the asp page insert the name into the description he gave.


http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2005 :  11:09:05  Show Profile
OK, so, undo that change above and, in the ToFileSystem.asp file, find the following on line 212:
strFileDesc = objUpload.Fields("Description").Value
Replace it with the following:
strFileDesc = strDBNTUsername&": "&objUpload.Fields("Description").Value
Be sure to test it first to make sure it doesn't throw up any errors.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 16 September 2005 11:10:00
Go to Top of Page

rasure
Junior Member

289 Posts

Posted - 16 September 2005 :  11:16:32  Show Profile  Visit rasure's Homepage
I think also you can just use the readonly attribute as its a textarea, thats what I use on a few of mine forms and textareas.

Psychic & Spiritual Development Resources
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  11:17:22  Show Profile
now it only shows the : and the description i gave ..not the username..

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  11:19:11  Show Profile
quote:
Originally posted by rasure

I think also you can just use the readonly attribute as its a textarea, thats what I use on a few of mine forms and textareas.



i don't know how to do it. explain me please..

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2005 :  11:21:05  Show Profile
D'oh! Of course it doesn't, that file doesn't include inc_header.asp - stoopid, Shaggy!

Luckily, it looks as though this mod has its own variable for holding the member name; replace strDBNTUsername in my edited code above with strUserName.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  11:26:03  Show Profile
it seems tooo WORK now!..and now it's only a question of formatting..thanks for the help!

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2005 :  11:30:31  Show Profile
You're welcome

And welcome to the wonderful world of Snitz

<edit> Just thinking, you're going to run into problems if any members with a photo album change their username, it would probably be a better solution if you modified the photo search to grab the owner's name from the MEMBERS table. Although, if I remember correctly., this entire mod relies on M_NAME rather than MEMBER_ID so that won't be the only problem you have if someone changes their name. </edit>


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 16 September 2005 11:37:47
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  11:44:58  Show Profile
so what is the solution?

if a user change is name..he lost his pictures?

the forum will not work correctly?

thanks

p.s. in my forum..i CAN'T change my name..and users too.. good or not?

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)


Edited by - Riccardo on 16 September 2005 11:48:10
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 September 2005 :  11:49:10  Show Profile
I'll have to look into the mod in more detail to answer those questions, it may be that I'm thinking of a different mod so don't panic just yet If my brain is remembering things correctly and not just making up random stuff to trick me, though, if you do change a member's username, you're also going to have to manually change the directory name where their photos are stored as well as the name in any corresponding database entries.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Riccardo
New Member

86 Posts

Posted - 16 September 2005 :  11:52:05  Show Profile
ok yes..
well as in the reality it would very difficult also in my site to change name..
thanks!!
what is important in this mod is to find (and i finded here in snitz) the way to create user's uploading directories automatically. At the moment i have the "manual" version..still no probs..few users by now.

http://www.peperonciniamoci.it
peppers and peppers and peppers (working on an international version)


Edited by - Riccardo on 16 September 2005 11:52:38
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07