How to Bridge work with Smf arcade (maybe other mods) and sef urls

Started by niko, December 11, 2005, 10:32:41 AM

Previous topic - Next topic

Orstio

The code above is for Joomla SEF.  SMF SEF cannot work with the bridge.

cferd

I have Arcade already working with Joomla 1.07, SMF 1.1 RC2 and bridge 320 and the Joomla sef enabled. I tried the code and it has no noticeable effect. The only thing that doesn't work wrapped is the Arcade search feature, with or without the code. Everything else works as far as I know. Any ideas about how to get the Search to work wrapped in Joomla? Thanks

I removed the code for now. I guess if it ain't broke... :D



Orstio

If you go to PhpMyAdmin, and do this query:

INSERT INTO smf_settings
   (variable, value)
VALUES ('disableQuotedPrintable', '1');


Does it change the URL?

VTX

Quote from: Orstio on January 29, 2006, 12:55:43 PM
If you go to PhpMyAdmin, and do this query:

INSERT INTO smf_settings
   (variable, value)
VALUES ('disableQuotedPrintable', '1');


Does it change the URL?

Nope, still the same.

Today I also installed version 1.30 B21 of SMF Arcade. New problem is now that highscores dont get saved anymore. I also reported this over there at the beta board.
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

Aravot

Joomla 1.0.7
SMF 1.1 RC2
Arcade 1.3.0 beta21
Joomla SEF enabled

Works fine for me. test/test

VTX

Looks like my arcade template is wrong...

Im gonna do some research!

Edit: Mine doenst show latest scores or random game. What could be causing this?

Edit2: This is adjustable by admin I see. So problem remains for me...

Edit3: After submitting it wants to direct me to this url:

http://www.limburgracingteam.nl/component/option,com_smf/Itemid,77/action,arcade/sa,play/index.php?action=arcade

Thats not good.

Edit4: Yours redirects to:

http://www.armeniancollegeofcalcutta.com/joomla/index.php?action=arcade
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl



Aravot

Joomla index.php

Add the code after <?php and at the end of index.php file before ?> put } and make sure to replace the following in the code with your site info and ItemId (change 198 to whatever yoursite's com_smf id is)
http://www.yoursitename.com/index.php?option=com_smf&Itemid=198&action=arcade

VTX

Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

VTX

Stupid me, I must go to bed!

I added the code to the template instead of the joomla index.php.

All works fine now including the dhtml menu!

Would be nice though if it would work withouth modding joomla.
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

Aravot

Glad you got it to work, unfortunately dhtml menus don't work for me.

Edited:
If possible post what changes you have made, cause I can't get the dhtml menus to work

VTX

I didnt make any changes except the code in the joomla index file. Maybe compare our sources?
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

Aravot

Deleted Joomla and SMF, started from scratch, seems to be working OK.

perplexed

Quote from: Orstio on January 28, 2006, 01:31:09 PM
Alright, in your components/com_smf folder should be a file named smf.php.  Can you edit it?

Find this:

// Don't forget attachments
$buffer = str_replace($myurl . 'action=dlattach', $boardurl . '/' . basename($_SERVER['PHP_SELF']) . '?action=dlattach', $buffer);


and add this immediately after:

$buffer = str_replace($myurl . 'action=arcade;sa=download;file=swf', $boardurl . '/' . basename($_SERVER['PHP_SELF']) . '?action=arcade;sa=download;file=swf', $buffer);


Hi
I have tried this but I still have problems with the arcade :(  I have always been able to see the arcade and game listing but when I click on a game, there is just an empty square where the game should be

Is there something else I could try *prays*

perplexed

Who can help?

I made a longish post over on the arcade site a few days ago but their server went down and my post has gone, so I have to start again.

I have smf 1.1 rc2, joomla 1.0.7 and bridge 3.20, forum is wrapped

My arcade doesnt work. I have added the above code but it still doesnt work.

My problem seems to be a little different to the others reported in that I CAN see the arcade, the games listing, upload new games etc etc but when I click on a game to play I just get a blank square where the game should be and it says down on the bottom of the browser that its loading the game

I also have lots of these errors

http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=43&amp;action=arcade 
8: Undefined index: 1
File: /home/mysite/public_html/forum/Themes/default/languages/Arcade.english.php (game_list sub template - eval?)
Line: 272

Other people have the same set up as me so I dont understand why mine wont work, also I cant find reference to my *exact* problem.

Any ideas?

perplexed

Update:
the people over at arcade suggested it might be a problem with the forum being wrapped, so...

I unwrapped it, nothing changed

I took the etc arcade code out of the joomla template, nothing changed

I uninstalled the arcade and the sig and stats package, and reinstalled it again, nothing has changed except that now I dont even get the message down the bottom of the browser saying its trying to load the game, so in effect this is worse I think

When the forum was wrapped, I did at least get the message that it was trying to load, now I just get a blank square and nothing else.

I have wrapped the forum again as unwrapping it didnt help.  The situation is still the same ie

I cant get the games to load but everything else seems fine?

Here is more info that someone might be able to interpret for me

When I click on a game to play it, here is the url that is displayed:

http://mysite.com/index.php?option=com_smf&Itemid=46&action=arcade;sa=play;game=18


edited to add:  here are the error messages I get in my forum log, if that helps anyone decipher whats going on:

Apply Filter: Only show the error messages of this URL http://www.mysite.com/forum/index.php?action=arcade;sa=download;file=swf
8: Undefined index: arcade_info
File: /home/mysite/public_html/forum/Sources/Arcade.php
Line: 1477
   
Apply Filter: Only show the error messages of this URL http://www.mysite.com/forum/index.php?option=com_smf&amp;Itemid=46&amp;action=arcade
8: Undefined index: 1
File: /home/mysite/public_html/forum/Themes/default/languages/Arcade.english.php (game_list sub template - eval?)
Line: 272


I *think* line 1477 is the one marked in red:

}
   elseif($action == 'download')
   {

      if(!isset($_GET['file']))
      {
         die();
      }
      elseif($_GET['file'] == 'swf')
      {


         $info = $_SESSION['arcade_info']['game'];   

      if(isset($info['game']))
         {

            $game = get_game_info($info['game']);

            redirectexit($modSettings['arcade_games_url']."/".$game['file']);

         }



Does anyone have any ideas?  This is very frustrating

*pulls more hair out*

cferd

QuoteI took the etc arcade code out of the joomla template, nothing changed

The code doesn't go in the joomla template. It goes in the root/index.php of the joomla directory.

perplexed

Quote from: cferd on March 16, 2006, 12:32:36 PM
QuoteI took the etc arcade code out of the joomla template, nothing changed

The code doesn't go in the joomla template. It goes in the root/index.php of the joomla directory.

Sorry the code I was referring to was the one in my previous post - this one - I have edited the smf.php in the smf component adding the code that Orstio posted http://www.simplemachines.org/community/index.php?topic=60185.msg450834#msg450834

I have now added the other code to the joomla index.php as posted on the same page.  (BTW there is also an index2.php in joomla, I dont know what thats for)

I have tried the forum wrapped, unwrapped, I have switched the sef mambot to published and not published,

Nothing has made any difference.

WHAT I CAN DO
I can SEE the arcade
I can UPLOAD games
I can SEARCH for games and find them

WHAT I CANT DO
I can't get the games to load or play, just get a blank square instead


(smf 1.1 rc2, bridge 3.20, joomla 1.0.7, arcade 1.2.4b)

I dont know anything about coding, I just cut and paste as instructed but surely someone must recognise this problem and know how to solve it?  (someone smarter than me)

Why does everything work EXCEPT loading the actual games???  This is very frustrating, I dont know what's missing or preventing it from working

*starts to feel more stupid by the second*




Advertisement: