TheLoop21.com

input formats:
  • Filtered HTML:
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td><em> <b> <u> <i> <strong><font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code><cite> <embed> <iframe> <script> <object><strike> <caption> <param>

    • Video Filter

      You may insert videos from popular video sites by using a simple tag [video:URL].

      Examples:

      • Single video:
        [video:http://www.youtube.com/watch?v=uN1qUeId]
      • Random video out of multiple:
        [video:http://www.youtube.com/watch?v=uN1qUeId1,http://www.youtube.com/watch?v=uN1qUeId2]
      • Override default autoplay setting: [video:http://www.youtube.com/watch?v=uN1qUeId autoplay:1]
      • Override default width and height:
        [video:http://www.youtube.com/watch?v=uN1qUeId width:X height:Y]
      • Align the video:
        [video:http://www.youtube.com/watch?v=uN1qUeId align:right]

      Supported sites: YouTube, Google Video, Tangle, DailyMotion, Eyespot, Revver, Vimeo, Flickr Slideshows, Flickr Video, Game Videos, Meta Cafe, Game Trailers, College Humor, MySpace, Capped, Blip.tv, Slideshare, Picasa Slideshows.

      Special instructions:

      Some codecs need special input. You'll find those instructions here.
      • Slideshare:
        You need to construct your own URL, using the "Wordpress Embed" code from Slideshare, extract the "id" and "doc" parts, and form the URL like this: slideshare.net/?id=1759622&doc=usingdrupal-090723103440-phpapp01.
      • Picasa Slideshows:
        You must use the URL of the RSS feed for the Picasa album:
        1. View the album in Picasa (you should see thumbnails, not a slideshow).
        2. Find the "RSS" link and click it.
        3. Copy the resulting URL from the browser address bar. Example:
          [video: http://picasaweb.google.com/data/feed/base/user/USER_NAME/albumid/5568104935784209834?alt=rss&kind=photo&hl=en_US]
    • Using custom PHP code

      If you know how to script in PHP, Drupal gives you the power to embed any script you like. It will be executed when the page is viewed and dynamically embedded into the page. This gives you amazing flexibility and power, but of course with that comes danger and insecurity if you do not write good code. If you are not familiar with PHP, SQL or with the site engine, avoid experimenting with PHP because you can corrupt your database or render your site insecure or even unusable! If you do not plan to do fancy stuff with your content then you are probably better off with straight HTML.

      Remember that the code within each PHP item must be valid PHP code - including things like correctly terminating statements with a semicolon. It is highly recommended that you develop your code separately using a simple test script on top of a test database before migrating to your production environment.

      Notes:

      • You can use global variables, such as configuration parameters, within the scope of your PHP code but remember that global variables which have been given values in your code will retain these values in the engine afterwards.
      • register_globals is now set to off by default. If you need form information you need to get it from the "superglobals" $_POST, $_GET, etc.
      • You can either use the print or return statement to output the actual content for your item.

      A basic example:

      You want to have a box with the title "Welcome" that you use to greet your visitors. The content for this box could be created by going:

        print t("Welcome visitor, ... welcome message goes here ...");
      

      If we are however dealing with a registered user, we can customize the message by using:

        global $user;
        if ($user->uid) {
          print t("Welcome $user->name, ... welcome message goes here ...");
        }
        else {
          print t("Welcome visitor, ... welcome message goes here ...");
        }
      

      For more in-depth examples, we recommend that you check the existing Drupal code and use it as a starting point, especially for sidebar boxes.

    • Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized simply add a couple blank lines.
  • PHP code:
    • Using custom PHP code

      If you know how to script in PHP, Drupal gives you the power to embed any script you like. It will be executed when the page is viewed and dynamically embedded into the page. This gives you amazing flexibility and power, but of course with that comes danger and insecurity if you do not write good code. If you are not familiar with PHP, SQL or with the site engine, avoid experimenting with PHP because you can corrupt your database or render your site insecure or even unusable! If you do not plan to do fancy stuff with your content then you are probably better off with straight HTML.

      Remember that the code within each PHP item must be valid PHP code - including things like correctly terminating statements with a semicolon. It is highly recommended that you develop your code separately using a simple test script on top of a test database before migrating to your production environment.

      Notes:

      • You can use global variables, such as configuration parameters, within the scope of your PHP code but remember that global variables which have been given values in your code will retain these values in the engine afterwards.
      • register_globals is now set to off by default. If you need form information you need to get it from the "superglobals" $_POST, $_GET, etc.
      • You can either use the print or return statement to output the actual content for your item.

      A basic example:

      You want to have a box with the title "Welcome" that you use to greet your visitors. The content for this box could be created by going:

        print t("Welcome visitor, ... welcome message goes here ...");
      

      If we are however dealing with a registered user, we can customize the message by using:

        global $user;
        if ($user->uid) {
          print t("Welcome $user->name, ... welcome message goes here ...");
        }
        else {
          print t("Welcome visitor, ... welcome message goes here ...");
        }
      

      For more in-depth examples, we recommend that you check the existing Drupal code and use it as a starting point, especially for sidebar boxes.

theloop Twitter

twittercomment
  • I am not in favor of charter schools as I feel yet another layer is added to the educational system ... On Charter vs. Public Schools: Fear and loathing in education
  • While I don't disagree with the broad points of the article (don't try to keep up with the Joneses, ... On A "Lottery Ticket" is no ticket to wealth
  • Kim Kardashian allegedly decided at a young age that she wanted to be the star of a reality televi... On Why Kim Kardashian is bad for Armenian women
  • Interesting thought. Definitely something to consider. I think a lot of people like to stay close ... On It's time for a new Great Migration, out of the hood

Blogosphere

  • Culture Voice Fantasia is no Angelina Jolie
  • Schooled! Nine states, D.C. win 'Race to the Top' school reform competition
  • Post-Race? The Curious Case of Alvin Greene
  • Money Counts Buried in debt? How to get out without getting scammed
  • register
  • login

Search

  • rss
  • twitter
  • faceboook
  • myspace
  • black
  • Home
  • News
  • Money
  • Politics
  • Culture&Society
  • Entertainment

right-menu

  • Videos
  • Blogs
  • Community
Hot Topics
  • This Week's News
  • Unemployment
  • Personal Finance
  • Glenn Beck
  • Dr. Laura Schlessinger
  • Kendrick Meek
  • Restoring Honor Rally
  • HOME
  • MONEY
  • POLITICS
  • CULTURE & SOCIETY
  • ENTERTAINMENT

imageIn the Loop

  • Videos
  • Blogs
  • Photo Galleries
  • Loop Scoops

imageCommunity

  • Sign Up
  • Login
  • Discuss
  • Polls

imageThe Loop21

  • About Us
  • Contact Us
  • Work for Us
  • Advertise with Us

imageMore

  • Privacy Policy
  • Terms & Conditions

imageConnect with us:

  • image
  • image
  • image
  • image
  • image
Go Up?

Copyright© TheLoop21 All Rights Reserved