vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Resolved Threads (https://vborg.vbsupport.ru/showthread.php?t=71415)

Logikos 11-05-2004 10:00 PM

Resolved Threads
 
Resolved Threads


====================
Author: Ken 'LiveWire' Iovino
Site: www.initialz.com
Version: 1.0
====================

Updates
  • None at this moment

Add Ons
Close thread after thread is considered resloved. Click Here for this Addon (Thanks to BeerMonster)

What this does
This will give thread starters the option to click a link to make a thread considered resolved. The way it works is simple. It will change the title of the post from 'I Need Help' to '[resloved] I Need Help'. This works as per forum basis and you can have this turned on/off on any forum you want. Only thread starters will see this option. If you want admins to see this option also, see This Thread Here

If you would like to change the text, open 'resolved.php' look at line 35.

To do list...
  • Time to install: 3-5 minutes
  • Queries to run: 2
  • File Mods: 2
    • /admincp/forum.php
    • /showthread.php
  • Templates to edit: 1
    • SHOWTHREAD
  • Templates to add: 1
  • New Phrases: 2

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.



HiDeo 11-06-2004 07:09 AM

Really nice job, thanks Live Wire

Bozkurtum 11-06-2004 07:28 AM

Nice hack. thanks ;)

SnowBot 11-06-2004 09:48 AM

Do admins see the option and change it?

dethfire 11-06-2004 01:57 PM

this will work great for one of my homework forums, anyone try it out, any problems?

Logikos 11-06-2004 03:09 PM

Quote:

Originally Posted by SnowBot
Do admins see the option and change it?

If you want admins to beable to see this option you just need to edit the SHOWTHREAD template and find:
HTML Code:

<if condition="$firstpostinfo[userid] == $bbuserinfo[userid]">
        $resolvedlink
</if>

And change to:
HTML Code:

<if condition="$firstpostinfo[userid] == $bbuserinfo[userid] OR $bbuserinfo[usergroupid] == 6">
        $resolvedlink
</if>


danrak 11-06-2004 03:23 PM

I went to install it but looking at the install file where it says to run this query all I see is this:

+---------------------+

+---------------------+

Logikos 11-06-2004 03:48 PM

Oppsiee, The query you want to run is
[sql]
ALTER TABLE forum ADD (
isresolved smallint(3) not null default ''
)
[/sql]

Zip Updated.

danrak 11-06-2004 04:21 PM

I've run the query and did all the hacks. Now I'm getting
Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT resolved
FROM thread
WHERE threadid = 21760

mysql error: Unknown column 'resolved' in 'field list'

mysql error number: 1054

Date: Saturday 06th of November 2004 01:17:59 PM
Script: http://www.techsupportforum.com/showthread.php?t=21760
Referer: http://www.techsupportforum.com/forumdisplay.php?f=98
Username: danrak
IP Address: 68.200.117.30


Sorry to be a pain. I think this would be a great addition to one of my sites.

GamerJunk.net 11-06-2004 07:10 PM

Can you change the word so it doesn't say "Resolved" but rather "SOLD" ?

Guest190829 11-06-2004 08:06 PM

Great Job, Live Wire.

Logikos 11-06-2004 11:18 PM

Quote:

Originally Posted by danrak
I've run the query and did all the hacks. Now I'm getting
Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT resolved
FROM thread
WHERE threadid = 21760

mysql error: Unknown column 'resolved' in 'field list'

mysql error number: 1054

Date: Saturday 06th of November 2004 01:17:59 PM
Script: http://www.techsupportforum.com/showthread.php?t=21760
Referer: http://www.techsupportforum.com/forumdisplay.php?f=98
Username: danrak
IP Address: 68.200.117.30


Sorry to be a pain. I think this would be a great addition to one of my sites.

You need to run this query and that will fix your problem. I forgot to add the sec query in the install, very sorry. Zip updated again.

[sql]
ALTER TABLE thread ADD (
resolved varchar(10) not null default '0'
)
[/sql]

Logikos 11-06-2004 11:19 PM

Quote:

Originally Posted by RasMasta
Can you change the word so it doesn't say "Resolved" but rather "SOLD" ?

Open resolved.php and find

PHP Code:

require_once('./global.php');

// change the text below that will appear in the title
// of thread default is [resolved] leave a space after
// the text to seperate the thead title with this text
$text '[resolved] '

Thats where your able to change the text.

danrak 11-07-2004 12:22 AM

Got it working now. Thanks. I'm sure this hack will get some use.

cdoyle 11-07-2004 09:12 PM

Hi,
I'm in the process of adding this hack, and got to the part where I'm suppose to enter this code into the showthread template.

<if condition="$firstpostinfo[userid] == $bbuserinfo[userid] OR $bbuserinfo[usergroupid] == 6">
$resolvedlink
</if>

It says to put it wherever I would like to see the link, I tried entering it once and I didn't noticed anything different on my forum. I've done everything else the instructions said to do.

So I'm thinking maybe I'm just entering this code in the wrong place,
where has everyone else been putting it?

Thanks
Chris.

freeshares1 11-08-2004 04:14 PM

cdoyle i am having the same problem :(

Logikos 11-08-2004 04:39 PM

The reason you guys are prolly not seeing anything is cause you need to turn it on, on the forum you want it on. Go to the admincp, and edit the forum you want it to show up on. Click yes to add resloved option, then you will see it there in the post of the forum you have it on.

freeshares1 11-08-2004 04:52 PM

PHP Code:

<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest">$vbphrase[next_thread]</a>
    <
strong>&raquo;</strong>
<if 
condition="$firstpostinfo[userid] == $bbuserinfo[userid]">
     
$resolvedlink
     
</if>
</
div

That is where i added it, And it works fine thanks "Live Wire"

Freeshares1 clicks install:)

On a side note is it possible for a user to un resolve it?

Logikos 11-08-2004 07:57 PM

I knew someone would ask that, but i don't know how to create a query that will edit the title and delete some text from it.

freeshares1 11-08-2004 08:21 PM

oh well, it still rocks. I have so many uses for this (i just need to work out a way of making it so that i can have a message per forum) as some are resolved some are sold.

Thanks again for such a great hack :)

cdoyle 11-08-2004 09:20 PM

duh, have to turn it on first.

that fixed it :)

Thanks
Chris.

theArchitect 11-09-2004 12:22 AM

Quote:

Originally Posted by Live Wire
i don't know how to create a query that will edit the title and delete some text from it.

*theArchitect clicks install*.

Cool feature. And if I come across the query that will edit the title and delete some text from it I will post it here.

Logikos 11-09-2004 05:00 AM

Thanks alot guys for all your feedback and support.

silentwille 11-10-2004 03:36 PM

It's possible to add an option to solve/unsolve thread in the thread tools

Logikos 11-11-2004 05:44 AM

Read the few post above yours silentwille

silentwille 11-11-2004 06:36 AM

Ok, thanks.

I have make an icon for resolve thread. Do you like this ?

Beermonster 11-11-2004 08:59 AM

Nice hack, just a little addition to it if possible, could it also automatically close the thread?

Beermonster 11-11-2004 01:06 PM

Quote:

Originally Posted by Beermonster
Nice hack, just a little addition to it if possible, could it also automatically close the thread?

Hope you don't mind I've made this little addition, in the resolved.php

Find:

Code:

$DB_site->query("
                                                UPDATE " . TABLE_PREFIX . "thread
                                                SET resolved = '1'
                                                WHERE threadid = " . intval($threadid) . "
                                        ");

Add under:

Code:

$DB_site->query("
                                                UPDATE " . TABLE_PREFIX . "thread
                                                SET open = '0'
                                                WHERE threadid = " . intval($threadid) . "
                                        ");


Logikos 11-11-2004 11:00 PM

Thanks alot, i'll add that post to the first thread! :)

dethfire 11-12-2004 03:20 AM

how can I restrict this fuction for one forum?

silentwille 11-12-2004 02:42 PM

hi, Live Wire
If you use the same code of stick/unstick, it's possible to adapt for resolve/unresolve, no ?

Thx

Logikos 11-12-2004 06:31 PM

No cause stick/unstick doesn't edit the threads title in the database.

theArchitect 11-12-2004 09:00 PM

Quote:

Originally Posted by dethfire
how can I restrict this fuction for one forum?

Go to your AdminCP and then click on Forums & Moderators. Then select the forum you want to use this feature with.

Megareus Rex 11-14-2004 12:16 AM

Ok, I have a question.

Where in SHOWTHREAD should I insert the code for it? I'd like some suggestions and stuff.

Also, how exactly does this work? In what form does the coding for SHOWTHREAD work?

silentwille 11-14-2004 07:44 AM

The code for resolve thread add anywhere

I have make an icon and i have add the code in the postbit/postbit_legacy

Logikos 11-14-2004 03:15 PM

Quote:

Originally Posted by Megareus Rex
Ok, I have a question.

Where in SHOWTHREAD should I insert the code for it? I'd like some suggestions and stuff.

Also, how exactly does this work? In what form does the coding for SHOWTHREAD work?

You put the code anywhere you want the link to appear.

Fargo 11-16-2004 06:50 PM

nice hack Live Wire --adding this to my development 'to do' list :)

Dennis B 11-21-2004 07:20 PM

Very nice. Installed. :)

JohnBee 11-24-2004 01:36 PM

*** PROBLEM FIXED [RESOLVED] :squareeyed:

my FTP client timed out and the "showthread.php" edits were not
completed.

Nice hack! I added the custom button and changed the [word]
to [Solved]

Thanks for a nice hack! good work


Code:

I installed it, however I see nothing...

Activated it from under the "Forum management" CP area.
I'm just not sure where the option should appear?

is it within the thread?
at the thread post level ex: POST NEW THREAD or what?

I would like this hack for my support section "very unseful"


JohnBee 11-24-2004 02:12 PM

One last question though.

How would I attached a button to the command?
I tried linking the $resolved to the button but that
didn't work :)

I included an image of what I would like it to look like bellow.
any help is appreciated


All times are GMT. The time now is 04:48 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.01336 seconds
  • Memory Usage 1,829KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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