samir mankar
  • Member for 9 years, 8 months
  • Last seen this week
strange PDOException error 1153
4 votes

i think you need to increase your max_allowed_packet in your my.cnf/my.ini in mysql, maybe the problem is with packet size.

View answer
Why doesn't my code send emails?
3 votes

I think your code is good enough to send email, but you need SMTP server to send the mail (which you has not specified), in case you have a mail server , the easy solution is install SMTP module which ...

View answer
How to generate a stack trace upon errors
2 votes

in your drupal system in modules section under core modules their is syslog module to store log on the disk. hope it help what your looking for.

View answer
How to display text next to image drupal view?
2 votes

The simplest solution to your problem is, on right side in views there is a format option set it to Unformatted list, in settings do not select Add views row classes and Add striping (odd/even), first/...

View answer
How can I format a cell to not wrap in a themed table with the Antonelli/Bartik theme?
Accepted answer
2 votes

one way would be setting the min-width in the css to some value. this would ensure no matter what device it is being viewed it will set this minimum width. google up for sum css trick.

View answer
Organic Group Setup
2 votes

OG is will work perfectly for you. 1. User created group: in permissions give the members the permission to create group or or create a group with members having the permission to create the group( ...

View answer
AJAX post on node edit page
1 votes

The Drupal Ajax call is not affected by event.preventDefault in the above code, as neither the Click() or on('click') Jquery function gets executed on Drupal Ajax call. Please refer the link below ...

View answer
How to redirect to a certain page after logout from any link
Accepted answer
1 votes

If i am correct you want the user to to redirect to a certain page say test-page-3 from any page or url after logout. Enable the Trigger Module. In configuration go to Actions, -- there in Create an ...

View answer
How do you give permissions to certain roles to get certain menu items to display in the admin_menu toolbar?
1 votes

Select People or users in admin bar, the user section on the right side there is permissions tab click it. then scroll down to store section, there u can set the permission for each type of user in ...

View answer
How to correctly specify image links in a content type?
1 votes

First set $base_url in your settings.php file in sites/default/ directory. I am sure you are using ckeditor or some other editor. In editor setting use use relative URL for images and links. Make ...

View answer
Removing parts of a content type
0 votes

If you really want to do this by custom coding. Then create a custom Module. The following code will do this. function your_modulename_form_comment_form_alter(&$form, &$form_state, &$...

View answer
How to Get data of Content type in a custom view
Accepted answer
0 votes

This question seems to be answered already at How do I programmatically create a view?. In case you need the reference here is another link http://www.packtpub.com/article/creating-views-3-...

View answer
How to Get data of Content type in a custom view
0 votes

Just to be clear do you want to the data in View using some custom code, if not u can just go to Structure and then click Views. Then click add a new View. Add a name and select your custom content. ...

View answer
form submit function never gets called.
0 votes

This code has been taken from the form api reference: $form['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Submit'), '#weight' => 15, '#submit' => array('...

View answer
Show link based on role
0 votes

you can do this in following way say your seller roll machine_name is profile_seller then, < ?php if($user->**profile_seller** == "yes") { echo l(t("My offers"), 'user/' . $user->uid . '/...

View answer
How to create a view to display event registrants?
0 votes

For displaying user entries only one, open the Query settings: Settings located at bottom of the Advance section. There u can check the Distinct checkbox which will make the view display only ...

View answer
Site architecture - consistent paths, breadcrumb and menu
0 votes

I think instead of using Article content type, you should use Book content type. so you could create a book page named a-page, then a page named b-page and provide it a-page as parent in options below....

View answer
Foreign key for content type
0 votes

may be you could go to structure-> content type->product then edit product and click manage fields, you could add fields here. as already said above you should installed fileds, eninty modules first.

View answer
Private nodes in Private group are visible to non-members by their URL
0 votes

the group page is by default viewable to only the group members. secondly in global or group permission it has a coloumn for members, this column settings provides the setting for all logined users ...

View answer