News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Shared Forum Mod

Started by Goosemoose, January 06, 2006, 03:04:39 AM

Previous topic - Next topic

Goosemoose

Hmm, Recent.php isn't touched. Can you post whats around line 101 in Recent.php?

tracilynnb

#61
Here is line 101

LIMIT $showlatestcount", __FILE__, __LINE__);

Could it have something to do with having the most recent posts at the top of the forum?

EDITED TO ADD : I have just tested the link on a page other than the index of the forum (component/option,com_smf/Itemid,141/forum,digital/topic,38840.msg510691/topicseen,topicseen#msg510691)  and it works OK
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

tracilynnb

OK, I just disabled the Recent Posts Bar and it works, but I would like to have the recent posts at the top. I am using the Portal Blue theme - SMF 1.1 RC2
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

Goosemoose

You'd have to copy the code from the recent posts into the code you put into the joomla tempalte.

dmoore70

Sorry for the newbie question ....

I've successfully implemented this mod. And the URL's amended with forum=test are working as desired. However, I'm wondering how I auto-generate those URL's in a Joomla menu.

I set a menu item and then choose "Edit Menu Item :: Component", correct?

But how do I add that form=test to the query string? Does it involve that parameters box?

Thanks!!

--Dave


tracilynnb

Quote from: Goosemoose on May 15, 2006, 09:52:31 PM
You'd have to copy the code from the recent posts into the code you put into the joomla tempalte.

I added it to the Joomla template and it doesn't make a difference {adds the words Recent posts to the very top of the page}. The error is the same. It works fine when I view all forums, just not when I add the forum,xxxx at the end of the URL...
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

Goosemoose

Tracy, since you are using a custom template and mod it's definately changing how things work. Id suggest removing the other mod, getting this to work, then look at reinstalling the other mod.

Dmoore, you just create a menu 'url' link then manually type in the address :) Glad to hear it's working, if you get a chance give us a link so others can see how you use it.

tracilynnb

#67
Quote from: Goosemoose on May 19, 2006, 10:36:46 PM
Tracy, since you are using a custom template and mod it's definately changing how things work. Id suggest removing the other mod, getting this to work, then look at reinstalling the other mod.

I haven't installed any other mod. It is the Recent Posts bar that is included with the core SMF.
This hack doesn't work (at least for me) with the Recent Posts bar activated, the default SMF theme (or any theme), wrapped in Joomla.
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

Goosemoose

Does it work with the Recent Posts bar deactivated?

tracilynnb

Quote from: Goosemoose on May 21, 2006, 05:43:33 PM
Does it work with the Recent Posts bar deactivated?

Yes it does...
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

tracilynnb

Quote from: tracilynnb on May 14, 2006, 09:31:19 PM
Anyone know why I would get this error?

Unknown table 'c' in where clause
File: /home/public_html/forum/Sources/Recent.php
Line: 101

Any insight to this problem? I am assming I need to add some code to Recent.php?

I notice also when you follow the link Show unread posts since last visit it shows the posts from EVERY forum.
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

tracilynnb

Another *bug* I noticed with this mod is if a user enters the wrong password and are redirected to the login form, when they do successfully login they are directed to the main forum index showing ALL forums. This can be a little confusing for members that may frequent forums that are at the bottom of the list.  :o

Great mod though and so simple to maintain my forums!

Thanks guys! :D
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

tracilynnb

#72
Quote from: kingconnor on March 22, 2006, 06:01:37 PM
Just letting people know this is how to associate a theme with each separate forum. Please bear with me I'm a newbie to php

Step1: Create a new field in the smf_forums table called forumTheme and set to int.

Step 2: in the new field you have created (forumTheme) put the ID_THEME number you wish to associate with the forum (found in smf_themes table)

Step 3: Open up index.php under the root of your forum. Find line number 148 should be loadTheme(); replace with:

$database->setQuery( "SELECT DISTINCT forumTheme
                    FROM #__smf_forums
                    WHERE forumName='".$_REQUEST['forum']."'");
                   
$forumTheme = $database->loadResult();
   
loadTheme($forumTheme);

Which version of SMF is this for? I get the error mentioned above on 1.1 RC2

Fatal error: Call to a member function setQuery() on a non-object in /fpgs/fpgshttpd/random/sf/board/index.php on line 148

SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

Goosemoose

Try replacing #__smf_forums with your actual table name (it might just be smf_forums)

tracilynnb

Thanks for the reply, but I still get this error :(

Fatal error: Call to a member function on a non-object in /home/public_html/forum/index.php on line 154
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

Goosemoose

Again, this must have something to do with the recent posts settings. I've instaled this mod on many RC2 forums without a problem. What is 10 lines above and below 154 in that file?

tracilynnb

#76
Quote from: Goosemoose on June 11, 2006, 03:01:41 PM
Again, this must have something to do with the recent posts settings. I've instaled this mod on many RC2 forums without a problem. What is 10 lines above and below 154 in that file?

Here is the code in index.php lines 143-164:

// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)

   
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();



My forum is installed in a different database than Joomla, maybe that's the trouble???
Everything else works as it should - just the recent posts and this template change is giving me trouble. I have recent posts shut off at the moment.

Another question, if you don't mind... is there a way to filter recent unread posts across forums...  For example on your site if you were on the "rats" forums, when you select Show unread posts since last visit, you would only see the unread posts from the "rats" forums and not all the others?
SMF 1.1.1
Joomla Bridge 1.6
Joomla 1.0.12

2kreative

I was reading through this psot to see if this was addressed...



After you've bridged your forums..what is the process to add an additional forum to be bridged?
I'm using joomla 1.08 btw

Goosemoose

All you need to do to create addional forums is edit the smf_forums table and add a new row with the numbers of the categories. This is exactly like you did originally. It's easiest using phpMyAdmin or a similar program

2kreative

#79
Question

I'm looking into instituting this on my portal and have a couple questions that deal with administration and functionality.

1) Our all forums controled by 1 admin back end? Or could you have an admin backend for each forum?

2) When setting up the additinal forums (I currently have 1 and want to add a few more)..does the fact that you have to define the number of categories in phpmyadmin impede your ability to change this number later..and does it affect the other forums?

3) can board rank be forum specific? (post attained ranks as well as non post member groups)



Advertisement: