TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 270
  • Total: 270

Preview bug

Started by Sek, January 16, 2007, 02:28:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sek

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.

bloc

I suggest just uploading all the original files again..and rather put in any mods/chnages aferwards. Only way to be sure.

knat

#12
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

IchBin

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?

bloc

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..?

knat

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

bloc

;D dynamicdrive is a great source, but unfortunelately its also very easy to get the javascripts clashing with each other. :P

AndyII

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

AndyII

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

knat

#19
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 ?  :)

This website is proudly hosted on Crocweb Cloud Website Hosting.