would it be possible / advantageous to show thread start date next to thread starter name
this would allow members to see that an old thread has been resurrected an choose whether to read or not
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Changing the templates is usually not as problematic as changing the code but it may require an extra query, I could look deeper into it if needed, but then we still run into the same problem of complicated upgrades to redo the hack.
Perhaps a easier solution would be to close out threads after a certain time period has elapsed (policy period). If there is any additional need to reference the thread, a new thread with a reference link made back to the closed thread would be best.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Changing the templates is usually not as problematic as changing the code but it may require an extra query, I could look deeper into it if needed, but then we still run into the same problem of complicated upgrades to redo the hack.
Perhaps a easier solution would be to close out threads after a certain time period has elapsed (policy period). If there is any additional need to reference the thread, a new thread with a reference link made back to the closed thread would be best.
I support that idea. If a thread hasn't had a post in 45 days (or however long), close it.
Currently using VS 2015 Enterprise on Win10 Enterprise x64.
I was looking at a plugin for this but to modify it to work for our needs will be too much of a resource drain because of the need to update threads that are past the time limit.
I did figure I could write a cron job to process threads on a nightly batch but still may not be low impact enough.
Finally the thrid option, which may not be a good user experience, is to autoclose the thread when they try to reply lol.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Finally the thrid option, which may not be a good user experience, is to autoclose the thread when they try to reply lol.
Pity, it can't be done for threads that have been resolved.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
It probably could but usually resolved threads may have additional info to add or stuff. The member wouldnt be able to reopen it. I think we thought about it when the hack was first discussed and decided against closing them.
I did think about just placing a message next to the reply box that could warn the member that the thread is old and would be closed. Then f they try to post a reply we use the postback to update the thread table with a update statement to close the thread. This way its on a per thread per post attempt basis. Least impact I can think of.
Still every modification need to really be eval'd to see if its worth the trouble managing.
Perhaps just the warning would be easiest as its a simple plugin adding a custom template to the replybox template dynamically. Up to the Admins if its worthy or not. Then if the members have enough desire for it maybe we can do it.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
So you cant just have the DB run an update query on the Threads table when the date rolls to the next day? What type of database does this forum use? I'm pretty sure MySql supports DB Triggers for this type of thing and it wouldn't require a PHP forum change if done right. At least I don't think anyone would need to get into the forum code at all.
Currently using VS 2015 Enterprise on Win10 Enterprise x64.
We've discussed the idea of closing older threads automatically and decided against it. Don't see any reason why a thread should be closed just because it's old. That doesn't necessarily mean it's no longer relevant.
What about entries in the CodeBank's? Would/should they also get included in this auto-closure discussion? I would have thought not, that way, any new person with a question can legitimately ask it in an older thread.
Just thinking of using a plugin to inject an additional template to the quick reply and advanced reply to add text stating its an old thread etc.
But guess maybe we could take this to the php forum perhaps as its getting kinda off topic
Edit: Look what I found. Like this!
That looks good, though 15 days is a little short I think 45 days or more (like 60) would be alright. Some people like myself don't get back to a thread I make for a few weeks
Currently using VS 2015 Enterprise on Win10 Enterprise x64.
That plug-in seems like a great addition to the forum.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
1) I like the idea of autoclosing the thread after a specific period of time. This is what happens in most of the forums.
2) It would be a bad idea to autoclose Resolved threads, unless they have been inactive for a specific time. What if the user wants to 'UnResolve' it?
3) The first point if not difficult to implement will directly help users not getting 'sucked' into old threads as tg puts it (Well, even I have been a part of one or two)
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
That's brilliant, Rob! I think we should install it. It's no code modifications is it?
Thanks PG. There is no code modifications at all. Complete plug-in and injecting the templates into the template cache. So its all done on the fly. this will need to be evaluated, tested and if accepted, scheduled for implementation. Any additional plugin is always a risk and needs to be thouroughly tested.
@Sid, Autoclosing threads is just too much of a resource and risk. We have toyed around with this idea before and decided against it.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.