Home arrow Forum Preview not working again?
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 05:08:05 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Preview not working again?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Preview not working again?  (Read 2848 times)
Christina
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 33


View Profile
Preview not working again?
« on: March 26, 2007, 11:31:46 AM »

One of my users just reported that preview hasn't been working since we upgraded to the newest version.  It just shows "fetching preview..."

It DOES however, work with Quick Reply.

Also, I don't know if it matters, but I saw that the problem with 1.1.x was not using SEF, bue we are using SEF.
Logged
Livebox
Guest
Re: Preview not working again?
« Reply #1 on: March 26, 2007, 02:42:00 PM »

just test it without sef..(is it the joomla! sef or third party sef?)
Logged
Christina
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 33


View Profile
Re: Preview not working again?
« Reply #2 on: March 26, 2007, 03:00:33 PM »

It's Joomla SEF.  I thought the problem in the older version was on those who were NOT using SEF.  It was fixed at some point, and then stopped working since this upgrade.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Preview not working again?
« Reply #3 on: April 01, 2007, 04:38:33 PM »

Generally two things can cause it to fail.  If you modified your SMF template and changed/removed specific code that sets the var_smf_scripturl or if your joomla template is not calling mosShowHead() function.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Brian Devendorf
Joomla Newbie
*

Karma: +3/-0
Offline Offline

Posts: 5


View Profile
Re: Preview not working again?
« Reply #4 on: April 02, 2007, 08:55:36 AM »

I've got a fresh install of the JoomlaHacks Bridge and am seeing the same problem. I have Joomla 1.0.12, SMF 1.1.2, CB 1.0. The Bridge is v2.0.2. I tried turning off SEF (Joomla built-in) and it had no impact. My SMF theme is a color modified version of the one you are using, though I couldn't find the variable you referenced. The Joomla template does have the mosShowHead() in the header.

Everything else seems to work fantastic... My forum root and Joomla root are both folders on the site root (just in case this has something to do with the problem).

I have a dev instance of the system that I can play around with... so let me know if you want me to try anything.

Thanks.
Logged
Brian Devendorf
Joomla Newbie
*

Karma: +3/-0
Offline Offline

Posts: 5


View Profile
Re: Preview not working again?
« Reply #5 on: April 02, 2007, 05:58:30 PM »

I have figured out the issue I was having... I had added code to my forums to redirect any urls from connecting directly to the forum. All forum url requests are identified and redirected to the corresponding Joomla! wrapped page. This code worked perfectly with the Orstio bridge. I switched to the JoomlaHacks bridge for the improved integration.

I modified my redirect code, and it seems to be working fine now. This is the code from the beginning of my SMF index.php

Code:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false && strpos($_SERVER['QUERY_STRING'], 'action=post2') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: /site/index.php?option=com_smf&Itemid=18&".$_SERVER['QUERY_STRING']); }
}

I added the piece at the end of the second line to skip the redirection if the query string contains "action=post2", which is part of the URL passed for the XML refresh. This has resolved the problem for me. Perhaps it can help others.

Thanks.
Logged
dafebe
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 32


View Profile
Re: Preview not working again?
« Reply #6 on: April 10, 2007, 12:30:22 PM »

good yor mod work for me with a little edit

Code:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false && strpos($_SERVER['QUERY_STRING'], 'action=post2') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: //index.php?option=com_smf&Itemid=18&".$_SERVER['QUERY_STRING']); }
}

I have remove /site/

because I use alikonweb toptopic module

Best Regards

dafebe
Logged
dafebe
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 32


View Profile
Re: Preview not working again?
« Reply #7 on: April 11, 2007, 07:34:04 PM »

this is latest solution

with this edit you see module of joomla when you go topic by alikonweb toptopic module

Code:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false && strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false && strpos($_SERVER['QUERY_STRING'], 'action=post2') === false)
{
        if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=3&".$_SERVER['QUERY_STRING']); }
}
Logged
Brian Devendorf
Joomla Newbie
*

Karma: +3/-0
Offline Offline

Posts: 5


View Profile
Re: Preview not working again?
« Reply #8 on: April 12, 2007, 08:30:32 AM »

I have found a few other pieces of the forum that also require the change. Here's my latest code:
Code:
// Redirect users who try to access /forum directly
if (strpos($_SERVER['QUERY_STRING'], 'dlattach') === false &&
    strpos($_SERVER['QUERY_STRING'], 'verificationcode') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=post2') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=spellcheck') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=splittopics') === false &&
    strpos($_SERVER['QUERY_STRING'], 'action=stats') === false)
{
    if(!defined('_VALID_MOS')){ header("Location: /index.php?option=com_smf&Itemid=18&".$_SERVER['QUERY_STRING']); }
}

You may need to modify the Location: to match your Joomla path and SMF Itemid in Joomla.
Logged
dafebe
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 32


View Profile
Re: Preview not working again?
« Reply #9 on: April 13, 2007, 03:35:55 PM »

Hi Brian!

I have a question OLd code work well for me.

Why you have update your code?

Latest code which problem fix?

BEst Regards

dafebe

p.s. sunday I test it  Wink
« Last Edit: April 13, 2007, 04:07:19 PM by dafebe » Logged
Brian Devendorf
Joomla Newbie
*

Karma: +3/-0
Offline Offline

Posts: 5


View Profile
Re: Preview not working again?
« Reply #10 on: April 13, 2007, 05:54:37 PM »

New code addresses other issues. This fixes issues trying to split a topic and trying to expand the stats details for a month. These two functions had the same problem as the preview did. This update corrects those.

The spellcheck code still doesn't work 100% the way it should (it loads the Joomla template in the sub-window), but sounds like there may be a fix in the works for the next version of the bridge.
Logged
dafebe
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 32


View Profile
Re: Preview not working again?
« Reply #11 on: April 14, 2007, 01:39:16 AM »

TNX very much sunday I put it in my code!


very TNX for you  help


Best Regards

dafebe
Logged
dafebe
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 32


View Profile
Insert Quote don't work
« Reply #12 on: May 05, 2007, 02:45:47 AM »

There is another one problem  Embarrassed

Brian do you know how fix it?

Insert Quote don't work

my firefox extension firebug give me this

Quote
XMLDoc.getElementsByTagName("quote")[0] has no properties
[Break on this error] for (var i = 0; i < XMLDoc.getElementsByTagName("quote")[0].childNodes.leng...

Can you or anyone help me?

Best Regards

dafebe
Logged
Brian Devendorf
Joomla Newbie
*

Karma: +3/-0
Offline Offline

Posts: 5


View Profile
Re: Preview not working again?
« Reply #13 on: May 05, 2007, 01:14:47 PM »

I tested that on my dev site and it worked fine. I tried it for the Quick Reply function and the normal reply, both worked. Perhaps you could step me through what you are doing when you see the error.
Logged
dafebe
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 32


View Profile
Re: Preview not working again?
« Reply #14 on: May 05, 2007, 01:20:05 PM »

Look the pic, when I click there I don't see nothing  Sad

quote on the topic work well form me  Smiley

but insert Quote on the reply form don't work

Best Regards

dafebe
« Last Edit: May 05, 2007, 01:22:17 PM by dafebe » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login