Previous Thread
Next Thread
Print Thread
Rate Thread
#144438 03/27/2002 1:22 PM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
##################################################################################
#HACK NAME : Recycle bin For UBB 6.2.1 #
##################################################################################
##VERSION: 2 Beta #
##################################################################################
##DESCRIPTON : #
## This hack will place any deleted topic or replay in a forum that #
## you create for this aspect. #
## The Recycle bin can be toggled off in the control panel. #
## Any topic or replay deleted or edited by a user, Moderated, or #
## administrator is going to be moved to the recycle form. #
## If you delete a topic from a recycle bin it will be deleted or ever #
##################################################################################
##Modification #
## Add support to record the move and close topic #
##################################################################################
##AUTHOR : wwb95 #
##################################################################################
##file to edit: #
## EDIT CP_VARS_MISC.PL #
## EDIT CP_LIB.CGI #
## ubb_edit_post.cgi #
## ubb_topic_maint.cgi #
##################################################################################
##DISCLAIMER #
## By using this modification, the user implicitly agrees #
## that they are willingly modifying any and all files at #
## their own risk. Should any errors occur either as a #
## direct or indirect result of said modifications the user #
## agrees not to hold Infopop Corporation or any of the #
## individuals listed accountable. #
## #
## #
## IN OTHER WORDS: PLEASE MAKE BACKUP COPIES OF EVERY FILE YOU PLAN TO #
## MODIFY PRIOR TO MODIFICATION!! #
##################################################################################

Will this hack will give you the ability to store any modification done to a topic or post. It has a full CP control.
You can enable the following from the CP
1-Enable the recycle bin
2-Enable recycles for edit post
3-Enable recycles for deletion of a post

Enabling for editing is when a user, modulator, or admin change some thing in his post
Enable for deletion is when a user, modulator, or admin delete a post

When a user edits a post or topic the first post in a topic that will appear in the recycle bin will look like this
000001
This post was edited by: wbb95
On: March 27, 2002 at: 08:04 PM
The post number of this is: 1
The forum in which the post was: Forum 1
The topic number was: 000001

The subject will change in the recycle to be:
(edit) The subject

the same thing when a post is deleted

When a topic is deleted the information above will be added to the first post of the topic

If delete or edit a post or topic in the recycle it will be removed for ever

To empty the recycle you have to do that from the cp== maintenance== Prune post

I have done to hack
For the ubb with No sticky hack added === you can down load this from
http://66.113.218.51/recycle_621.zip

For the ubb with sticky hack added === you can down load this from
http://66.113.218.51/recycle_621_sticky.zip

Sponsored Links
#144439 03/28/2002 10:16 AM
Joined: Jan 2002
Posts: 14
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 14
hi wwb smile

works fine tested it on my Board

one addition would be nice

you could implement the modlog feature from qasic because these two hacks are placed in the same files you need to edit smile

the change need to be in ubb_topic_maint.cgi

[code][/code]

#144440 03/28/2002 11:20 AM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
bulbi
Thank you very much for this addition. Yes it also work fine in my board for along time now.
By using this hack I do not think it is important to change what you done you could ignore it since it will show you how has modify or delete a post in the recycle bin., but if you want to have a record you thankfully don the require changes.
Thanks again bulbi

#144441 03/29/2002 9:09 AM
Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
great hack, right now finding out how it works laugh

#144442 03/29/2002 9:27 AM
Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
i found out how it works laugh , thanks!!!

Sponsored Links
#144443 03/29/2002 9:58 AM
Joined: Mar 2002
Posts: 63
Member
Member
Offline
Joined: Mar 2002
Posts: 63
Yeh works great now I can see who is deleting the topics tipsy

#144444 03/30/2002 6:59 AM
Joined: Mar 2000
Posts: 51
Member
Member
Offline
Joined: Mar 2000
Posts: 51
great work on this hack, smile

#144445 03/30/2002 6:58 PM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
##################################################################################
##VERSION: 2 Beta #
##################################################################################

##Modification #
## Add support to record the move and close topic #
##################################################################################

#144446 03/31/2002 8:59 PM
Joined: Oct 2001
Posts: 572
Member
Member
Offline
Joined: Oct 2001
Posts: 572
Looks like i need to upgrade it. Can i get you to post an update file for what all needs to be done to upgrade from the one version.

#144447 04/06/2002 4:14 AM
Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
Yeah please make that one...

Sponsored Links
#144448 04/06/2002 6:56 AM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
eXtremeTim & Consolefreak
I have checked the 6.2.1.1 and none of the code need to be upgrade so I think it will work fine with 6.2.1.1

#144449 04/06/2002 7:14 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
I think Console and Tim meant upgrade instructions from v1 of this hack to v2.

#144450 04/06/2002 7:41 AM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
Thanks Lk
The upgrade file is in this
http://66.113.218.51/recycle_621_up_from_1_to_2.zip

#144451 04/09/2002 12:48 PM
Joined: Oct 2000
Posts: 73
Member
Member
Offline
Joined: Oct 2000
Posts: 73
Great hack smile

Is it possible to exclude private forums??

aleina


aleina
#144452 04/25/2002 9:07 PM
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Going to back up here, if anyone read my previous post, forget it. wink

I had thought I managed to correct the following error:

Error
An error has occured:

C:/webs/softest/cgi-bin/ubbcgi/ubb_topic_maint.cgi: Unmatched right curly bracket at C:/webs/softest/cgi-bin/ubbcgi/ubb_topic_maint.cgi line 281, at end of line
syntax error at C:/webs/softest/cgi-bin/ubbcgi/ubb_topic_maint.cgi line 281, near "}"
Please inform the board administration of this error so that they may fix the problem. Thank you!

So, I went in and removed the extra }, and then it all appeared to work, of course then I started getting this error when I deleted a post:

Error
An error has occured:

Tried to open zero-sized topic 000002 in forum 7. at C:/webs/forum/cgi-bin/ubbcgi/ubb_lib_files.cgi line 757.
Please inform the board administration of this error so that they may fix the problem. Thank you!

BUT, it does delete the post and move it to the recycle bin... I'm kind of stumped here...

Looking for ideas, anyone? smile

Thanks,

~Z

#144453 04/29/2002 9:38 PM
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Lil help? Anyone? Is this one just me? I rehacked the works over again, still get the message telling me there's an unmatched } and just can't seem to fix it... because when I do I get the other strange error. frown

Thanks,

~Z

#144454 06/05/2002 12:15 PM
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
quote:
Originally posted by Zackary:
Lil help? Anyone? Is this one just me? I rehacked the works over again, still get the message telling me there's an unmatched } and just can't seem to fix it... because when I do I get the other strange error. frown

Check cp_lib.cgi

......
#################
#######Look for:#
#################
$vars_misc{use_cache} = 'yes';

#######Under that add:
$vars_misc{recycle} = '1';
$vars_misc{recycle_move} = 'no';
$vars_misc{recycle_close} = 'no';
$vars_misc{recycle_topic} = 'yes';
$vars_misc{recycle_replay} = 'yes';
$vars_misc{recycle_edit} = 'no';

..................

the line you may have edited in correctly was...

if ($vars_misc{use_cache} eq '') { $vars_misc{use_cache} = 'yes'; }

with a "}" at the end

sumting wong, no ?


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
#144455 06/30/2002 7:19 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Sorry for bumping an old topic, but I tried everything to get this to work with 6.3 and the error I got was a blank page when trying to edit a post.

#144456 06/30/2002 2:50 PM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I would love to see this work on 6.3

#144457 06/30/2002 7:17 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'm going to try and fix this up. I tried a few things yesterday but still the edit wouldn't work.

#144458 07/01/2002 9:35 AM
Joined: Nov 2001
Posts: 170
Member
Member
Offline
Joined: Nov 2001
Posts: 170
Sorry for not posting this weak ago

This is for 6.3

http://66.113.218.51/recycle_63.zip

#144459 07/01/2002 8:13 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Is there a version for sticky in that zip?

#144460 08/23/2002 12:02 PM
Joined: Aug 2002
Posts: 2
Junior Member
Junior Member
Offline
Joined: Aug 2002
Posts: 2
Is it just me?
I get a "forbidden" error when trying to download the zip file for the sticky and regular versions.

If possible, please repost a fresh link, since i'm sure it's not a problem with me or my ISP since i've tried in both at home (AT&T Broadband) and at work (DirecPC/T1) and get the same results.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)