This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Total Bandwidth limiting on nodes

I've been wondering for sometime now whether they is any small module/util out here which one can use to see the total content(text, images etc) used/uploaded/submited by a user for all node types. Or whether it was possible to create something small to limit users' total upload/submissions to any node.

And there is one now, what would I need to know to start creating such a mod? i.e. any other mods I could modify, steel some ideas? functions...

Voice over IP or Voicechat module...webphone.module maybe ?

Hiya guys,

I'm toying with the idea of developing a Voice over IP or Voicechat module for a drupal community based site.

Voice over IP is quickly becoming one of the hottest things on the web...where two people can talk to each other phone-2-phone over the internet very very cheaply...the phone call basically goes across the internet as opposed to the phone lines..if you know what I mean.

So, my idea is very simple and am wondering what other drupalers think or if you guys have had experience of doing same/similar:

the functionality would be very simple:

a) in a drupal built community - not only would members be able to text chat online in the chat area (already possible via chatbox.module), but they would be also be able to have voicechat functionality...i.e. member AA clicks on a little phone icon that appears if the member ZZ is online...and connects the two in a voice chat. like a phone call..but simply computer-2-computer chat via the internet.

That's it. I think it would be very valuable for commercial/community based networking sites, for example. the text chatbox module is fine for community sites built around similar interests..but I'm thinking of taking that a step further...

I am fairly new to drupal..php etc. but I have managed to teach myself just about enough to "create" my first module...so what I'm doing now is checking out how other voice over IP systems work...or how webphones work with a view of just picking up on the core php that makes them work.

taxonomy_dhtml... little hack & $term

Hello everybody!

I need to do a little hack on this module... basically I've changed it a bit to have it on 3 columns and alphabetically.

Now I need to put a seperation between the terms. I.E.

C
Cars
Catering
CIdontknow

D
Database

so...... $term... how does it work? I am not really confy with objects.

Any way of trapping the error message from db_query?

I'm working on a module to "check out" and "check in" nodes, to get around the problem of multiple users updating the same node. A feature of this is that users can choose to "check out" the node so that it remains locked to other users even if they have finished editing it (that way they can come back to it later without fear of it being messed up).

The basic plan is this:
1) Create a new table "checkout" with uid/nid and timestamp. NID is a unique key (logically: more than one user cannot update a node at the same time)
2) Use nodeapi "validate": INSERT an entry into "checkout" with the nid and uid. If there is an error because the row already exists, then check to see if the associated uid is the same as current uid. If it is, then allow editing, if it is not then give an error message.

This all works ok, except that when the row exists I get an SQL error message across the top of the page. Since this is an accepted condition, I really want to trap that error message and use it in the code rather than have it display. It is possible to do this?

Why not do a SELECT first, you might ask?

Two reasons:
- I'm a bit uncertain about using START TRANSACTION and/or LOCK TABLES - afraid this would not fit in the Drupal DB abstraction layer.
- since most of the time people will only want to make sure nobody changes the node while they are actively editing it, then just

Tracker should allow to filter based on type

For example, now click on "My forum discussion" or "Active forum discussions" basically do the same as "recent posts". It does not taking into filter for FORUM topics ONLY.

Book Review

Ive been looking for a book-review module for drupal and found this. Which is for 4.4.0. It dosnt seem any bug reports have been answered in 4+ months. Someone posted a 4.5 update . Which fixed some stuff in the org one.

Im not sure if this is a bug (had it on both) but when Im an admin, I can't add content, it gives me this error:
warning: Invalid argument supplied for foreach() in

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions