News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Topic Solved Mod

Started by Grudge, March 07, 2004, 07:51:18 AM

Previous topic - Next topic

PoLlama

#300
All posts by the topic starter are coming up yellow...

EDIT: After looking through the code I found out this was a feature, unfortunately the settings did not install on their own. (Yes Test passed, and it was not theme-specific).

MkC

Quote from: PoLlama on July 04, 2007, 09:56:53 PM
All posts by the topic starter are coming up yellow...

EDIT: After looking through the code I found out this was a feature, unfortunately the settings did not install on their own. (Yes Test passed, and it was not theme-specific).
Version mod?

PoLlama

Latest at time of post, SMF 1.1.3.

If you look back you can see others were also experiencing the problem.

MkC

Quote from: PoLlama on July 07, 2007, 10:55:54 PM
Latest at time of post, SMF 1.1.3.

If you look back you can see others were also experiencing the problem.
Not available, it's progress  ;)

padexx

QuoteNot available, it's progress
meaning the SMF 1.1.3 compatible version will be available soon?

casp3r

Apologises if this has been covered but when I set a board as 'Topic Solved' I loose the option to select a message icon when posting a message. Can this be fixed?

Many thanks in advance

Michael
Aviation forum & gallery
www.niaviation.co.uk

MkC

Quote from: casp3r on July 24, 2007, 08:42:36 AM
Apologises if this has been covered but when I set a board as 'Topic Solved' I loose the option to select a message icon when posting a message. Can this be fixed?

Many thanks in advance

Michael
version of topic solved?

casp3r

Sorry should have mentioned that. It's 1.22
Aviation forum & gallery
www.niaviation.co.uk

nderouch

I just installed this mod, but it does not appear to beworking.

I can go into the board and set the board as a topic solved board, but nothing seems to happen to the board.

nderouch

Quote from: GodOfWonders on March 31, 2007, 12:54:44 PM
Quote from: Metro111 on April 01, 2007, 01:19:07 AM
Quote from: GodOfWonders on March 31, 2007, 12:54:44 PM
I had the same problem when installing this package.  The admin link is not added for some reason but you can do this manually.

Open ModSettings.php and find this:
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),


Add this code after it:
'solved' => array(
'title' => $txt['topicsolved'],
'href' => $scripturl . '?action=featuresettings;sa=solved;sesc=' . $context['session_id'],
),


Next open Modifications.english.php and find:
?>
at the bottom of the page.

Before it add:
$txt['topicsolved'] = 'Topic Solved';

Upload the files into the correct directories and then go into your administration and click on: Features and Options.  You should see a link called: Topic Solved right in front of the Karma link.

Hope this helps. :)

Thank you very much, that solved my problem also.
I had the same problem when installing this package.  The admin link is not added for some reason but you can do this manually.

Open ModSettings.php and find this:
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),


Add this code after it:
'solved' => array(
'title' => $txt['topicsolved'],
'href' => $scripturl . '?action=featuresettings;sa=solved;sesc=' . $context['session_id'],
),


Next open Modifications.english.php and find:
?>
at the bottom of the page.

Before it add:
$txt['topicsolved'] = 'Topic Solved';

Upload the files into the correct directories and then go into your administration and click on: Features and Options.  You should see a link called: Topic Solved right in front of the Karma link.

Hope this helps. :)


I think this will fix my problem as well except that for some reason i cannot find the Modifications.english.php file. I found a file called Settings.English.php which is located in my theme.

jossanaijr

Quote from: GodOfWonders on March 31, 2007, 12:54:44 PM
I had the same problem when installing this package.  The admin link is not added for some reason but you can do this manually.

Open ModSettings.php and find this:
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),


Add this code after it:
'solved' => array(
'title' => $txt['topicsolved'],
'href' => $scripturl . '?action=featuresettings;sa=solved;sesc=' . $context['session_id'],
),


Next open Modifications.english.php and find:
?>
at the bottom of the page.

Before it add:
$txt['topicsolved'] = 'Topic Solved';

Upload the files into the correct directories and then go into your administration and click on: Features and Options.  You should see a link called: Topic Solved right in front of the Karma link.

Hope this helps. :)

Thank you!!

NoDoze

I'm getting this error with this mod:
Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's PC Backup Issues'
WHERE ID_MSG = 67' at line 2
File: /home/view/public_html/forum/Sources/Post.php
Line: 2382

And at that line is: WHERE ID_MSG = $FIRST_MSG", __FILE__, __LINE__);

And here is the complete code:

// Check user has permission to do this
$request = db_query("
SELECT m.ID_MSG, m.ID_MEMBER, m.topicSolved, m.subject
FROM {$db_prefix}topics AS t
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
WHERE t.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
list ($FIRST_MSG, $ID_MEMBER_POSTER, $firstSolved, $firstSubject) = mysql_fetch_row($request);
mysql_free_result($request);

if (strstr($firstSubject, '[SOLVED]') === false)
$firstSubject = '[SOLVED] ' . $firstSubject;

if ($ID_MEMBER != $ID_MEMBER_POSTER && !isset($user_info['is_admin']))
fatal_error("Hacker... ");

// If we are accepting
if ($accept == 1)
{
// Reset any previous accepts
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 0, icon = '$modSettings[topicsolvedIconOther]'
WHERE ID_TOPIC = $topic AND topicSolved = 1 AND ID_MEMBER != $ID_MEMBER_POSTER", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 0, icon = '$modSettings[topicsolvedIconStarter]'
WHERE ID_TOPIC = $topic AND topicSolved = 1 AND ID_MEMBER = $ID_MEMBER_POSTER", __FILE__, __LINE__);
// Update top message
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 2, icon = '$modSettings[topicsolvedIconAccept]', subject = '$firstSubject'
WHERE ID_MSG = $FIRST_MSG", __FILE__, __LINE__);
}


Now the catch? Yesterday this worked ok....
But today I'm getting this error...?
What happened?

How/what can I change to get it to work...

I know this thread is old, but links to the updated version of this mod are all DEAD! And the original doesn't include the "[SOLVED]" feature, which is what I want.... Any chances of getting this to work???

Thanks!

~Unkn0wn~

How to make it work on 1.1.3 theme AA New Damage, CLEANLY

WWEFreak666

I'm having problems with this. I own a board that helps people and this mod would be amazing. It seems as though it doesn't want to work. If the mod is activated in a board, in the posts, it'll be yellow and once you click Accept Answer, it turns green. Also, When I installed this I had a error with my post.template.php and had to uninstall the mod, because people couldn't start a new thread, reply and start a new poll.

I'm using DilberMC, the one with the ability for people to choose the colour they'd like for the board.

Thanks  :)

MkC

@WWEFreak666/assasinkilla: mod 1.22 and v12 is available for theme default...... 1.22 is old version of topicsolved......

second

#315
Quote from: MkC on May 05, 2007, 02:42:51 AM
Version 12.1: hxxp:support.smfgratuit.org/Mod_Topic_Solved_v12_1-topic-66-0.html [nonactive]
it's free....

@Hendricius and vinzz: permission is in V12 or V12.1  ;)

sorry where is the permission? i cant find it , but wanna use this amaizimg mod! :(
and i dont understand french... :(

MkC


RRasco

Quote from: NoDoze on August 16, 2007, 04:38:17 PM
I'm getting this error with this mod:
Quote
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's PC Backup Issues'
WHERE ID_MSG = 67' at line 2
File: /home/view/public_html/forum/Sources/Post.php
Line: 2382

And at that line is: WHERE ID_MSG = $FIRST_MSG", __FILE__, __LINE__);

Now the catch? Yesterday this worked ok....
But today I'm getting this error...?
What happened?

How/what can I change to get it to work...

I know this thread is old, but links to the updated version of this mod are all DEAD! And the original doesn't include the "[SOLVED]" feature, which is what I want.... Any chances of getting this to work???

Thanks!


You have a single quote in your subject...

Replace this:

// Check user has permission to do this
$request = db_query("
SELECT m.ID_MSG, m.ID_MEMBER, m.topicSolved, m.subject
FROM {$db_prefix}topics AS t
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
WHERE t.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
list ($FIRST_MSG, $ID_MEMBER_POSTER, $firstSolved, $firstSubject) = mysql_fetch_row($request);
mysql_free_result($request);

if (strstr($firstSubject, '[SOLVED]') === false)
$firstSubject = '[SOLVED] ' . $firstSubject;

if ($ID_MEMBER != $ID_MEMBER_POSTER && !isset($user_info['is_admin']))
fatal_error("Hacker... ");

// If we are accepting
if ($accept == 1)
{
// Reset any previous accepts
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 0, icon = '$modSettings[topicsolvedIconOther]'
WHERE ID_TOPIC = $topic AND topicSolved = 1 AND ID_MEMBER != $ID_MEMBER_POSTER", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 0, icon = '$modSettings[topicsolvedIconStarter]'
WHERE ID_TOPIC = $topic AND topicSolved = 1 AND ID_MEMBER = $ID_MEMBER_POSTER", __FILE__, __LINE__);
// Update top message
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 2, icon = '$modSettings[topicsolvedIconAccept]', subject = '$firstSubject'
WHERE ID_MSG = $FIRST_MSG", __FILE__, __LINE__);
}


With this:

// Check user has permission to do this
$request = db_query("
SELECT m.ID_MSG, m.ID_MEMBER, m.topicSolved, m.subject
FROM {$db_prefix}topics AS t
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
WHERE t.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
list ($FIRST_MSG, $ID_MEMBER_POSTER, $firstSolved, $firstSubject) = mysql_fetch_row($request);
mysql_free_result($request);

        $firstSubject = str_replace("'", "\'", $firstSubject);

if (strstr($firstSubject, '[SOLVED]') === false)
$firstSubject = '[SOLVED] ' . $firstSubject;

if ($ID_MEMBER != $ID_MEMBER_POSTER && !isset($user_info['is_admin']))
fatal_error("Hacker... ");

// If we are accepting
if ($accept == 1)
{
// Reset any previous accepts
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 0, icon = '$modSettings[topicsolvedIconOther]'
WHERE ID_TOPIC = $topic AND topicSolved = 1 AND ID_MEMBER != $ID_MEMBER_POSTER", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 0, icon = '$modSettings[topicsolvedIconStarter]'
WHERE ID_TOPIC = $topic AND topicSolved = 1 AND ID_MEMBER = $ID_MEMBER_POSTER", __FILE__, __LINE__);
// Update top message
db_query("
UPDATE {$db_prefix}messages
SET topicSolved = 2, icon = '$modSettings[topicsolvedIconAccept]', subject = '$firstSubject'
WHERE ID_MSG = $FIRST_MSG", __FILE__, __LINE__);
}
Vehicle Management System for SMF - SMFGarage.com

SNAFU0185

ok i have smf1.13 and topic solved version 1.22 installed  but i think when i upgraded to 1.13 the mod has stoped working as i cant find the admin  section anymore to set what boards are related to this mod or to change the background colours ive tried the below but cant find the first file let alone what im sposed to find in it colesest match is ModSettings.english.php but it doesnt have the matching line of code
Quote from: GodOfWonders on March 31, 2007, 12:54:44 PM
I had the same problem when installing this package.  The admin link is not added for some reason but you can do this manually.

Open ModSettings.php and find this:
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),


Add this code after it:
'solved' => array(
'title' => $txt['topicsolved'],
'href' => $scripturl . '?action=featuresettings;sa=solved;sesc=' . $context['session_id'],
),


Next open Modifications.english.php and find:
?>
at the bottom of the page.

Before it add:
$txt['topicsolved'] = 'Topic Solved';

Upload the files into the correct directories and then go into your administration and click on: Features and Options.  You should see a link called: Topic Solved right in front of the Karma link.

Hope this helps. :)
can anyone help please?

MkC

yes, upgrade v1.22 to v12  ;)

Advertisement: