× Joomla Facebook Connect support forum

Topic-icon Loading JFBLogin module in causes blank screen

Active Subscriptions:

None
Hi:

I am trying to do the following:

1) Create a horizontal menu.
2) Load the JFBLogin within an article in Joomla.

When I place the JFBLogin in the 'left' position, everything works. But I want to put the login in two places:

1) Horizontal menu in the upper right hand corner of the webpage. In my template, it is called the 'login' position.
2) Within an Joomla article so that I can redirect users to the the Facebook Connect icon when they do certain actions.

NOTE: I have turned on the error reporting to 'Maximum'.

When I change the position of the module to 'Login', I get the following error:
Fatal error: Cannot redeclare class modJFBCLoginHelper in /var/www/vhosts/puxzycat.com/subdomains/new159/httpdocs/modules/mod_jfbclogin/helper.php on line 6

When I place the module in a Joomla article using the {loadposition 'position'} command, I get the same error!

Can someone shed some light on this issue?

You can replicate the error by loading the article
<!-- m --><a class="postlink" href="new159.puxzycat.com/index.php?option=com...60&Itemid=96&lang=en">new159.puxzycat.com/index.php?op ... 96&lang=en

Thanks.

Albert
The topic has been locked.
Support Specialist
16 years 9 months ago #1863 by alzander
We just posted 2.1.2 of the JFBCLogin module for Joomla Facebook Connect . This fixes 2 bugs with the module, including yours which prevents multiple modules to be placed on a page.

Try it out if you haven't already solved the issue yourself.
The topic has been locked.
Active Subscriptions:

None
Hi:

I don't know the joomlacode that well and I also needed a horizontal menu. So what I did was to create a new module with different class name and changed the default.php template so that it is horizontal. That worked well. Of course, it's not the greatest of code hacking as I have defined the same class with different names 3 times (one vertical,one horizontal and one for inclusion in article)!

But it's a quickfix. Do let me know when you guys come up with a horizontal menu so I can remove my hacks...

thanks.

Albert
The topic has been locked.
Support Specialist
16 years 9 months ago #1889 by alzander
We really don't plan on coming up with a horizontal menu anytime soon, simply because you can override our template file and do your own.

If you want to post your code for your horizontal login box on the forums, please do. Others who are interested may like it and also give feedback to improve it.

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 11 months ago #3908 by monarchmdm
Hi! anyway you could post the horizontal code you used? maybe I can help clean it up too if you still need that

tks
The topic has been locked.