Require Approval For Web Link: Difference between revisions
From Joomla! Documentation
Added to the parent Tips and tricks category |
Adjusted layout |
||
| Line 1: | Line 1: | ||
{{JVer|1.5}} | |||
== To require approval for new Web Links == | |||
In Joomla! 1.5.3 | |||
Change line 105 of <code>components/com_weblinks/views/weblink/view.html.php</code> from | |||
<source lang="php"> | |||
$weblink->approved = 1; | |||
</source> | |||
to | |||
<source lang="php"> | |||
$weblink->approved = 0; | |||
</source> | |||
== To remove the published option from the New Web Link form == | |||
Comment out lines 59 - 68 of <code>components/com_weblinks/views/weblink/tmpl/form.php</code>. Change from | |||
[ | <source lang="php" line start="58"> | ||
</tr> | |||
<tr> | |||
<td valign="top"> | |||
<label for="jformpublished"> | |||
<?php echo JText::_( 'Published' ); ?>: | |||
</label> | |||
</td> | |||
<td> | |||
<?php echo $this->lists['published']; ?> | |||
</td> | |||
</tr> | |||
<tr> | |||
</source> | |||
to | to | ||
<source lang="php" line start="59"> | |||
[ | <!-- <tr> | ||
<td valign="top"> | |||
<label for="jformpublished"> | |||
<?php echo JText::_( 'Published' ); ?>: | |||
</label> | |||
</td> | |||
<td> | |||
<?php echo $this->lists['published']; ?> | |||
</td> | |||
</tr> --> | |||
</source> | |||
[[Category:Tips and tricks]] | [[Category:Tips and tricks]] | ||
[[Category:Tips and tricks 1.5]] | [[Category:Tips and tricks 1.5]] | ||
Latest revision as of 16:10, 28 January 2011
To require approval for new Web Links
In Joomla! 1.5.3
Change line 105 of components/com_weblinks/views/weblink/view.html.php from
$weblink->approved = 1;
to
$weblink->approved = 0;
To remove the published option from the New Web Link form
Comment out lines 59 - 68 of components/com_weblinks/views/weblink/tmpl/form.php. Change from
</tr>
<tr>
<td valign="top">
<label for="jformpublished">
<?php echo JText::_( 'Published' ); ?>:
</label>
</td>
<td>
<?php echo $this->lists['published']; ?>
</td>
</tr>
<tr>
to
<!-- <tr>
<td valign="top">
<label for="jformpublished">
<?php echo JText::_( 'Published' ); ?>:
</label>
</td>
<td>
<?php echo $this->lists['published']; ?>
</td>
</tr> -->