Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/65998?pagenum=1
05 November 2025, 04:04
Topic
cripto9t
User Space 1.0.xx
03 December 2007, 15:08
User Space Mod
Tested in MS SQL & MYSQL Untested in ACCESS.
I think I've got all the loose ends tied up - except one.
Thats why I'm posting this in the without code forum for testing, <font color="red">moved to with code forum by Admin</font id="red"> so maybe I can get some ideas from you guys and shake out any remaining bugs.
One of the Addons is incomplete. I can't come up with a good way for the Admin to manage the "Bookmarks" addon. In other words I need some ideas about trimming them back. The best I have come up with is something along this line "Delete member bookmarks where last login = 1 year ago" If anyone has any ideas/suggestions, let me know.
Anyway, This is a very easy install. The basic User Space portion shouldn't take a rookie over 5 minutes to intall.
Heres the download <s>Right Click and save</s> <b>Link Removed</b> New Download Link Here
This is the description from the readme.
Code:
User Space Mod for Snitz Forums
Author: cripto9t
Date Released: 3 December 2007
Version: 1.0.00
This mod adds a link in the forum menu that takes forum members to a private personal page viewable only by the member and the forum administrator(s). The mod consists of "features" that you add to it.
The default feature "User Posts" shows recent topics that the member has participated in. Other features can be added later. Meaning that you don't have to add a feature if you don't want it.
Add on features:
User Drafts: Allows members to save posts as drafts to be posted later.
User Bookmarks: Allows members to bookmark topics, replies and outside urls for later reference.
Feature wish list:
User Friends: Will allow members to make a list forum friends e-mail, IMs, etc... so they won't have to look through the forum members list.
User Ignore List: Will allow members to list forum members they want to ignore when reading posts. Posts of members on the list will be hidden from member.
Insallation:
Note: This is a very easy install
1. Add files to your forum folder.
a. admin_user_space.asp
b. user_space.asp
c. dbs_user_space.asp
d. Add these files to you forum images folder
1. icon_folder_post_closed.gif
2. icon_folder_userspace.gif
2. Add these files to you forum folder IF you are going to add any of the addons
1. user_space_setup.asp (MYSQL and MS SQL users only)
2. admin_user_space_manager.asp
3. pop_user_space.asp
3. Open reference folder a. IMPORTANT!!
1. Make backup files (copies) of all files to be modified. If something goes wrong you can always go back to where you started.
2. DO NOT REPLACE YOUR FILES WITH THE REFERENCE FILES. Make the code changes manually.
b. Make the changes marked in the files (Search for ##USER to find the changes quickly) There are notes at the top of each file, Please Read Them.
1. inc_header.asp - 1 change (adds link to user space page)
2. config.asp - 2 changes
3. admin_home.asp - 1 change
4. inc_icon_files.asp - 1 change
4. Check installation and update database
a. Make sure there is a new link in your forum menu (upper right hand corner). If not check your code changes in "inc_header.asp".
b. In your forum "Admin Options" make sure there is a new link called "User Space Configuration". If not check your code changes in "admin_home.asp".
c. Open up "Mod Setup" in "Admin Options" and select "User Space" and update.
d. Open "User Space Configuration" and make sure you can turn things on and off. If not check your changes in "config.asp".
5. Thats it!
a. Click the new link in your forum menu and open your "Posts" folder. You should get a list of the last 50 (default setting) topics you have participated in.
b. You can change the default settings in "User Space Configuration" located in "Admin Options".
c. To add other features, open up the folder of the feature you want and follow the instructions in the "readme" file.
If you have a problem, post it in this thread.
Replies ...
JJenson
04 December 2007, 11:19
This is great cripto thanks. If I can ever find time here in the next little bit I will try inplemeting and testing the code out.<
cripto9t
04 December 2007, 13:53
Some screenshots
Posts Drafts Bookmarks <
CodeMan7
19 December 2007, 09:54
cripto9t,
Looks like a great mod. I installed it in a test version of Snitz. I've only had a couple of problems with it.
One problem is when a user replies to a post the original post only shows the username and the date of the post. There is no content. Any idea what is happening there?
The other problem is that I sometimes get get an error when saving a reply as a draft. It doesn't always happen so I'm trying to narrow down when the error occurs and why it might be happening. I do more testing and let you know.
All in all though, it looks like a great mod with a lot of potential.
<
cripto9t
20 December 2007, 09:09
The other problem is that I sometimes get get an error when saving a reply as a draft. It doesn't always happen so I'm trying to narrow down when the error occurs and why it might be happening. I do more testing and let you know.
I just saved about 30 replies with no errors. I did notice flood control isn't working .
I've found and fixed some bookmark security bugs and finished the admin maintanence for the bookmarks.
I'm also working on a "Buddy List" for it.
Last but not least I forgot to add a link for the Admin to view a members space. If you want to test it log in as admin and add &memid=2 to the userspace querystring, with the 2 being the members id.
I'm trying to get the next release ready before the end of the year. so keep an I on this topic if your interested .<
CodeMan7
20 December 2007, 09:51
"Could you explain a bit more? I'm not sure what you're talking about."
Ok. When a user replies to a topic, the topic content no longer appears below the user's reply. For example, below me now is "Topic Review" with your original topic, followed by all the replies there have been to your topic. After I installed your mod all I get is a small box with "Topic Review", the poster's name and the date and time of the post. There is no content, i.e. the original topic is not showing up. Any thoughts on why that might be?
(My test forum has so many mods that it is very possible I misplaced some of your code. I can't go by line numbers anymore.)
On the second problem, I believe that may just be random error or even an error caused by the server. I'm not worried about that one.
"Last but not least I forgot to add a link for the Admin to view a members space."
Right. I noticed that, but I managed to figure it out and got it working ok.
I didn't install the bookmarks part because you mentioned you were having a problem with it. I'll do that after I make sure I have everything else working ok with it.
Thanks.
<
cripto9t
20 December 2007, 10:19
I thought thats what you were saying but I'm not having that problem, so I wasn't sure. I'll look at post.asp and see if I can see where this mod might cause that.
Thanks for the feedback. I was starting to think no one was interested .<
CodeMan7
20 December 2007, 10:45
You're welcome.
I got that feeling too when no one was replying, so I wanted to let you know that at least one person is interested and thinks it is a great mod. To be honest I think many are concerned about being hacked. And of course, there are the holidays. So I wouldn't take it personally.
Now if you would have called it "My Space" instead of "Your Space", you probably would have gotten a lot of attention. Thanks for checking that out on the Topic part. It seems that maybe I am cutting out something in Post.
Codeman7<
NiteOwl
20 December 2007, 11:28
This is a pretty cool mod, I will be implementing it on my site soon.<
CodeMan7
22 December 2007, 07:22
Cripto9t,
I looked through post.asp and all your code is posted where it should be. The only things I have in there which might possibly interfere with your mod are the Poll Mod and the Usergroup Mod, but I didn't see anything unusual there.
I still can't understand why only the username and date and time of the topic would show up but not the topic content.
Have you found anything yet?
<
cripto9t
22 December 2007, 09:55
I have no idea. Does the footer show up?
I would remove or comment out the changes one at a time. Check the page after each change to see which part(s) are causing the problem.
Every change except the input button has to do with editing a draft. so removing them one at a time should not throw any errors.
You say the name and date of the post show and stops right there, thats why I asked about the footer. I was working on an asp file once that just ended in the middle of a table. Like there was a Response.End at that point. When I removed the last change the page would show up. The change was a function that wasn't even being used. I've never figured that one out.<
CodeMan7
22 December 2007, 10:11
Thanks, I'll check for that.
I've gone through post.asp line by line and everything looks ok.
BTW, I checked out drafts with a a private Usergroup and it worked fine except for cutting off the topic content of the main topic.
I haven't installed the Bookmarks addon yet but I have a question for you. Do you have code in there for a post that has been archived and a user has it bookmarked? I can see that happening.
I forgot to mention that yes, the footer does show up.
<
cripto9t
22 December 2007, 13:19
I haven't tested it on an archived post, but I'm almost certain it will mark it. It takes the topic id, reply id (if it is a reply) and archiveview (true or false) from topic.asp and builds a URL around them to be added to the db. In other words it stores the URL not an ID, like other bookmark mods I've seen.
For that reason, this mod will not work unless "Forum URL" in "admin options" is set to the default page of your forum. Its also the reason you can bookmark outside Links.
Just curious, does the topic content show up in the source? It sounds like there may be a misplaced or missing <td> or </td>.<
CodeMan7
22 December 2007, 14:08
Yes, it shows up in the source. You can also see the topic when you have "quick reply" as we do here.
But when I choose "Reply to Topic" it cuts off right after the date and time for the Topic post.
I agree that it does seem like a misplaced <td> or </td>. I've got the right section of code and am looking around at it.
At first I thought it might have something to do with "moderation", but I checked that out. I'll do some more checking on it though.
Thanks.<
golfmann
22 December 2007, 15:16
All worked fine on my site...
Nice work!
<
NiteOwl
22 December 2007, 20:04
I have mySQL, SNiTZ 3.4.05 Just installed the mod, went in like a dream, nice instructions and its obvious the work and planning that you have done. I am about to install one of the add ons.
BTW, I noted that the ?help? is not yet active . . I don't think I missed it but I will check.
Update:
I have proceeded through the setup one step at a a time.
I installed the User Space Mod Note that after this install I ran the database setup, looks ok. I do see a link to "Add a feature" and when I select that I can see User Drafts - Feature Installed User Bookmarks - Feature Installed Odd, but they are grayed out so I ignored that.
Next I setup the ##DRAFTS and noted the same look in the "Add a Feature" menu, everything grayed out.
Then I setup the ##BOOKMARKS and noted the same look in the "Add a Feature" menu, everything greyed out.
I am hesitant to run the database installs through the MOD setup as the instructions caution me not too with a mySQL.
So what do you think? BTW this is not my production system, I can easily drop the database and pull in another copy of a backup. OH and I did run the setup.asp after, twice as a matter of fact.
BTW I am here: www.bcfmwu.com/test/forum/ test/test
<
cripto9t
23 December 2007, 08:40
User Drafts - Feature Installed User Bookmarks - Feature Installed Odd, but they are grayed out so I ignored that.
That means the tables exist. The check box is disabled if the table exists.
Check you db for the drafts and bookmarks tables or go to "admin options" > "forum variables" and look for "STRUSDRAFTSWITCH" and "STRUSBOOKMARKSWITCH".
If the tables arn't there let me know and go ahead and run the dbs files through mod setup. The setup just adds another index to the tables that can't be done using the dbs file with mod setup.
the tables shouldn't have been created unless the boxes were active and checked. I'm going to run it 3 0r 4 more times before the next release to make sure it's working properly.
You should wait for the next version before using bookmarks on a live forum. I've found and fixed a security related bug (members being able to delete others bookmarks by editing the querystring).
Also flood control isn't working for drafts.
I hope to have the next version out before the end of the year.
thanks for the feedback [edit]
I didn't see you link above . I see you got things working. I added and deleted a bookmark. Did you have to use the forum mod setup?
[/edit]<
CodeMan7
23 December 2007, 08:56
Cripto9t,
I have determined that the main Topic content being cut off is not the fault of your mod. I'm not sure which one of my mods is causing the problem, but I'm sure it isn't yours.
Just wanted to let you know.
Thanks and Merry Christmas!
<
NiteOwl
23 December 2007, 12:09
That means the tables exist. The check box is disabled if the table exists.
Check you db for the drafts and bookmarks tables or go to "admin options" > "forum variables" and look for "STRUSDRAFTSWITCH" and "STRUSBOOKMARKSWITCH".
Thank you, BTW just to be clear, when i ran the base install of the MOD and ran the dbs install using the Admin/ModSetup procedure, It was at that point I had the DRAFTS and the BOOKMARKS items grayed out, but showing that the feature is installed.
Here are the tables, looks like they are all there?
/test/forum/STRUSSWITCH 1 /test/forum/STRUSPOSTSWITCH 1 /test/forum/STRUSPOSTMAXSWITCH 1 /test/forum/STRUSPOSTMAX 50 /test/forum/STRUSDRAFTSWITCH 1 /test/forum/STRUSDRAFTAUTODELETESWITCH 0 /test/forum/STRUSDRAFTAUTODELETE 30 /test/forum/STRUSBOOKMARKSWITCH 1
<
cripto9t
23 December 2007, 13:34
Yea thats all of them.
Like I said above bookmarks and drafts wasn't supposed to be created if the check boxes had not been selected. So that could be a bug. I'm going to give it a good going over to make sure its right. One of my main goals for this mod is to allow forum owners to add only the features they want and leave off the ones they are not interested in.
If you have anymore problems or have any suggestions for one of the features let me know.
ps The help code hasn't been written yet because I forgot all about it . I 've added it to my todo list.<
NiteOwl
23 December 2007, 17:09
Great, again, you ahve done a lot of work on this, its very impressive.
The only thing I am noting is that when I goto the Bookmark Manager, I see the following, exept there is not any number after the colon, its just an empty space, is that correct or something that needs to be investigated?
Bookmark Manager Trim Bookmarks Older Than:
<
cripto9t
23 December 2007, 18:33
Bookmark manager is unfinished in this version. I wasn't sure how to go about it, so I asked for opinions in the first post. I have it working for the next version. The admin will be able to delete members bookmarks that have not posted in XX days.<
cripto9t
13 January 2008, 11:10
version 1.0.00 is no longer available.
See this post for version 1.1.00
Version 1.1.00 fixes numerous bugs and updating from 1.0.00 is fairly easy.
<