node

How can we enable user's thumbnails on their drupal content?

Hi, everyone. I am going on making a Drupal site matches with my requirement. A requirement describes that on each node, such as Blog or Forum, except publisher's name and published date below the node's title, should show the user's thumbnail (similar to avatar in Facebook or Twitter) too. I thing there is an existing module for this ...

Drupal: Upgrade Node strategy

I effectively want two nodes: Normal Node Premium Node The only difference will be that the premium node can take more images and a few other features. What is the best strategy to go about this? have two distinct nodes with the differences have one nodes and somehow find a to apply an UPGRADED attribute to it? I would prefer (b)...

Changing node id by replacing the node

I am trying to polish off a nav menu by having a script that fetches the current page name (via $_SERVER["PHP_SELF"]) and then in JavaScript finds the relevant name (i.e. from /contact.php finds just contact) and searches for an element with that id (my list items have ids that match their target). Now I want to swap the id of the eleme...

Where does Drupal store NODE BODY content?

In the node table, you'll find everything EXCEPT the actual body. Where can I find this body text? I'm assuming it's being stored as a blob somewhere. ...

Where does Drupal store NODE data?

This is a follow up to my previous question: http://stackoverflow.com/questions/1284476/where-does-drupal-store-node-body-content Now, I tried adding values into node and node-revision, but still the node data is not showing. So, obviously more data is stored somewhere else. So basically, I want to know, which tables are affected when ...

Get Drupal Paths During node 'insert' operation with Pathauto enabled?

I'm writing a module that interfaces with Google Base. It needs to insert a link to the page that the item is on, however, this item has no path until pathauto runs. How can I either make sure pathauto runs its hooks before my module does, or get the path that will result from pathauto?. The solution needs to be generic enough to wo...

Determine Document Order from Nodes

If I have two nodes in an HTML document, how can I tell which one comes first in HTML document order in Javascript using DOM methods? For example, function funstuff(a, b) { //a and b can be any node in the DOM (text, element, etc) if(b comes before a in document order) { var t = b; b = a; a = t; } // process the...

Changing node name of xml-node with Java

Hey, I have following scenario: I have a XML-Document, e.g. like this <someRootElement> <tag1> <tag2 someKey=someValue someKey2=someValue2 /> <tag3/> <tag4 newKey=newValue newKey2=newValue2 /> </tag1> </someRootElement> Now I want the parent tag1 to be called reallyCoolTag without ...

Drupal6: How to handle node links in user profile attributes?

One of the fields in my user profiles is a list of nodes. (This list is generated automatically, based on other data on the site.) Currently, it displays like this: Nodes nid1, nid2, nid3 I want it to look like this: Nodes $nid1->title, $nid2->title, $nid3->title where each title is a link to its node. What is the ...

PHP's dom->createTextNode escapes some characthers

I am using dom->createTextNode() in PHP. I see that it automatically escapes characters e.g \/"" etc. According to the PHP's manual this is a standard behavior. Is it possible that it doesn't escape any characters? Thanks. ...

Limiting the total number of certain types of nodes a user may create in Drupal by role?

On my site, I have three roles: Role 1 Role 2 Role 3 Role 1 may only ever have 10 nodes of type "NODE_TYPE". Role 2 may only ever have 100 nodes of type "NODE_TYPE". Role 3 may only ever have 1000 nodes of type "NODE_TYPE". What can I use to enforce this? The following modules don't do the trick: node_limit user quota Anyone?...

How do you parse with SAX using Attributes & Values to a URL path using iPhone SDK?

I'm trying to get my head around parsing with SAX and thought a good place to start was the TopSongs example found at the iPhone Dev Center. I get most of it but when it comes to reaching Attributes and Values within a node I can't find a good example anywhere. The XML has a path to a URL for the coverArt. And the XML node looks like thi...

removenode in javascript chrome

Hi All, I want to removw a node from a page for that i am using the below mentioned function document.getElementById(id).removeNode(true); .This is working fine in IE but not in Chrome. Can anyone tell me how can i do that Thanks ...

javascript jquery childnode

hi All, I have a problem that i want to access the normaltagCmt elements value: <div id="random no"> <div id="normaltagdialog"> <table style="width:100%; height:100%" border="2px"> <tr style="width:100%; height:13%" align="left"> <td> <label> {$LANG.TEXT}</label> </td> </tr> <tr style="width:100%; hei...

Replace data of the node child

I have an xml file (Student.xml) like this <student> <studentinfo> <name> <first>John</first> <last>Doe</last> </name> <gender>male</gender> </studentinfo> </student> and my php code <?php $dom = new DOMDocument; $dom->load('Student.xml'); $student = $dom->documentElement; ...

Grouping non-cck fields in Drupal?

Currently you can only assign field groups to cck fields created on a content type. I want to be able to assign a field group to all the standard items (title, description and taxonomy) so as to group them together. Is there a way to do this without doing a form_alter? ...

Disable or grey out a node in the TreeNode Editor

How do I disable a specific node so the user can not select it. Hiding it for the user is also valid. I tried the Visible property but that hides the entire tree (all nodes). I only want a few of the nodes disabled/hidden. C# using Visual Studio 2005 TreeNode Editor. ...

Java tree node details

I have built a tree using JTree and I want to obtain the node details(like they appear in the frame drawn here). ...

JQuery XML option node

hi, I am having an issue with parsing XML with JQuery when there is a node with an option node <preferences><dashboard> <report id="si_pg_vw" order="0"> <header> <data> <option type="reportname" value="Page View"/> </data> </header> </report> the following code in firebug returns no children $reportElement.find("...

Drupal6: Every node view of a certain type leads to 404 error

For some reason, trying to view any node of a certain content type leads to a 404 error. When viewed in a View table, they display just fine. What could be happening? Viewing the database with phpMyAdmin shows the data just fine. The problematic node type was created with CCK. ...