News:

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

Main Menu

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

niko

This is not actually how to but... here is solution anyway

Tested with: SMF 1.1, Joomla 1.0.3 and SMF Arcade 1.2.5 CVS should work with 1.2.4 also (theres no changes related to this)

WITHOUT SEF you need to edit joomla/mambo so index.php?action=arcade will be handled by bridge, othewise this is all you need even for score submits.

1. Get edited smf.php from http://www.madjoki.com/blog/2005/12/11/joomla-103-smfarcade/ (Theres also more information why it does work this way)
2. Replace one which is included in Bridge 3.19
3. (Install) if you havent done it yet

I hope that this will be included in coming versions of bridge...

( Demo: http://www.madjoki.com/joomla/component/option,com_smf/Itemid,26 )

Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Aravot


Aravot

Orstio according to Niko developer of arcade mod there is a bug in SMF bridge, could you please look into it, thank you.
http://www.smfarcade.com/index.php/topic,244.0.html

Orstio

What exactly is the bug in the bridge?

Istead of making all those changes to the bridge, why not just make forms submit to $scripturl?

In Arcade.template.php, Line 441:

echo '<form action="index.php?action=arcade" method="post">

change to:

echo '<form action="',$scripturl,'?action=arcade" method="post">

Line 752:

echo '<form method="POST" action="index.php?action=arcade;sa=challenge;send">';

change to:

echo '<form method="POST" action="',$scripturl,'?action=arcade;sa=challenge;send">';

Some lines in this file are already done this way, but it looks like those two were missed.

niko

Quote from: Orstio on December 11, 2005, 02:58:09 PM
What exactly is the bug in the bridge?

1.2.5 Have already index.php's changed to $scripturl
real bug is that it makes urls go like ?a=b&b=c&?action=xxx;x=y and then it doesnt work... and changing $_SERVER['QUERY_STRING'] doesnt make changes $_SERVER['QUERY_STRING'] thus it has those redirects
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Orstio

Where is 1.2.5 avaiable?  The code I showed above is in 1.2.4b, which is the latest available on the mod page.

Quotereal bug is that it makes urls go like ?a=b&b=c&?action=xxx;x=y and then it doesnt work...

I think you're missing something here.  In a wrapped forum, there are never URLs with the &? structure in them.  This is because all of SMF's output is dumped into a buffer, and then run through the ob_mambofix() function.  In that function, you'll find this:

$buffer = str_replace('"' . $scripturl . '?', '"' . $myurl, $buffer);

That line converts any output that matches $scripturl.'?' to $myurl, which is back to the wrapped forum without the '?'.

Of course, if, in a form, the $scripturl part is missing, the url is overlooked, because it is assumed to be a Mambo index URL, and not a SMF $scripturl.

So, the &? structure should be taken care of before the page is displayed -- Not in the Query string.  The change to the query string that you are thinking is the problem is only there in the unlikelihood that an older link, or an old Mambo module happens to be used that does not convert the URL before it gets displayed on the page.

niko

1.2.5 is not publically available yet since it is still in early stages and doesnt work yet

http://www.madjoki.com/dl/smfarcade_betas/SMFArcade_1.2.5_B7.zip is latest but it isnt recormended to use expect for testing
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Orstio

Thanks, I'm taking a look at it now.

There are a few typos:

$sourcesdir  Should be $sourcedir

;)

Orstio

OK, I think this may be it.  In Arcade.php, redirectexit is used quite a lot, for example:

redirectexit('action=arcade;sa=highscore');

This is not handled as well as it should be in 3.19.  In 3.20, there will be no problem, because the redirect urls are also converted thanks to the integration hook provided in SMF 1.1 RC2.

So, the fix above by Niko will be fine for 3.19, because there really is no other way of handling that at this time.

For 3.20, it will not be required, because redirectexit can be handled properly by the bridge.

Orstio

For the bridge to work properly, SMF SEF should always be off.

Sven0

if i try to use the Arcade search function it tries to submit a new highscore with 0 points:

i added in the Joomla index.php:


/////////////////// Code added for SMF-Arcade Redirects ///////////////////////////
if($_GET['option'] != 'com_smf') {
parse_str(preg_replace('/&(\w+)(&|$)/', '&$1=$2', strtr($_SERVER['QUERY_STRING'], ';', '&')), $_GET);
if($_GET['action'] == 'arcade') {
$do_arcade = true;
}
}
if($do_arcade == true) {
define("SMF_ARCADE_PATH", "http://www.rapz.de/index.php?option=com_smf&Itemid=198&action=arcade");
if($_GET['search'] == 'Search') { // Search Function
header("Location: ".SMF_ARCADE_PATH."&name={$_GET['name']}&order={$_GET['order']}&search=Suchen");
}
?>
<html>
<head>
<script type="text/javascript">
function form_redirect() {
document.form1.submit(); //Code to pass POST variables to arcade
}
</script>
</head>
<body>
<form name="form1" action="<? echo SMF_ARCADE_PATH;
if($_GET['sa'] == 'challenge') { // Send challenge
echo ';sa=challenge;send';
}
if($_GET['sa'] == 'tournament' && isset($_GET['join'])) { //Join tournament
echo ";sa=tournament;id={$_GET['id']};join";
}
if($_GET['sa'] == 'tournament' && $_GET['new'] == 2) { // New tournament(2)
echo ';sa=tournament;new=2';
}
if($_GET['sa'] == 'tournament' && $_GET['new'] == 3) { // New tournament(3)
echo ';sa=tournament;new=3';
}
?>" method="POST">
<? if($_POST['do'] == 'comment') { ?>  <!-- Post comment with score -->
<input type="hidden" name="do" value="<? echo $_POST['do']; ?>">
<input type="hidden" name="time" value="<? echo $_POST['time']; ?>">
<input type="hidden" name="game" value="<? echo $_POST['game']; ?>">
<input type="hidden" name="comment" value="<? echo $_POST['comment']; ?>">
<? } elseif($_GET['sa'] == 'challenge') { ?> <!-- Submit a challenge -->
<input type="hidden" name="to" value="<? echo $_POST['to']; ?>">
<input type="hidden" name="game" value="<? echo $_POST['game']; ?>">
<input type="hidden" name="message" value="<? echo $_POST['message']; ?>">
<? } elseif($_GET['sa'] == 'tournament' && isset($_GET['join'])) { ?> <!-- Join a tournament -->
<input type="hidden" name="pass" value="<? echo $_POST['pass']; ?>">
<? } elseif($_GET['sa'] == 'tournament' && $_GET['new'] == 2) { ?> <!-- New tournament(2) -->
<input type="hidden" name="name" value="<? echo $_POST['name']; ?>">
<input type="hidden" name="rounds" value="<? echo $_POST['rounds']; ?>">
<input type="hidden" name="round2" value="<? echo $_POST['round2']; ?>">
<input type="hidden" name="player" value="<? echo $_POST['player']; ?>">
<input type="hidden" name="player2" value="<? echo $_POST['player2']; ?>">
<input type="hidden" name="pass" value="<? echo $_POST['pass']; ?>">
<input type="hidden" name="type" value="<? echo $_POST['type']; ?>">
<input type="hidden" name="teams" value="<? echo $_POST['teams']; ?>">
<input type="hidden" name="teams2" value="<? echo $_POST['teams2']; ?>">
<? } elseif($_GET['sa'] == 'tournament' && $_GET['new'] == 3) { ?> <!-- New tournament(3) -->
<input type="hidden" name="data" value="<? echo htmlentities($_POST['data']); ?>">
<input type="hidden" name="game[]" value="<? echo $_POST['game[]']; ?>">
<input type="hidden" name="team[]" value="<? echo $_POST['team[]']; ?>">
<? } else { ?> <!-- Submit score -->
<input type="hidden" name="game" value="<? echo $_POST['game']; ?>">
<input type="hidden" name="score" value="<? echo $_POST['score']; ?>">
<? } ?>
</form>
<script type="text/javascript">
form_redirect();
</script>
</body>
</html>
<?
}
else {
///////////////////////////////////////////////////////////////////////////////////


check the search function out (you can see the error also unlogged) at http://www.rapz.de/component/option,com_smf/Itemid,198/action,arcade

how can i solve that?

VTX

Is there a way to get this to work with 3.20 and SEF enabled? (Joomla 1.0.7, SMF 1.1 RC2, SMFArcade 1.4.2b for RC2)
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

Orstio

QuoteIs there a way to get this to work with 3.20 and SEF enabled? (Joomla 1.0.7, SMF 1.1 RC2, SMFArcade 1.4.2b for RC2)

Does the arcade mod not work with 3.20?

VTX

Quote from: Orstio on January 28, 2006, 06:45:22 AM
QuoteIs there a way to get this to work with 3.20 and SEF enabled? (Joomla 1.0.7, SMF 1.1 RC2, SMFArcade 1.4.2b for RC2)

Does the arcade mod not work with 3.20?

No, not with sef enabled. Games dont load, see:

http://www.limburgracingteam.nl/component/option,com_smf/Itemid,49/action,arcade
Dutch bike drivers, have a look @ http://www.limburgracingteam.nl

Orstio

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);

VTX

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

HoTmetal



HoTmetal

Quote from: Orstio on January 28, 2006, 04:38:59 PM
Looks to be working....

http://www.limburgracingteam.nl/component/option,com_smf/Itemid,49/action,arcade

Thats kewl. I tried using the arcade, but with SEF turned off, I lost ALL of my page rank. I also noticed less visits from search engines. I decided to go with PNgames, but they aren't as kewl as the ones for SMF. +  I think  Niko did a better job on the mod, than they did. :D

I'll think I'll wai for SMF 1.1Final & Niko's next ver. before I switch back though... good job peoples, great work! :D


cferd

Ok, is everyone here on the same page?
Is the code provided a couple of posts up for problems with SMF sef or Joomla sef?

I have Arcade working fine(minus the Search) with Joomla sef enabled. The Search function works ok with SMF unwrapped.

I can't use the SMF sef with my host, even if I wanted to, so that's not an issue in my case.

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*




cferd

Check that all your games belong to a category. If you see an empty () next to a game, that's an unnamed category and probably giving you the 'unedfined index: 1' error

Aravot

Do you have a link and test account.

I have the same setup as you except 'Arcade 1.3.0 beta' and it's working OK.

perplexed

Quote from: cferd on March 16, 2006, 05:21:06 PM
Check that all your games belong to a category. If you see an empty () next to a game, that's an unnamed category and probably giving you the 'unedfined index: 1' error


ok done that, all games have a category.  Still cant see the games though :(  Tried uninstalling and reinstalling the games, still cant see them, just an empty square where they *should be.



Quote from: aravotDo you have a link and test account.

I have the same setup as you except 'Arcade 1.3.0 beta' and it's working OK.

I have the site in maintenance mode just now  as I dont want members to log in and they keep trying.  So I dont really want to open it up just yet, is there another way you can help me?  IM maybe?

smf1.1 rc2 default theme
joomla 1.0.7 planetfall template
arcade 1.2.4b
smf.php edited with orstio's code
joomla index.php edited with the arcade code on previous page
sef published or unpublished (makes no difference)
forum wrapped or unwrapped (makes no difference)
I can edit games, upload games, delete games, search games BUT not play them

I'm a little confused by the code that goes in the smf.php which says something like 'download swf' I wondered if it should be 'play swf' as that seems to be what it wants to do?  If I click on 'play' next to a game, then I get http://mysite.com/index.php?option=com_smf&Itemid=46&action=arcade;sa=play;game=9 but where in the code does it instruct it to 'play'? and an empty box - colour varies between games - black box, white box, grey box lol

Maybe that's nothing, like I said, I dont know anything about coding, but this is driving me nuts

I also dont know why I have an index.php and an index2.php in joomla ???



Aravot

First let's make sure there is no firewall or something blocking .swf files at your end, go to my Site and see if you can play and submit games use test/test

perplexed

Quote from: Aravot on March 16, 2006, 06:03:08 PM
First let's make sure there is no firewall or something blocking .swf files at your end, go to my Site and see if you can play and submit games use test/test

yep no problems, I played pool on your site no probs. I can play games on other sites including smfarcade etc, and my testforum - which is not connected to joomla.  I can play on firefox and IE with no probs, everythings loads, works etc

Aravot

This is what I have done, nothing more no other code changes http://www.simplemachines.org/community/index.php?topic=49229.msg420986#msg420986 if you want PM me admin info and I'll have a look.

perplexed

Quote from: Aravot on March 16, 2006, 06:59:57 PM
This is what I have done, nothing more no other code changes http://www.simplemachines.org/community/index.php?topic=49229.msg420986#msg420986 if you want PM me admin info and I'll have a look.

I copied your code from above and replaced my index.php, no change, still doesnt work.  :(

So just to clarify:

you didnt put Orstio's codes in the smf.php?

Are there any added codes in any of the smfarcade files?

you have the SEF mambot switched to 'not published'?  you dont have to uninstall it do you?

do you know what index2.php does in joomla? since I have index.php and index2.php I thought maybe I should put the code there?

Aravot

Quote from: perplexed on March 16, 2006, 07:18:01 PM
I copied your code from above and replaced my index.php, no change, still doesnt work.  :(
Just to make sure the code has to go in Joomla/index.php

QuoteSo just to clarify:

you didnt put Orstio's codes in the smf.php?
No

QuoteAre there any added codes in any of the smfarcade files?
No

Quoteyou have the SEF mambot switched to 'not published'?  you dont have to uninstall it do you?
Correct, not published. Don't uninstall it.

Quotedo you know what index2.php does in joomla? since I have index.php and index2.php I thought maybe I should put the code there?
index2.php is for Joomla backend it should remain untouch.


cferd

QuoteI can play games on other sites including smfarcade etc, and my testforum - which is not connected to joomla.
So it appears to be J' related. You may want to check the .htaccess file to make sure you didn't leave something in it if SEF is off.


perplexed

Quote from: Aravot on March 16, 2006, 07:29:50 PM
Quote from: perplexed on March 16, 2006, 07:18:01 PM
I copied your code from above and replaced my index.php, no change, still doesnt work.  :(
Just to make sure the code has to go in Joomla/index.php

QuoteSo just to clarify:

you didnt put Orstio's codes in the smf.php?
No

QuoteAre there any added codes in any of the smfarcade files?
No

Quoteyou have the SEF mambot switched to 'not published'?  you dont have to uninstall it do you?
Correct, not published. Don't uninstall it.

Quotedo you know what index2.php does in joomla? since I have index.php and index2.php I thought maybe I should put the code there?
index2.php is for Joomla backend it should remain untouch.

ok I have made all those changes and it still doesnt load the games

I wonder if it would be possible for you to post your /sources/arcade.php file or check what is on line 1477, as that is the error I keep getting in my log:

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

forum error messages every time I try to play:

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
   

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

Quote
}
   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']);

         }


that seems to be where the problem lies



perplexed

Quote from: cferd on March 16, 2006, 08:26:30 PM
QuoteI can play games on other sites including smfarcade etc, and my testforum - which is not connected to joomla.
So it appears to be J' related. You may want to check the .htaccess file to make sure you didn't leave something in it if SEF is off.

can you give me more explanation of what you mean?  sorry Im a novice with these things

Bigguy

Thanks to this I can finally open the arcade I think. For some reason when you submit scores it takes me to joomla, what did I forget this time, lol.

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);


dg

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);

I jsut wanted to say that this works great, and has helped alleviate some stress.

SMF 1.1 RC2
Arcade 1.2.4b
Joomla 1.0.8

Bigguy


Advertisement: