News:

Join the Facebook Fan Page.

Main Menu

Fetching preview Problem

Started by jamiesage123, May 31, 2011, 08:57:02 AM

Previous topic - Next topic

jamiesage123

Hi,

Since I've installed SMF on my forums (A few months ago), the "Fetching preview" function doesn't seem to work. I've never taken notice of it because i don't use it that much. I'm a more of post now, edit later person :P.

I press Preview, and it comes up with the "Fetching preview" message, but doesn't move on from that point. I'm still a noob with SMF, thats why i decided to ask here before looking at the code.

I'm currently using SMF 2.0 RC5

Thank you.

Illori

what mods do you have installed? can you verify that you are using the most updated version of all of those mods?

jamiesage123

I haven't got any mods installed.

Illori

what browser do you see this issue in?

jamiesage123

It isn't the browser.

I use Opera, I've also tried it in Internet explorer and Firefox.

Illori

any errors in your error log in the admin panel?

jamiesage123


kat

Do you have "Quick reply" enabled?

If so, does disabling it cure the problem?

(Just a hunch, this).

Also, does this happen with all themes?

More specifically, does it happen if you use the SMF default one?

SlammedDime

A link to your site and possibly a test account to test with would be great.  We can play guessing games all day long, but without actually seeing it in action and seeing what is happening 'behind the scenes', the problem is anyone's guess.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

jamiesage123

http://www.jamies-servers.co.uk

Username: test
Password: password

-----------------------------------------------

Where is the option to enable / disable quick reply?

SlammedDime

The problem is due to this code stuck at the bottom of your page...

<!-- LiveZilla Chat Button Link Code (ALWAYS PLACE IN BODY ELEMENT) --><div style="display:none;"><a href="javascript:void(window.open('http://jamies-servers.co.uk/support/chat.php','','width=590,height=610,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img id="chat_button_image" src="http://jamies-servers.co.uk/support/image.php?id=04&amp;type=overlay" width="37" height="123" border="0" alt="LiveZilla Live Help"></a></div><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- LiveZilla Tracking Code (ALWAYS PLACE IN BODY ELEMENT) --><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">
var script = document.createElement("script");script.type="text/javascript";var src = "http://jamies-servers.co.uk/support/server.php?request=track&output=jcrpt&fbpos=10&fbml=0&fbmt=0&fbmr=0&fbmb=0&fbw=37&fbh=123&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script><noscript><img src="http://jamies-servers.co.uk/support/server.php?request=track&amp;output=nojcrpt&amp;fbpos=10&amp;fbml=0&amp;fbmt=0&amp;fbmr=0&amp;fbmb=0&amp;fbw=37&amp;fbh=123" width="0" height="0" style="visibility:hidden;" alt=""></noscript><!-- http://www.LiveZilla.net Tracking Code -->


If you inserted it, you did so in the wrong spot.  It needs to go in Themes/[yourtheme]/index.template.php BEFORE '</body>'.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

jamiesage123

Ah, Thanks. That worked.

Is there any other way i could include that code with out getting that error?

SlammedDime

I don't understand your question?  By placing it in index.template.php before </body>, it will be included on every page of the forum as you expect.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

jamiesage123

When i either include the code, or place it in the index.english.php, it makes the text massive on my forums. Or creates a few errors.

SlammedDime

You won't want it in index.english.php... you'll want it in index.template.php.  All apostrophes in the code will need to be escaped by placing a \ before them.  That should prevent the errors.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

jamiesage123

I've done what you said, the Preview still works, but the image that the code above ^ is meant to show, isn't showing.

SlammedDime

I don't see the code on your rendered page.  You'll need to insert it into index.template.php of each theme of your site before </body> (curve, core, fresh, etc...)
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

jamiesage123

Thank you so much for you help. I really appreciate it.

It all works fine now. Thanks!  8)

kat


Advertisement: