Author |
Topic  |
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 05 May 2002 : 18:00:35
|
i would like to know what code i need to change/add to enable my moderators to edit a message posted in a topic. only but in this question is that they should not be able to edit a message posted by me (admin)
can this be done?
thank you for your time!
 Crash's Site | Crash is from 
Edited by - crash on 06 May 2002 06:56:45 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 06 May 2002 : 00:42:05
|
is the question unclear or am i pushing too hard?
 Crash's Site | Crash is from 
Edited by - crash on 06 May 2002 05:21:26 |
 |
|
bad_gurl_2k2
Starting Member
12 Posts |
Posted - 06 May 2002 : 09:03:03
|
Crash - if you think someones gonna reply youre dreamin (n/o)
No one replies to problems
ITS MEANT TO BE A HELP BOARD PEEPS
|
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 06 May 2002 : 09:06:49
|
well, as far as i know, most of the people on snitz here do reply. it may take some time though...
 Crash's Site | Crash is from 
|
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 06 May 2002 : 11:08:36
|
Not sure why you'd exactly want to do that. You're limiting your mods power, BUT....
In topic.asp, look for this code above a line that says Method=EditTopic: (AdminAllowed = 1 or rsTopic("MEMBER_ID") = MemberID)
and change it to this: ((AdminAllowed = 1 and rsTopic("MEMBER_ID") <> 1) or rsTopic("MEMBER_ID") = MemberID)
and do the same for the line that has rsReply("MEMBER_ID") above a line that says Method=Edit
You would need to do the same kind of operation in forum.asp, and also add checks to post.asp and post_info.asp
If you need more, please let me know....
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 06 May 2002 : 11:31:33
|
quote:
Crash - if you think someones gonna reply youre dreamin (n/o)
No one replies to problems
So what do you think the 26,000 active topics on this forum are all about ? we're not just 'shooting the breeze' here you know.
Dave's suggested changes will only work if its actually the Administrator account you want them to not edit, if you are making posts under another Admin Privlidged account then they would still be able to edit them. You need to add another condition into the suggested changes to check for any other additional Administrators Member Id.
ie if you post as Crash, and your MemberId in FORUM_MEMBERS is 55 then I think you would have to adjust the code to look like this
((AdminAllowed = 1 and (rsTopic("MEMBER_ID") <> 1 or rsTopic("MEMBER_ID") <> 55)) or rsTopic("MEMBER_ID") = MemberID)
www.daoc-halo.com |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 06 May 2002 : 11:53:20
|
quote:
Crash - if you think someones gonna reply youre dreamin (n/o)
No one replies to problems
ITS MEANT TO BE A HELP BOARD PEEPS
Looks like you are the one who have been dreaming while browsing the forums. There as lot of help here and if you think otherwise why come here in the first place? I'll keep in mind not to answer your future posts, don't want to disappoint you 
------------------------------------------------- Installation Guide | Do's and Dont's | MODs |
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 06 May 2002 : 12:19:25
|
Gremlin, Dave: thank you for the reply! i most certainly will try that later today!
thanks!
 Crash's Site | Crash is from 
|
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 06 May 2002 : 12:57:54
|
Sounds like you may be having problems with Session variables....
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead |
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 06 May 2002 : 13:17:16
|
what are you talking about?
 Crash's Site | Crash is from 
|
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
Posted - 06 May 2002 : 22:06:07
|
quote:
Crash - if you think someones gonna reply youre dreamin (n/o)
No one replies to problems
ITS MEANT TO BE A HELP BOARD PEEPS
bad_gurl_2k2- every single person here helping moderating or developing on these forums is doing so as volunteers on our own time. It is likely that this post was not responded to immediately because we try to focus on support issues, customizations take a back seat.
Nathan Bales Snitz Exchange | Do's and Dont's |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 07 May 2002 : 03:36:08
|
quote:
what are you talking about?
 Crash's Site | Crash is from 
when you log into the Admin_Home page, it sets a Session Variable that the other Admin pages check to validate whether you've logged in or not. Thats what Dave's referring to.
I'm not sure though just why you'd have problems with this one Session Variable unless your host has disabled them, or perhaps (very remote possibility) theres a problem with your cookies at your end. You could try deleting your Snitz cookies and logging in again. Whilst Session Variables are not Cookie and shouldnt be confused with them, Cookies must be enabled to allow Session Variables to work correctly.
You could try asking someone else to log in to the admin pages and see if it works for them, that might help narrow the problem down to server or client side.
www.daoc-halo.com |
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 07 May 2002 : 04:57:31
|
but why? i am the only one who gets to go to the admin pages? and i presume you're talking about my own site?
how does Dave know this? does he get an error message when visiting?
 Crash's Site | Crash is from 
|
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 07 May 2002 : 05:27:51
|
You've missunderstood what I said there I think their Crash.
I said you could try getting someone else to log in to test whether its a problem with your browser or not. Equally you could also try logging in yourself using another PC and see if it works. If it works from another PC then you've narrowed the problem down to being something at your end.
How does Dave know this ? .. Becuase he knows how admin_home.asp works thats all and he was stating that the problem you are having is obviously somehow related to Session Variable (which unless you've made modifications to the code it must be).
www.daoc-halo.com |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 07 May 2002 : 05:31:26
|
Somehow I think these replys from Dave and myself both should be on another thread that was discussing being redirected to admin_home.asp continuously not this one. Not sure if that was just our mistake or somehow these threads have got 'cross-linked' I can't find that thread right now though.
www.daoc-halo.com
Edited by - Gremlin on 07 May 2002 05:32:54 |
 |
|
crash
Advanced Member
    
Netherlands
2064 Posts |
Posted - 07 May 2002 : 05:34:25
|
i see. well, the topic on the redirect was started by some other than myself, but we'll leave it at that. it was not a problem i was experiencing myself by the way...
let's lock this thread so no more mixed-up-posts can get through 
again: thanks for the devotion 
 Crash's Site | Crash is from 
|
 |
|
Topic  |
|