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/O Code)
 Need Someone Smert. Deleting Topics w/ Replies?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Funky
Starting Member

23 Posts

Posted - 25 November 2002 :  21:28:31  Show Profile  Visit Funky's Homepage
Okay, I was trying to get some help with this with an old version but decided to upgrade to the newest version with hopes of someone helping me figure out how to do this...

I want authors to be able to delete their own topics regardless if the topic has replies. Can somebody help me?

This is what I tried:

In pop_delete.asp

I changed this:
if Reply_Status <= 1 then

To this:
if Reply_Status <= 100 then


My thinking was that if the replies were under 100 it would still let the author delete the topic.

Well, it didn't work. I know some of you may laugh at me but I know very little about writing code. Can somebody help?

Edited by - ruirib on 25 November 2002 21:35:26

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 November 2002 :  21:35:06  Show Profile  Send ruirib a Yahoo! Message
THis is in fact a request for a mod. I'm moving it to the Mod W/O Code forum.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 25 November 2002 :  21:45:27  Show Profile
You want the authors to delete the topics irrespective of how many replies are posted to the topic. Correct?

What version you are currently using?
Go to Top of Page

Funky
Starting Member

23 Posts

Posted - 25 November 2002 :  21:54:09  Show Profile  Visit Funky's Homepage
Yes. I want the authors to be able to delete their own topics, regardless of the amount of replies... (I'm using it as a shift swap board, not a discussion board. Once a shift swap is worked out, if authors could delete their own topics, it would save a LOT of time for the moderators)

I'm using version 3.4.03

If you can help I'd be ever so grateful.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 25 November 2002 :  22:08:36  Show Profile
Just wait, I will post the changes required.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 25 November 2002 :  22:19:29  Show Profile
File: pop_delete.asp

Line 793

if cLng(rsCheck("MEMBER_ID")) = cLng(rsCheck("T_AUTHOR")) and cLng(rsCheck("T_REPLIES")) < 1 then


Replace the above statements with the following or modify the above statement to look like as below:

if cLng(rsCheck("MEMBER_ID")) = cLng(rsCheck("T_AUTHOR")) then


Line 719
Remove the following text on line 719

(if no Replies have been made to it)




File: topic.asp


Line: 855

if (AdminAllowed = 1) or (TMember_ID = MemberID and Topic_Replies < 1) then


Replace the above statement with the following or modify the above statement to look like as below:
if (AdminAllowed = 1) or (TMember_ID = MemberID) then

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)

Edited by - GauravBhabu on 25 November 2002 22:27:31
Go to Top of Page

Funky
Starting Member

23 Posts

Posted - 25 November 2002 :  22:55:42  Show Profile  Visit Funky's Homepage
It worked!!! You sir, are a GENIUS!!!

With your guidance on the above files I also had to modify forum.asp in a similar way (so the trash can appears on the topics page).

I changed this:
if ((Topic_Status > 0 and Topic_Author = MemberID and Topic_Replies = 0) or (AdminAllowed = 1))
To this:
if ((Topic_Status > 0 and Topic_Author = MemberID) or (AdminAllowed = 1))


VERY sweet. Thank you!!! If you e-mail me your address I'll send you a phatmass.com t-shirt for helping me. Thanks again.


Edited by - Funky on 25 November 2002 22:56:35
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 25 November 2002 :  22:58:54  Show Profile
You are welcome! Thanks for the T-Shirt offer!
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