Page 1 of 1
Discussion Forum Problems / Errors
Posted: Wed Jan 03, 2007 2:54 pm
by Antonimo
I installed the discussion for plugin and I am having a few difficulties:
1. Do I have to manually hard code a link to the forum? I cannot see where visitors can click to get to it.
2. None of the images were appearing. I have checked that they all exist on the server.
Looking at "threadlist.tpl" (for example) I found on line 8:
Code: Select all
<img src="{$relpath}/img/new_thread.png" border="0" />
The HTML output (source viewed from the browser) showed:
Code: Select all
<img src="Serendipity/plugins/serendipity_event_forum//img/new_thread.png" border="0" />
When I replaced {$relpath} with
http://www.domain.com/Serendipity/plugi ... vent_forum the images displayed.
Other Relative Paths in this plugin were also failing eg in "editform.tpl" line 44:
Code: Select all
<script type="text/javascript" language="JavaScript" src="{$relpath}/include/ColorPicker2.js"></script>
replaced with
<script type="text/javascript" language="JavaScript" src="http://wwwdomain.com/Serendipity/plugins/serendipity_event_forum/include/ColorPicker2.js"></script>
Is this a problem that others have experienced or just me?
Is there a simpler way to correct the relative path error?
Re: Discussion Forum Problems / Errors
Posted: Wed Jan 03, 2007 6:05 pm
by garvinhicking
Hi!
1. Do I have to manually hard code a link to the forum? I cannot see where visitors can click to get to it.
Yes, that's (sadly) right. You have to create a html nugget or edit your template to place a link somewhere to the forum(s).
2. None of the images were appearing. I have checked that they all exist on the server.
Usually $relpath should be set to your proper directory. It is tried to be auto-detected based on your s9y settings and your Document-Root.
Are you using a Windows server? How did you configure the paths in your s9y configuration? Maybe there's a wrong path in there...
HTH,
Garvin
Posted: Wed Jan 03, 2007 10:00 pm
by Antonimo
Hi Garvin,
Thanks for your reply.
1. Do I have to manually hard code a link to the forum? I cannot see where visitors can click to get to it.
Yes, that's (sadly) right. You have to create a html nugget or edit your template to place a link somewhere to the forum(s).
That's no problem!
Usually $relpath should be set to your proper directory. It is tried to be auto-detected based on your s9y settings and your Document-Root.
Are you using a Windows server? How did you configure the paths in your s9y configuration? Maybe there's a wrong path in there...
Here is some information that may help:
taken from the Serendipity pre-installation report
PHP installation
Operating system ..........Linux 2.4.22-1.2199.nptl, i686
Webserver SAPI ..........apache2handler
PHP version >= 4.1.2 ..........Yes, 4.3.8
Database extensions ..........MySQL, PostgreSQL
Session extension ..........Yes
PCRE extension ..........Yes
GDlib extension ..........Yes
OpenSSL extension .....Yes
mbstring extension .....Yes
iconv extension ..........Yes
zlib extension ..........Yes
Imagemagick binary .....Not found [?]
php.ini configuration
Recommended Actual
safe_mode ..........OFF ..........OFF
register_globals .....OFF ..........ON [?]
magic_quotes_gpc OFF ..........ON [?]
magic_quotes_runtime OFF .....OFF
session.use_trans_sid OFF .....OFF
allow_url_fopen .....ON .....ON
file_uploads ..........ON .....ON
post_max_size .....10M .....8M [?]
upload_max_filesize 10M .....2M [?]
Permissions
/home/httpd/vhosts/domain.com/httpdocs/Serendipity/ Writable
/home/httpd/vhosts/domain.com/httpdocs/Serendipity/templates_c Writable
/home/httpd/vhosts/domain.com/httpdocs/Serendipity/archives/ Writable
/home/httpd/vhosts/domain.com/httpdocs/Serendipity/uploads/ Writable
Execute Imagemagick binary Not found [?]
====================
taken from the Serendipity Administration Suite
Full path /home/httpd/vhosts/domain.com/httpdocs/Serendipity/
Upload path uploads/
Relative path /Serendipity/
Relative template path templates/
Relative upload path uploads/
Autodetect used HTTP-Host No
[/quote]
Posted: Thu Jan 04, 2007 3:24 pm
by garvinhicking
Hi!
Hm, okay. Your Path settings are all alright, so it definitely must be a bug in the forum plugin. It should not read "Serendipity/plugins/..." in your output, but "/Serendipity/plugins/..." instead. So there's a missing front slash.
The fix you made should basically work alright for you, and as soon as I find the time I'll try to officially patch the plugin!
Besst regards,
Garvin
Posted: Tue Feb 06, 2007 1:24 pm
by tchirou
Hi this is me again !!!
I think I am in the same position than Antonimo. I changed the path in every .tpl files from the templates folder, but it doesn't work. I tried with absolute path, with relative path from index.php...
Are there other locations where I have to change the path too ?
Thanks,
Cyril
Forum images
Posted: Sun Mar 11, 2007 1:03 pm
by malgernon
Likewise I'm in the same boat with regards to the images not appearing.
Another less important problem I've had is that the spam captcha utility - which asks you to type in the displayed code - doesn't work for me in IE or Firefox. It always reports that the incorrect code was typed in.
Thanks for any help,
Malgernon
Re: Forum images
Posted: Sun Mar 11, 2007 1:16 pm
by garvinhicking
Hi!
Thanks for reminding me of this thread. I just committed version 0.23 of the forum plugin that fixes the path problem to NOT strip the beginning slash.
Check your cforum plugin configuration, there's a "Path to this plugin" config item. If it is currently set to "/blog/..." or something like that, change it to read "//blog/..." with a double slash, then you can get it to work with version 0.22 of the plugin already. In version 0.23 the double slash will no longer be required.
Another less important problem I've had is that the spam captcha utility - which asks you to type in the displayed code - doesn't work for me in IE or Firefox. It always reports that the incorrect code was typed in.
That might happen if you don't accept cookies in your browser or if they are filtered by a firewall or antivir software for you, or if your server's PHP session support is not setup properly. Can you tell your URL for me to see that?
Regards,
Garvin
Thanks for any help,
Malgernon[/quote]