smiles

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
wkilc

smiles

Post by wkilc »

Script URL: http://rimea.org/mboard/mboard.php
Version of script: 121
Version of PHP: 4.3.11
Hosting company: ICD Soft
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try: yes... found some examples but nothing that seemed to apply to my problem.

Write your message below:

Hello,

Great script... but the JavaScript that is supposed to be inserting the smileys doesn't seem to work... I tried it on both IE and Firefox 1.06.

http://rimea.org/mboard/mboard.php

I figure I must be missing something really obvious.

Thanks.

~Wayne
Guest

Post by Guest »

P.S. IE's JS error message is "'parent.opener.document' is null or not an object."

It's not the "comments" versus "message" tag mentioned in another thread, either.

I've compared this to all the visible source code on the working test board and can find nothing wrong with what I've got.

~Wayne
wkilc

Post by wkilc »

GOT IT!

Duh.

If you specify in the settings file that the domain is, for example:

$settings['mboard_url']="www.rimea.org/mboard";

and then try to execute the smiley JS by pulling up http://rimea.org/mboard (without the www)... it won't work.

For example... on the test board, try inserting a smiley here:
http://www.phpjunkyard.com/mboard/mboard.php

...an it works fine...

now try here:

http://phpjunkyard.com/mboard/mboard.php

... and it doesn't work.

There must be a way to specify the domain so it works for both... i.e. ".domain.com"... I'll see what I can do.

~Wayne
Guest

Post by Guest »

I don't know if this is the best way to it... but if I modify mboard.php and change:

Code: Select all

('$settings[mboard_url]/smileys.htm')
to simply:

Code: Select all

('smileys.htm')
It fixes the "domain.com" versus "www.domain.com" inserting smiley problem.

It's a local path because 'smileys.htm' is in the directory as 'mboard.php' anyway, right?

I think. :-)

~Wayne
Locked