Fireboard Integration

you will find here.
User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Fireboard Integration

Postby julienV » Thu Oct 25, 2007 8:56 am

updated for fireboard 1.0.3 and 1.0.4
-----------
If you activated fireboard integration, you have to hack components/com_fireboard/template/default/post.php
after

Code: Select all

else if ($do == "newFromBot" && ..... ) {
                ... snipped code here ....
                //--
                //echo "</form>";
                }
}

put

Code: Select all

else if (strtolower($do) == "newfromjoomleague" && (hasPostPermission($database, $catid, $replyto, $my->id, $fbConfig['pubwrite'], $is_moderator)))
                { // The Joomleague "discuss games" has detected an unexisting thread and wants to create one
                    $parentid = 0;
                    $replyto = (int)$replyto;
                    $setFocus = 0;
                    //                $resubject = base64_decode($resubject); //per mf#6100  -- jdg 16/07/2005
                    $resubject = base64_decode(strtr($resubject, "()", "+/"));
                    $resubject = str_replace("%20", " ", $resubject);
                    $resubject = preg_replace('/%32/', '&', $resubject);
                    $resubject = preg_replace('/%33/', ';', $resubject);
                    $resubject = preg_replace("/\'/", ''', $resubject);
                    $resubject = preg_replace("/\"/", '"', $resubject);
                    //$table = array_flip(get_html_translation_table(HTML_ENTITIES));
                    //$resubject = strtr($resubject, $table);
                    $fromBot = 1; //this new topic comes from the discuss mambot
                    $authorName = htmlspecialchars($my_name);
                    $rowid = mosGetParam($_REQUEST, 'rowid', 0);

                    $mid = mosGetParam( $_REQUEST, 'mid', 0 );
                    $p = mosGetParam( $_REQUEST, 'p', 0 );
                   
                    if ($mid) {
                      $contentURL=sefRelToAbs('index.php?option=com_joomleague&func=showReport'
                      . '&p='.$p
                      . '&mid='.$mid );
                    }
                    else {
                      $contentURL=sefRelToAbs('index.php?option=com_joomleague&func=showReport'
                      . '&p='.$p
                      . '&mid='.$mid);
                    }
                    $contentURL = 'Discussion about the game' . ': [url=' . $contentURL . ']' . $resubject . '[/url]';
                       
                        ?>

                    <form action = "<?php echo sefRelToAbs(JB_LIVEURLREL."&func=post");?>" method = "post" name = "postform" enctype = "multipart/form-data">
                        <input type = "hidden" name = "parentid" value = "<?php echo $parentid;?>"/>

                        <input type = "hidden" name = "catid" value = "<?php echo $catid;?>"/>

                        <input type = "hidden" name = "action" value = "post"/>

                        <input type = "hidden" name = "contentURL" value = "<?php echo $contentURL ;?>"/>

                        <?php
                        //get the writing stuff in:
                        $no_upload = "0"; //only edit mode should disallow this

                        if (file_exists(JB_ABSTMPLTPATH . '/fb_write.html.php')) {
                            include (JB_ABSTMPLTPATH . '/fb_write.html.php');
                            }
                        else {
                            include (JB_ABSPATH . '/template/default/fb_write.html.php');
                            }
                //--
                //echo "</form>";
                }


of course, you can change "Discussion about the game" to anything you want, in the language you want...

Included is the modified post.php file for fireboard 1.0.3, and for 1.0.4

Note: BUG IN 0.91
with version 0.91, the linking to an already created post doesn't work, and gets you to forum homepage. If you want it to behave correctly, you have to modify function make_forumlink in joomleague.html.php

replace

Code: Select all

$showlink = sefRelToAbs("index.php?option=com_fireboard&Itemid=" .$sbItemid. "&func=view&id=" .$resultid. "&catid=" .$catid. "");

with

Code: Select all

$showlink = sefRelToAbs("index.php?option=com_fireboard&Itemid=" .$sbItemid. "&func=view&id=" .$resultid. "&catid=" .($joomleague->sb_catid) );

     

[gelöscht durch Administrator]
Last edited by julienV on Tue Apr 15, 2008 10:12 pm, edited 1 time in total.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
12Rocket
.
Posts: 27
Joined: Wed Sep 19, 2007 11:59 pm
Location: Portugal
Contact:

Re: Fireboard Integration

Postby 12Rocket » Mon Nov 05, 2007 9:53 pm

i cant understand here is the place to put the code. I have tried to put the code were is refered but i always have a error report...

I think that i'm not putting que code in the right place. Could you explain that better or say what is line number where we have to paste que code?!.....

Tks ;)

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Mon Nov 05, 2007 11:00 pm

ok, i added a bit more details. look for "newForBot", then after the next

Code: Select all

//--
                //echo "</form>";
                }

put the hack.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
12Rocket
.
Posts: 27
Joined: Wed Sep 19, 2007 11:59 pm
Location: Portugal
Contact:

Re: Fireboard Integration

Postby 12Rocket » Tue Nov 06, 2007 2:13 am

Sorry, but i still have the same error message.

Parse error: syntax error, unexpected '&' in /home/futsal00/public_html/components/com_fireboard/template/default/post.php on line 508

Could you post here the post.php file hacked? Or this don't resolve the problem?

Tks for the help  :rolleyes:
Last edited by 12Rocket on Tue Nov 06, 2007 2:15 am, edited 1 time in total.

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re : Fireboard Integration

Postby julienV » Tue Nov 06, 2007 8:52 am

ok, file is included in first post
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
12Rocket
.
Posts: 27
Joined: Wed Sep 19, 2007 11:59 pm
Location: Portugal
Contact:

Re: Fireboard Integration

Postby 12Rocket » Tue Nov 06, 2007 2:39 pm

Sorry, but i still have problems.
With the new post.php the error message disappear, but the Fireboard Integration remains without working.

With the new post.php hacked that work equal before the hack.

Example:
Instead of appears the reply form, like this pic1

Appear this (equal of before the hacked post.php) pic2

I'm using the joomleague 0.91 and fireboard 1.0.3 and i'm choosing a subforum...

Any help please  :rolleyes:

[gelöscht durch Administrator]
Last edited by 12Rocket on Tue Nov 06, 2007 2:43 pm, edited 1 time in total.

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re : Fireboard Integration

Postby julienV » Tue Nov 06, 2007 3:47 pm

my bad, file updated...
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
12Rocket
.
Posts: 27
Joined: Wed Sep 19, 2007 11:59 pm
Location: Portugal
Contact:

Re: Fireboard Integration

Postby 12Rocket » Tue Nov 06, 2007 4:54 pm

:D Now works perfectly.

Thank you very much!!  :biggrin:

Giax
.
Posts: 179
Joined: Wed Jun 06, 2007 9:05 am

Re: Fireboard Integration

Postby Giax » Tue Nov 06, 2007 4:56 pm

when I do a new post it doesn't go in the preceding post but in the home page of the forum 
sorry my English
joomla 1.0.15 Joomleague 0.93

User avatar
12Rocket
.
Posts: 27
Joined: Wed Sep 19, 2007 11:59 pm
Location: Portugal
Contact:

Re: Fireboard Integration

Postby 12Rocket » Tue Nov 06, 2007 5:36 pm

Yes, it's happens to me too...

When i have new post's .. if i click there they show me a forum home page instead of specific topic …

It’s not particularly important, but if have a solution is better  :cool: 

Giax
.
Posts: 179
Joined: Wed Jun 06, 2007 9:05 am

Re: Fireboard Integration

Postby Giax » Thu Nov 08, 2007 5:30 pm

is it possible to make to also appear the result? 
it is possible not to make to appear Discussion about the game: link?
sorry my English
Last edited by Giax on Thu Nov 08, 2007 6:32 pm, edited 1 time in total.
joomla 1.0.15 Joomleague 0.93

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Thu Nov 08, 2007 7:22 pm

Giax wrote:is it possible to make to also appear the result? 

yes, but you need to hack joomleague component...

Giax wrote:it is possible not to make to appear Discussion about the game: link?
sorry my English


replace

Code: Select all

$contentURL = 'Discussion about the game' . ': [url=' . $contentURL . ']' . $resubject . '[/url]';

with

Code: Select all

$contentURL = '"";

                 
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

Giax
.
Posts: 179
Joined: Wed Jun 06, 2007 9:05 am

Re: Fireboard Integration

Postby Giax » Thu Nov 08, 2007 8:13 pm

ok thanks 
1) thing I have to change for making to also appear the results?
2)when I do a new post it doesn't go in the preceding post but in the home page of the forum 
sorry my English
joomla 1.0.15 Joomleague 0.93

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re : Fireboard Integration

Postby julienV » Wed Nov 14, 2007 9:30 am

1) see post here
2) fix added in first post
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

Giax
.
Posts: 179
Joined: Wed Jun 06, 2007 9:05 am

Re: Fireboard Integration

Postby Giax » Wed Nov 14, 2007 10:13 am

1 no
2 ok
joomla 1.0.15 Joomleague 0.93

clem75
Newbie
Posts: 1
Joined: Thu Jan 31, 2008 4:38 am

Re: Fireboard Integration

Postby clem75 » Thu Jan 31, 2008 6:23 am

does this fix still work with joomleague 0.92 and fireboard 1.04?

cheers,

clem

ps:running in joomla 1.5 stable legacy.

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Thu Jan 31, 2008 8:43 am

Maybe... Can't say !
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
Kurt
Donator
Donator
Posts: 932
Joined: Mon Mar 19, 2007 7:40 pm
Location: Germany
Contact:

Re: Fireboard Integration

Postby Kurt » Mon Feb 25, 2008 7:31 pm

clem75 wrote:does this fix still work with joomleague 0.92 and fireboard 1.04?


Yes it does  :cool:

Merci JulienV  :-*
http://fc-bergheim 2000.de
http://2010.fc-bergheim-2000.de
Joomla 1.0.14 & 1.5.15 - JL 0.93b / 1.5.05a

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Mon Feb 25, 2008 11:33 pm

you are welcome ;)
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

bballer
.
Posts: 64
Joined: Wed Feb 27, 2008 6:12 pm

Re: Re : Fireboard Integration

Postby bballer » Sun Apr 13, 2008 9:09 pm

julienV wrote:my bad, file updated...


Hi,

i tried your file. but it does'nt work with my joomla 1.0.13 and joomleague 0.92. A click at the link to the game-form opens the forum for the league but not a thread for the game. Whats wrong?

Thanks

bballer
Joomla 1.0.13, JoomLeague 0.92->0.93, Firefox 3.0.1

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Sun Apr 13, 2008 11:27 pm

don't know, mayhbe you didn't hack properly.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

bballer
.
Posts: 64
Joined: Wed Feb 27, 2008 6:12 pm

Re: Fireboard Integration

Postby bballer » Mon Apr 14, 2008 8:07 pm

julienV wrote:don't know, mayhbe you didn't hack properly.


Hi,

I took the file from your first post. So what can be the error in the hack?

Regards

bballer
Joomla 1.0.13, JoomLeague 0.92->0.93, Firefox 3.0.1

User avatar
bragaidan
Newbie
Posts: 4
Joined: Mon Apr 14, 2008 9:45 pm

Re: Fireboard Integration

Postby bragaidan » Tue Apr 15, 2008 5:04 am

I apologize for my ignorance, rather new to joomla and fireboard.  Joomleague seems like an awesome component, so far this is the only issue I have had.

I am having a problem with joomleague creating forum threads with fireboard integration enabled and the correct forum category selected in my project configuration.  Instead of creating the thread, it just goes to the forum for the league.  I have updated post.php in joomleague template folder.  Also I have enabled use joomla style in fireboard.  I am running joomla 1.0.15 and joomleague .92.  Any suggestions, please help.

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Tue Apr 15, 2008 7:30 am

link ?
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
bragaidan
Newbie
Posts: 4
Joined: Mon Apr 14, 2008 9:45 pm

Re: Fireboard Integration

Postby bragaidan » Tue Apr 15, 2008 2:43 pm


User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Tue Apr 15, 2008 3:05 pm

I can't post as i don't have an account... the url seems ok though.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Tue Apr 15, 2008 5:27 pm

seems like it accepts "newFromJoomLeague", and not "newFromJoomleague"...

I found it: you took the file, and not the manual hack.... but the file was for previous version, so it didn't work. I updated it.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

bballer
.
Posts: 64
Joined: Wed Feb 27, 2008 6:12 pm

Re: Fireboard Integration

Postby bballer » Tue Apr 15, 2008 5:50 pm

julienV wrote:...

I found it: you took the file, and not the manual hack.... but the file was for previous version, so it didn't work. I updated it.


Great, this also fix my problem. Now everything works fine.

http://www.keyscout.de/index.php?option ... Itemid=135

Thank you very much!

bballer
Joomla 1.0.13, JoomLeague 0.92->0.93, Firefox 3.0.1

bballer
.
Posts: 64
Joined: Wed Feb 27, 2008 6:12 pm

Re: Fireboard Integration

Postby bballer » Tue Apr 15, 2008 6:07 pm

bballer wrote:Great, this also fix my problem. Now everything works fine.


I was glad to early ;-(

If I post an article, I get the following error:

Fatal error: Call to undefined method smile::bbencode_first_pass() in /www/htdocs/w009b625/joomla/components/com_fireboard/template/default/post.php on line 193

Can you help me again?

Thanks

bballer
Joomla 1.0.13, JoomLeague 0.92->0.93, Firefox 3.0.1

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Fireboard Integration

Postby julienV » Tue Apr 15, 2008 6:30 pm

the thing is that the file was for fireboard 1.0.3, chances are that it will not work with other versions.

I strongly advise for a manual modification of the original file of your version.

Anybody can contribute and post here the modified files for each version though, i can put them in the front post.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !


Return to “Tips, Tricks, SourceCodeChanges”

Who is online

Users browsing this forum: No registered users and 1 guest

cron