Page 1 of 3
Plugin sh404SEF
Posted: 10 Jan 2009, 19:40
by jagwar77
Hi Phoca users,
here's attached the sh404SEF plugin file and it will be my modest contribution to the Phoca Community...
@Jan :
I have been testing the plugin in my production site the whole day today and it seems to work fine, except the captcha image won't show up as sh404SEF is enabled. I found out where was the problem from but i couldn't resolve it as yet:
the image URL contained in components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php is removed by sh404SEF :
Code: Select all
<img src="<?php echo JRoute::_('index.php?option=com_phocaguestbook&view=phocaguestbooki&id='.$this->id.'&Itemid='.$this->itemid.'&phocasid='. md5(uniqid(time()))) ; ?>" alt="<?php JText::_('Captcha Image'); ?>" id="phocacaptcha" />
If you have any idea...
Best Regards,
Jagwar77
sh404sef_phocaguestbook_plugin.zip
Re: Plugin sh404SEF
Posted: 12 Jan 2009, 23:15
by Jan
Hi, thank you for this plugin...
- wrong url ... I have no idea how to do that the sh404 will not change the link to image ?

I think only what user can do is manually changing the link, e.g. remove the JRoute or JHTML method ... but in such case maybe the path will be not correct... maybe the link to image should be added into plugin and there some exception should be created
Jan
Re: Plugin sh404SEF
Posted: 14 Jan 2009, 19:26
by jagwar77
Hi Jan,
I'll try to fix this issue next week. It should be not that difficult to resolve it...
Regards,
Pascal
Re: Plugin sh404SEF
Posted: 17 Jan 2009, 00:15
by Jan
ok
Re: Plugin sh404SEF
Posted: 06 May 2009, 17:31
by Ray
Hi, guys!
When i've selected "Captcha Displaying Method" = "JRoute" in config settings, parts of preview html code:
'&Itemid='
instead of:
'&Itemid='.
Therefore as & is in "JHTML" part. Is this error?
& some fix about sh404SEF plugin:
when I've changed In file "/components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php"
Code: Select all
echo JHTML::_( 'image.site','index.php?option=com_phocaguestbook&view=phocaguestbooki&id='.$this->id.'&Itemid='.$this->itemid.'&phocasid='. md5(uniqid(time())), '', '','',JText::_('Captcha Image'), array('id' => 'phocacaptcha'));
to
Code: Select all
echo JHTML::_( 'image.site','index.php?option=com_phocaguestbook&view=phocaguestbooki&id='.$this->id.'&Itemid='.$this->itemid.'&phocasid='. md5(uniqid(time())));
captcha works fine. Section "JRoute" and has not working.
Re: Plugin sh404SEF
Posted: 06 May 2009, 23:01
by Jan
Hi, there are two methods of displaying images in Joomla! On some servers the JHTML doesn't work on some the JRoute doesn't work.
& is not error
Re: Plugin sh404SEF
Posted: 07 May 2009, 00:59
by Ray
Jan, You've made a cool components & modules for joomla! Thank you!
May be a little bug, I probably a little not so was expressed:
Captcha Displaying Method" = "JRoute" --> echo JHTML::_ etc.. (line 273 of default.php)
Captcha Displaying Method" = "JHTML" --> echo JRoute::_ etc.. (line 271 of default.php)
Editing line "echo JHTML" influences on "JRoute". HTML Code viewing confirms it. Guestbook v1.3.2
Most likely an error here: (line 268 of default.php, if JRoute = 0, JHTML = 1)
if ($this->tmpl['captchamethod'] == 1) {
fix:
if ($this->tmpl['captchamethod'] == 0) {
Sorry for my english..
Re: Plugin sh404SEF
Posted: 28 May 2009, 22:32
by Jan
Ok
Ray
Yes this is a bug.

Thank you for this information, I will fix it.
Thank you, Jan
Re: Plugin sh404SEF
Posted: 30 Jun 2009, 13:34
by Ray
Jan, I'm glad to help you

Re: Plugin sh404SEF
Posted: 20 Aug 2009, 22:59
by Jan
Hi, maybe you should as the sh404SEF developers. As I didn't do this plugin and don't use it I don't know it
