vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Mark Threads As 'Solved' (https://vborg.vbsupport.ru/showthread.php?t=149214)

mred 07-13-2007 10:39 PM

I see a problem with solved threads - if a thread is unsolved and a moderator or administrator close that thread because of any important reason, the thread opener can reopen it with using the button 'unsolve thread'.

Could that problem be solved?

mred 07-13-2007 10:53 PM

Sorry, again ..

If you delete the prefix of a solved thread in case of moderation or what else ever you will get an inconsistency and the threadstarter will get an error if he tries to unsolve that thread.

any idea?

Invalid ID 07-15-2007 03:24 AM

Welcome the upgrade. Please specify what steps do I take to upgrade. Thanks

4x4 Mecca 07-15-2007 04:25 AM

Invalid ID, it's in the first post, there is a section titled upgrading :)

4x4 Mecca 07-15-2007 04:36 AM

Quote:

Originally Posted by SecondV (Post 1290176)
I don't mess with postbit much, but this hack uses $thread and $threadinfo for everything. Postbit *should* be $post

That worked great, it shows up when I use this
Code:

<a href="solved.php?$session[sessionurl]do=marksolved&amp;t=$post[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /></a>
But I can not get the conditionals to work, like this.
Code:

                <if condition="$show['solvedthread']">

<a href="solved.php?$session[sessionurl]do=marksolved&amp;t=$post[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /></a>
<else />
<if condition="$show['solvedthread_unsolve']">
<a href="solved.php?$session[sessionurl]do=markunsolved&amp;t=$post[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_markunsolved]" /></a>
                        </if>

any idea how to get that working?

Eric 07-15-2007 05:13 AM

Quote:

Originally Posted by 4x4 Mecca (Post 1291590)
That worked great, it shows up when I use this
Code:

<a href="solved.php?$session[sessionurl]do=marksolved&amp;t=$post[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /></a>
But I can not get the conditionals to work, like this.
Code:

                <if condition="$show['solvedthread']">

<a href="solved.php?$session[sessionurl]do=marksolved&amp;t=$post[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_marksolved]" /></a>
<else />
<if condition="$show['solvedthread_unsolve']">
<a href="solved.php?$session[sessionurl]do=markunsolved&amp;t=$post[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/marksolved.gif" alt="$vbphrase[solvedthread_markunsolved]" /></a>
                        </if>

any idea how to get that working?

That's because the plugin uses the 'showthread_complete' hook. You could change it to 'showthread_start', should work then.

Quote:

Originally Posted by Invalid ID (Post 1291543)
Welcome the upgrade. Please specify what steps do I take to upgrade. Thanks

Upgrade instructions are in the first post, and the 'install.html' in the zip.

Quote:

Originally Posted by mred (Post 1290362)
Sorry, again ..

If you delete the prefix of a solved thread in case of moderation or what else ever you will get an inconsistency and the threadstarter will get an error if he tries to unsolve that thread.

any idea?

I use substr to remove the thread prefix when it's unsolved, that could be causing the error. I'll take a look into it.

Quote:

Originally Posted by mred (Post 1290349)
I see a problem with solved threads - if a thread is unsolved and a moderator or administrator close that thread because of any important reason, the thread opener can reopen it with using the button 'unsolve thread'.

Could that problem be solved?

I'll fix that in the next release.

mred 07-15-2007 02:05 PM

Great, thanks :up:

Only an idea, can you use the prefix from "Thread Prefix"?

Invalid ID 07-15-2007 03:13 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1291582)
Invalid ID, it's in the first post, there is a section titled upgrading :)

Noticed. Thanks a lot :)

HaMaDa4eVeR 07-17-2007 12:33 PM

I'll be gratfull if you give me the product that compatable with 3.5.7 or 3.5 series

4x4 Mecca 07-17-2007 08:33 PM

I tried getting this to show in the threadbit template
HTML Code:

<if condition="$thread['issolved']"><font color="green" size="1">(Solved)</font></if>
but it doesn't show, any idea how to get this to show next to the treads? I have it in the right part, but the code doesn't pull the rigth results.


All times are GMT. The time now is 06:33 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.01379 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (6)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