Welcome, Guest
Please Login or Register.    Lost Password?

FIX for Latest Forum Posts to appear in show group
(1 viewing) (1) Guest
Pre-RC Discussion
Go to bottomPage: 12
TOPIC: FIX for Latest Forum Posts to appear in show group
#6812
FIX for Latest Forum Posts to appear in show group 1 Year, 4 Months ago Karma: 5
This is a hack for the latest forum posts as generated by gjforum_unzip1st_v1.3 developed by Braineater. Originally, latest forum posts appear in every page whenever showgroup and showgroup mini are shown. This hack will show only the latest forum posts in the main group just below the latest bulletin.

**********************************************************************
IMPORTANT!!!!
Please back-up first your files before proceeding with the following hacks. In no event will I be liable for any loss or damage in connection with the use of this hack.
**********************************************************************


Locate and open the file fireboard.php from the folder plug_gjfireboardextended

component/com_comprofiler/plugin/user/plug_gjfireboardextended/fireboard.php

Locate and comment-out (or add /* */) "function getLatestPosts" from lines 139 to 218

Save fireboard.php

Open the file groupjive_func.inc from the folder com_groupjive

Locate function main_page

Copy and paste the following code just after the EVENTLIST if condition:

Code:



if(file_exists('components/com_kunena') && KUNENA){
        $user=& JFactory::getUser();
         if ($user->guest) {
            echo '';
} else {
$content .= '<div id="columnSmall4">';
$content .= latestForumPosts( $row );
$content .= '<div style="clear:both"></div>';
$content .= '</div>';
}
}




Copy and paste the following code (from Braineater's gjforum_unzip1st_v1.3) just after the last function (checkImage):

Code:



EDIT:
Code deleted due to parse error. Download the file below instead.




Edit groupjive_css.css then add your preferred styles.

Save your files then reload your browser.

Teng
teng
Newbie
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/08 19:12 By teng.
The administrator has disabled public write access.
 
#6816
Re:FIX for Latest Forum Posts to appear in show group 1 Year, 4 Months ago Karma: 1
Thank you for taking the time to do this!

However, it doesn't work for me. Doesn't show the latest forum anywhere.

Maybe I am supposed to add a line to a template? I'm not sure.

I do know that the code pasted above produced parse errors. It seems the forum strips out back slashes. So I had to go through a couple of lines and escape some quotes.
sh0em0nkey
Newbie
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#6817
Re:FIX for Latest Forum Posts to appear in show group 1 Year, 4 Months ago Karma: 5
@sh0em0nkey

It seems fireboard strips out back slashes. Download and copy the following file instead.

File Attachment:
File Name: function_latestForumPosts.txt
File Size: 2630



I you want to show latest forum posts for guests then use the following code for you columnSmall4:

Code:


if(file_exists('components/com_kunena') && KUNENA){

     $content .= '<div id="columnSmall4">';
     $content .= latestForumPosts( $row );
     $content .= '<div style="clear:both"></div>';
     $content .= '</div>';





If you are using fireboard then replace kunena with fireboard.
teng
Newbie
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/08 19:11 By teng.
The administrator has disabled public write access.
 
#6818
Re:FIX for Latest Forum Posts to appear in show group 1 Year, 4 Months ago Karma: 1
Haha. Silly me.

I did put in,

Code:


if(file_exists('components/com_kunena') && KUNENA){
        $user=& JFactory::getUser();
         if ($user->guest) {
            echo '';
} else {
$content .= '<div id="columnSmall4">';
$content .= latestForumPosts( $row );
$content .= '<div style="clear:both"></div>';
$content .= '</div>';
}
}



but I put it under latest events function, instead of the main_page function, and that is why it wasn't working for me.



Thank you for taking the time to do this!! It is much appreciated! I put more karma for you.

And of course, many thanks go to Braineater as well. =)
sh0em0nkey
Newbie
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/09 04:05 By sh0em0nkey.
The administrator has disabled public write access.
 
#6819
Re:FIX for Latest Forum Posts to appear in show group 1 Year, 4 Months ago Karma: 3
hello,

i just copied the attached file, where do i put it?

last instruction just says: Copy and paste the following code (from Braineater's gjforum_unzip1st_v1.3) just after the last function (checkImage):

EDIT: nevermind i figured it out.

but didn't work for me. i must have missed something. maybe someone should post an edited/working version of the file groupjive_func.inc for all the none coders out there (me included).

EDIT: after a few tries, i finally got it to work.

thanks
arsoy
Roadie
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/09 08:12 By arsoy.
The administrator has disabled public write access.
 
#6937
Re:FIX for Latest Forum Posts to appear in show group 1 Year, 3 Months ago Karma: 0
any sample screen shot would have been great!
ruptan
Newbie
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: Braineater
RocketTheme Joomla Templates