Dropdown login form without extensions - joomla

First of all, I'm starting with Joomla 3. I have a main menu with a login item and I want to dropdown the login form when this item is clicked, something like login on dropbox site.
I try hot login extension but not working well for me.
UPDATE
I create a new postion in my XML file called 'login'
<positions>
<position>login</position>
And add this to the index.php
<div class="span7">
<jdoc:include type="modules" name="menu" style="none" />
<jdoc:include type="modules" name="login" style="none" />
</div>
Finally, in the panel, I set to the Login Form module the login postion.
Now, my DOM is look like this:
<div class="span7">
<ul class="nav menu">Menu itens...</ul>
<form id="login-form">...</form>
</div>
How can I set the login form to open when the user click in one of the menu items?

Depending on the template, there are different methods. For example with Yootheme templates, you need to open the Login module in the Module Manager and set the position to "menu". With Rockettheme, you can set a module or a module position to a specific menu item via the Menu Manager.
Have a look at he demo site for the template you download and read any documentation as it will help.

Related

Codeigniter Integrate FB login with Web login

I have a web sign up system and I want to add a facebook sign up feature and possible a google+. What is the best approach to integrate the systems without overlapping data?
The thing is that the web sign up is triggered when a button is pressed and the facebook sign up is triggered when an anchor type button is pressed. Can I make a controller for when the anchor is pressed and build the href link inside?
HTML
<!-- Button for Web Log in -->
<input type="submit" name="regisSubmit" id="regisSubmit" tabindex="5"
class="form-control btn btn-register" value="Register now">
<!-- <a> for Fb Log in -->
<?php echo '<a href="'.$authUrl.'"><img
src="'.base_url().'assets/images/flogin.png" alt=""/></a>'; ?>

Magento - Change the transactional email template used by a block in the CMS

I'm trying to add an additional contact form on my Magento website on a new CMS page. I'd like it to be different to the main contact form. I need it to use a different transactional email template. Here's what I've got so far, I just need to tell it to use a different template (probably in the {{block}} code in the CMS page.
On the CMS page I've added {{block type="core/template" name="contactForm" form_action="/contacts/index/post/" template="contacts/test.phtml"}} to call a template block.
I've created the contact/test.phtml template file and copied my existing contact form template. I've manually added a field, it looks like this:
<li class="fields">
<div class="field">
<label for="armadillo"><?php echo Mage::helper('contacts')->__('armadillo') ?></label>
<div class="input-box">
<input name="armadillo" id="armadillo" title="<?php echo Mage::helper('contacts')->__('armadillo') ?>" value="" class="input-text" type="text" />
</div>
</div>
</li>
I've gone to the System -> Transactional Emails menu and created a new template based on the Contact Us template (called armadilloTest). The template content looks like this:
Name: {{var data.name}}
E-mail: {{var data.email}}
Telephone: {{var data.telephone}}
Armadillo: {{var data.armadillo}}
Comment: {{var data.comment}}
If I send an email from both forms now, they use the same transactional email template, and I don't get the armadillo field. It works, but I'd like one form to use the new template.
If I go to System -> Configuration -> Contacts I can change which email template my contact forms uses. I can set it to my new armadillo template, but again this is applied to both forms and my old contact form starts sending me emails with a blank armadillo field.
There must be a way of setting the transactional email template in the {{block}} line in the CMS, but I can't find out what it is! Can you help please?

Hide Latest product modules in virtue mart page details

I am using Joomla 1.5 and virtuemart 1.1.9 i have included the latest module in virtuemart. It displays the module in product details also i want to show only in virtuemart front page only
How would i hide these modules in product details page
div id="mainBlock">
<jdoc:include type="modules" name="shopmodule" />
<jdoc:include type="component" />
</div>
Please help me to get out from this
Find out a parameter to identify this view, i.e. view = "product-detail", then
if (JRequest::getVar("view","")!=="product-details") {
?><jdoc:include type="modules" name="shopmodule" /> <?
}

How to add share buttons in magento CMS pages?

I have created CMS pages in Magento and I want to share with Social site using share buttons Facebook, Twitter, Google+ so any one to tell me how to do that ?
Add this part to :
your_package/your_theme/template/page/html/head.phtml
before this line --> <?php echo $this->helper('core/js')->getTranslatorScript() ?>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-c297c92f-9661-1cf3-697d-47c19ab7e281"});</script>
Add this part to your cms page :
<span class='st_facebook_hcount' displayText='Facebook'></span>
<span class='st_twitter_hcount' displayText='Tweet'></span>
<span class='st_googleplus_hcount' displayText='Google +'></span>
NOTE: using sharethis extension
You can check below URL for Addthis button, select style of button you want to share, grab the code and add that code to Magento Admin >> CMS >> Pages. click on to Html view of Editor and paste the code which you have grab from Addthis site, and you will see share buttons on front end. Another method is you can add this code to your template file commonly used for Example 1column.phtml is used for CMS pages and you need Share buttons on all CMS pages then you can paste the same code in .phtml template file.
Add this : https://www.addthis.com/get/sharing#.UK8_PoafHcc
Although this is an old thread i would like to share my answer which i found.
Add a meta tag in
template/page/html/head.phtml
<meta property="og:site_name" content="yoursite.com"/>
Create a Custom Variable from System/Custom Variables by pasting the Facebook sharing button code to Variable HTML Value.
To add like/share button to cms or static block, use the “Insert Variable” button to insert the Custom Variable you have just created.

Google Checkout View Cart Button

I'm trying to add a view cart button to my website that is using google checkout, does anyone know a trick to do this? I think I may need to use a special div with a class to create a button that will display the cart when clicked, I'm lost.
Thank you
The Google Checkout shopping cart has its own JavaScript and CSS APIs - you can use those to change the cart's appeareance and behavior to beter match yout website look and feel.
See this document for more info:
http://sites.google.com/site/checkoutshoppingcart/customising-cart-s-ui
<div class="product">
<input type="hidden" class="product-title" value="8x10 Product
<input type="hidden" class="product-price" value="19.95">
<a class="googlecart-add">Product Title</a>
</div>

Resources