VirtueMart 1.1.x [ Old version - no longer supported ] > Themes & Layout Problems and Customization VM 1.1

Facebook Like & Tweet Button Code for Flypage (SOLVED)

(1/6) > >>

PRO:
For creating a facebook "Like Button" on flypage etc.

 
--- Code: ---<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode("http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:65px"></iframe>
--- End code ---

PRO:
For the tweet button, you will need to add the code for the tweet picture


ONLY problem with this code is you have to hardcode the "flypage" in the url


--- Code: ---<a href="http://twitter.com/home?status=ADDRESS HERE /index.php?page=shop.product_details&amp;flypage=[b]1.tpl[/b]&amp;product_id=<?php echo $product_id ?>&amp;category_id=<?php echo $category_id ?>&amp;option=com_virtuemart&Itemid=1">Tweet

</a>
--- End code ---

perigonza:
Hi!

Sorry for asking something that might be obvious, but ... what is the flypage file where you have to include that code? I don't find it ...

Thanks for the help,

Pedro

chimp_rex:
Hello Pedro! Correct me if i'm wrong...The file is: /public_html/components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php.

perigonza:

--- Quote from: perigonza on January 23, 2011, 05:31:38 AM ---Hi!

Sorry for asking something that might be obvious, but ... what is the flypage file where you have to include that code? I don't find it ...

Thanks for the help,

Pedro


--- End quote ---

Found it, it was in the template directory under other name.

:)

Navigation

[0] Message Index

[#] Next page

Go to full version