vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Mark Threads As 'Solved' (https://vborg.vbsupport.ru/showthread.php?t=211020)

Gav-n-Tn 10-03-2010 03:52 PM

One request. Code another so that threads -in specific forums- can be marked as Sold. I don't want to alter this one because I have a forum for asking questions which I'm using this one in. Or, can I have permission to do it myself? Actually, I already did but would like your blessing on installing it :)

Black Tiger 10-14-2010 05:27 PM

I use the term [opgelost] but discovered that it's not showing up on forumhome's "last post" column. I'm not any good in coding, how and where can I fix it so this does show up? Please tell me in e a "search this and replace with this" kind of way.;)

Furthermore it would be nice to have a mandatory "open" status prefix. Can I use the normal prefix manager for that, will this not conflict when a thread is solved and marked solved?

Black Tiger 10-16-2010 05:14 PM

Fixed the above myself by putting the forums on a mandatory prefix [OPEN] and added that prefix to the "solved" prefix set.

But there is another problem/bug with this mod.
When setting a thread to solved, the prefix will be set to solved, but the forum information is not rebuild immediately. This way the "Solved" prefix is only visible in showthread and forumdisplay but not on forumhome!

I explained here:
https://vborg.vbsupport.ru/showthread.php?p=2110759

How can I fix this?

sheppardzwc 10-19-2010 01:24 AM

Quote:

Originally Posted by Black Tiger (Post 2110761)
Fixed the above myself by putting the forums on a mandatory prefix [OPEN] and added that prefix to the "solved" prefix set.

But there is another problem/bug with this mod.
When setting a thread to solved, the prefix will be set to solved, but the forum information is not rebuild immediately. This way the "Solved" prefix is only visible in showthread and forumdisplay but not on forumhome!

I explained here:
https://vborg.vbsupport.ru/showthread.php?p=2110759

How can I fix this?

I believe I've found a bugfix for that...

If you look in your solved.php, on line 117, it has: $threadman->save();

Under that, on a new line, if you put: build_forum_counters($threadinfo['forumid']); it should work fine. The same goes for on line 150. So your end code should be:

line 117
Code:

$threadman->save();
build_forum_counters($threadinfo['forumid']);

and line 150
Code:

$threadman->save();
build_forum_counters($threadinfo['forumid']);


While this isn't guaranteed, and on large boards this could cause a performance problem, this should update your fourmhome to reflect any changes. :)

Black Tiger 10-19-2010 12:02 PM

The normal prefixes also update immediately so that would be a performance problem also then or am I mistaken?

Anyway, many thanks for your solution, I'm going to try this! Thank you!

sheppardzwc 10-19-2010 09:38 PM

Quote:

Originally Posted by Black Tiger (Post 2111627)
The normal prefixes also update immediately so that would be a performance problem also then or am I mistaken?

Anyway, many thanks for your solution, I'm going to try this! Thank you!

While the save() does take resources, duh, it only affects one thread. The build_form_counters function, unfortunately, scans each thread in a forum which can be a bit intensive. But anyway, no problem. :)

Black Tiger 10-19-2010 10:09 PM

Great, thank you for explaining. I'm still happy with the solution you gave me.:)

emath 11-21-2010 10:56 AM

thanks..

SVTCobraLTD 01-04-2011 04:50 PM

Not sure what I am missing but on 3.8.6PL1 i have uploaded everything and did the template edits yet it is not working. I checked under usergroups and Admin's have permission. Yet when I click Thread Tools, there is nothing there about Solved. What am I missing here?

Black Tiger 01-04-2011 06:18 PM

SVTCobraLTD: Did you have a look at my post #199 here?
It's explained there what you have to do.


All times are GMT. The time now is 12:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01298 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete