Drupal is up and running but how do I ...?

Editing the code that <?php print $content; ?> spits out

How do I edit the code that print $content; spits out? I want to wrap it in a paragraph tag

tagging and pinging (social bookmarking)

hi!
Thank you all for great drupal and plugins! I'm very new in content management and have installed drupal on my site only recently. I have a few Q...

1) first, I'd like to make sure what you call taxonomy is what others (like social bookmark sites, like del.icio.us) call "tags"? it looks to me the same, does it also function the same?

2) how can I add more sites to the automated pinging list drupal uses whenever there's new content?
and is there a way to ping the tags?

3) i've purchased a tag&ping tutorial which came with 2 plugins - but to wordpress. i'd like to stick to drupal. does anyone know an alternative or a drupal solution that's similar?

  1. here's the first WP plugin:

    Plugin Name: WP-Sociable
    Plugin URI: http://www.maxpower.ca/sociable/2006/01/26/
    Version: 0.35 Beta
    Description: A simple plugin which lists a range of social bookmarking sites allowing visitors to quickly socially bookmark the post/page they are currently viewing. Usage instructions are available at maxpower.ca. Based on the work of Paul Stamatiou (visit his blog -- its good).
    Author: Kirk Montgomery

    example:

    // Check to see if user wants to fark [heh]
    if(strstr($wpsoc_sites_wanted,"fark")) { 
    // Fark This 
    echo "&nbsp;&nbsp;&nbsp;&nbsp;";
    echo "<a href=\"http://cgi.fark.com/cgi/fark/edit.pl?new_url=";
    echo $wpsoc_the_perm."&amp;new_comment=";
    echo $wpsoc_the_title_urlencode;
    echo "&amp;new_link_other=";
    echo $wpsoc_the_blogname;
    echo "&amp;linktype=".$wpsoc_the_fark_cat;
    echo "\" title=\"".$wpsoc_the_title_plain."\" rel=\"nofollow\" target=\"_blank\" />";
    echo "<img src=\"";
    echo $wpsoc_the_imgurl."fark.png\" class=\"socialbkmark\" ";
    echo "alt=\"Fark ";
    echo $wpsoc_the_title_plain." at Fark.com\"/></a>";
    //Fark'd it good
    }

    this thing works with del.icio.us, Spurl, wists, simpy, newsvine, blinklists, furl, reddit, fark, blogmarks.

  2. the second plugin:
    Plugin Name: My Tags
    Plugin URI: http://www.raoul.shacknet.nu/
    Description: Constructs URLS for your categories, which have the tag relation set and appends a tags section to your post's body in single post view and to the feed item's content.
    Version: 0.5

    Info:
    This plugin automatically creates "tag directory" tags from WPO categories, then sticks these specially formatted tags into each of your blog posts and the WP RSS feed.


    php code:

    function mt_add_my_tags($PostBody) {
    global $feed, $my_tags_url, $my_tags_style;

    if ( is_single() || ( is_feed() && !empty($feed)) ) {

    $MyCatTagStr = "

    Tags: ";
    foreach((get_the_category()) as $cat) {
    if ( empty($my_tags_url) ) {
    $MyCatTagStr .= "\ncat_ID), 0, -1) . "\" rel=\"tag directory\">" . $cat->cat_name . ", ";
    } else {
    $MyCatTagStr .= "\ncat_name . "\" rel=\"tag directory\">" . $cat->cat_name . ", ";
    }
    }
    $MyCatTagStr = substr($MyCatTagStr, 0, -2) . "\n

Drupal Spotlight Module?

Hi All,

Problem with webcomic module

Hi friends

i have installed the webcomic module. when i upload the episode,characterbio,storyline,strip. am getting the following error.gdlibrary is installed in my system. how to resolve this issue, can any one plz suggest me on this.

Fatal error: Unknown function: _image_get_sizes() in C:\xampp\htdocs\drupal\modules\webcomic\webcomic.module on line 201

thanks & regards
Shashi

New ecommerce module 4.7.2 installation problem

Drupal newb, LAMP expert here. Don't tone it down too much for me. I have drupal running, have installed new themes, and new modules, and so far we're all good, but I'm having trouble installing the ecommerce module(s).

First, a little bitch: I read the installation instructions. I uploaded the ENTIRE ecommerce directory, as it says to do, and my Administration > Modules node crashes. I just get a blank white page. I looked in the ecommerce directory, and there is no script in there of any kind, just three text information files. Obviously, Drupal cannot install that directory. When it looks for something to do, the module stares back with a dumb expression on it's face.

Since the instructions do mention it's a collection of modules, I thought I'd try uploading the entire contents of the ecommerce directory. Same blank stare from the admin module node.

I tried uploading the individual subdirectories one at a time, and that seemed to do it, but then some of them, docs, contrib, etc, give back the old blank node. I figured out that some of the directories don't contain modules directly, so I tried again without those. Still some break. Notably the 'store' sub-directory doesn't work. I understand this is kind of crucial.

NOTE: This is on my own LAMP test box, so I have complete control, and no actual Web site suffers. I also use phpmyadmin as it's easier to rummage round the DB's that way, but I have no probs administering MySQL manually either.

Organic Groups and assignment based on data provided at registration

Hi,
I need to assign a group to new users based either on the domain of their email address and some fields that are on the registration form (created using profile.module) as they register for the site. Registration is set to require admin approval. I am using Organic Groups to allow different sets of users to view different data.

Pages

Subscribe with RSS Subscribe to RSS - Post installation