0
votes
0answers
1 views
Retrieve deleted Heartbeat activity
I am using D7 + Hearbeat module
Previously my heartbeat setting was when cron runs delete activities older than a month. So a cron run removed the activities.
Is there any way of retrieving the ...
0
votes
0answers
2 views
Edit individual fieldgroups using lightbox
Is there a way to edit individual fieldgroups just like findthebest (http://smartphones.findthebest.com/l/427/Samsung-Galaxy-S4)?
They are showing each fieldgroup in a lightbox. I tried to use an ...
0
votes
0answers
5 views
Drush isn't bootstrapping drush script
I can't get drush to bootstrap my script. I'm using version 5.9.
Below is my test script (test.drush):
#!/usr/bin/env drush
$site = drush_sitealias_get_record('@site1');
...
0
votes
0answers
9 views
Multiple podcasts from a drupal install?
I'm helping to start a college radio station and we'd like to podcast the shows that we legally can (most have songs that we can't offer for download). I have given all of the DJs user accounts, and ...
1
vote
1answer
20 views
What is a one line mysql query that can update all body fields of matched nodes?
I am trying to do a bulk node update that affects 100+ nodes. I want to set each of these node's body field to a specific string. Say I want to affect all content types: "basic page".
Since my sql ...
2
votes
1answer
10 views
How can I create a Views field template per display?
I successfully could create a template file for views field after reading this page.
https://api.drupal.org/api/views/theme!theme.inc/group/views_templates/6
However ...
2
votes
0answers
12 views
How do I programatically submit a webform via drupal_form_submit?
Drupal 7, Webform 3
I want to programmatically submit a webform via drupal_form_submit. However, I'm having difficulty finding a $form_state structure that works. I've submitted my webform via the ui ...
0
votes
0answers
8 views
need desired output using views
The following fields are used -
Title: [some value] Year: [2011,2012,2013,2014,2014,2016] Volume: [01,02,03,04,05] Issue: [1,2,3,4,5] Description: [some text]
And I want a output display like the ...
0
votes
0answers
8 views
Set fields in uc_addresses checkout pane to disabled
I want to disable the billing address fields in uc_addresses so they cannot be altered by the user while they're checking out. However, I cannot find a form to use hook_form_alter on. It seems those ...
1
vote
1answer
16 views
Manually changing URL alias values via phpmyadmin? What does this affect?
I have a bunch of aliases in my url_alias table. I want to change the source of certain rows, but I'm not sure if it would affect anything. What I need to know is if the column PID in the url_alias ...
0
votes
1answer
8 views
hook_library: if two libraries share common file, might this cause files to get loaded in wrong order?
I am using hook_library to define two libraries:
mymodule_views_plugin_style_library
mymodule_views_plugin_row_library
The "style" library gets loaded in my custom style template: ...
0
votes
0answers
11 views
How to convert Drupal Field Collection to Node?
I am using Drupal 7 and have a Field Collection that I would like to convert to a custom content type (Node) with the exact same fields. What is the best way to do this? The field collection has the ...
0
votes
0answers
5 views
automatic image organizing with token
i want to have my users profile pictures to upload in site/default/pictures/userpictures/[username] .. i downloaded file field path module and tokens, and went to /admin/config/people/accounts and set ...
0
votes
1answer
12 views
How can I create a view that lists users who have NOT completed an Ubercart order?
I am helping with a Drupal 6 / Ubercart site that has tons of spam user accounts registered.
I want to create a view that will list spam accounts. My thinking is that users who have registered but ...
0
votes
0answers
11 views
D7: How to send a log in link to all OG members when that token isn´t available?
I´m using Organic Groups functionality in order to send emails to all members of a group in a D7 site.
I need to send them the login link, because those users were created but no welcome email were ...
0
votes
0answers
10 views
Views multiple values for uid
i have created a basic content View with contextual filter for Content: Author uid and set for Allow multiple values but i get nothing returned when i enter more than one uid for example 162,4.
...
0
votes
0answers
10 views
Using i18n API to store translations of strings in code
BACKGROUND I have a server setup where I work on a local copy of Drupal 6 on my machine, and deploy code changes to the production server. However, I can't deploy my database from local to remote as ...
0
votes
1answer
9 views
What is the best way to associate a product cost to a product in Drupal Commerce?
I have to purchase each of my products from my manufacturer. I want to store the cost for each product, so I can run reports and get my gross profit. I have not found any site that demonstrates how ...
2
votes
1answer
12 views
Passing Timestamp in the SQL Query to filter results
I've a query where I want to filter query results based on today, yesterday and week. I've written queries within Drupal 7 and it is as follows:-
$result = db_query("
SELECT
n.title, n.nid,
...
3
votes
2answers
25 views
Will empty hook definitions slow down a site?
I'm working on porting over some drupal 6 custom modules that another developer wrote, and I'm coming across some hook calls that are, with the exception of comments, completely empty. I'm likely ...
2
votes
1answer
14 views
Rendering fields with node display settings
I would like to take advantage of the settings I can set under admin/structure/types/manage/node_type/display when i render my custom fields in node--node_type.tpl.php but using the following code I ...
0
votes
1answer
19 views
Commerce product with customer defined attributes
Is it possible to create a product, for which before adding to the cart, customer must define some attributes. For example, I need a number field where the customer defines the size of the product ...
-1
votes
0answers
17 views
PDOException: SQLSTATE[HY000] [1130] Host xxx is not allowed to connect to this MySQL server in lock_may_be_available()
I am trying to setup a remote mysql db, but I started getting this message
PDOException: SQLSTATE[HY000] [1130] Host 'ip.here' is not allowed to connect to this MySQL server in ...
0
votes
0answers
11 views
How to update clientside validation rules in real time
I have a form in which a user can select the type of text input field that they would like to use (based on the available text input type fields that the clientside validation model supports - let's ...
0
votes
0answers
8 views
Filefield source Attach server-side files uploaded via FTP not working
I am using FileField Sources to attach server-side files uploaded via FTP in image field. But i can't get the images in the imce browser. Also try the IMCE for FileField. But can't produce the right ...
0
votes
1answer
18 views
Store the Logged in Users's Country in the DataBase
How could I store the country of the registered user, when he/she logs in. I am hoping I could store it in the DB to later retrieve it within the reports.
I am using Drupal 7.
Many Many Thanks.
0
votes
1answer
45 views
Display all Nodes associated to a Taxonomy term?
I currently have a list of Taxonomy terms: Fruit, Meat, Vegetables..etc. And I would like to add a drop down to a content type that will display all nodes and only the nodes that are associated to a ...
-1
votes
1answer
27 views
Unable to edit body text of block
There is a block on a site that I inherited which is not editable. Under 'Block specific spettings'' here is only a space for "Block title" -- nothing else.
0
votes
0answers
11 views
Optimizing page_manager_node_view
according to newrelic's dashboard /page_manager_node_view is:
most time consuming (97.1%)
slowest average response time (2050ms)
apdex most dissatisfying (95.6%)
highest throughput (14.4rpm)
I ...
0
votes
0answers
13 views
Custom Templete fields Drupal 7
Evening,
In Drupal 6, I was able to use a Row Style Fields template and create variables to arrange and print later ie:
foreach ($fields as $id => $field)
{
if ($field->label == "Phone") { ...
0
votes
0answers
7 views
How do I apply a defined Image Style as a View Mode for a File field?
I'm currently working my way through O'Reilly's "Using Drupal", but I appear to have reached an impasse.
I'm trying to specify a view mode for a File field-type which utilises the Media File Selector ...
0
votes
0answers
13 views
View contextual filter + exposed filter
I want to achieve a very basic thing.
My view have following "EXPOSED" filters with Industry. And Contextual filter of Taxonomy.
So when I do asia/agriculture. %1 should be Asia and it's coming ...
0
votes
0answers
13 views
How to hide Webform submit button until all mandatory fields have been selected?
I'd like to hide the submit button(s) on a multi-page webform until after all of the mandatory fields/options have been selected. Is that possible? If so, how?
Thanks!
-1
votes
0answers
13 views
Importing Contacts from Facebook using Facebook php SDK [closed]
I need to import contacts from facebook using Facebook php sdk. I am able to login using Facebook php SDK but after login the facebook object looks like this:
user:null
signedRequest=null
state=null
...
0
votes
1answer
19 views
Defining Devel generation rules for custom nodes
I have Devel module installed, I use it mostly for generating content.
I wanted to know if it was possible to define some custom rules to generate content for my custom nodes.
For example: I want ...
0
votes
2answers
40 views
How to set image style for particular image in node creation or edit?
I want to add some image style to the particular image, preferably the first image.
My idea is when creating the node, there is an option for check box. If the user selected the check box, a ...
1
vote
1answer
22 views
Drupal 7 Views Change the Query String
I have a complex View that needs to utilize multiple contextual filters. Currently to access the filters I need to separate the values with a "/". I'm attempting to code a solution that passes ...
0
votes
2answers
25 views
Module that adds   after one letter words
I'm Polish. In my language leaving one letter words at the end of the line is a mistake. I know i can deal with it adding after such words. Is there a module which takes care of it (eg. ...
0
votes
0answers
17 views
How can I add a tooltip for ubercart attribute radio button options?
I'd like to display some arbitrary text or (even better) the contents of a CCK field in a tooltip when a radio button option in a radio group attribute is selected/hovered over. Can that be done?
...
0
votes
2answers
25 views
Stay with 7.19 or hack 7.22 (to avoid the “itok” issue)
First things first, I don't need a DDoS prevention mechanism in Drupal since that is my server's job.
In all my Drupal installs, I usually hide the identity of Drupal for security reasons. Image ...
-1
votes
1answer
17 views
filedownloading is making the file to view instead of download in drupal7 [closed]
Hi i have followed Working with files in Drupal 7 and created the content type for file download.Everything is working fine i can upload a file and displaying it in the front page.But when i click on ...
0
votes
0answers
18 views
How to add custom elements on a menu callback page?
I need to build a page with a list of nodes (teasers) with a jquery slider gallery on top of it.
I have a menu callback named : MODULE_page_list():
{
global $user;
$build = array();
$query = ...
0
votes
2answers
16 views
Best way to migrate text field to taxonomy reference field
I want to migrate a text field to taxonomy reference field( the Tags one).
I've 1200 nodes having a field "Organization name". Those creating the content are making mistakes like misspelled company ...
4
votes
1answer
29 views
Remove CDATA script from the page source
On my site i am getting some unnecessary CDATA script on the page source.
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, ...
1
vote
3answers
25 views
Escape of Upscaling image in Scale and Crop option
I am using Image Style with Scale and Crop option with the dimension 110 * 110. If the style applies on small image it upscales the size to 110 * 110. I don't want to upscale it. How to do that?
0
votes
0answers
4 views
Change opacity for Colorbox and Colorbox Node
I need to change the opacity of the overlay that darkens the rest of the screen for Colorbox and Colorbox Node. Do I have to do this with CSS or is there a module setting? Thanks
0
votes
1answer
37 views
remake my php aplication to drupal module? [closed]
I have a dilemma.
I have my php aplication for ordering some products. But whole webpage is in drupal and when I want to use my aplication I have simple menu link to php page. I have no experience ...
0
votes
0answers
22 views
How to include a CCK on a page using Panels
I am trying to add display a CCK on page using panels
Initially , i created a Contact Us form CCk. Now i want the contact form to be displayed on a page, so that anonymous users can input their ...
0
votes
0answers
9 views
How to integrate cre loaded with drupal 7?
Is there any solid solution/module out there that will integrate cre loaded and drupal 7 together? With the integration, users just need to create one account to use both cre loaded and drupal's ...
4
votes
1answer
22 views
Module to list menu_router / path debug info?
Every now and then, mostly when looking at a new site, I find myself wanting to know
What's the source of this particular page?
Usually, I end up starting to dig in the menu_router table, and ...



