Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I would like to have a monthly archive in a block for my blog. I would like it to work something like the weekly node listning but on a monthly basis and only showing blogposts, nothing else. Is this possible??
I'm tired of running circles in this forum. Here's my problem: I use the image.module and I have many categories. I want to display images from only one category on the main homepage. I've tried to patch the image.module, tried lots of php snippets, and nothing seems to work. It seems like a simple feature, which will probably be easy for a developer to solve.
Could someone post an actual example of a php snippet for a nodequeue?
Its nice the syntax of the formal parameters is listed in the docs, but given that I dont have a program that calls
nodequeue_fetch_random(), instead I just have a story containing the snippet, I am not sure what to subsititute for the formal parameters.
The main vagueness is on the syntax of the qid. Is it ?q=admin/nodequeue/add/1 ???
or admin/nodequeue/1 ??
or 1 ??
What? An example would hopefully make it obvious.
I patched a section of the image module so that I could display the latest 5 thumbnails from a specific taxonomy id on my homepage. I'm using a PHP snippet to display the images. I refreshed the page, and now I get errors:
user error: You have an error in your SQL syntax near '' at line 1
query: SELECT n.nid FROM node n WHERE n.type='image' AND n.status=1 ORDER BY changed DESC LIMIT 0, in /home/virtual/site138/fst/var/www/html/detachedbmx.com/includes/database.mysql.inc on line 66.