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
smiles
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
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
I don't know if this is the best way to it... but if I modify mboard.php and change:
to simply:
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
Code: Select all
('$settings[mboard_url]/smileys.htm')
Code: Select all
('smileys.htm')
It's a local path because 'smileys.htm' is in the directory as 'mboard.php' anyway, right?
I think.

~Wayne