Author |
Topic |
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 09 December 2008 : 16:27:55
|
I have done this before but I have lost the code when my hard drive failed. I also cannot find it in searching either.
I need to have a form that posts to the forum from outside the forum directory I know I need to create a user and password for this form to use to post but I can't remember the rest and thought I would see if anyone has this bookmarked or coded already before I spend time recreating?
Thanks Jeff< |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 09 December 2008 : 17:45:07
|
Jeff, you can also create a connection string to access the database to pass and pull the credentials you need from outside the forum directory. Take a look at the Universal Login MOD. That is designed to access the database from outside the forum directory.< |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 09 December 2008 : 21:22:27
|
Yeah I did it a different way just posting instead of the universal login mod. thanks though that is a good idea. Grr I am so ticked I lost that. Oh well I will rewrite it thanks all figured I would give it a shot here before I tried.< |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 09 December 2008 : 21:59:32
|
Well I ended up finding a script I guess I did it from within the forum folder and made a form that posted to a forum. Thanks all I just didn't want the main forum to be accessible and this will do the trick.< |
|
|
gpspassion
Junior Member
260 Posts |
Posted - 16 December 2008 : 17:12:47
|
Trying to do something similar myself, the plan is to read the userid/encrypted password from the cookie and then post a message to a particular topic.
Do you think you could share that script you came up with?< |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 16 December 2008 : 17:43:46
|
Yeah no problem I will post it in a couple hours when I get home. I actually did it from within the forum folder but I used the inc_header_short.asp and basically no one can see the forum but they can get to my forms and when they fill out the form and submit it posts to a certain topic within the forum I specify.
You can even have it post like an email within the topic so they can only put certain details into the topic as well. I will be home in about 3 hours.< |
|
|
gpspassion
Junior Member
260 Posts |
Posted - 16 December 2008 : 17:58:22
|
Sounds good, thanks !
A related question, I think, would be to create HTML code, to be run from the forums for instance, to read the UserID and PWD in the cookies and send that data to another site so that site could initiate a message with that info, do you think that's feasable ?< |
Edited by - gpspassion on 16 December 2008 18:04:16 |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 16 December 2008 : 21:09:47
|
Ok here is a zip there is no DBS script ot install or anything you should just be able to upload to your forum modify the 2 fiels to fit your needs and your done.
download here< |
|
|
gpspassion
Junior Member
260 Posts |
Posted - 17 December 2008 : 10:17:56
|
Thanks, modified the CAT and FORUM and it worked a charm, pretty scary actually, will it always post under the admin's name ? It doesn't seem you're reading cookies ? I'd need to get it to post to an existing topic but I can probably adapt the script to do that.
PS - as a side note, seeing that you were able to reply quickly to my message yeterday, do you have a way of getting notified of new posts in this topic?< |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 17 December 2008 : 11:15:57
|
You can just set up subscriptions to this forum. For my personal use it posts to forums no one can see so that would work for me. If you are logged as the admin I believe it posts as the admin if I remember right. But if you are logged out you will have to put the username and password into the script where I specified.
<edit>Looks like it seems to be posting as the admin on mine as well it used to be the user but I must have changed it along the way. I can't remember.</edit>< |
Edited by - JJenson on 17 December 2008 11:17:40 |
|
|
gpspassion
Junior Member
260 Posts |
Posted - 17 December 2008 : 12:52:57
|
Thanks, I must be missing something but I can't see a way to subscibre to this topic or forum, only forum I've see here where you can do that, is the "security" forum, maybe because you're an advanced member, oh well, I'll just check my topics ;-)
Anyway, I see your messages also get posted as admin, kind of scary when you think of it, how are you going around forum safety checks?< |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 17 December 2008 : 13:19:02
|
Honestly I don't remember I know they are not allowed to get to the actual forum. But hoenstly I haven't looked into in a long time< |
|
|
gpspassion
Junior Member
260 Posts |
Posted - 20 December 2008 : 17:59:58
|
Took a close look at the code and I can't figure out how on earh it can pass itself as the admin to create that post. If ever you remember how that got coded in there I'm all ears ;-)< |
|
|
JJenson
Advanced Member
USA
2121 Posts |
Posted - 20 December 2008 : 18:08:22
|
Honestly lookingover the code you should have to put it into the feature_list.asp but not any clue as to why its not using that. I check my other forum and it works as intended. Very strange.< |
|
|
|
Topic |
|