<div dir="ltr">its menu , not an block,<br><br><br>That is ......<br><br>After i enabled the custom menu module,<br><br>The custom menu comes to the navigation , <br><br>So i thing , the restriction must be given in side the code only.. is there any way for that..<br>
<br>below is my code...<br><br>in this code, we have to write the restriction...<br><br><br>once again i tell you my problem,,,<br><br>After i logout also..my menu displaying in the navigation...<br><br>function cShow_menu() {<br>
<br>if($user->uid){<br>//which retrive all content type from node table <br>$sql = 'select * from node_type ';<br>$res = db_query($sql);<br><br>//array <br>$content[] ="";<br>while ($row = db_fetch_array($res)) {<br>
<br>echo "i want user id".$uid;<br><br>$ctype=$row['type'];<br><br>//This is for creating the dynamic menu and sub menu<br>$content[] = array(<br>'title' => t('Contents'),<br>'path' => 'node/cShow',<br>
'callback' => 'cShow_rootmenu',<br><br><br>);<br><br>$path = 'node/cShow/'.$row['type'] ;<br>$content[] = array(<br>'title' => t($row['name']),<br>'path' =>"$path",<br>
'callback' => "cShow_common",<br><br>);<br><br>}<br>//End of while loop for dislay the sub menu<br><br>return $content;<br>}<br>}<br><br><div class="gmail_quote">On Thu, Aug 7, 2008 at 12:25 PM, Bill Fitzgerald <span dir="ltr"><<a href="mailto:bill@funnymonkey.com">bill@funnymonkey.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hide the block displaying the menu based on user role. This is core<br>
functionality that you can use on any block.<br>
<br>
Navigate to admin/build/block and then click on the "configure" link.<br>
<div class="Ih2E3d"><br>
bharani kumar wrote:<br>
> ok fine.. i started the cron. already..<br>
><br>
> Thanks for information..<br>
><br>
> Shall i ask you one more thing...<br>
><br>
> I created the custom MENU which display the all records ..<br>
><br>
><br>
> I want ot restrict the CUSTOM menu from anonymous user..<br>
><br>
> I used the condition like<br>
><br>
> if($user->uid){<br>
> show menu<br>
> }<br>
><br>
> But this condition not meet my expectation..<br>
><br>
> You any idea for this ??????<br>
><br>
> thanks in advance<br>
><br>
><br>
> On Thu, Aug 7, 2008 at 12:05 PM, Shyamala Rajaram <<a href="mailto:shyamala@netlinkindia.com">shyamala@netlinkindia.com</a><br>
><br>
>> wrote:<br>
>><br>
><br>
><br>
>> I forgot to mention:<br>
>><br>
>><br>
>> Please revert php.ini back once the database population is complete.<br>
>><br>
>> The time also depends on whether the database and webserver are on the same<br>
>> machine or not.<br>
>><br>
>> Thanks<br>
>> Shyamala<br>
>><br>
>> ----- Original Message -----<br>
</div><div class="Ih2E3d">>> *From:* bharani kumar <<a href="mailto:bharanikumariyerphp@gmail.com">bharanikumariyerphp@gmail.com</a>><br>
>> *To:* <a href="mailto:support@drupal.org">support@drupal.org</a><br>
>> *Sent:* Thursday, August 07, 2008 10:28 AM<br>
>> *Subject:* Re: [support] CRON not run<br>
>><br>
>> Ok fine, i will try,<br>
>> Thanks<br>
>><br>
>> On Thu, Aug 7, 2008 at 10:15 AM, Shyamala Rajaram <<br>
>> <a href="mailto:shyamala@netlinkindia.com">shyamala@netlinkindia.com</a>> wrote:<br>
>><br>
>><br>
>>> Set php.ini execution_time=0.<br>
>>><br>
>>> The Cron should take approx 4hours.<br>
>>><br>
>>> Shyamala<br>
>>><br>
>>> ----- Original Message -----<br>
</div><div class="Ih2E3d">>>> *From:* bharani kumar <<a href="mailto:bharanikumariyerphp@gmail.com">bharanikumariyerphp@gmail.com</a>><br>
>>> *To:* <a href="mailto:support@drupal.org">support@drupal.org</a><br>
>>> *Sent:* Thursday, August 07, 2008 9:54 AM<br>
>>> *Subject:* Re: [support] CRON not run<br>
>>><br>
>>> It may take more than a day.. IS IT.. Ok am ready to run...<br>
>>><br>
>>> Can u plz tell the for this much records ..how much execution_time , i<br>
>>> have to set into the php.ini ....<br>
>>><br>
>>> presently i set as 3600 as execution time...<br>
>>><br>
>>> On Thu, Aug 7, 2008 at 9:29 AM, Shyamala Rajaram <<br>
>>> <a href="mailto:shyamala@netlinkindia.com">shyamala@netlinkindia.com</a>> wrote:<br>
>>><br>
>>><br>
>>>> just type <a href="http://www.mysite.com/cron.php" target="_blank">http://www.mysite.com/cron.php</a>, It may take soem time to<br>
>>>> index 30000 records, maybe more than a day.<br>
>>>><br>
>>>> Shyamala<br>
>>>><br>
>>>> ----- Original Message -----<br>
</div><div class="Ih2E3d">>>>> *From:* bharani kumar <<a href="mailto:bharanikumariyerphp@gmail.com">bharanikumariyerphp@gmail.com</a>><br>
>>>> *To:* <a href="mailto:support@drupal.org">support@drupal.org</a><br>
>>>> *Sent:* Wednesday, August 06, 2008 11:29 PM<br>
>>>> *Subject:* [support] CRON not run<br>
>>>><br>
>>>> Hi friends<br>
>>>><br>
>>>> Tell me alternate way to RUN the CRON,<br>
>>>><br>
>>>> Approximetly am having around 30000 records,<br>
>>>><br>
>>>> So manually running cron goes to failure state,<br>
>>>><br>
>>>> so Tell the another way to run the CRON...<br>
>>>><br>
>>>><br>
>>>> advance Thanks for great ideas<br>
>>>><br>
>>>> ------------------------------<br>
>>>><br>
>>>> --<br>
>>>> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>>>><br>
>>>><br>
>>> ------------------------------<br>
>>><br>
>>> --<br>
>>> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>>><br>
>>><br>
>>> --<br>
>>> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>>><br>
>>><br>
>> ------------------------------<br>
>><br>
>> --<br>
>> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>><br>
>><br>
>> --<br>
>> [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>><br>
>><br>
><br>
><br>
<br>
<br>
</div><font color="#888888">--<br>
<br>
Bill Fitzgerald<br>
<a href="http://funnymonkey.com" target="_blank">http://funnymonkey.com</a><br>
FunnyMonkey -- Tools for Teachers<br>
ph. 503 897 7160<br>
</font><div><div></div><div class="Wj3C7c"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>