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 use Yahoo publisher (like google adsense) on my sites, and I need some kind of custom blocks, I saw some of the post on making custom regions and blocks, but I'm really looking for a module I guess, that would make it as easy as possible.
Does anyone know if the adsense module would work for Yahoo Publisher?
Has anyone tried it?
I wrote my own hook_comment() mymodule_comment() to do some jobs while comments are deleted or posted. insert works just fine, but code in case 'delete' doesn't invoke when a comment is being deleted. I have no idea why. The following is the code
mymodule_comment(...)
switch ($op) {
case 'delete':
do this;
break;
Hi, my im putting together an ecom proposal for my employer's client.
I am pushing and OS CMS.... pretty easy argument to win
I would like to push an OS shopping cart.... a bit fuzzy here.
I get the impression from the forum that many feel the drupal ecom mod is not ready for prime time with in our scenario:
sale of media, physical goods, travel booking.
with drupal ecom we can set up for anything right? but whats this bit about not working with weight or multiple shipping solutions?
I need help with the creation of a custom module or block whichever is best. What I am creating is a people (user) page that will output the photo, username, and a few other profile fields for 6 random users. When this is clicked it will send you to the profile page for that user.
In the end this will have to be on a page with the the google user_location module.
Using the forums I have found this code which displays the users username and photo:
<?php
/*
* This php snippet loads up a random user object and displays their name and avatar.
* $count controls (x) number of users to display
* $no_avatar controls the path to the default avatar image to display.
*
* tested and works with drupal 4.6.x
*/
$count = 6;
$no_avatar = "Theme/images/NoPhoto.jpg";
$result = db_query_range(db_rewrite_sql("SELECT * FROM {users} u ORDER BY RAND()"), 0, $count);
while ($user_info = db_fetch_object($result)) {
if($user_info->uid){
if($user_info->picture){
print '