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

How to insert a view into a usernode?

Hello, I created a couple of views using the great Views module (thanks merlinofchaos). Now, I installed the usernodes module and would like to replace the "links on user profile pages that lead to nodes created by that user, per node type" with a view I already have. I have installed the insert view module and realize that it will require some coding magic on the phptemplate level. So my questions are:

USING AN HTML form with a <select> drop down box element AS A MENU - MODULE REQUIRED???

Hi all, I need to implement a drop down menu with an HTML
element..
What I want is a list of projects to come in the tags and a submit button to allow to access
the actual chosen project's page when it gets clicked.
I am not sure of how I should be implementing this under drupal..
Would I require a special module? Would I need to access the POST/GET variables through a script place somewhere else?
Does anyone have any suggestions? Any examples of already made code?

cheers

macro language for category views?

Is there a macro language available to embed category views in a node similar to the insert_views module?

Richard

Icons for Control Panel Module.

I've put together a 16x16 icon pack using the tango icon theme - 182 icons.

Would it be accepted as a contribution?

I have a screenshot here :

Another here :

drupal-control-panel-module-tango-icon-theme.rar

It can be downloaded from above for at least one month (Current date 08/07/06) before it will be deleted by store and serve.

If this is downloaded at least once a month it will not be removed. Feel open to add it to the main project should it be required.

Related : fooods icons. Unfortunately not permitted because of the licence and looks too much like joomla.

I'm really happy with Drupal. You guys rock! Keep up the good work.

These control panel icon names may assist anyone wanting to create future icon packs, the documentation is not clear on how to name each related icon.

(View The Full Version If You Cannot View The Entire List.)

Here's a list of all the created icons :

control_panel_default.png
admin_flexiblock.png
admin_logs_hits.png
admin_logs_pages.png

Trouble comparing tables and displaying correct information.

Okay, am creating a checklist of books (two actually). This displays their name, price, rarity, and a checkbox. I have one list that shows all books that have been Read. One shows all books that have Not been read. In order to do this I have two tables.
One is called collector_books. This contains approx 1400 books, their prices, their rarity (just a number...ranking system for rarity), and an sid number.
Then I have a second table, called collector_books_read. This contains only two things sid and uid. This table is what will be storing the data to determine which books a user has read.

The coding below is what I am using to display what books a user has read or has not read. It works fine for displaying what books a user Has read. However, the modification I did to show what books a user has Not read, does not work. The modification is what I show below. The only thing I changed was the $query statement. When I want to show what books I have read, I have "WHERE A1.sid = A2.sid"...that works. I thought changing the Equals to Not Equals would be all I have to do to get it to work show ones that I have Not read...however, instead it displays all the books twice, with the exception of the ones I have read (the ones I have read only show up once). To me, this shows that it is SEMI-working because it is eliminating the ones I have read...but for some reason shows the entire first table again.

I hope that all made sense...I know, very wordy. Don't mind the checkboxes, I haven't gotten to the stage where I can actualy have users check stuff off to move it from unread to read...or vise-versa.

Help is appreciated. I'm quite new to all this php/mysql stuff so please talk in lamenst(sp?) terms.


<?php

global $user;

$db = mysql_connect("localhost", "collin","MYPASSWORD");

mysql_select_db("colliny2k_neo",$db);

$query="SELECT * FROM collector_books A1, collector_books_read A2 WHERE A1.sid <> A2.sid AND A2.uid = $user->uid ORDER BY A1.book ASC";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "Book Collector Checklist

new image_watermark.module needs some help

Hi community,

For a project of mine I'm in need of watermarked images in the image gallery. After searching and following some related threads there dosn't seem to be any public solid contributed solution out there yet that targets this issue. Nevertheless this feature is searched and desired by some other people and is often needed on professional photographer sites. Although my skills are limeted I thought I'll take a try, get involved, contribute something back to the community, learn, extend my skills and build my first drupal modul.

I noticed that it likely won't be a feature included in image.module because it's invented to be basic and feature less. So the right way to go seems to be a new module named image_watermark.module as a contribution to the image.module. Due to my low skills I've got some basic problems which a moderate developer should laugh about and may help me with ease. So here's what I've managed on my own by now. The following codeblocks are all placed in a file called image_watermark.module.

First I became friend with the form api and build the first basic administrative settings:

  • checkbox: to enable/disable the module
  • checkbox: to apply watermarks to thumbnails if desired (may be seperated in all from image.module generated sizes)
  • textfield: to set the location of the watermark image
  • selectbox: to choose where the watermark should be placed on the image (only center center works for now)

Pages

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