News:

Wondering if this will always be free?  See why free is better.

Main Menu

Shared Forum Mod -- latest version: 0.2.5.4

Started by Sarge, March 17, 2007, 02:58:49 AM

Previous topic - Next topic

Sarge

Quote from: ogmios on January 03, 2008, 12:31:13 PM
yes, sarge, i need still need help uninstalling the mod
- and -
fixing the errors (listed below) that i believe may be related to the mod...
- and -
i haven't been able to move a post since i installed the mod - related?

please find the attached index.template.php

I attached your index.template.php without my mod changes. This is for the Babylon theme, right?

The errors are caused by earlier versions of the mod when you have no subforums set up; once you create a subforum, the errors go away. I believe I fixed this bug in 0.2.5 -- let me know if you want the latest version installed (there are a few theme changes from previous versions).

Moving a post requires splitting the post from the topic into a new topic and either a) merging the new topic into another topic, or b) moving the new topic to another board. Which one have you tried to do? Also, did you try as a moderator or as an admin?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Sarge

Quote from: Tick on January 03, 2008, 04:15:06 PM
I did not fix this but I will link the person here who did and he can tell what he did.  Tick

Thank you. :)

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ogmios

QuoteI attached your index.template.php without my mod changes. This is for the Babylon theme, right?

---- yes, it was for the babylon theme... should i run an uninstall with my current index.template.php (ignoring the error), then upload the one you just attached for me?


QuoteThe errors are caused by earlier versions of the mod when you have no subforums set up; once you create a subforum, the errors go away. I believe I fixed this bug in 0.2.5 -- let me know if you want the latest version installed (there are a few theme changes from previous versions).

---- ok


QuoteMoving a post requires splitting the post from the topic into a new topic and either a) merging the new topic into another topic, or b) moving the new topic to another board. Which one have you tried to do? Also, did you try as a moderator or as an admin?

---- ah ha... logging in as the main admin gave me a different error... gotta upgrade my database apparently (looking into it now)...

---- this is the message i got:

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 '' at line 5
File: /home/rootcoll/public_html/Sources/MoveTopic.php
Line: 99

Note: It appears that your database may require an upgrade.
Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.10.
The above error might possibly go away if you execute the latest version of upgrade.php.

Sarge

Quote from: ogmios on January 03, 2008, 10:17:41 PM
---- yes, it was for the babylon theme... should i run an uninstall with my current index.template.php (ignoring the error), then upload the one you just attached for me?

Yes, if Package Manager reports errors only on Themes/babylon/index.template.php. If there are errors on other files, let me know.

Just in case, be sure to download a backup of all files in the Sources/ and Themes/ directories, as well as index.php in the main forum directory (where Settings.php and SSI.php are) before uninstalling the mod.


Quote from: ogmios on January 03, 2008, 10:17:41 PM
QuoteThe errors are caused by earlier versions of the mod when you have no subforums set up; once you create a subforum, the errors go away. I believe I fixed this bug in 0.2.5 -- let me know if you want the latest version installed (there are a few theme changes from previous versions).

---- ok

Do you want to try the new version? I can make a special mod package for your templates if you want.


Quote from: ogmios on January 03, 2008, 10:17:41 PM
---- ah ha... logging in as the main admin gave me a different error... gotta upgrade my database apparently (looking into it now)...

---- this is the message i got:

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 '' at line 5
File: /home/rootcoll/public_html/Sources/MoveTopic.php
Line: 99

Note: It appears that your database may require an upgrade.
Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.10.
The above error might possibly go away if you execute the latest version of upgrade.php.


Can you post lines 90-101 from MoveTopic.php, before and after uninstalling the mod? What errors do you get as a moderator?

Also, there's no SMF 1.10 (but there's SMF 1.0.10 and 1.1) -- can you copy/paste the error?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ogmios

QuoteWhat errors do you get as a moderator?

---- there are no moderators, but there are lower-level admins and one main admin... the lower-level admins get this message when trying to move a post:

Database Error
Please try again. If you come back to this error screen, report the error to an administrator.


---- at the same time the above error appears, it also appears in the 'recent posts' TP block... (the 'recent posts' block works fine except when the error appears)...



---- NOW, as the main admin, i get this error message when trying to move a post:

Database Error
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 '' at line 5
File: /home/rootcoll/public_html/Sources/MoveTopic.php
Line: 99


---- and when the above error appears, this shows up in the 'recent posts' TP block:

Database Error
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 'AND ms.ID_MSG = t.ID_FIRST_MSG
ORDER BY t.ID_LAST_MSG DESC
LIMIT 7' at line 15
File: /home/rootcoll/public_html/SSI.php
Line: 361





---- from movetopic.php:

// Added by the Shared Forum Mod - SFMod.
$user_info['query_see_board'] = $context['current_forum']['query_see_all_forums'];

// Get a list of boards this moderator can move to.
$request = db_query("
SELECT b.ID_BOARD, b.name, b.childLevel, c.name AS catName
FROM {$db_prefix}boards AS b
LEFT JOIN {$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
WHERE b.ID_BOARD != $board
AND $user_info[query_see_board]" /* . (!in_array(0, $boards) ? "
AND b.ID_BOARD IN (" . implode(', ', $boards) . ")" : '') .*/, __FILE__, __LINE__);
$context['boards'] = array();
while ($row = mysql_fetch_assoc($request))
$context['boards'][] = array(
'id' => $row['ID_BOARD'],
'name' => $row['name'],
'category' => $row['catName'],
'child_level' => $row['childLevel'],
'selected' => !empty($_SESSION['move_to_topic']) && $_SESSION['move_to_topic'] == $row['ID_BOARD']
);
mysql_free_result($request);

if (empty($context['boards']))
fatal_lang_error('moveto_noboards', false);

$context['page_title'] = $txt[132];

$context['back_to_topic'] = isset($_REQUEST['goback']);

if ($user_info['language'] != $language)
{
loadLanguage('index', $language);
$temp = $txt['movetopic_default'];
loadLanguage('index');

$txt['movetopic_default'] = $temp;
}




---- i ran upgrade.php which only removed the "Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.10. The above error might possibly go away if you execute the latest version of upgrade.php." message...


---- we won't be needing the mod for right now... everything is still in development, so i'm not sure if it'll be needed yet... hell, we haven't even decided on our new name yet - nor a template - lol...

(thank you)





Sarge

OK... a few things:

1) Do you see any related errors in Admin > Forum Error Log?

2) Have you uninstalled SFMod? Do those errors show up after uninstalling it?

3) What is the MySQL version installed on the server? You can check the version in SMF Admin > Support and Credits > Version information section.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ogmios


1) Do you see any related errors in Admin > Forum Error Log?
---- there are tons of errors... looking through the first few pages worth, i see nothing related to movetopic.php (or any type of sql error)... i really only see '8: Undefined index: current_forum' errors...

2) Have you uninstalled SFMod? Do those errors show up after uninstalling it?
---- in lieu of the sql stuff, i didn't do the uninstall yet... shall i go ahead with it then?

3) What is the MySQL version installed on the server? You can check the version in SMF Admin > Support and Credits > Version information section.
---- MySQL version: 4.1.22 - standard

Sarge

Quote from: ogmios on January 04, 2008, 09:15:14 AM
2) Have you uninstalled SFMod? Do those errors show up after uninstalling it?
---- in lieu of the sql stuff, i didn't do the uninstall yet... shall i go ahead with it then?

Yes, but get a backup beforehand:

Quote from: Sarge on January 03, 2008, 10:58:32 PM
Just in case, be sure to download a backup of all files in the Sources/ and Themes/ directories, as well as index.php in the main forum directory (where Settings.php and SSI.php are) before uninstalling the mod.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

ogmios

---- uninstall went smooth and i uploaded the index.template.php file you made for me...

---- i can now move posts (no errors)
---- nothing is showing up in the error log
---- everything looks great!

thank you thank you thank you...

Dragooon

Quote from: Sarge on January 03, 2008, 03:59:38 PM
Quote from: Tick on December 30, 2007, 08:04:21 PM
I have this mod going and also have the coppermine gallery bridged with smf.   When trying to access the forum with this mod inabled I get this error .   Fatal error: Call to undefined function sfmod_fixboardlist() in /home/chromeho/public_html/foyer/Sources/Load.php on line 530   Is there a easy fix for this one to make it not conflict with the cpg bridge?

Quote from: Tick on December 31, 2007, 12:10:50 AM
This has been resolved. 

Can you please tell us how you solved it? I'd like to know if it was a bug in the mod that caused the error, so that I can include a fix in the next version. ;)
I was the one who fixed this problem :)
Coppermine was using SSI.php as its way of connecting to SMF and the shared mod file was only called by index.php. So I made SSI also call the file and problem solved :).

Sarge

Quote from: Dragooon on January 04, 2008, 11:18:51 AM
I was the one who fixed this problem :)
Coppermine was using SSI.php as its way of connecting to SMF and the shared mod file was only called by index.php. So I made SSI also call the file and problem solved :).

Thank you. :)

0.2.5.1

  • Added support for the mod in SSI.php. This fixes errors when SMF is integrated via SSI.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Hj Ahmad Rasyid Hj Ismail

The function Show FORUM button in default template? (TinyPortal) is not functioning. Though I ticked the box the button is still missing. How do I fix this?

Sarge

Quote from: ahrasis on February 02, 2008, 07:21:00 AM
The function Show FORUM button in default template? (TinyPortal) is not functioning. Though I ticked the box the button is still missing. How do I fix this?

Fixed. ;)

Shared Forum Mod 0.2.5.2

This is a bugfix release. No new features are added. Package is attached.

Changes from 0.2.5.1:

  • Fixed a bug with the FORUM button not showing in the homepage.
  • Fixed a bug with forum-specific themes not being used.

Procedure: Uninstall the old version before installing the new one.
Download: http://www.albwebmaster.com/index.php?topic=20.0

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Dragooon

Ah Very nice mod but..it does create some problems wherever $user_info['query_see_board'] is used, as only specific instead of all the boards are loaded there have been some problems in the admin panels.

Sarge

Note that display of the FORUM button depends also on TinyPortal settings: Admin > TinyPortal > Settings > Front Page tab > "What to show on front page:" If this option is set to "Go directly to forum index," the button is not shown by TinyPortal -- and SFMod does not modify this behavior.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Sarge

Quote from: Dragooon on February 06, 2008, 05:13:26 AM
Ah Very nice mod but..it does create some problems wherever $user_info['query_see_board'] is used, as only specific instead of all the boards are loaded there have been some problems in the admin panels.

What problems?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Dragooon

example in Smileys, There might be problems in Editing the smileys order or adding smileys.

Sarge

Quote from: Dragooon on February 06, 2008, 08:21:34 AM
example in Smileys, There might be problems in Editing the smileys order or adding smileys.

I can't see how my mod would interfere with smiley operations... I tried editing the smileys order and had no problems with that.

If you're convinced that SFMod causes such issues, test your SMF+TP installation before and after installing the mod. Be sure to use the latest versions.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Dragooon

I fixed one's problem with smileys admin interface not functioning properly, It wasn't loading all the boards or smileys because the $user_info['query_see_board'] was allowing to do so, BTW, I don't actually use this mod but thought I'd let you know. Once I got time I will try this again. BTW, I am not trying to be negative here :)

Sarge

Dragooon, I know that you're not trying to be negative. In fact, I appreciate it when people report problems with my code, because this allows me to make it better.

However, I need to be able to reproduce the issue in order to find out why it happens and how to fix it. The minimum info needed is the exact versions used and a step-by-step example.

Thank you. :)

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Advertisement: