Actions

Difference between revisions of "Require Approval For Web Link"

From Joomla! Documentation

(Adjusted layout)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In Joomla! 1.5.3
+
{{JVer|1.5}}
  
Change line 105 of components/com_weblinks/views/weblink/view.html.php
+
== To require approval for new Web Links ==
  
from $weblink->approved = 1;
+
In Joomla! 1.5.3
  
to $weblink->approved = 0;
+
Change line 105 of <code>components/com_weblinks/views/weblink/view.html.php</code> from
  
 +
<source lang="php">
 +
$weblink->approved = 1;
 +
</source>
  
 +
to
  
'''To remove the published option from the web links form:'''
+
<source lang="php">
 +
$weblink->approved = 0;
 +
</source>
  
comment out lines 59 - 68 of components/com_weblinks/views/weblink/tmpl/form.php
+
== To remove the published option from the New Web Link form ==
  
change from
+
Comment out lines 59 - 68 of <code>components/com_weblinks/views/weblink/tmpl/form.php</code>. Change from
  
[[Image:Web_Link_Published_Option_Code.gif]]
+
<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">
[[Image:Web_Link_Published_Option_Code_Commented.gif]]
+
<!-- <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]]

Latest revision as of 11:10, 28 January 2011

Joomla 1.5

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

  1. </tr>
    
  2. <tr>
    
  3.     <td valign="top">
    
  4.         <label for="jformpublished">
    
  5.             <?php echo JText::_( 'Published' ); ?>:
    
  6.         </label>
    
  7.     </td>
    
  8.     <td>
    
  9.             <?php echo $this->lists['published']; ?>
    
  10.     </td>
    
  11. </tr>
    
  12. <tr>
    

to

  1. <!-- <tr>
    
  2.     <td valign="top">
    
  3.         <label for="jformpublished">
    
  4.             <?php echo JText::_( 'Published' ); ?>:
    
  5.         </label>
    
  6.     </td>
    
  7.     <td>
    
  8.             <?php echo $this->lists['published']; ?>
    
  9.     </td>
    
  10. </tr> -->