I need to develop an online service layer that will provide multi-role interactivity to end users on the behalf user agent/device/application (desktop or web widget) or output type (XML) they use.
So...
How is drupal as choice?
Is it possible to develop output
templates for each output type
required?
How to switch theme or output mode...
I have 5 sites on one apache server. One of the sites is with SSL. So when the other sites are accessed with https then they are redirected to the SSL site which is incorrect.
E.g.
https://x.com (with SSL)
http://y.com (normal site no SSL)
If I access https://y.com then I get the content from x.com. How can I fix so https:...
hi,
what's the best approach to change the background of my website at each visit ?
1) write php code, loading a random css file containing the background property
2) write php code, generating different html (and including the background property directly into html code
3) something else ?
thanks
...
I'm trying to modify value of the submitted field with php (server-side) to be send by mail and written to db:
hook_form_alter(&$form, &$form_state, $form_id)
changing of value looks easy, but nothing happens after I change it. Hook works.
...
The view with the custom query is being displayed in the right sidebar titled "Most Downloaded" here: http://tf2huds.com. The view with the query generated by views is right below it.
To put in the custom query I'm using this code in the views.module file:
<?php
function views_views_pre_execute(&$view) {
if($view->name=="hud_downloa...
I'm fed up with VB and looking to convert a big vBulletin board to Drupal. But I don't want to lose the links of the friendly urls and risk having everything re-indexed by Google. How can I maintain those urls? The site and huge has been around since 2002. I don't want to be penalised by Google.
...
Hello,
I have a page which should list nodes. The views is called from a locality page (a taxonomy term page). What I need is almost the same as using the Taxonomy: tid in arguments and passing the tid.
I can't use the term_node table, as (for other reasons) we have a custom table term_node_hierarchy (with nid and tid only). The table t...
I run drupal 6 and want to code this functionality:
after the user filled out the formular he can click an extra button, which will make the form readonly for him.
I thought about an hidden_field and an extra button, which after the user clicked the extra button set the hidden_field to a true state. When I load the node and the hidden_f...
I need to redirect certain content types to other nodes.
As a proof of concept I've got this working with a drupal_goto at the top of node--[type].tpl.php
This works great, but is probably the least optimized place to put it.
Would phptemplate_preprocess_node be too early?
What about hook_nodeapi, $op='view'?
Where's the smartest p...
for example , i have node with title 'services & containers' , drupal path or path_auto module will turn that title into a url string 'services-and-containers'.
I have looked up node, path, path_auto module, and did not found any function turns title into url.
could any one tells me which function, drupal used to to that?
...
I am really new to drupal and new to php.
I have some questions.
Suppose I have a drupal and a server running on my local machine, how does drupal interact with database? (database is mysql)
it doesn't matter which version of drupal it is, I just want to know how drupal interacts with database.
Thank you!
...
How would I approach this problem:
Background:
I have created a view that displays:
Username, FirstName, LastName, Email
I have added a dropdown filter to the view display that enables the filter of users based on user terms (a user tagging module), Or interests.
That works all good.
The problem:
I now want to add a email group li...
For example, in the registration form, there is "Username" and the text field for it which has the input type="text" name="name" ....
I need to know how can I get the title from the input field's name.
I'm expecting a function like:
$title = get_title_for_element('name');
Result:
assert($title == 'Username'); // is true
Is there ...
Dear fellas,
In the past, I've used Drupal-6 to implement a news portal.
I was able to complete my news portal fully. But frankly, Drupal has also given me a hard time in its usability and cumbersome development APIs.
Points of frustration were:
Things weren't as straight forward as I expected.
Needed a substantial amount of time ...
I'm having trouble with making a complex action with a CCK field.
The user provides a video id; then, using a cck compute field, i'm generating the unique hash to find the thumbnail of the image on the remote site; then, i don't know how to do this, but i want to 'fill up' a field (image type) with downloaded thumbnail and displayed wit...
By dynamic I mean I want to be able to change the sql query based on user input.
Say if this is my custom query, how do I change it so that it toggles between ORDER BY .. Descending and Ascending when a user clicks the column? Is this even possible when you override the query that Views generates?
<?php
function views_views_pre_execute...
hi,
I want to the price of my products to change according to the ordered quantity.
Ideally, i would like to see the price of the product dynamically change on the product page, according to the selected quantity.
Is there any module doing it in Ubercart ?
thanks
...
I have a view that gets its content from a taxonomy terms. This view generate around 10 blocks each block is for a certain term. I want to override the output of the block. So is there a proper way to do that? How can I use the preprocess functions to that?
...
Hi ! How can I ignore "The" when the user sorts a view in a Drupal site ?
...
How can I switch to a different theme template file for any node that I want?
I understand how to create sub-themes like node-recipes.tpl.php for a node that has a path of "recipes". But what I want to have control of the entire base template like page.tpl.php.
Can I use some preprocess function in template.php for this?
Right now I hav...