<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">ExpressionEngine Wiki</title>
    <subtitle type="text">ExpressionEngine Wiki</subtitle>
    <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/" />
    <link rel="self" type="application/atom+xml" href="http://expressionengine.com/wiki/Special:Recentchanges_Atom" />
    <updated>2008-05-08T14:41:56Z</updated>
    <rights>Copyright (c) 2007, support@expressionengine.com</rights>
    <generator uri="http://www.pmachine.com/" version="1.6.3">ExpressionEngine</generator>
    <id>tag:expressionengine.com,2008:05:08:wiki</id>


    <entry>
      <title>Category:Extensions</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Category:Extensions/" />
      <id>tag:expressionengine.com,2008:wiki:Category:Extensions/36.6288</id>
      <published>2008-05-08T14:41:56Z</published>
      <updated>2008-05-08T14:41:56Z</updated>
      <author>
            <name>Laisvunas</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p><span style="color:red;"><b>Important</b>: This page is now superceded by our <a href="http://expressionengine.com/downloads/addons/">Addon-on Library</a>.&nbsp; Please <a href="http://expressionengine.com/downloads/submission/">submit your add-ons</a> there. </span>
</p>
<p>
___
</p>
<p>
This is for discussion of Extensions in EE.&nbsp; Extensions are custom scripts that interact with the core EE code base to increase functionality or alter it without hacking. Only available from EE 1.4 or higher.
</p>
<p>
Read more in <a href="http://www.expressionengine.com/forums/viewthread/29380">this thread on the EE Forum</a>.
</p>
<p>
---- 
<br />
</p><p><strong>Table of Contents</strong></p>
<ul id='toc' title='Table of Contents'>
	<li><a href='#WYSIWYG_Editor_Extensions'>WYSIWYG Editor Extensions</a></li>
	<li><a href='#Control_Panel_Extensions'>Control Panel Extensions</a></li>
	<li><a href='#Other_Extensions'>Other Extensions</a></li>
</ul>
<hr />

<h3 id='WYSIWYG_Editor_Extensions'>WYSIWYG Editor Extensions</h3>
<p>
&bull; <a href="http://expressionengine.com/wiki/FCKEditor/" title="FCKEditor">FCKEditor</a> Wiki Page
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/34318/">Shift FCKeditor - Another FCKEditor Extension</a>
<br />
&bull;  <a href="http://expressionengine.com/wiki/TinyMCE/" title="TinyMCE">TinyMCE</a> Wiki Page
<br />
&bull; <a href="http://www.expressionengine.com/wiki/Category:Extensions::WYSIWYG/">WYSIWYG Category Page</a>
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/31126/">Xinha Extension (WYSIWYG Editor)- beta</a>
<br />
&nbsp; &bull; <a href="http://www.expressionengine.com/forums/viewthread/34473/">New beta versian of Xinha extension</a>
<br />
&nbsp; &bull;  <a href="http://www.expressionengine.com/forums/viewthread/34818/">Release version of Xinha extension.</a>
</p>
<p>
</p><h3 id='Control_Panel_Extensions'>Control Panel Extensions</h3>
<p>
&bull; <a href="http://www.expressionengine.com/forums/viewthread/42310/">Auto Collapse Empty Custom Fields</a> - Collapses empty custom fields on the Publish Page.
<br />
&bull; <a href="http://docs.markhuot.com">Extensions (External Link):</a> Checkbox, Multi Drop-down List, Radio Buttons, Multi-text, LiveSearch, File Input Field, Duplicate Entry, Edit Remember, Empty Options, Custom Fields in EE Tags, Multi Relationship
<br />
&bull; <a href="http://expressionengine.com/forums/viewthread/65720/">Category Checkboxes</a> A checkbox replacement for the categories multi-select box on the Publish page.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewpost/180953/">Communicate Settings</a> allows you to specify default name, from, recipient, cc, and bcc values for the Communicate page.
<br />
&bull; <a href="http://expressionengine.com/forums/viewthread/68279/">Count Alias</a> - adds a &#123;count_alias&#125; and &#123;total_results_alias&#125; variable to the weblog tag
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/26184/">CP Entry Permalink</a>
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/40315/">Disable pMachine Feed</a> - disables the CP pMachine Feed Reader for all users
<br />
&bull; <a href="http://expressionengine.com/forums/viewthread/68277/">Edit Menu</a> - adds a weblog menu to the Edit tab
<br />
&bull; <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-add-sitename/">LG Add Sitename</a> - Easily modify your Expression Engine administration to show the current site name, images and more using simple CSS, XHTML.
<br />
&bull; <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-better-meta/">LG Better Meta</a> - Add and modify page meta data tags on a per entry level through a new publish tab. Improve your sites SEO with custom page titles, descriptions, robot meta tags and more.
<br />
&bull; <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-file-manager/">LG File Manager</a> - Integrate Moxicodes MCFileManager with Expression Engine using a new custom field type.
<br />
&bull; <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-image-manager/">LG Image Manager</a> - Integrate Moxicodes MCImageManager with Expression Engine using a new custom field type.
<br />
&bull; <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-member-list/">LG Member List</a> - Adds a new custom field type that adds a drop down populated with members to publish forms. Members can be grouped and specific member groups can be excluded.
<br />
&bull; <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-tinymce/">LG TinyMCE</a> - Integrate Moxicodes TinyMCE into the publish form using a custom field type. Supports GZip compression and comes with optimised configuration.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/38361/">Livesearch</a> - Enabling this extension adds a “Livesearch” field to the top of the admin tab.&nbsp; Typing in there will select entries and comments containing the inputted text.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/38845/">Multiple Newsletters</a> - Create multiple newsletters based on existing templates.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/34365/">NoFocus</a> - it stops the publish page from focusing the title once the page has completed loading. Download it from <a href="http://studio625.com/ee/nofocus/">here</a>
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/37840/P18/">PublishImprove</a> - Remove Quick Save button, Label the File Upload button, Add a home page editing link
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/40721/">Remove Modules Tab</a> - Removes the Modules tab from the Control Panel.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/40721/">Remove &#8220;My Account&#8221; Tab</a> - Removes the &#8220;My Account&#8221; tab from the Control Panel.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/35008/">Show Entry Views</a>
<br />
&bull; <a href="http://expressionengine.com/forums/viewreply/269190/">Strange URL Interpreter</a> - Gives ability to convert foreign-language characters in entry’s URL Title to proper characters
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/43383/">Tab Forward</a> - Brings a specified tab forward in the Entry Forms.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/37994/">Textarea Resizer</a> vertically resize textareas in Publish area.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/43003/">ViewPreview</a> - true previews of your entries
</p>
<p>
</p><h3 id='Other_Extensions'>Other Extensions</h3>
<p>
&bull; <a href="http://www.expressionengine.com/forums/viewthread/42264/">Atozee</a> - Alphabetic list of entries
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/68091/">Code Highlighter</a> - All highlighting is done through the use of stylesheets and a naming convention of your choice.
<br />
&bull; <a href="http://www.ennovy.org/weblog/comments/comment-text-formatting-extension/">Comment Text Formatting Extension</a> Applies Textile or Markdown text formatting to comments without having to wrap your comment text with a plugin tag.
<br />
&bull; <a href="http://coolclimate.ca/coollocation">CoolLocation</a> - Integrated Yahoo! or Google GeoCoding within Publish/Edit of the ExpressionEngine Control Panel.
<br />
&bull; <a href="http://www.lars-kirchhoff.de/go/journal/comments/exifier-extension/">Forum Exifier</a>. Adds Exif variables to the forum templates to use in combination with images attached to a post.&nbsp; 
<br />
&bull; <a href="http://www.lars-kirchhoff.de/go/journal/comments/videoplug-extension-for-forum/">Forum Videoplug</a> lets you use youtube and google video in your forum.
<br />
&bull; <a href="http://expressionengine.com/forums/viewthread/66604/">Logout Redirect</a>
<br />
&bull; <a href="http://simon.job.id.au/articles/498/mint-cookie-tag">Mint Cookie Tag</a> for use with the <a href="http://haveamint.com/">Mint</a> (stats package) pepper Nametags.
<br />
&bull; <a href="http://expressionengine.com/forums/viewreply/281015/">SAEF Auto Mailer</a>
<br />
&bull; <a href="http://gadgets.silenz.org/index.php/gadgets/item/simple-tags/">Simple Tags</a> - Allows tagging of weblog entries with words or phrases and retrieving entries based on their assigned tags.
<br />
&bull; <a href="http://www.expressionengine.com/forums/viewthread/35112/">UpdateMail</a> sends out a notification email on a new or updated post. download it from <a href="http://www.drivingmenuts.net/updatemail.php">here</a> (link changed - update your bookmarks!)
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Category:Plugins</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Category:Plugins/" />
      <id>tag:expressionengine.com,2008:wiki:Category:Plugins/710.6287</id>
      <published>2008-05-08T14:29:44Z</published>
      <updated>2008-05-08T14:29:44Z</updated>
      <author>
            <name>Laisvunas</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p><span style="color:red;"><b>Important</b>: This page is now superceded by our <a href="http://expressionengine.com/downloads/addons/">Addon-on Library</a>.&nbsp; Please <a href="http://expressionengine.com/downloads/submission/">submit your add-ons</a> there. </span>
</p>
<p>
___ 
</p>
<p>
Much like modules, plugins extend the functionality of EE. Plugins are more limited than modules in that they cannot store information, but are used for changing the behavior of tags or adding functionality &#8220;on the fly.&#8221; 
</p>
<h3 id='There_is_information_on_this_Wiki_for_the_following_plugins:'>There is information on this Wiki for the following plugins:</h3>
<p>
* <a href="http://expressionengine.com/wiki/Keywords/" title="Keywords">Keywords</a> 
<br />
* <a href="http://expressionengine.com/wiki/Feed_Enclosures_Plugin/" title="Feed_Enclosures_Plugin">Feed Enclosures Plugin</a>
</p>
<h3 id='Here_are_plugins_in_alphabetical_order_that_are_not_listed_at_the_EE_Plugins_site:'>Here are plugins (in alphabetical order) that are not listed at the EE Plugins site:</h3>
<p>
* <a href="http://loweblog.com/archive/2005/06/03/ee-allow-php-plugin/">AllowPHP</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/75452/">Browser Sniff </a> - allows you to find browser name and version and use them in EE conditionals
<br />
* <a href="http://gadgets.silenz.org/index.php/gadgets/comments/3-level-expanding-category-based-menu/">Category Expander</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/34757/">Clear Entry Views Plugin</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/42155/">CSVee</a>&#8212;Attain CSV files for custom SQL queries.
<br />
* <a href="http://expressionengine.com/forums/viewthread/35457/">Custom Text Plugin</a>&#8212;displays text from system language files as specified by the &#123;exp:custom_text&#125; tag. 
<br />
* <a href="http://expressionengine.com/forums/viewthread/34370/">Date Compare</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/59618/">Developer Plugin</a> - After adding the plugin tags to a template, and if you are logged in as a Super Admin, a small tab appears at the top left. Clicking this opens a pane with 6 tables of data: Weblogs, Member Groups, Categories, Weblog Fields, Admin Quicklinks and Weblog Entries. Each table line has shortcut links that will open that specific item in the CP in a new window.&nbsp; 
<br />
* <a href="http://media-cow.com/downloads/article/dynocat_plugin/">DynoCat Category plugin</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/59924/">Excerpt</a> - This plugin is designed to be wrapped around the &#123;full_text&#125; variable on your search results template.
<br />
* <a href="http://expressionengine.com/forums/viewthread/37056/">Extract URL Plus</a>&#8212;More functionality for your perusal.
<br />
* <a href="http://www.putyourlightson.net/projects/landing_page">Landing Page</a>&#8212;allows you to display relevant entries when a visitor is referred to your site from a search engine.
<br />
* <a href="http://leevigraham.com/cms-customisation/expressionengine/lg-multi-language">LG Multi Language</a>&#8212;Simple and easy to install frontend language switcher
<br />
* <a href="http://expressionengine.com/forums/viewthread/35451/">Localized Text Plugin</a>&#8212;localized text string variable loader.
<br />
* <a href="http://www.putyourlightson.net/projects/logmein">LogMeIn</a>&#8212;automatically log a site visitor in from any template without having to collect details from them, great for SAEF.
<br />
* <a href="http://expressionengine.com/forums/viewthread/70064/">Maximum Posts Reached</a>&#8212;Enables you to set a number of posts allowed per member group via an SAEF.
<br />
* <a href="http://expressionengine.com/forums/viewthread/34188/">Meta Words</a>&#8212;Get most frequent words for a template.
<br />
* <a href="http://gadgets.silenz.org/index.php/gadgets/item/mp3-info/">MP3 Info</a>&#8212;This plugin can be used to extract header information from a given mp3-file. 
<br />
* <a href="http://www.poweryams.com/index.php/software/plugin/15/">navTrail</a> 
<br />
* <a href="http://expressionengine.com/forums/viewthread/43752/">Pager Plugin</a> - plugin to split a field into multiple pages, without having to do the multi_field pagination trick
<br />
* <a href="http://gadgets.silenz.org/index.php/gadgets/item/random-sticky/">Random Sticky</a> - Randomly reassigns the ‘sticky’-flag(s) in a given weblog in fixed intervals.
<br />
* <a href="http://expressionengine.com/forums/viewthread/31242/">Redirect</a>
<br />
* <a href="http://studio625.com/ee/reeposition/">Reeposition</a> - allows you to move content from Point A to Point B  (<a href="http://expressionengine.com/forums/viewthread/37240/">related forum thread</a>)
<br />
* <a href="http://lincolnite.com/ee/repeet/">Repeet (beta)</a>&#8212;Displays Repeating Entries (<a href="http://expressionengine.com/forums/viewthread/31345/">related forum thread</a>).
<br />
* <a href="http://gadgets.silenz.org/index.php/gadgets/item/search-marker-plugin/">Search Marker</a> - when using the EE search module this plugin highlights the search terms on the search results page
<br />
* <a href="http://expressionengine.com/forums/viewthread/34621/">Search Term</a>&#8212;Format your search result excerpts, Google style!
<br />
* <a href="http://gadgets.silenz.org/index.php/gadgets/item/seo-gadget/">SEO gadget</a>&#8212;display various search engine stats from your referrer log
<br />
* <a href="http://expressionengine.com/forums/viewthread/26307/">Sliced Typography</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/78921/">Subsegment </a> - Split url segment into subsegment array and find any subsegment.
<br />
* <a href="http://expressionengine.com/forums/viewthread/34079/">Tag Limit</a>&#8212;Limit html output by tag.
<br />
* <a href="http://expressionengine.com/forums/viewthread/28196/">Template Language</a> 
<br />
* <a href="http://gadgets.silenz.org/index.php/gadgets/item/trimmer/">Trimmer</a>&#8212;Cuts X characters from the beginning and / or the end of a given text and returns the trimmed string.
<br />
* <a href="http://expressionengine.com/forums/viewthread/52344/">PHP Markdown Extra</a>&#8212;Updated version of Markdown plugin that utilizes <a href="http://www.michelf.com/projects/php-markdown/extra/">Michel Fortin&#8217;s additions</a>
<br />
* <a href="http://expressionengine.com/forums/viewthread/37805/">PHPStringFun</a> - Gateway to PHP’s string functions without needing to activate PHP in a template
</p>
      ]]></content>
    </entry>

    <entry>
      <title>TinyMCE</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/TinyMCE/" />
      <id>tag:expressionengine.com,2008:wiki:TinyMCE/413.6275</id>
      <published>2008-05-07T20:48:42Z</published>
      <updated>2008-05-07T20:48:42Z</updated>
      <author>
            <name>stickmus</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p><a href="http://expressionengine.com/wiki/Category:Extensions::WYSIWYG/" title="Category:Extensions::WYSIWYG">Category:Extensions -&gt; WYSIWYG</a>
</p>
<h3 id='TinyMCE'>TinyMCE</h3>
<p><strong>Table of Contents</strong></p>
<ul id='toc' title='Table of Contents'>
	<li><a href='#TinyMCE'>TinyMCE</a></li>
	<li><a href='#What_is_TinyMCE'>What is TinyMCE</a></li>
	<li><a href='#TinyMCE_Installation_Method_1'>TinyMCE Installation (Method 1)</a></li>
	<li><a href='#TinyMCE_Installation_Method_2'>TinyMCE Installation (Method 2)</a></li>
	<li><a href='#Tips_Tricks_for_using_TinyMCE_with_ExpressionEngine'>Tips &amp; Tricks for using TinyMCE with ExpressionEngine</a></li>
	<li><a href='#Threads_relating_to_TinyMCE_on_the_EE_Forums'>Threads relating to TinyMCE on the EE Forums</a></li>
</ul>
<hr />

<h3 id='What_is_TinyMCE'>What is TinyMCE</h3>
<p>
TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances. TinyMCE is very easy to integrate into other Content Management Systems.
</p>
<h3 id='TinyMCE_Installation_Method_1'>TinyMCE Installation (Method 1)</h3>
<p>
=================================================
<br />
Installing LG TinyMCE Extension w/ WYSIWYG Custom Field Type &amp; GZIP Support // METHOD 1
<br />
=================================================
</p>
<p>
This method adds a WYSIWYG custom field type to your existing choices. This allows you to have both WYSIWYG and non-WYSIWYG field types on the one page.
</p>
<p>
It also provides the option for using GZIP compression making the TinyMCE package 70% smaller.
</p>
<p>
<a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-tinymce/">Read the official documentation for LG TinyMCE</a>, <a href="http://www.trulyee.com/video/how-to-install-tinymce/">watch the video tutorial</a> or continue reading for an overview.
</p>
<p>
1.&nbsp; Download <a href="http://tinymce.moxiecode.com/download.php">TinyMCE</a> from their site and put it at the root of your EE site in a folder called scripts. The location of TinyMCE can be changed in the <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-tinymce/#settings/">extension settings</a>.
</p>
<p>
2. Download the <a href="http://leevigraham.com/cms-customisation/expressionengine/addon/lg-tinymce/">LG TinyMCE</a> extension for custom fields from the developers site or <a href="http://expressionengine.com/downloads/details/lg_tinymce_custom_field/">from here</a> if the developers site is down for any reason.
</p>
<p>
3.&nbsp; Upload the extension to your system folder.
</p>
<p>
4.&nbsp; Go into the Extensions Manager and enable the extension. You might have to enable extensions in general first, if this is your first extension, via the green button top-right. Then enable the extension itself by clicking (enable?) in it&#8217;s row.
</p>
<p>
5. In the Extensions Manager press the settings link of the extension and set the correct path to tinymce.js and TinyMCE settings.
</p>
<p>
6.&nbsp; Go to  Admin › Weblog Administration › Custom Weblog Fields &gt; and choose a group and a custom field where you want the TinyMCE to appear. In the FIELD TYPE drop-down list you will see an option &#8216;WYSIWYG&#8217;. Select it and save.
</p>
<h3 id='TinyMCE_Installation_Method_2'>TinyMCE Installation (Method 2)</h3>
<p>
==================================
<br />
Installing TinyMCE Extension // METHOD 2
<br />
==================================
</p>
<p>
1.&nbsp; Download <a href="http://tinymce.moxiecode.com/download.php">TinyMCE</a> from their site and put it at the root of your EE site 
<br />
(same directory as the path.php file):&nbsp; 
</p>
<p>
2. Download the <a href="http://expressionengine.com/files/extensions/tinymce.zip">TinyMCE</a>     Extension for TinyMCE from the pMachine website.
</p>
<p>
3.&nbsp; There are two files included in the <a href="http://expressionengine.com/files/extensions/tinymce.zip">TinyMCE Extension zip</a> downloaded in Step 2 (three if you could the readme.txt).&nbsp; Put the one with the ext. prefix into the /system/extensions folder for the site.&nbsp; Take the one with the lang. prefix and put it in the /system/language/english/ language folder.
</p>
<p>
4.&nbsp; Go into the <a href="http://expressionengine.com/docs/cp/admin/utilities/extension_manager.html">Extensions Manager</a> and enable the extension. You might have to enable extensions in general first, if this is your first extention, via the green button top-right. Then enable the extension itself by clicking (enable?) in it&#8217;s row.
</p>
<p>
5.&nbsp; Check it out in the Publish area.&nbsp; If the tinyMCE interface does not appear, try clearing all caches in [CP Home › System Administration &gt; Clear Cached Data].
</p>
<h3 id='Tips_Tricks_for_using_TinyMCE_with_ExpressionEngine'>Tips &amp; Tricks for using TinyMCE with ExpressionEngine</h3>
<p>
&bull; <a href="http://www.trulyee.com/video/how-to-install-tinymce/">Video tutorial on how to install TinyMCE</a>
<br />
&bull;  <a href="http://expressionengine.com/wiki/TinyMCE_and_ExpressionEngine_Integrated_File_Upload_Management/">TinyMCE &amp; ExpressionEngine Integrated File Upload Management</a>
<br />
&bull;  <a href="http://expressionengine.com/wiki/Installation_of_iBrowser/" title="Installation_of_iBrowser">Installation of iBrowser</a> with TinyMCE to handle images
</p>
<h3 id='Threads_relating_to_TinyMCE_on_the_EE_Forums'>Threads relating to TinyMCE on the EE Forums</h3>
<p>
&bull;  <a href="http://www.expressionengine.com/forums/viewthread/29422/">TinyMCE Settings</a>
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Tables List 1.6.3</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Tables_List_1.6.3/" />
      <id>tag:expressionengine.com,2008:wiki:Tables List 1.6.3/1175.6261</id>
      <published>2008-05-05T10:29:36Z</published>
      <updated>2008-05-05T10:29:36Z</updated>
      <author>
            <name>Sue Crocker</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p>Here is a list of the tables in 1.6.3:
<br />
(asterisks mark some important related tables)
</p>
<p>
     exp_actions     
<br />
     exp_blacklisted     
<br />
     exp_captcha     
<br />
     exp_categories     
<br />
     exp_category_field_data     
<br />
     exp_category_fields     
<br />
     exp_category_groups     
<br />
     exp_category_posts     
<br />
*   exp_comments     
<br />
    exp_cp_log     
<br />
    exp_email_cache     
<br />
    exp_email_cache_mg     
<br />
    exp_email_cache_ml     
<br />
    exp_email_console_cache     
<br />
    exp_email_tracker     
<br />
    exp_entry_groups     
<br />
    exp_entry_ping_status     
<br />
    exp_entry_versioning     
<br />
    exp_extensions     
<br />
    exp_field_formatting     
<br />
    exp_field_groups     
<br />
    exp_galleries     
<br />
    exp_gallery_categories     
<br />
    exp_gallery_comments     
<br />
    exp_gallery_entries     
<br />
    exp_global_variables     
<br />
    exp_html_buttons     
<br />
    exp_mailing_list     
<br />
    exp_mailing_list_queue     
<br />
    exp_mailing_lists     
<br />
    exp_member_bulletin_board     
<br />
    exp_member_data     
<br />
    exp_member_fields     
<br />
    exp_member_groups     
<br />
    exp_member_homepage     
<br />
    exp_member_search     
<br />
    exp_members     
<br />
    exp_message_attachments     
<br />
    exp_message_copies     
<br />
    exp_message_data     
<br />
    exp_message_folders     
<br />
    exp_message_listed     
<br />
    exp_metaweblog_api     
<br />
    exp_moblogs     
<br />
    exp_module_member_groups     
<br />
    exp_modules     
<br />
    exp_online_users     
<br />
    exp_pages_configuration     
<br />
    exp_password_lockout     
<br />
    exp_ping_servers     
<br />
    exp_referrers     
<br />
*   exp_relationships     
<br />
    exp_reset_password     
<br />
    exp_revision_tracker     
<br />
    exp_search     
<br />
    exp_search_log     
<br />
    exp_security_hashes     
<br />
    exp_sessions     
<br />
    exp_simple_commerce_emails     
<br />
    exp_simple_commerce_items     
<br />
    exp_simple_commerce_purchases     
<br />
    exp_sites     
<br />
    exp_specialty_templates     
<br />
    exp_stats     
<br />
    exp_status_groups     
<br />
    exp_status_no_access     
<br />
    exp_statuses     
<br />
    exp_temp_union     
<br />
    exp_template_groups     
<br />
    exp_template_member_groups     
<br />
    exp_template_no_access     
<br />
    exp_templates     
<br />
    exp_throttle     
<br />
    exp_trackbacks     
<br />
    exp_updated_site_pings     
<br />
    exp_updated_sites     
<br />
    exp_upload_no_access     
<br />
*   exp_upload_prefs     
<br />
*   exp_weblog_data     
<br />
*   exp_weblog_fields     
<br />
*   exp_weblog_member_groups     
<br />
*   exp_weblog_titles     
<br />
*   exp_weblogs     
<br />
    exp_wiki_categories     
<br />
    exp_wiki_category_articles     
<br />
    exp_wiki_namespaces     
<br />
    exp_wiki_page     
<br />
    exp_wiki_revisions     
<br />
    exp_wiki_search     
<br />
    exp_wiki_uploads     
<br />
    exp_wikis     
</p>
<p>
<a href="http://expressionengine.com/wiki/Category:Database/" title="Category:Database">Category:Database</a>
<br />
<a href="http://expressionengine.com/wiki/Category:Queries/" title="Category:Queries">Category:Queries</a>
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Remove index.php From URLs</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/" />
      <id>tag:expressionengine.com,2008:wiki:Remove index.php From URLs/251.6260</id>
      <published>2008-05-04T22:20:00Z</published>
      <updated>2008-05-04T22:20:00Z</updated>
      <author>
            <name>narration</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p><strong>Table of Contents</strong></p>
<ul id='toc' title='Table of Contents'>
	<li><a href='#Requirements'>Requirements</a></li>
	<li><a href='#Notes_Disclaimers'>Notes &amp; Disclaimers</a></li>
	<li><a href='#Instructions'>Instructions</a></li>
	<li><a href='#Special_note_for_IIS_users'>Special note for IIS users</a></li>
	<li><a href='#Introduction'>Introduction</a></li>
	<li><a href='#Include_List_Method'>&#8220;Include" List Method</a>
		<ul>
			<li><a href='#Generate_.htaccess_for_Include_List_Method_Automatically'>Generate .htaccess for &#8220;Include&#8221; List Method Automatically</a></li>
		</ul>
	</li>
	<li><a href='#Exclude_List_Method'>&#8220;Exclude" List Method</a></li>
	<li><a href='#File_and_Directory_Check_Method'>&#8220;File and Directory Check&#8221; Method</a></li>
	<li><a href='#Explanation'>Explanation</a></li>
	<li><a href='#Got_it_working'>Got it working</a></li>
	<li><a href='#Final_Notes'>Final Notes</a></li>
	<li><a href='#Removing_Template_Group_and_index.php_from_URL'>Removing Template Group and index.php from URL</a></li>
	<li><a href='#.htaccess'>.htaccess</a></li>
	<li><a href='#Note_on_robots.txt'>Note on robots.txt</a></li>
	<li><a href='#Control_Panel_Setup'>Control Panel Setup</a></li>
	<li><a href='#Caveats_Lovely_Word'>Caveats (Lovely Word)</a></li>
	<li><a href='#Added_code_to_take_care_of_EE_CSS_under_some_server_setups'> Added code to take care of EE CSS under some server setups</a></li>
</ul>
<hr />

<h3 id='Requirements'>Requirements</h3>
<p>
<b>To complete this tutorial you will need:</b> 
<br />
* A host/server using Apache or IIS for the webserver 
<br />
* Access to your .htaccess (Apache) file or httpd.conf (IIS) file in your root EE directory 
<br />
* Mod_rewrite enabled on your server (Apache on Windows or Linux) 
<br />
* ISAPI_Rewrite enable on your server (IIS for Windows Only!) 
</p>
<h3 id='Notes_Disclaimers'>Notes &amp; Disclaimers</h3>
<p>
-----
<br />
<i>Alternative: Renaming your index.php file</i>
<br />
As an alternative to this tutorial you might also want to look into a elegant 
<br />
and fairly easy way to rename (or copy) your index.php file to something you like. 
<br />
Like &#8220;gowild&#8221; in this example: http://www.example.com/gowild/weblog
<br />
see: <a href="http://expressionengine.com/docs/installation/renaming_index.html">http://expressionengine.com/docs/installation/renaming_index.html</a>
<br />
----
</p>
<p>
If using IIS, you can accomplish this using <a href="http://www.isapirewrite.com/">ISAPI_Rewrite</a>, see <a href="http://www.pmachine.com/forums/viewthread/29290/">this thread</a>. There is also a <a href="http://www.codeplex.com/IIRF">free ISAPI Rewrite module</a> (Microsoft Permissive License)and instructions for using it in <a href="http://expressionengine.com/forums/viewthread/56554"> this thread</a>.
</p>
<p>
If using Apache on both Windows and Linux you will need to have <a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">mod_rewrite module</a> enabled and active. 
</p>
<p>
The code contained in this section was posted on the EE forums, we claim no credit for it and no responsibility for what happens if you choose to use it. Mod_rewrite can be a tricky thing, so if you run into problems, <a href="http://www.pmachine.com/forum/">search the forums</a>, and otherwise you&#8217;re on your own! :) 
</p>
<h3 id='Instructions'>Instructions</h3>
<h3 id='Special_note_for_IIS_users'>Special note for IIS users</h3>
<p>
All of these methods have been tested and work on both IIS and Apache for both mod_rewrite and isapi_rewrite. For IIS you will need to change .htaccess to httpd.conf and it will still remain in your local root EE install directory. Please remember IIS users where you see .htaccess remember it should be httpd.conf. Linux users there is no change in your directions. If the httpd.conf method does not work for you then you will need to contact your hosting provider and ask them what your configurations file name should be. 
</p>
<h3 id='Introduction'>Introduction</h3>
<p>
Here&#8217;s a simple explanation of what we&#8217;re going to do: 
</p>
<p>
To remove &#8220;index.php&#8221; from your URLs we need to tell the server to parse all files as though they <i>did</i> have &#8220;index.php&#8221; in the URL, but just not show it to the user. We also need to tell the server to either treat *all* requests this way <i>except</i> those in specified EE Template Groups (exclude method) <b>OR</b> to *only* parse files <i>within</i> certain directories (EE template groups) this way (include method). (A third method, which removes index.php if the file or directory called does not exist, may have ramifications for how your site will be ranked by search engines.)
</p>
<p>
All three of these methods were developed by the users on the <a href="http://expressionengine.com/forums/">ExpressionEngine forums</a>.
</p>

<h3 id='Include_List_Method'>&#8220;Include" List Method</h3>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine on <br />RewriteCond </span><span style="color: #007700">$</span><span style="color: #0000BB">1 </span><span style="color: #007700">^(</span><span style="color: #0000BB">weblog</span><span style="color: #007700">|</span><span style="color: #0000BB">member</span><span style="color: #007700">|</span><span style="color: #0000BB">search</span><span style="color: #007700">|</span><span style="color: #0000BB">Forum_Name</span><span style="color: #007700">|</span><span style="color: #0000BB">TemplateGroup_4_Name</span><span style="color: #007700">|</span><span style="color: #0000BB">TemplateGroup_5_Name</span><span style="color: #007700">|</span><span style="color: #0000BB">P&#91;0</span><span style="color: #007700">-</span><span style="color: #0000BB">9&#93;&#123;2</span><span style="color: #007700">,</span><span style="color: #0000BB">8&#125;</span><span style="color: #007700">) </span><span style="color: #0000BB">&#91;NC&#93; <br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div> 
</p>
<p>
With this method you want to include all of the names of your EE Template Groups on the second line. Replace &#8220;TemplateGroup_#_Name&#8221; with your template groups and &#8220;Forum_Name&#8221; with the name you&#8217;re using for forums (e.g. forums, community, etc).
</p>
<p>
Don&#8217;t include any of your &#8220;real&#8221; directories on the server. In the future, if you add any new Template Groups then you&#8217;ll also need to update your <i>.htaccess</i> file to reflect the new Groups. 
</p>
<p>
The &#8220;P[0 -9]&#123;2,8&#125;&#8221; code makes sure that pagination links get processed by EE while the &#8220;[NC]&#8221; makes the RewriteCond case insensitive. 
</p>
<h4 id='Generate_.htaccess_for_Include_List_Method_Automatically'>Generate .htaccess for &#8220;Include&#8221; List Method Automatically</h4>
<p>
In a template, place the following, all by itself.&nbsp; Copy and paste carefully, making sure that you do not have any linebreaks in the second line (RewriteCond all the way to the &lt;br &gt;), or you will have whitespace in your rule that will cause it to break.&nbsp; All this does is output the code for you to copy and paste into your .htaccess, so put it into any template that is completely blank, then view the template, and c/p it into your .htaccess. This uses the &#123;site_url&#125; variable to rewrite to full URLs, but you can remove that and use a full path beginning with a &#8216;/&#8217; like the example above if you desire. <b>Webmasters wishing to utilize the &#8220;automatic&#8221; method must have a paid license, as it requires the Query module, which Core users do not have.</b>
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine On</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br </span><span style="color: #007700">/&gt;<br /></span><span style="color: #0000BB">RewriteCond </span><span style="color: #007700">$</span><span style="color: #0000BB">1 </span><span style="color: #007700">^(</span><span style="color: #0000BB">member</span><span style="color: #007700">|</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">query sql</span><span style="color: #007700">=</span><span style="color: #DD0000">"SELECT group_name FROM exp_template_groups"</span><span style="color: #0000BB">&#125;&#123;group_name&#125;</span><span style="color: #007700">|</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">query&#125;P&#91;0</span><span style="color: #007700">-</span><span style="color: #0000BB">9&#93;&#123;2</span><span style="color: #007700">,</span><span style="color: #0000BB">8&#125;</span><span style="color: #007700">) </span><span style="color: #0000BB">&#91;NC&#93;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">br </span><span style="color: #007700">/&gt;<br /></span><span style="color: #0000BB">RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div>
</p>
<h3 id='Exclude_List_Method'>&#8220;Exclude" List Method</h3>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine on <br />RewriteCond </span><span style="color: #007700">$</span><span style="color: #0000BB">1 </span><span style="color: #007700">!^(</span><span style="color: #0000BB">images</span><span style="color: #007700">|</span><span style="color: #0000BB">system</span><span style="color: #007700">|</span><span style="color: #0000BB">themes</span><span style="color: #007700">|</span><span style="color: #0000BB">favicon\</span><span style="color: #007700">.</span><span style="color: #0000BB">ico</span><span style="color: #007700">|</span><span style="color: #0000BB">robots\</span><span style="color: #007700">.</span><span style="color: #0000BB">txt</span><span style="color: #007700">|</span><span style="color: #0000BB">index\</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">) </span><span style="color: #0000BB">&#91;NC&#93;<br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div> 
</p>
<p>
This method is naturally the opposite of the &#8220;include&#8221; method. On the second line you want to include the names of all of your real directories on the server as well as the &#8220;index.php&#8221; file and any other non-EE files you want to make available. You do <b>not</b> include any of your Template Group names here. At the very least you should have your &#8220;images&#8221;, &#8220;themes&#8221;, and &#8220;system&#8221; directories (or whatever you renamed &#8220;system&#8221; to) listed. If you use a favicon.ico file it may be necessary to include that as well. If you have other directories at that same level then include them. In the future, if you add any new directories then you&#8217;ll also need to update your <i>.htaccess</i> file to reflect the new directories.
</p>
<h3 id='File_and_Directory_Check_Method'>&#8220;File and Directory Check&#8221; Method</h3><p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine On <br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">f <br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">d <br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div> 
</p>
<p>
With this method you will have the server check and see if the file or directory exists that you are trying to call, if it doesn&#8217;t then it will parse it as a EE compatible URI (EXP: http://www.mydomain.com/index.php/template_group/template_name/) without index.php, this method allows for extensions and external included applications such as (javascript files) to load correctly whereas older methods such as the &#8220;include&#8221; and &#8220;exclude&#8221; methods would not. 
</p>
<p>
For users with index.php located in a directory other than the root directory (e.g. &lt;nowiki&gt;http://www.pets.com/subdir1/index.php&lt;/nowiki&gt;), it may be necessary to rewrite the final line of code as: 
<br />
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteRule </span><span style="color: #007700">^(.*)$ </span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div> 
<br />
which removes the first &#8216;/&#8217; mark. 
</p>
<p>
The one drawback to this method is that image (or script or style sheet) tags that reference missing files will end up calling an EE page, not a 404 page. 
</p>
<p>
<b>Important note for SEO</b>:&nbsp; This method will serve all ExpressionEngine pages with a code 200 - which means that Error Code 404 - Not Found will never be delivered, even if EE is set to use it.&nbsp; The other methods may be more SEO friendly, though fiddler to work with.&nbsp; This information  is derived from <a href="http://expressionengine.com/forums/viewthread/38522/">this thread</a>.
</p>
<p>
</p><h3 id='Explanation'>Explanation</h3>
<p>
In each of these ways, you need only to separate your desired directories with the pipe character (looks like this | and usually is keyed Shift + \ ). 
</p>
<p>
There are two differences between the methods: 
</p>
<p>
# The Exclude list has the exclamation mark. 
<br />
# In addition to the directories/Template Group names, you must put index.php in the exclude list, lest bad things happen. :) 
</p>
<p>
Pick the method most appropriate for your needs, put it in your <i>.htaccess</i> file in your root public html directory (or wherever your EE main site index.php file is; not the one in the &#8220;system&#8221; directory), and away you go! I use the exclude method because I have far more EE template groups than I do non-EE directories (eg css, images, javascript directories) so its simpler to exclude them. <b>Remember to exclude your system directory too!</b> 
</p>
<h3 id='Got_it_working'>Got it working</h3>
<p>
Try accessing a url on your site <b>without</b> index.php and see if it works. It&#8217;s best to try accessing an older entry, because if it&#8217;s <i>not</i> working EE will just list all entries with the newest first, which can be confusing. Once you are confident it is working, you need to complete this step so internal URLs are generated without index.php in them (be sure to see the notes below too). 
</p>
<p>
Simply go to <b>Control Panel Home › Admin › System Preferences › General Configuration</b>, and delete the &#8216;Name of your site&#8217;s index page&#8217; value. Leave it completely blank. This will ensure EE-generated URLs don&#8217;t contain index.php. 
</p>
<h3 id='Final_Notes'>Final Notes</h3>
<p>
There is one caveat to this method, with a simple workaround. As discussed in <a href="http://www.pmachine.com/forums/viewthread/13100/">this thread</a>, <a href="http://www.pmachine.com/expressionengine/docs/templates/pagination/index.html">pagination links</a> can place &#8220;index.php/&#8221; in an inappropriate place in the actual pagination links, effectively breaking them. Thankfully, Lodewijk created a simple Find &amp; Replace plugin to remove &#8220;index.php/&#8221; from the url (thanks Lodewijk! :). It&#8217;s currently available <a href="http://loweblog.com/archive/2005/02/01/pireplacephp">at his site</a>, and is also available on the <a href="http://expressionengine.com/downloads/details/find_and_replace/">EE plugins site</a>. 
</p>
<p>
To use Lodewijk plugin/workaround, simply download and install it, and add&#8230; 
</p>
<p>
In my case:&nbsp; 
<br />
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace find</span><span style="color: #007700">=</span><span style="color: #DD0000">"/index.php"</span><span style="color: #0000BB">&#125;&#123;pagination_links&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace&#125;</span>
</code></div> 
<br />
</code>
<p>
In others, this may be appropriate:&nbsp; 
<br />
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace find</span><span style="color: #007700">=</span><span style="color: #DD0000">"index.php/"</span><span style="color: #0000BB">&#125;&#123;auto_path&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace&#125;</span>
</code></div> 
<br />
</code>
<p>
... in your pagination links, which solves the problem nicely. 
</p>
<h3 id='Removing_Template_Group_and_index.php_from_URL'>Removing Template Group and index.php from URL</h3>
<p>
In the case that you use one main Template Group for a site or sub-domain you may want to remove the Template Group and index.php from the URL in order to further simplify the URLs. The setup is very similar but there are some extra steps.
</p>
<p>
Because this has complex ramifications, removing the Template Group is <a href="http://expressionengine.com/wiki/Remove_Template_Group_From_URL/">strongly advised against</a>.
</p>
<h3 id='.htaccess'>.htaccess</h3>
<p>
First your .htaccess file is going get more complicated: 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine On <br /></span><span style="color: #FF8000">#Handle comment redirection <br /></span><span style="color: #0000BB">RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;THE_REQUEST&#125; </span><span style="color: #007700">!^</span><span style="color: #0000BB">POST <br />RewriteRule </span><span style="color: #007700">^</span><span style="color: #0000BB">template_group</span><span style="color: #007700">/?(.*)$ /$</span><span style="color: #0000BB">1 &#91;R</span><span style="color: #007700">=</span><span style="color: #0000BB">301</span><span style="color: #007700">,</span><span style="color: #0000BB">L&#93; <br /></span><span style="color: #FF8000">#Handle removal of index.php and template group from EE URLs <br /></span><span style="color: #0000BB">RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">f <br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">d <br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/</span><span style="color: #0000BB">template_group</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div> 
</p>
<p>
Here is what the additions to the .htaccess file are doing line by line. 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine on</span>
</code></div> 
</p>
<p>
Turns on the RewriteEngine for apache. 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;THE_REQUEST&#125; </span><span style="color: #007700">!^</span><span style="color: #0000BB">POST</span>
</code></div> 
</p>
<p>
After submitting a comment EE will redirect users to http://www.yourdomain.com/template_group/comment_template/entry_url since we are removing the Template Group this will not work for us. What the second line does is look in the HTTP request and see what type it is. If it is a POST request (such as the request sent after a comment is submitted) it ignores the third line (allowing the comment to make it to the database) and goes on to the fourth. If it isn&#8217;t a POST request then third line goes into action assuring the user gets redirected to the right page. 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteRule </span><span style="color: #007700">^</span><span style="color: #0000BB">template_group</span><span style="color: #007700">/?(.*)$ /$</span><span style="color: #0000BB">1 &#91;R</span><span style="color: #007700">=</span><span style="color: #0000BB">301</span><span style="color: #007700">,</span><span style="color: #0000BB">L&#93;</span>
</code></div> 
</p>
<p>
This line redirects the user to the correct page minus the template group. 
</p>
<p>
The rest of the .htaccess file is using the file and directory check method which works just like in the normal setup except that you have the template group in the rule as well as the index.php file. 
</p>
<p>
I recently had someone try to do all of this in a subdirectory instead of in the base directory. This confused things with the .htaccess setup a bit. Below is the .htaccess code that ended up solving the issue: 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine On <br /></span><span style="color: #FF8000">#Handle comment redirection <br /></span><span style="color: #0000BB">RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;THE_REQUEST&#125; </span><span style="color: #007700">!^</span><span style="color: #0000BB">POST <br />RewriteRule </span><span style="color: #007700">^</span><span style="color: #0000BB">template_group</span><span style="color: #007700">/?(.*)$ /</span><span style="color: #0000BB">sub_directory</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;R</span><span style="color: #007700">=</span><span style="color: #0000BB">301</span><span style="color: #007700">,</span><span style="color: #0000BB">L&#93; <br /></span><span style="color: #FF8000">#Handle removal of index.php and template group from EE URLs <br /></span><span style="color: #0000BB">RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">f <br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">d <br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">sub_directory</span><span style="color: #007700">/</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/</span><span style="color: #0000BB">template_group</span><span style="color: #007700">/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div> 
</p>
<p>
It is basically all the same except that the sub directory is included in the rules. 
</p>
<p>
</p><h3 id='Note_on_robots.txt'>Note on robots.txt</h3>
<p>
You might reflect the changes on your URL structure in your robots.txt file, which is a simple text file at the root of your domain that controls the behavior of search engine robots like Googlebot.
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">User</span><span style="color: #007700">-</span><span style="color: #0000BB">Agent</span><span style="color: #007700">: *<br /></span><span style="color: #0000BB">Disallow</span><span style="color: #007700">: /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #FF8000">/</span>
</code></div>
</p>
<p>
This code tells searchbots to igore webpages in the &#8216;directory&#8217; /index.php/. This isn&#8217;t a directory at all. It does however contain a duplicate of every file on your website! It is best to avoid duplicate content.
</p>
<p>
</p><h3 id='Control_Panel_Setup'>Control Panel Setup</h3>
<p>
Just like when removing just index.php from the URL you will need to go to <b>Control Panel Home › Admin › System Preferences › General Configuration</b>, and delete the &#8216;Name of your site&#8217;s index page&#8217; value. Leaving it completely blank. 
</p>
<p>
Then you will go to <b>Control Panel Home › Admin › Weblog Administration › Weblog Management</b> here chose the Preferences link for the Weblog that uses the Template Group you are removing. Under Path Settings remove the Template Group from all of the URL&#8217;s except the search one. 
</p>
<h3 id='Caveats_Lovely_Word'>Caveats (Lovely Word)</h3>
<p>
Just as with the previous changes there are some issues. One was already taken care of with the second and third lines of the .htaccess file. The other is that any place in your template where you use a tag that includes &#8220;path=template_group/template&#8221; you will have the template group in the given URL. In most cases this is easily solved by using one of the tags that will use the Path Settings you removed the template_group from (Such as the &#123;comment_url_title_auto_path&#125; tag. In other cases you will be able to use &#8220;path=template&#8221; instead of &#8220;path=template_group/template&#8221;. You may find a few cases where for some reason or other this does not work. And in those cases you can remove the template group using Lodewijk&#8217;s plugin. 
</p>
<p>
The final issue is again the Pagination links. This time the Template Group is placed in the URL as well. To remove it use Lodewijk&#8217;s plugin like this: 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace find</span><span style="color: #007700">=</span><span style="color: #DD0000">"template_group/index.php/"</span><span style="color: #0000BB">&#125;&#123;pagination_links&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace&#125;</span>
</code></div> 
</p>
<p>
In the Archive pages (or any other page that does pagination on something besides the main page) the problem is compounded. Not only does index.php and Template Group get placed the URL they are put in a spots that don&#8217;t make any sense (The pagination link URL&#8217;s will look something like this: http://www.yourdomain.com/index.php/template/template_group/). Because of the way it is placed you need to use a combination of Lodewijk&#8217;s plugin and the <a href="http://sacredsmile.com/yoga/EE/comments/replacestring-plugin1">Replace String plugin</a> by Sacred Smile. Put index.php into the Replace String Plugin&#8217;s array and used Lodewijk&#8217;s plugin to remove the Template Group. This looked something like this in the template: 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace find</span><span style="color: #007700">=</span><span style="color: #DD0000">"template_group/"</span><span style="color: #0000BB">&#125;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replacestring&#125;&#123;pagination_links&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replacestring&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace&#125;</span>
</code></div>
</p>
<p>
The latest version of the Lodewijk&#8217;s Find and Replace plugin supports multiple replacing, so the above result can also be achieved like this: 
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace find</span><span style="color: #007700">=</span><span style="color: #DD0000">"index.php/|template_group/" </span><span style="color: #0000BB">multiple</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes"</span><span style="color: #0000BB">&#125;&#123;pagination_links&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">replace&#125;</span>
</code></div> 
</p>
<p>
There is a potential performance hit from all of the added .htaccess rules as well as the added plugin usage. In my case the performance hit was unnoticeable. Your milage may vary. 
</p>
<h3 id='Added_code_to_take_care_of_EE_CSS_under_some_server_setups'> Added code to take care of EE CSS under some server setups</h3>
<p>
There are host site &#8216;fixups&#8217; going on (this one in early May 2008) where Apache or PHP config changes remove server variables that EE would like to depend upon. The latest has removed PATH_INFO completely, which has two effects:
</p>
<p>
- you need to slightly change how the index.php file removal is done
<br />
- you need to make the EE-built CSS links operate again, which come in form: 
<br />
<div class="codeblock"><code>
<span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//your.web.site/?css=templatename/cssname</span>
</code></div>
<br />
as you can see by looking at the emitted page source.
</p>
<p>
Here then is complete example code for an .htaccess:
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine On<br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;QUERY_STRING&#125; </span><span style="color: #007700">^(</span><span style="color: #0000BB">css</span><span style="color: #007700">=.*)$ </span><span style="color: #0000BB">&#91;NC&#93;<br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?/%</span><span style="color: #0000BB">1 &#91;L&#93;<br />RewriteCond </span><span style="color: #007700">$</span><span style="color: #0000BB">1 </span><span style="color: #007700">!^(</span><span style="color: #0000BB">images</span><span style="color: #007700">|</span><span style="color: #0000BB">yoursystem</span><span style="color: #007700">|</span><span style="color: #0000BB">themes</span><span style="color: #007700">|</span><span style="color: #0000BB">favicon</span><span style="color: #007700">/.</span><span style="color: #0000BB">ico</span><span style="color: #007700">|</span><span style="color: #0000BB">robots\</span><span style="color: #007700">.</span><span style="color: #0000BB">txt</span><span style="color: #007700">|</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">) </span><span style="color: #0000BB">&#91;NC&#93;<br />RewriteRule </span><span style="color: #007700">^(.*) /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div>
</p>
<p>
- first line turns on the Apache rewrite engine
<br />
- second line recognizes the css queries
<br />
- third line patches the /index.php/ onto the original css query
<br />
- fourth line is matcher for the method which recognize folders and filenames which should _not_ be changed. Be sure to have your own system and other folder/filenames.
<br />
- fifth line changes any others to be /index.php?/ plus the original path.&nbsp; Note the additional ? placed after index.php in the rule.
</p>
<p>
The [NC] tags say not to consider letter case; while the [L] tags signify last rule to execute for that cond(ition).
</p>
<p>
I found it necessary to have the QUERY_STRING case put first, before the lines for index.php removal, and think that is correct logically.
</p>
<p>
<a href="http://expressionengine.com/wiki/Category:URLs/" title="Category:URLs">Category:URLs</a> <a href="http://expressionengine.com/wiki/Category:SEO/" title="Category:SEO">Category:SEO</a>
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Pages Quick Start Guide</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Pages_Quick_Start_Guide/" />
      <id>tag:expressionengine.com,2008:wiki:Pages Quick Start Guide/724.6251</id>
      <published>2008-05-03T01:54:40Z</published>
      <updated>2008-05-03T01:54:40Z</updated>
      <author>
            <name>Susan</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p>There have been some questions about how to utilize the EE Pages module. Here is a quick-start tutorial. (Make sure the module is installed; otherwise, the &#8216;Pages&#8217; tab will not appear in your &#8216;Publish&#8217; window.)
</p>
<p>
The EE Pages module uses the weblog entries tag. 
</p>
<p>
So, at its most basic:
</p>
<p>
Create a totally blank template  in the “site” template group and called it “animalia”.&nbsp; Put this code in into the template:
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"default_site" </span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"1" </span><span style="color: #0000BB">rdf</span><span style="color: #007700">=</span><span style="color: #DD0000">"off" </span><span style="color: #0000BB">disable</span><span style="color: #007700">=</span><span style="color: #DD0000">"trackbacks"</span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;body&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;</span>
</code></div>
</p>
<p>
or
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"default_site" </span><span style="color: #0000BB">show_pages</span><span style="color: #007700">=</span><span style="color: #DD0000">"yes" </span><span style="color: #0000BB">rdf</span><span style="color: #007700">=</span><span style="color: #DD0000">"off" </span><span style="color: #0000BB">disable</span><span style="color: #007700">=</span><span style="color: #DD0000">"trackbacks"</span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;body&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;</span>
</code></div>
</p>
<p>
Now, create a Page, any page.&nbsp; Lets call it “wolves rock”. (You can do this either by selecting &#8216;Create a New Page&#8217; from the module window or normally via &#8216;Publish&#8217;.)
</p>
<p>
If the module is installed (it comes standard starting with version 1.6), you&#8217;ll see a &#8216;Pages&#8217; tab at the top of the entry editing window, next to Categories, Options, etc.&nbsp; Click there and put in any URI.&nbsp; For example:
</p>
<p>
<div class="codeblock"><code>
<span style="color: #007700">/</span><span style="color: #0000BB">animals</span><span style="color: #007700">/</span><span style="color: #0000BB">canine</span><span style="color: #007700">/</span><span style="color: #0000BB">feral</span><span style="color: #007700">/</span><span style="color: #0000BB">wolves</span><span style="color: #FF8000">/</span>
</code></div>
</p>
<p>
Below, that - still in the &#8216;Pages&#8217; tab - enter the page template. Choose site/animalia.(*)
</p>
<p>
In the Title of the Publish form, enter this:
<br />
<div class="codeblock"><code>
<span style="color: #0000BB">All About Wolves</span>
</code></div>
</p>
<p>
In the Body of the Publish form, enter this:
<br />
<div class="codeblock"><code>
<span style="color: #0000BB">Wolves are the best animals ever</span><span style="color: #007700">.</span>
</code></div>
</p>
<p>
Click the Submit button.
</p>
<p>
Now, go to http://www.example.com/index.php/animals/canine/feral/wolves
</p>
<p>
You should see:
</p>
<p>
<img src="http://expressionengine.com/wiki/55924a2d1c522d7c9b3769c680efe8db/"  alt='55924a2d1c522d7c9b3769c680efe8db' />
</p>
<p>
Style as you want, use that template for whatever Pages you want, set the URL as needed.&nbsp; It works with any template that has a weblog entries tag in it, as long as you haven’t specifically restricted that weblog entries tag from showing pages.
</p>
<p>
See <a href="http://expressionengine.com/docs/cp/publish/index.html#tab_pages">here</a> and <a href="http://expressionengine.com/docs/modules/pages/manage_page_content.html">here</a> for more information from the user guide.
</p>
<p>
<a href="http://expressionengine.com/wiki/Category:Modules::Pages/" title="Category:Modules::Pages">Category:Modules -&gt; Pages</a>
</p>
<p>
(*)Note; If you have a template group such as &#8220;animals&#8221;, and choose a URI for a particular page that is identical, the template assigned to that paticular page will appear instead of the default index file for a template group.
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Ad banners in discussion module</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Ad_banners_in_discussion_module/" />
      <id>tag:expressionengine.com,2008:wiki:Ad banners in discussion module/950.6243</id>
      <published>2008-04-30T20:37:53Z</published>
      <updated>2008-04-30T20:37:53Z</updated>
      <author>
            <name>handyman</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p>Keywords: Openads, adverts, separate ads in different forums, forum ads, discussion module banner ads
</p>
<p>
Problem: The discussion module works off of one main template, theme_global.php in the forum themes directory.
</p>
<p>
A user who wishes to place general google ads or rotating ads from a program or script can usually simply insert the Javascript banner ad code in certain places, most likely:
<br />
1. In the page sub-header (for top banner)
<br />
and
<br />
2. In the HTML footer - near the bottom of that code before the last body (end) tag.
</p>
<p>
But neither of these solve the problem of placing different ads in different forums! For instance, if you have a site on remodeling, and have three forums:
<br />
A. Roofing
<br />
B. Electrical
<br />
C. Plumbing
</p>
<p>
It would be nice to be able to offer ad programs to your sponsors in their targeted forums. That would give you more inventory to &#8220;sell&#8221;, and also keep the sponsor happier. 
</p>
<p>
Here is the solution that I hacked together for beginners. Please feel free to improve or add to this and/or email me.
</p>
<p>
Going a bit further, we need code that will allow us to assign sponsors to particular forums, but also allow google ads (or other default ads) to show up when there is not a sponsor!
</p>
<p>
Ok, so without further ado....this needs to be between Javascript tags.
</p>
<p>
<div class="codeblock"><code>
<span style="color: #007700">&lt;!--<br /></span><span style="color: #0000BB">google_ad_client </span><span style="color: #007700">= </span><span style="color: #DD0000">"pub-3514144mygoogleid"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">google_ad_width </span><span style="color: #007700">= </span><span style="color: #0000BB">728</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">google_ad_height </span><span style="color: #007700">= </span><span style="color: #0000BB">90</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">google_ad_format </span><span style="color: #007700">= </span><span style="color: #DD0000">"728x90_as"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">google_ad_type </span><span style="color: #007700">= </span><span style="color: #DD0000">"text_image"</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//2007-12-08: Forum Channel Header<br /></span><span style="color: #0000BB">google_ad_channel </span><span style="color: #007700">= </span><span style="color: #DD0000">"123654myadchannel"</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//--&gt;<br /><br /></span><span style="color: #007700">var </span><span style="color: #0000BB">myForumString </span><span style="color: #007700">= </span><span style="color: #DD0000">"&#123;path:rss&#125;"</span><span style="color: #007700">;<br />var </span><span style="color: #0000BB">myFSResult </span><span style="color: #007700">= </span><span style="color: #0000BB">myForumString</span><span style="color: #007700">.</span><span style="color: #0000BB">split</span><span style="color: #007700">(</span><span style="color: #DD0000">"/"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#91;removed&#93;</span><span style="color: #007700">(</span><span style="color: #0000BB">myFSResult&#91;7&#93;</span><span style="color: #007700">);<br /><br />function </span><span style="color: #0000BB">staticLoadScript</span><span style="color: #007700">(</span><span style="color: #0000BB">url</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">&#123;<br /> document </span><span style="color: #007700">. </span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #DD0000">'&lt;\/script&gt;'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;<br /><br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">myFSResult&#91;7&#93; </span><span style="color: #007700">&gt;= </span><span style="color: #0000BB">2</span><span style="color: #007700">)<br /><br /></span><span style="color: #0000BB">&#123;<br />staticLoadScript</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://www.hearth.com/cgi-bin/goldt" </span><span style="color: #007700">+ </span><span style="color: #0000BB">myFSResult&#91;7&#93; </span><span style="color: #007700">+ </span><span style="color: #DD0000">'.' </span><span style="color: #007700">+ </span><span style="color: #DD0000">"pl?jscript"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">else<br /></span><span style="color: #0000BB">&#123;<br />staticLoadScript</span><span style="color: #007700">(</span><span style="color: #DD0000">"http://pagead2.googlesyndication.com/pagead/show_ads.js"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;</span>
</code></div>
</p>
<p>
Note that the spaces between the document-write command must be removed! Leave the period.
</p>
<p>
How it works:
<br />
The code at the beginning of the script sets up the google ads in case we decide to use them (further down).
<br />
The line with the path:rss simply grabs the path of your server - in this case a URL like:
<br />
http://www.hearth.com/econtent/index.php/forums/rss/22/
</p>
<p>
The /22/ is the key to the city!
<br />
So the next 2 lines chops off the 22, it being the 7th segment of the URL, and then assigns it to a variable.
</p>
<p>
Then the function places that variable into a URL string which calls the banner program on your server. In my case, I use Adverts, which allows me to simply call a separate copy of the ad serving script named:
<br />
--- http://www.hearth.com/cgi-bin/goldt22.pl?jscript ---
</p>
<p>
See the forum name appended to the end of the script name? 
</p>
<p>
Then there is a code which says &#8220;if the forum number is greater than 2, load up the corresponding ad script - if it is not, continue and load the rest of the google ad code. This assures that some ad (the goggle) will be called on those in-between pages like the front forum page and members profiles, etc.
</p>
<p>
Google gives that code out for their adsense program, so you don&#8217;t need to write it!
</p>
<p>
The space before and after the period between document and write must be removed.
<br />
This script works with the URL which is made up for the rss or atom feed, and sucks the number from it, for use in the url that calls the ad script. 
</p>
<p>
When installing and trouble shooting this script, my suggestion is this:
</p>
<p>
1. Install it in theme_global - the main forum template, in teh Page Sub-Header, under the table HTML tags in the &lt;div id="subheader"&gt;
</p>
<p>
2. RSS FEEDS MUST BE ENABLED FOR ANY FORUM YOU WANT THIS TO WORK ON. That means the bottom of your forum pages should show those little rss and atom symbols. This is turned on and off in Forum Prefs (for each forum).
</p>
<p>
3. Start out by installing a short code, like:
<br />
<div class="codeblock"><code>
<span style="color: #007700">var </span><span style="color: #0000BB">myForumString </span><span style="color: #007700">= </span><span style="color: #DD0000">"&#123;path:rss&#125;"</span><span style="color: #007700">;<br />var </span><span style="color: #0000BB">myFSResult </span><span style="color: #007700">= </span><span style="color: #0000BB">myForumString</span><span style="color: #007700">.</span><span style="color: #0000BB">split</span><span style="color: #007700">(</span><span style="color: #DD0000">"/"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">document </span><span style="color: #007700">. </span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #0000BB">myFSResult&#91;7&#93;</span><span style="color: #007700">);</span>
</code></div>
<br />
*remember to remove the spaces after &#8220;document\&#8221; and before &#8220;write\&#8221;
</p>
<p>
That little code should then display the forum number on the top of your page! At least then you know you are on your way, and can use that to construct a call to your ad program. Note that this code can also be installed at the bottom of your forum pages and this can call a different ad (or zone, etc.)
</p>
<p>
Note, there is another way to get the forum_id number, but not as accurate as parsing it from the atom or rss EE tag. The forum_id is hidden in a form field inside each rendered forum page, and Javascript can get this out by a command such as this:
</p>
<p>
<div class="codeblock"><code>
<span style="color: #007700">var </span><span style="color: #0000BB">MySponsor </span><span style="color: #007700">= </span><span style="color: #0000BB">document</span><span style="color: #007700">.</span><span style="color: #0000BB">forms&#91;2&#93;</span><span style="color: #007700">.</span><span style="color: #0000BB">forum_id</span><span style="color: #007700">.</span><span style="color: #0000BB">value</span><span style="color: #007700">;</span>
</code></div>
</p>
<p>
What that piece of code does is to grab the value of forum_id from the SECOND form down, counting from the top of the page. As mentioned, it is not as accurate as the above method, but some may want to consider this for various reasons.
</p>

<p>
<a href="http://expressionengine.com/wiki/Category:Forums/" title="Category:Forums">Category:Forums</a> <a href="http://expressionengine.com/wiki/Category:Advertising/" title="Category:Advertising">Category:Advertising</a>
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Talk:Remove index.php From URLs</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/Talk:Remove_index.php_From_URLs/" />
      <id>tag:expressionengine.com,2008:wiki:Talk:Remove index.php From URLs/873.6217</id>
      <published>2008-04-29T19:37:34Z</published>
      <updated>2008-04-29T19:37:34Z</updated>
      <author>
            <name>jthomas</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p>Shouldn&#8217;t the section on removing Template Groups from the URL be on a separate page? I didn&#8217;t write the copy here and am loath to move someone else&#8217;s work, but the relative level of complexity and strength of opposition ("strongly advised against,&#8221; as opposed to &#8220;not officially supported") seem to indicate it should be on its own page, with a link at the bottom of this one. A page that could hold the info already exists at http://expressionengine.com/wiki/Remove_Template_Group_From_URL/.
</p>
<p>
<b>Reply:</b> Hi, Quena&#8212;A wiki is, by its nature, community oriented; this article has been written and added to by the community for the community; that includes, not only the copy, but the organization thereof.&nbsp; If you feel a section should have its own link, then we encourage you to go ahead and move things around and link them.&nbsp; We do moderate the wiki, but as minimally as possible, preferring to let the community grow and maintain the the area.&nbsp; Thank you!&nbsp; <i>-<a href="http://expressionengine.com/forums/member/18457/">Lisa</a>, October 8, 2007</i>
</p>
<p>
<b>Minor Change:</b>
<br />
I made one small change in the &#8220;File &amp; Directory Check&#8221; Method, which was to add a question mark (?) right after index.php in the last line like this:
</p>
<p>
<div class="codeblock"><code>
<span style="color: #0000BB">RewriteEngine On <br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">f <br />RewriteCond </span><span style="color: #007700">%</span><span style="color: #0000BB">&#123;REQUEST_FILENAME&#125; </span><span style="color: #007700">!-</span><span style="color: #0000BB">d <br />RewriteRule </span><span style="color: #007700">^(.*)$ /</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?/$</span><span style="color: #0000BB">1 &#91;L&#93;</span>
</code></div>
</p>
<p>
Now, the correct pages load when I click on them.&nbsp; I&#8217;m not sure if this effects anything in an incorrect way, but have not seen any negative effects...only positive...it works.
</p>
<p>
<a href="http://expressionengine.com/forums/member/63610/">Jon</a>, April 29, 2008
</p>
      ]]></content>
    </entry>

    <entry>
      <title>index</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/index/" />
      <id>tag:expressionengine.com,2008:wiki:index/29.6207</id>
      <published>2008-04-29T06:08:20Z</published>
      <updated>2008-04-29T06:08:20Z</updated>
      <author>
            <name>Ingmar Greil</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p>Welcome to the ExpressionEngine Wiki!
</p>
<p>
Search, browse, add, subscribe to the feeds; the wiki is yours to use to add to your own knowledge and share your knowledge with others!
</p>
<p>
The wiki is intended as a source of contribution for the members, and  by the members.&nbsp; Articles are added, categorized, and modified by the  community, with only light moderation by EllisLab staff.
</p>
<p>
We encourage you to post your tutorials, tidbits, examples, and other  resources on the wiki and to help expand and clarify existing resources.
</p>
<p>
Please remember that Talk: pages are for discussion, article  modifications and enhancements should be done directly in the article  itself.
</p>
<p>
Please see this page on <a href="http://expressionengine.com/wiki/Getting_Help/" title="Getting_Help">Getting Help</a> for quick list of general  resources.
</p>
<h3 id='Technical_Support_links_take_you_away_from_the_wiki'>Technical Support (links take you away from the wiki)</h3>
<p>
Technical support questions will not be handled via the wiki, and all such support  questions should be posted on the <a href="http://expressionengine.com/forums">Forums</a> after reviewing the <a href="http://expressionengine.com/support/policy">Support Policy</a>.
</p>
      ]]></content>
    </entry>

    <entry>
      <title>EE Blog Quicktime Template</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/wiki/EE_Blog_Quicktime_Template/" />
      <id>tag:expressionengine.com,2008:wiki:EE Blog Quicktime Template/1061.6176</id>
      <published>2008-04-27T00:45:58Z</published>
      <updated>2008-04-27T00:45:58Z</updated>
      <author>
            <name>handyman</name>
            <email></email>
      </author>
      <content type="html"><![CDATA[
        <p>This is a quick run down of how we embed the Quicktime movies into the <a href="http://expressionengine.com/blog/">EE Blog</a>. The player code is almost straight from <a href="http://www.apple.com/quicktime/player/tutorials.html">Apple&#8217;s Quicktime tutorials section</a>. Specifically see <a href="http://www.apple.com/quicktime/tutorials/embed.html">Apple&#8217;s QT Embed tutorial</a>. 
</p>
<p>
We use a <a href="http://expressionengine.com/docs/templates/hidden_templates.html">hidden template</a> just for the movie player that is then <a href="http://expressionengine.com/docs/templates/embedding_templates.html">embedded</a> into the main template. 
</p>
<p>
Here is the player code we use:
</p>
<p>
<div class="codeblock"><code>
<span style="color: #007700">&lt;</span><span style="color: #0000BB">object classid</span><span style="color: #007700">=</span><span style="color: #DD0000">"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">codebase</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://www.apple.com/qtactivex/qtplugin.cab" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"480" </span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"288"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"type" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"video/quicktime" </span><span style="color: #007700">/&gt;<br />&lt;!-- </span><span style="color: #0000BB">The graphic that appears </span><span style="color: #007700">while </span><span style="color: #0000BB">the video loads </span><span style="color: #007700">--&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"src" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"example_posterframe.gif" </span><span style="color: #007700">/&gt;<br />&lt;!-- </span><span style="color: #0000BB">The path to the actual movie file set using a custom field</span><span style="color: #007700">, </span><span style="color: #0000BB">in this </span><span style="color: #007700">case </span><span style="color: #0000BB">&#123;video_path&#125; </span><span style="color: #007700">--&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"href" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;video_path&#125;" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"controller" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"false" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"autoplay" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"false" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"target" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"myself" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">object type</span><span style="color: #007700">=</span><span style="color: #DD0000">"video/quicktime" </span><span style="color: #0000BB">data</span><span style="color: #007700">=</span><span style="color: #DD0000">"/example_posterframe.gif" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"480" </span><span style="color: #0000BB">height</span><span style="color: #007700">=</span><span style="color: #DD0000">"288" </span><span style="color: #007700">class=</span><span style="color: #DD0000">"hide"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"src" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"example_posterframe.gif" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"href" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;video_path&#125;" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"controller" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"false" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"autoplay" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"false" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">param name</span><span style="color: #007700">=</span><span style="color: #DD0000">"target" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"myself" </span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">object</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">object</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;video_path&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Right</span><span style="color: #007700">-</span><span style="color: #0000BB">click to save file to desktop</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span>
</code></div>
</p>
<p>
Note: Please check the Apple links given at the top of this entry, as Apple has updated the suggested fashion on embedding video. The method given here is no longer suggested, as it was broken in newer versions of IE.
</p>
<p>
<a href="http://expressionengine.com/wiki/Category:Templates/" title="Category:Templates">Category:Templates</a> <a href="http://expressionengine.com/wiki/Category:Video/" title="Category:Video">Category:Video</a>
</p>
      ]]></content>
    </entry>


</feed>