Jump to content

logicslab

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by logicslab

  1. no result found friend , pls advise me Thanks, anes
  2. thanks i am searching for "WAMP url rewrite" now in Google
  3. Hi Dear friends, my need is also simple . My url is : http://localhost/zf2-tutorial/public/ I need to show same content in URL http://localhost/zf2-tutorial/ How it can done using .htaccess . please advise me Thanks, anes
  4. hi pals, I am Anes , a PHP Programmer . I need to implement a web cam tutorial in which a professor can take class in front of the web cam and student(s) can view it. is it possible to implement same using "Apache open meeting".If so , please tell the procedure to install same in my PC , windows 7 WAMP environment . I am really fresher in this field .... Waiting your reply ASAP Thanks Anes
  5. Hi Friends, I am new in OpenChat, My need is to create a Web cam and mic access of a tutor to his student(s) and can view his class through Web cam . I plan to install PHPOpenChat for same purpose. Is it enough ? My pc is Windows 7, WAMP , PHP 5.3.5 . I download the files of PHPOpenChat , in that download package include 3 directories named client,remoting,server. I don't know how to install same in my Wamp environment , please help me to install. Thanks Anes
  6. Actually it's give a hyper link above the success page of any content creation page (like page,article etc ...), To get that criteria just do the steps then get idea. Any way this question can answer by a Drupal developer who work in Drupal 7 or more. Thanks, Anes
  7. Hi Dear, I have a doubt regarding following procedure , it work fine in Article but not in "Page" creation (I mean the link is not proper), please help me with a solution , pls follow the steps and try to create an article and basic page and click the status link , you got my problem . To display an 'Add More [Content_type]' link after user saves new content, do the following: 1. Go to admin/config/workflow/rules 2. Click Add New Rule 3. At admin/config/workflow/rules/reaction/add, give your new Rule a name, something like 'Add more content link' 4. Optionally, you can provide tags to the rules for filtering in administration iterface, unless you have a lot of Rules, tagging isn't neccessary. 5. Under the 'React on event' section, go scroll to the 'Node' section and select 'after saving new content' 6. Save the Rule. 7. This takes you to admin/config/workflow/rules/reaction/manage/rules_[your_rule_name] where you can a screen to edit and further configure your new rule. On the Editing reaction rule '[Your Rule Name]' page, under the Events section, you will see an event named 'After saving new content'. This page has three sections: Events, Conditions, Actions and a Settings section. 8. In this tutorial, I will not be adding any conditions but, you could add conditons to restrict your rule to certain content types or certain roles for example. 9. Go to the Actions section and click Add action. This takes you to admin/config/workflow/rules/reaction/manage/rules_[your_rule_name]/add/1/action. 10. On the Add a new action page, there is a drop-down box named 'Select the action to add', click in this box and scoll down to the section labeled 'System' and select 'Show a message on the site'. 11. In the 'Message' text area, create a href link to add new content. I used something like '<a href="[site:url]/node/add/[node:content-type]">Click here to create another [node:content- type]</a>'. This allows the user to add new content of the same type that they just saved. You can change any of the tokens under the 'Replacement Pattern' dialog to customize your link and message to fit your needs. 12. Under 'Message Type' select 'Status' and under the 'Repeat Message' checkbox should be checked. 13. Click Save 14. You're done. Now you have a reaction rule that will raact when new content is added. ok Advise me Thanks Anes
  8. Hi Friend, I am a newbie in gr8 ocean of Drupal . AS PART OF MY VOYAGE I TRY TO INSTALL RULES MODULE , I PUT THE FILE IN MODULES FOLDER AS USUAL AND TRY TO INSTALL SAME IN ADMIN > MODULE. bUT IT SHOW THE CHECKBOXES DISABLED AS SHOWN IN THE ATTACHED IMAGE . I AM USING DRUPAL 7.0 . PLEASE GIVE ME A SOLUTION ASAP ... please help to install the dependent modules , I cannot find that 2 modules yet . THANKS aNES
  9. Hi Friends, I am a new comer in gr8 world of Drupal. How to create a page in drupal 7.1 with PHP code ? that's my real question. Do any one can telll me how it can implement and use . I set up a localhost version of drupal , so please advise me how it can implement. Thanks Anes
  10. Hi Friends, I am a new comer in gr8 world of Drupal . I read in a book about "Block Table Module --- contributed module that allows to embed all the block in a HTML Table" , but cannot find that module any where and how to use it. Do any one can telll me how it can implement and use . I set up a localhost version of drupal , so please advise me how it can implement. Thanks Anes
  11. Thanks Mikosiko for your clear reply .... Do you can suggest a good book for advanced mySql ideas? thanks Anes
  12. Hi pals, I create 2 tables with name tbl_project and tbl_issue and I plan to give Foreign key constraint for tbl_issue by giving alter table command as "ALTER TABLE `testdrive`.`tbl_issue` ADD CONSTRAINT `FK_issue_project` FOREIGN KEY (`project_id`) REFERENCES `tbl_project`(`id`) ON DELETE CASCADE ON UPDATE RESTRICT" It's successfully executed and when I check the table tbl_issue I found the Alter table command as "ALTER TABLE `tbl_issue` ADD CONSTRAINT `FK_issue_project` FOREIGN KEY (`project_id`) REFERENCES `tbl_project` (`id`) ON DELETE CASCADE;" there missing the "UPDATE RESTRICT" , I feel wonder why this like that ? Do you any one can explain why this ? If you have idea PLS EXPLAIN THANKS ANES
  13. Hi friends, I got a requirement map model(which is in flash actually), I need to implement same using jQuery. My required model url is : http://www.bww.com/Common/International.aspx there map is implemented in Continent basis . please click there then you really amazing .... please help me to do same. You can please contact me at anes(dot)pa(at)gmail.com Thankfully, Anes P.A
  14. Thanks Thorpe , I got the idea ... I am waiting for this answer YET ... my Special thanks to The Little Guy Too... Thankfully Anes P.A
  15. hi The Little Guy, Do I can Write this code directly in a PHP file to implement some trigger functionality. I really need it's usage in context of a real PHP Program. So I ask I need a "sample" Hello world Code . If any one know it , pls Help me thankfully Anes P.A :'(
  16. Hi the Little Guy, I mean a practical sample which work in Both PHP and MySql like we study Hello world sample in php .... I need an implementation code not any Stuff about Trigger details. Thankfully Anes
  17. Hi Pals, I am a PHP programmer like to know How I can implement mysql Database Trigger in my code. Do you can give a "Hello world" sample for same trigger idea. I am waiting your reply ASAP. Thankfully Anes P.A
  18. Hi Thorpe, I got the Solution, I just parse that manually Without Use eval() or json2.js library. Parsing normally is nice one, thanks for your apt Reply Regards Anes P.A
  19. Hi pals , I am really stuck in parsing a JSON string and take it's values. I got the json string as {"user":{"id":"1","firstname":"Freelogin","created":"0000-00-00 00:00:00","lastname":"Administrator","email":"fred@websecurify.com", "usergroup_id":"1","status":"1","ip_enable":"N","priv":"0","expire":""},"data":{ "1":{"5":{"last_update":"2010-12-13 16:16:16","status":"0"},"3":{"last_update":"2010-12-13 16:41:48","status":"1"}},"2":{"6":{"last_update":"2010-12-13 16:41:48","status":"1"}}},"server_array":[{"id":"1","name":"anes.yyy.net"},{ "id":"2","name":"neseema.xxx.net"}],"service_array":[{"id":"5","name":"POP3"}, {"id":"6","name":"Cpanel"},{"id":"3","name":"SMTP"}],"sort_by":"servername", "sort_order":"ASC","pagelinks":"","totrows":"2","offset":"0","limitvalue":"10", "rows_monitor":2,"current":"monitor","uri":false} Friends How to Parse this and take the Results for further processing in javascript.... I am waiting to hear from you Soon.. Regards Anes P.A
  20. Hi pals, I got a complex Array from the Query. it's Structure is like In this Result I have 2 Rows in result to show, I mean I need to merge the data of First (0th) and Third(2nd) element because it display the data of same item. So How it can done, I am working in that whole day but not get a solution fully.... I saw a near solution like : <?php $input = array( 0 => array ( 'id' => 160, 'payment_period' => 'Monthly', 'plan_payment_type_id' => 171, 'payment_type_id' => 4), 1 => Array ( 'id' => 160, 'payment_period' => 'Monthly', 'plan_payment_type_id' => 172, 'payment_type_id' => 5), 2 => Array ( 'id' => 161, 'payment_period' => 'Weekly', 'plan_payment_type_id' => 173, 'payment_type_id' => 9), ); echo "<pre>"; print_r($input); echo "</pre>"; echo "****************************************************************************"; $output = array(); $id_array = array(); $i = 0; foreach($input as $key=>$val) { if(array_key_exists($val['id'],$id_array)) { $pos = $id_array[$val['id']]; $output[$pos]['payment_types'][] = array('plan_payment_type_id'=> $val['plan_payment_type_id'],'payment_type_id' => $val['payment_type_id']); } else { $output[$i] = array('id' => $val['id'],'payment_period' => $val['payment_period'],'payment_types' => array(array('plan_payment_type_id'=> $val['plan_payment_type_id'],'payment_type_id' => $val['payment_type_id']))); $id_array[$val['id']] = $i; $i++; } } echo "<pre>"; print_r($output); echo "</pre>"; ?> But I cannot handle it nicely, please give any sample or helping code idea for same , waiting your immediate Reply Thankfully Anes P.A
  21. Hi Thorpe, I got some idea about jQuery.extends , thanks for your help , pls verify my idea as I know depicted below: $.extend(target,objects...) --->Extends the target object with one or more specified objects.Returns the original,unmodified object. It's used mainly in creating plugins. For example, in a plugin function there need some default objects, some time we need to pass our own preference(objects), in that time we need to extend the deafault object with our own eg: (function($) { $.fn.say = function(options) { var ops = { 'word' : 'Hello' }; return this.each(function() { if (options) { // here I merge the users inputted 'options' object // with my 'ops' object. $.extend(ops, options); } $(this).html(ops.word); }); }; })(jQuery); and call this as : $(document).ready(function() { $('div').say(); }); Would make all div's within a document contain the html 'Hello'. Now, using $.extend() we can override the word hello with 'goodbye'. $(document).ready(function() { $('div').say({word: 'Goodbye'}); }); Am I right Thorpe, If my understanding has any problem advise me Regards Anes P.A
  22. Hi pals, I am in a straight forward doubt. I use jQuery for a long time , but not use jQuery extends method, do any one can explain it's purpose and need . I don't get not much from reading jQuery Manual. So if you have a Good idea reply me with a Good explanation and example....I can understand user can create their own custom functions, pls explain ... Thankfully Anes P.A
  23. Hi Friends, I am come with a new query in jQuery. I have a listing form in which the details showed , the View more Details is implemented using Ajax. When Click "+" sign there is a loading image show First then the Result show there ... It's all working Fine , But I need a way to show Error I mean some time Server Response is success with Empty String on that time I need to catch same .... I explain code Below: if(proceed) { $.ajax({ type: "POST", data: "key="+id, dataType: 'json', async: true, url: "<?php echo site_url(); ?>/server/view_serverdet/", beforeSend: function() { $('#view_load'+id).show(); $('#view_load'+id).addClass(class); }, complete: function(){ $('#view_load'+id).hide(); } }, success: function (server_msg) { if (null == server_msg) { var warning = "<font color=\"red\">Unable to load server details</font>"; $('#view_load'+id).html(warning); } else { // Working Fine! } But that error Just Show and Hide ... How I can show that Error there, If you have any idea , pls help me ASAP... Thankfully Anes P.A
  24. Hi Adam, U are Absolutely Right, like You I don't Get the Actual Requirement of our Kimmie .... Regards Anes P.A
  25. Hi Geek, I think to give one Highlight to a Row when mouse is over is simple .... You can Study following code, and not make things complex it's not much complex .... <html> <head> <style type="text/css"> <!-- #mytable { border-collapse: collapse; width: 300px; } #mytable th, #mytable td { border: 1px solid #000; padding: 3px; } #mytable tr.highlight { background-color: #eee; } //--> </style> <script type="text/javascript" src="jquery-1.4.4.js"></script> <script type="text/javascript"> // var oldHistLength = history.length; // setInterval ( "checkHistory()", 100 ); $( function() { $("#mytable tr").hover( function() { $(this).addClass("highlight"); }, function() { $(this).removeClass("highlight"); } ) } ); </script> </head> <body > <table id="mytable"> <tr> <th>Foo</th> <td>Lorem</td> <td>Ipsum</td> </tr> <tr> <th>Bar</th> <td>Dolor</td> <td>Sit</td> </tr> <tr> <th>Baz</th> <td>Amet</td> <td>Consectetuer</td> </tr> </table> </body> Don't Worry abt PHP , it has no hand in highlighting !!! .... be happy coding Bye Anes
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.