Difference between revisions of "JReviews:Tips & Tricks"

From JReviews Documentation
Jump to: navigation, search
Line 1: Line 1:
 +
== General ==
 +
=== How do I display the list of users with the most reviews? ===
 +
To get a Top 10 users page, create a menu item for this link:
 +
 +
<pre>http://www.example.com/index.php?option=com_jreviews&url=reviewers</pre>
 +
 +
 +
== Submit Form ==
 +
=== How do I fix the wysiwyg editor's background problem? ===
 +
Add this to your joomla template's css file:
 +
<source lang="css">
 +
* TinyMCE specific rules */
 +
body.mceContentBody {
 +
  background: #FFF !important;
 +
  background-image: none;
 +
}
 +
</source>
 +
 +
 +
== Themes ==
 +
=== How to make part of theme visible only to administrators? ===
 +
<source lang="php">
 +
<?php if($this->Access->isAdmin():?>
 +
  // Everything here will be available only to admins
 +
<?php endif;?>
 +
</source>
 +
 
== Troubleshooting ==
 
== Troubleshooting ==
 
*[[Modules missing from content pages]]
 
*[[Modules missing from content pages]]

Revision as of 14:28, 31 August 2009

General

How do I display the list of users with the most reviews?

To get a Top 10 users page, create a menu item for this link:

http://www.example.com/index.php?option=com_jreviews&url=reviewers


Submit Form

How do I fix the wysiwyg editor's background problem?

Add this to your joomla template's css file:

* TinyMCE specific rules */
body.mceContentBody {
   background: #FFF !important;
   background-image: none;
}


Themes

How to make part of theme visible only to administrators?

<?php if($this->Access->isAdmin():?>
   // Everything here will be available only to admins
<?php endif;?>

Troubleshooting