Note!
Where we are it is now the weekend; so there might be a slight delay in our reply. Thanks for understanding!make subscribe link
-
Subscribed Products:
8 responses Add a reply
-
Hello Jeremy,
I am sorry but I am not entirely sure if I understand you here. Do you mean you want to add a link to the subscribe dialog? Here's what you need to do on that particular page / module,
<?php require_once( JPATH_ROOT . DS . 'components' . DS . 'com_easyblog' . DS . 'helpers' . DS . 'helper.php' ); EasyBlogHelper::loadHeaders(); ?> <a href="javascript:void(0);" onclick="eblog.subscription.show('site');" class="link-email">Subscribe here</a>
-
I tried that but I get "ReferenceError: eblog is not defined" I am try to use an image as the link as so:
<?php require_once( JPATH_ROOT . DS . 'components' . DS . 'com_easyblog' . DS . 'helpers' . DS . 'helper.php' ); EasyBlogHelper::loadHeaders(); ?> <a href="javascript:void(0);" onclick="eblog.subscription.show('site');" class="link-email"><img src="/http://www.calcityfire.us/images/subs.jpg"></a>-
I tried that but I get "ReferenceError: eblog is not defined" I am try to use an image as the link as so:
[code type="xml"]
[/code]
Subscribed Products: -
-
It doesnt seem to let me post here how I have it in the module I will try it again:
I tried that but I get "ReferenceError: eblog is not defined" I am try to use an image as the link as so:
<?php require_once( JPATH_ROOT . DS . 'components' . DS . 'com_easyblog' . DS . 'helpers' . DS . 'helper.php' ); EasyBlogHelper::loadHeaders(); ?> <a href="javascript:void(0);" onclick="eblog.subscription.show('site');" class="link-email"><img src="/http://www.calcityfire.us/images/subs.jpg"></a>
Subscribed Products: -
-
Subscribed Products: -
-
As far as I know it should, it is just a custom html module in joomla 2.5.6 and the filtering is set to none in the permissions, I don't see the scripts being loaded with that code. The module works when I am of course on an easy blog page, but not on the front page. I even tried it in an article. Could it be a Javascript conflict with template? Not that big of a deal I will just link it the blog page and they can click the normal subscribe link there. Thanks for your time.
Subscribed Products: -
Hello Jeremy,
Ah, you can't actually place PHP codes in a custom HTML code. It'll be filtered out and it wouldn't be processed
What the PHP code does there is to add the necessary javascript library on the current page. Why it works on EasyBlog pages is because, EasyBlog itself already added those headers. So in other words, the module doesn't add those headers
Your Response
Please login to reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.