UBB.Dev
Posted By: ilya Delete posts icon. - 01/05/2000 7:58 AM
This hack just ads a "delete message icon", that takes a user to a "delete message" screen next to edit icon. I know you can delete messages by going to "Edit message", but why not have a separate link, that will say "Delete message"? [Linked Image]
Ok. Here it goes:
I don't know if this has been done yet, but anyway. If you want to add a "Delte" icon next to "Edit" icon, here's the code to include:
in ubb_library2.pl find:
Code
code:

right after that add:
Code
code:

Then in ubb_library2.pl find
Code
code:

and replace it with
Code
code:

No spaces between | |. Ubb adds them, for some reason [Linked Image]



[This message has been edited by UBBMaster (edited January 06, 2000).]
Posted By: ilya Re: Delete posts icon. - 01/05/2000 8:00 AM
Yeah, we should definately have a choice of disabling HTML in message!! [Linked Image]
Posted By: mazmanr Re: Delete posts icon. - 01/05/2000 5:09 PM
I can't seem to get this to work [Linked Image] has anyone gotten this to work?
Posted By: ilya Re: Delete posts icon. - 01/05/2000 7:18 PM
My bad.
This code should be added:
Code
code:

[This message has been edited by ilya (edited January 05, 2000).]
Posted By: Menno Re: Delete posts icon. - 01/05/2000 7:56 PM
Nice little old hack [Linked Image]
what about a button for fast disabling smilies [Linked Image]

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de
Posted By: mazmanr Re: Delete posts icon. - 01/05/2000 8:45 PM
would any of you happen to have an icon for this? [Linked Image]
Posted By: Rotaredom Re: Delete posts icon. - 01/05/2000 8:56 PM
How about this? [Linked Image]

An icon for fast deleting smilies? Put a smilie going into the above.

[This message has been edited by Code Warrior (edited January 05, 2000).]
Posted By: mazmanr Re: Delete posts icon. - 01/05/2000 9:27 PM
hehe [Linked Image] good enough for me...thanx.
Posted By: The Team Re: Delete posts icon. - 01/06/2000 12:42 AM
What version was this made on?

BTW --> for the no html in message, couldn't you just make the UBB run a subroutine if a check box is checked, and have it replace < and > with the proper code, you know, lie & nbsp;(without the space, this one addes a non-breaking space, there is a one to make a <)

[This message has been edited by atom911 (edited January 05, 2000).]
Posted By: ilya Re: Delete posts icon. - 01/06/2000 2:45 AM
It was tested on 5.41
Quote
quote:
This is what i'm going to do. I'll start today or tomorrow.
Posted By: ilya Re: Delete posts icon. - 01/06/2000 2:53 AM
Quote
quote:
Glad you like it [Linked Image] My first UBB hack [Linked Image]

[This message has been edited by ilya (edited January 05, 2000).]
Posted By: Menno Re: Delete posts icon. - 01/06/2000 6:40 PM
ilya: np [Linked Image]
A neat, clean little hack.
I should try to hack some more, to improve my perl knowledge, but I can never think of something to hack.... [Linked Image]
ah well

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de
Posted By: The Team Re: Delete posts icon. - 01/07/2000 2:36 AM
Sorry I messed up your post because I was testing out the delete hack function. Looks like it has some more bugs to work out [Linked Image]

------------------
President and Webmaster of UBB Hackers Hideout.

ICQ: 33326211
AIM:SpazJCC
Email: ubbmaster@ubbcodehacking.com
Posted By: ilya Re: Delete posts icon. - 01/07/2000 3:42 AM
Yeah..
Posted By: ilya Re: Delete posts icon. - 01/07/2000 4:25 AM
just found one more "Delete post" icon at solutionscripts.com/forum
Posted By: mazmanr Re: Delete posts icon. - 01/07/2000 6:34 AM
i dunno if we are allowed to use that icon [Linked Image] are we?

------------------
E-Mail: [email protected]
ICQ: 19608225
AIM: Mazmanr
Posted By: Menno Re: Delete posts icon. - 01/07/2000 4:46 PM
As long as it's freeware, you can use it. I think this one is freeware, cause I see it alll over the web.

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de
Posted By: ilya Re: Delete posts icon. - 01/07/2000 6:51 PM
I've seene this icon all over the net; solutionscripts.com was the first one I could think of that time.
Posted By: RangerRob Re: Delete posts icon. - 02/02/2000 12:56 PM
Ilya, did you get a final version of this hack working properly yet (you said there were problems)?
Also could you please repost the install instructions of where and what to add the code, like you did in your original post, there are a bunch of broken img tags in it and I'm not exactly sure of what is needed and what isn't.

Thanks [Linked Image]
Posted By: Death Mark Re: Delete posts icon. - 02/02/2000 11:15 PM
The hack works great, but I was thinking it may be more useful if instead of deleting the thread, it just deleted your post.
Posted By: Bring In The Geek Re: Delete posts icon. - 02/03/2000 12:10 AM
Can we get this hack written up in a text file so we do not have to see all the broken image links in this thread and wonder what code was supposed to be there.

It would really help

Thank you.

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it!!
Posted By: mazmanr Re: Delete posts icon. - 02/03/2000 5:37 PM
just click the edit button, and you can see the code [Linked Image]

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: [email protected]
ICQ: 19608225
AIM: Mazmanr
Posted By: Bring In The Geek Re: Delete posts icon. - 02/03/2000 9:18 PM
mazmanr, what edit button are you refrring to? Do you mean that I should look at the code for this page?

That is a little to much hassle for a hack. After all, I would have to seperate that particular post from the rest of them on this page. Way too much hassle.

It would be much cooler to simply make a txt file like many of the other hacks on this system.

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it!!
Posted By: mazmanr Re: Delete posts icon. - 02/03/2000 9:31 PM
here you go...i put it in a text file
http://n64forum.hypermart.net/deletepost.txt

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: [email protected]
ICQ: 19608225
AIM: Mazmanr
Posted By: Bring In The Geek Re: Delete posts icon. - 02/03/2000 9:52 PM
mazmanr, thank you thank you thank you.

Sometimes us programming challenged people need special consideration.

------------------
When you sin, you don't fall FROM God's grace, you fall INTO it!!
Posted By: Death Mark Re: Delete posts icon. - 02/04/2000 10:14 PM
Well, I tried to modify this hack to delete single posts, instead of the whole thread, but ran into a small problem (basically my complete lack of knowledge of perl). First, you need to go through authorization. Currently, the delete post is authorized in the EditPost routine, and the delete thread routine is in DeletePost. (Please correct me if I'm wrong on anything here.) So I tried to copy the DeletePost routine and change the value for ReplyNum to a variable. Unfortunatly, I have no clue how to set it so when you enter that routine it'll take the correct number. Can anyone help me out on this?
Posted By: Aracnakat Re: Delete posts icon. - 03/02/2000 4:46 AM
This works .. only it deletes the entire topic .. I thought it was to delete just a specific post .. any way of it being able to just delete a specific post?

Thanks!
~Kat [Linked Image]

------------------
Donna
Cazic-Thule Corner
Posted By: ilya Re: Delete posts icon. - 03/02/2000 5:22 AM
I didn't know it had that problem..
I'll try to fix it!
Posted By: BeastMaster Re: Delete posts icon. - 03/20/2000 12:34 PM
Ilya, did you figure it out? I'd like to have the Delete post instead of delete topic *g*. I tryed myself but since im a newbie in creating hacks i..., i... ok ok i failed!

I would be pleased if you could overlook for the fix/new hack!

thx

BeastMaster
Posted By: cal Re: Delete posts icon. - 03/20/2000 1:47 PM
This feature is already built into the UBB. It's old news.

Just a thought [Linked Image]
Posted By: BeastMaster Re: Delete posts icon. - 03/20/2000 8:47 PM
I know that I can delete in edit mode but i want a direct delete icon. Sure its already there but i would be pleased to get an delete icon *g*
Posted By: cal Re: Delete posts icon. - 03/20/2000 9:58 PM
I can't see this being usful since you'd still have to go to a page where you enter your username and password, but hey, I'm not always right. If someone writes (or has already written) this, then here's an icon to use:

Just a thought [Linked Image]
Posted By: ilya Re: Delete posts icon. - 03/20/2000 10:39 PM
I still haven't been able to figure out the problem, sorry.

Cal: it just makes the board look better [Linked Image]

------------------
Thanks for reading!
Ilya
Administrator of Ubb Code Hackers Hideout
Moderator of UBB Hacks Finished
Posted By: LoveUBBHach Re: Delete posts icon. - 04/13/2000 10:31 AM
Hi All Master of Hach,
First i would say thanks to all of you, make/build the hach for UBB.
Now i have a problem, when i try install this DELETEPost hach in my UBB, i got problem is, they not delete 1 post (thread), they delete whole Topic.
Can anyone tell me why?.
I check out the code for admin (Delete Topic) i saw they did not have the $thisline[1] that code only in edit link, but i don't know why. they do that.

PS: This problem have same when i ENABLE/DISABLE User can edit cannot delete.
Please help me this hach.
Also i looking for the AIM hach, can anyone give me location where i can get its.

Thank you very much.

------------------
Thank You
Posted By: ilya Re: Delete posts icon. - 04/13/2000 5:54 PM
This is a bug in the hack. I haven't had time to fix it yet
Posted By: Slasher Re: Delete posts icon. - 04/27/2000 3:41 PM
Here's a fix i found somewhere in my bookmarks. Note: I take no credits for this fix!
after:
Code
code:
add:
Code
code:
The rest of the hack is correct.
Posted By: Maxonic Re: Delete posts icon. - 02/19/2001 4:27 PM
Hmm, this hack seems to delete the entire topic.. Isn't tehere a way to make it delete just the jingle post? :?
© UBB.Developers