How to include jquery.js
Well, I just updated our company site then suddenly i have a error on one of my scripts written in jquery after a time searching for this problem i’ve noticed that jquery.js was not loaded. Solution...
View ArticleHow to create a image link in drupal using l() function
this snippet enables you to create a image link <?php $src = path_to_theme().'/images/images.jpg'; <?php print l('', 'LINK-TO-PAGE', array('attributes' => array('class' => 'anchor-class'),...
View ArticleUnable to send email in ubercart
“Unable to send e-mail. Please contact the site administrator if the problem persists.” after i completed my payment from paypal sandbox i got this error messages. What I did is I just configured the...
View ArticleHow to set-up paypal sandbox in ubercart
taken from Ubercart PayPal sandbox setup PayPal sandbox preface: The trick with the PayPal sandbox is you have 3 accounts. The primary account is your developer account. This logs you into...
View ArticleHow to redirect a form in drupal
<?php function MODULENAME_form_alter(&$form, $form_state, $form_id){ global $user; switch ($form_id) { // This is our form ID. case ‘YOUR_NODE_FORM_ID': // like page_node_form(for node/add/page)...
View Articlehow to override a specific output in drupal
Finding a hard time how to override a specific output in drupal? well, there’s a way how to do that for example, we will override the country field in addresses module located in address/address.inc...
View ArticleHow to show unread messages using privatemsg module
Recently, Im working on privatemsg module. I already customized the form: removing the subject field(replacing it with the node title), removing the recipients field, for these are some of the clients...
View ArticleWamp Error – [EparseError] No tray Icon was specified
I had an error about wamp recently: [EparseError] No tray Icon was specified I almost tried to re-install my wamp server, but stumbled upon finding things from google. The problem is in...
View Articlemax_allowed_packet error when importing a large database
I got max_allowed_packet error when importing a sql database from the server, anyways, I solved it through setting new values for this “max_allowed_packet”! ok, here it is 1. login to your mysql...
View Article