I've posted this over at SMF and have received no response.
I'm using SMF v1.1.1 and TP v0.9.7.
When using the New topic and reply options and then use the preview feature, it just says Fetching Preview and never shows the actual preview. However when I use the quick reply area the preview options works fine. Anyone have any ideas on how to fix this?
Which theme you useing?
These files upload again.
post.template.php, display.template.php, display.php, post.php
Well.. about 10 different ones and all act the same way. All say fetching preview with in the new topic and reply when you select preview... and work fine in the quick reply area.
and I have tried uploading the files again to no avail.
I do thank you for your response :)
Could be that your host doesent support images.
make sure you have GDlibrary installed on the server, or it will be a bit hard to get your preview to work as the GDlibabry must prosess the images
I have the same problem I'm using the Day Of Defeat theme the spelling check pop up works fine but no preview cant remember when it started it used to work I must of lost it after an update
Just read back on some info on SMF forums. (this is actually their support part as the spell checker are their coding and not TPs )
Anywhay, there seem to be issues with UTF8 and regular language selection for the spellchecker on some hosts.
In one of the threads one of the mods said that the members that had issues with this should contact the host and ask them to update the selection for diffrent language standards, including utf8
So try and see if you can get som help with this from the host, cause it seems like it is a host issue more then anything.
You can search on SMF forums if you need to know more about this.
Any mods installed? Especially in the posting area?
Well this was/is an issue out of the box with the preview option and not the spell checker as the spell checker works fine.. We noticed this from the start before we added any mods. Only the preview post option in the new topic and reply topic don't work. Just curious here.. if it works in the quick reply area why not the new topic and reply? If it was a problem on the host end technicaly none of it should work right>?
And thanks for the help here guys As I stated earlier I've posted on the smf forums and tried things stated in other posts there with little reply.
wow names and treasury are the only mods installed however but as I said.. this was a problem before we install these mods..
Well, the quick-reply use Display.template, while reply/new topic use Post.template. So it might be some missing javascript in the Post.template.
I have the same problem using SMF 1.1 RC 3... Preview works for PM but not for New posts and replies.. I too think it might be something with the java :-\
Quote from: Bloc on January 18, 2007, 12:48:01 PM
Well, the quick-reply use Display.template, while reply/new topic use Post.template. So it might be some missing javascript in the Post.template.
Thanks for the info Bloc I'lll grab an older version of smf and compare those files.. see if I can come up with anything in the code thats different.
I suggest just uploading all the original files again..and rather put in any mods/chnages aferwards. Only way to be sure.
Please can anyone help me solve this very wierd problem
My preview works fine in Firefox
But in IE7 it gives the error below.
I tried using a fresh post.template.php file but it didnt solve the problem.
In PM preview works fine on both Firefox and IE7 - So its only a problem when posting
What can be the problem ? and what file is the error message talking about ?
Error Message:
Line: 527
Char: 12
Error: 'GetElementsByTagName{...}.0' is null or not an object
Code: 0
URL: http://www.gapeindex.dk/index.php?action=post;msg=3473;topic=2712.0;sesc=f74357fcfb04a2fde30647135bb8cce0
Edit: Just tested with IE6, and i get same error - OMG i dont want to ask all my members to switch to Firefox LoL ;D
Quote from: knat on January 26, 2007, 07:48:33 AMOMG i dont want to ask all my members to switch to Firefox LoL ;D
I don't see that as being such a bad thing. :D
Does this happen in all themes you have or only the current one you're using?
Its javascript error, and I think its trying to refrence a object by its id which isn't defined.
Something is definitive up with the javascript. Have you added some extra javascript in your theme? Or is it a theme that has that added..?
i have added so many thinks lol i cant remember.. but yeah i have a few things running from dynamicdrive.com.. will try turning them off and see what happens ::)
;D dynamicdrive is a great source, but unfortunelately its also very easy to get the javascripts clashing with each other. :P
GetElementsByTagName is the js error,
Fetching Preview is all thats shown
I have tried using the above listed files as a test, but still there, This did work (98% sure) before TP was installed.
I too have searched SMF and here, so still need a fix
using
SMF 1.1.2
Scribbles - theme
TinyPortal v0.9.8
no other mods
ok, it is SMF, in Post.template.php
var i, preview = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("preview")[0];
setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);
with
var i, preview = XMLDoc.getElementsByTagName("smf")[0], XMLDoc.getElementsByTagName("preview")[0];
setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);
Thanks a lot Andy - My preview button is working again :)
Edit: Ohhh buggers ! :P
Making this change creates a new bug.. you know that when you select a topic icon you can see a preview of that icon.. that stops working when i make this change to fix the preview bug... can you help me with this ? :)
Is there a solution already? I have the same problem...
OK guys, I found the answer:
This is usually related to extra line breaks before the doc declaration. Look at the html source and see if you have any lines before the "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">". IF you do check Modifications.english.php and Source files for lines after or before the <?php ?>.
In my case the modifications.dutch.php contained a line break halfway the file...
So far, my forum is error free again... 8)