web design, England, Britain, UK, belgium
 
Ulti Clocks content

VirtueMart 1.1 Product Reviews message when not logged in

JOOMLABOTTOM sand If your using JoomlaWorks Tabs for your VirtueMart product pages and a separate tab for adding a product review, if your not logged in the tab is just blank. Here's how to leave a message like You must be logged in to leave a review.
review, tab, product, leave, tabs, write, login, echo, blank, message, logged, like, virtuemart, change, look, normally, joomla, reviewform, phpshop, lang, template, flypage, joomlaworks, pages, separate, tell, user, open, better, using, adding

Home Joomla - VirtueMart Joomla & VM How To's VirtueMart 1.1 Product Reviews message when not logged in

zat

14

nov

VirtueMart 1.1 Product Reviews message when not logged in

  • Joomla 1.5
  • VirtueMart 1.1

If your using JoomlaWorks Tabs for your VirtueMart product pages and a separate tab for adding a product review, if your not logged in the tab is just blank.
Here's how to leave a message like "You must be logged in to leave a review".



VirtueMart 1.1 Product Reiews with JoomlaWorks Tabs A message to tell the user to login to leave a product review is much better than a blank tab.


Open your flypage template and go to the review tab. It will normally look something like this:
 
{tab=Write a Review}
<?php echo $product_reviewform;?>
{/tabs}
 
Change this to:
 
{tab=Write a Review}
<?php 
if( $auth['user_id'] > 0 ) {
echo $product_reviewform;
}else{
echo $VM_LANG->_('PHPSHOP_REVIEW_LOGIN'); // Login to write a review!
} ?>
{/tabs}
 

And that's it...

VirtueMart 1.1 Product Reiews with JoomlaWorks Tabs


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
Laatste aanpassing op zaterdag 14 november 2009 18:05 Read : 2471 times
 

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
Titel:
Comment:

Latest Articles

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.

VM Live Product Search

Recommended Reading

For those interested in extending there knowledge of Joomla! & VirtueMart Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.

Learning Joomla! 1.5 Extension Development Learning Joomla! 1.5 Extension Development
by Joseph L. LeBlanc.
Read the review
Joomla! E-Commerce with VirtueMart Joomla! E-Commerce with VirtueMart
by Suhreed Sarkar.
Read the review
Joomla! Web Security Joomla! Web Security
by Tom Canavan.

Mastering Joomla! 1.5 Extension and Framework Development Mastering Joomla! 1.5 Extension and Framework Development
by James Kennard.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
by Tessa Blakeley Silver.

JOOMLABOTTOM



VirtueMart 1.1 Product Reviews message when not logged in



If your using JoomlaWorks Tabs for your VirtueMart product pages and a separate tab for adding a product review, if your not logged in the tab is just blank. Here's how to leave a message like You must be logged in to leave a review.


review, tab, product, leave, tabs, write, login, echo, blank, message, logged, like, virtuemart, change, look, normally, joomla, reviewform, phpshop, lang, template, flypage, joomlaworks, pages, separate, tell, user, open, better, using, adding