TinyPortal

Development => Support => Topic started by: jebo87 on December 29, 2007, 09:26:33 PM

Title: preview not working!!!
Post by: jebo87 on December 29, 2007, 09:26:33 PM
hi i had a problem with the posts preview....i fixed it this way

i replaced this in Post.template

var i, preview = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("preview")[0];
        setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);


for

var i, preview = XMLDoc.getElementsByTagName("smf")[0], XMLDoc.getElementsByTagName("preview")[0];
        setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);


My preview button works now...not in a dinamic way (like it should be) it refreshes the hole page ...but that fix created a new bug..my message icon doesn't change when i pick one from the combobox

if anyone can give a hand that would be awesome


-Jebo87
Title: Re: preview not working!!!
Post by: Nokonium on December 29, 2007, 09:30:28 PM
Sorry jebo87 but we can't reply because a lot of important information is missing, please read the posting guide and repost.
Title: Re: preview not working!!!
Post by: jebo87 on December 29, 2007, 09:39:59 PM
hmm ok.....well i'm using SMF 1.1.4 and tiny portal 0.9.8....i have no mods and no themes installed (i just create the forum..i just installed it) ...my error log doesn't show anything wrong ...i don't know why it doesn't work....that was the reason a reinstalled smf 1.1.4 and tiny portal
Title: Re: preview not working!!!
Post by: jebo87 on December 29, 2007, 09:54:33 PM
well i'm using SMF 1.1.4 and tiny portal 0.9.8....i have no mods and no themes installed (i just create the forum..i just installed it) ...my error log doesn't show anything wrong ...i don't know why it doesn't work....that was the reason a reinstalled smf 1.1.4 and tiny portal

hi i had a problem with the posts preview....i fixed it this way

i replaced this in Post.template

var i, preview = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("preview")[0];
        setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);


for

var i, preview = XMLDoc.getElementsByTagName("smf")[0], XMLDoc.getElementsByTagName("preview")[0];
        setInnerHTML(document.getElementById("preview_subject"), preview.getElementsByTagName("subject")[0].firstChild.nodeValue);


My preview button works now...not in a dinamic way (like it should be) it refreshes the hole page ...but that fix created a new bug..my message icon doesn't change when i pick one from the combobox

if anyone can give a hand that would be awesome


-Jebo87
Title: Re: preview not working!!!
Post by: Zetan on December 29, 2007, 10:11:20 PM
Topics merged.

Please do not cross post.. it makes no sense.


Thanks
Title: Re: preview not working!!!
Post by: jebo87 on December 29, 2007, 10:16:51 PM
ok..i'm sorry i posted it that way..but can anyone just read my question i need help!!!...you guys merged the topics but didn't give me any help at all.......thanks anyway
Title: Re: preview not working!!!
Post by: Zetan on December 29, 2007, 10:19:32 PM
Unless it's theme related, the post preview is a feature of SMF and has little to do with TinyPortal.
Have you posted this over at SMF?
Title: Re: preview not working!!!
Post by: Nokonium on December 30, 2007, 07:40:20 AM
It is definitely an SMF problem. Post preview is very slow to appear but will appear eventually. It is the same without TP installed, so there is no interference from TP.
Title: Re: preview not working!!!
Post by: me123 on January 15, 2008, 06:12:11 PM
I have the same problem after modding smf 1.1.4 with TP 0.9.8
Title: Re: preview not working!!!
Post by: G6Cad on January 15, 2008, 06:16:09 PM
Please read Nokos last reply.
Title: Re: preview not working!!!
Post by: me123 on January 15, 2008, 06:18:29 PM
My forum was working without errors, now I installed TP and this error appears, so in my humble opinion I think TP has something to do with it???
Title: Re: preview not working!!!
Post by: G6Cad on January 15, 2008, 06:26:02 PM
20k members use TP on their sites, probably a handfull have this error, it must be something else that causes this error for you, but im sure it's not TP related.

Preview posts doesent even get touched by TP what so ever.

List up your other mods and give some more info on your setup please.
Title: Re: preview not working!!!
Post by: me123 on January 15, 2008, 07:15:32 PM
1.     Group on Registration      1.1     
2.    Custom Profile Field Mod    3.16   
3.    Ad Managment    2.3
4.     SMF 1.1.2 Update Package
7.     SMF 1.0.11 / 1.1.3 Update      1.1
8.     SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update      1.0     
9.    Auto Embed Video Clips    1.9
10.    TinyPortal    0.983
Blueskies theme


When I replace the lines as suggested in the post above, I am getting other errors.
Title: Re: preview not working!!!
Post by: me123 on January 15, 2008, 07:26:27 PM
When I replace with the lines above in jebo89 posts I get (Firefox error log:)

Fout: missing ; before statement
Bronbestand: http://www.***/forum/index.php?action=post;board=840.0
Regel: 411, Kolom: 62
Broncode:
var i, preview = XMLDoc.getElementsByTagName("smf")[0], XMLDoc.getElementsByTagName("preview")[0];

A green arrow poinst to the second getElementsByName (it points to the g from the word 'get')
And this one appears at the same momen:

Fout: swapOptions is not defined
Bronbestand: http://www.***/forum/index.php?action=post;board=840.0
Regel: 700


When posting an additional error:

Fout: saveEntities is not defined
Bronbestand: http://www.****l/forum/index.php?action=post2;start=0;board=840
Regel: 1
Title: Re: preview not working!!!
Post by: G6Cad on January 15, 2008, 08:11:38 PM
For the last time, this is not related to TP what so ever.
If you add other mods to your forum, seek help from the modauthors for the mods you use.
Also when you change code on your template or source files, we really dont give support if it's not some correction to tinyportal.

I see that you have atleast 2 other mods that really DO change the part where you get the error from, TP is not one of them.

This topic is now locked.