Zope
  Home arrow Zope arrow Page 5 - Coffee, Conversation And ZUBB
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ZOPE

Coffee, Conversation And ZUBB
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 2
    2002-04-24


    Table of Contents:
  • Coffee, Conversation And ZUBB
  • On The Board
  • Speed Post
  • Lost And Found
  • A Custom Job
  • Linkzone

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Coffee, Conversation And ZUBB - A Custom Job
    ( Page 5 of 6 )

    It's quite possible that you won't like the plain-vanilla interface that ships with ZUBB by default. Not to worry - as with all things in Zope, customizing the appearance of the board to your own particular requirements is fairly simple.

    ZUBB comes with a default stylesheet named "local_css" - you'll see it in the folder containing the discussion forum. You can use this default stylesheet very simply, by creating a DTML method named "standard_html_header" and adding the following lines to it:

    <html> <head> <link rel="stylesheet" href="local_css" type="text/css"> </head> <body>
    Now, the next time you browse to the ZUBB forum, you should see something like this:



    You can now easily alter the appearance of the pages by modifying the style rules in the CSS file.

    If you take a look inside the folder containing the discussion board in the Zope management interface, you'll see a large number of DTML methods. Each of these methods contains, in addition to Zope program code, regular HTML formatting instructions that can also be used to alter the layout of the Web pages that make up ZUBB.

    Here's a list of the important methods in the folder

    index_html - the home page for the discussion forum

    instructions - the instructional text that appears when posting messages

    local_css - the stylesheet rules for the forum

    postForm - the form used to post new messages, or start new discussions threads

    post - the form processor for postForm

    new_posts - the list of new posts

    replyForm - the form used to reply to existing messages, or add to current threads

    reply - the form processor for replyForm

    searchForm - the search engine form

    search - the search engine form processor

    zubb_top_nav - the menu that appears at the top of every ZUBB page

    Using the Zope management interface, it's fairly simple to customize the appearance of each of these elements...and, if you're familiar with DTML, even alter how they work.

    Here's another example of a ZUBB forum customized in this manner:



     
     
    >>> More Zope Articles          >>> More By icarus, (c) Melonfire
     

       

    ZOPE ARTICLES

    - Creating Zope Products
    - Plone Content Types With Archetypes
    - Flat User Management in Zope
    - Creating Basic Zope Applications
    - Getting started with Zope for Linux and Sola...
    - ZPT Basics (part 4)
    - ZPT Basics (part 3)
    - ZPT Basics (part 2)
    - ZPT Basics (part 1)
    - Exception Handling In DTML
    - DTML Basics (part 4)
    - DTML Basics (part 3)
    - DTML Basics (part 2)
    - DTML Basics (part 1)
    - Using Zope With Apache





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek