<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Yabfog &#187; e107</title>
	<atom:link href="http://yabfog.com/blog/tag/e107/feed" rel="self" type="application/rss+xml" />
	<link>http://yabfog.com/blog</link>
	<description>Yet another blog full of gas</description>
	<lastBuildDate>Tue, 13 Dec 2011 02:45:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<cloud domain='yabfog.com' port='80' path='/blog/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>TinyMCE Error in Forums for e107</title>
		<link>http://yabfog.com/blog/2005/07/06/tinymce_error_in_forums_for_e107</link>
		<comments>http://yabfog.com/blog/2005/07/06/tinymce_error_in_forums_for_e107#comments</comments>
		<pubDate>Wed, 06 Jul 2005 17:39:04 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[e107]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Here's a writeup of my fix for another bug in e107. Basically, the rich textarea editor (which uses TinyMCE) did not work in the forums. e107 bugtracker]]></description>
			<content:encoded><![CDATA[<p>Here's a <a href="http://yabfog.com/files/tinymce.txt">writeup</a> of my fix for another bug in <a href="http://e107.org/">e107</a>. Basically, the rich textarea editor (which uses <a href="http://tinymce.moxiecode.com/">TinyMCE</a>) did not work in the forums.</p>
<p><a href="http://e107.org/e107_plugins/bugtracker2/bugtracker2.php?0.bug.1187">e107 bugtracker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/07/06/tinymce_error_in_forums_for_e107/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Error Page for e107</title>
		<link>http://yabfog.com/blog/2005/06/17/error_page_for_e107</link>
		<comments>http://yabfog.com/blog/2005/06/17/error_page_for_e107#comments</comments>
		<pubDate>Fri, 17 Jun 2005 06:01:40 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[e107]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Formally submitted my three-part fix for the error page distribution with e107. If you (1) setup the e107 error.php file as your ErrorDocument and (2) try to fetch a page NOT in your e107 installation root that causes an error, the display of the resulting error page is mangled because the server doesn't know where [...]]]></description>
			<content:encoded><![CDATA[<p>Formally submitted my three-part fix for the error page distribution with e107.</p>
<p>If you (1) setup the e107 error.php file as your ErrorDocument and (2) try to fetch a page NOT in your e107 installation root that causes an error, the display of the resulting error page is mangled because the server doesn't know where to get all the bits of your theme.</p>
<p>Here's the fix - in three parts.<br />
<span id="more-19"></span><br />
1) class2.php defines a special constant if it is called by error.php</p>
<pre>590a591,598
+ // This will set a constant to indicate that we are displaying the error page.
+ // This triggers a conditional in templates/header_default.php which will add
+ // a &lt;base href= ...&gt; header, which is necessary for the error page to display
+ // correctly if the error was triggered by a page located anywhere other than
+ // the root directory of the installation.
+ if (strstr($_SERVER[&#039;PHP_SELF&#039;], &#039;error.php&#039;)) {
+ define(&quot;ISERRORPAGE&quot;, TRUE);
+ }
</pre>
<p>2) e107_themes/templates/header_default.php checks for that new constant and if present, adds a &lt;base href=...&gt; tag to the page header. This allows the server to find all the bits of your theme.</p>
<pre>40a41,44
+ // This line will add a &lt;base href= ...&gt; header, which is necessary for the error
+ // page to display correctly if the error was triggered by a page located anywhere
+ // other than the root directory of the installation.
+ echo (defined(&quot;ISERRORPAGE&quot;) ? &quot;&lt;base href=&#039;&quot;.$e107-&gt;http_abs_location(&quot;e_BASE&quot;,&quot;&quot;).&quot;&#039; /&gt;&quot; : &quot;&quot;);
</pre>
<p>3) error.php had two errors. The first was a typo under the 404 case that displayed the same string (LAN_16) twice. The second was a repetition of LAN_2 in every case, which was completely silly (but not actually an error).</p>
<pre>36c36
- &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&quot;.LAN_2.&quot;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
---
+ &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
40c40
- &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&quot;.LAN_2.&quot;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
---
+ &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
45,46c45
- &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&quot;.LAN_2.&quot;
- &lt;br /&gt;&quot;.LAN_16.&quot; &lt;b&gt;{$errTo}&lt;/b&gt; &quot;.LAN_16;
---
+ &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&quot;.LAN_16.&quot; &lt;b&gt;{$errTo}&lt;/b&gt; &quot;.LAN_17;
52c51
- &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&quot;.LAN_2.&quot;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
---
+ &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
55c54
-; &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&quot;.LAN_2.&quot;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
---
+ &lt;br /&gt;&lt;div class=&#039;installh&#039;&gt;&lt;a href=&#039;index.php&#039;&gt;&quot;.LAN_20.&quot;&lt;/a&gt;&lt;/div&gt;&quot;;
</pre>
<p><a href="http://e107.org/e107_plugins/bugtracker2/bugtracker2.php?0.bug.989">Bugtracker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/06/17/error_page_for_e107/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>TrackBack Ping for e107</title>
		<link>http://yabfog.com/blog/2005/06/15/trackback_ping_for_e107</link>
		<comments>http://yabfog.com/blog/2005/06/15/trackback_ping_for_e107#comments</comments>
		<pubDate>Wed, 15 Jun 2005 16:08:35 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[e107]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Fixed the TrackBack ping function in e107. The plugin doesn't create all the database fields, so manually add the field 'trackback_blogname' as the last field (I made it type VARCHAR(150)) in the 'e107_trackback' table of your database. Here's the offending code in e107_plugins/trackback/plugin.php: // List of sql requests to create tables ----------------------------------------------------------------------------- $eplug_tables = array( [...]]]></description>
			<content:encoded><![CDATA[<p>Fixed the TrackBack ping function in <a href="http://e107.org">e107</a>. The plugin doesn't create all the database fields, so manually add the field 'trackback_blogname' as the last field (I made it type VARCHAR(150)) in the 'e107_trackback' table of your database.<br />
<span id="more-14"></span><br />
Here's the offending code in e107_plugins/trackback/plugin.php:<br />
<code><br />
// List of sql requests to create tables -----------------------------------------------------------------------------<br />
$eplug_tables = array(<br />
"CREATE TABLE ".MPREFIX."trackback (<br />
  trackback_id int(10) unsigned NOT NULL auto_increment,<br />
  trackback_pid int(10) unsigned NOT NULL default '0',<br />
  trackback_title varchar(200) NOT NULL default '',<br />
  trackback_excerpt varchar(250) NOT NULL default '',<br />
  trackback_url varchar(150) NOT NULL default '',<br />
  PRIMARY KEY  (trackback_id)<br />
) TYPE=MyISAM;");<br />
</code></p>
<p>It should read as follows:<br />
<code><br />
// List of sql requests to create tables -----------------------------------------------------------------------------<br />
$eplug_tables = array(<br />
"CREATE TABLE ".MPREFIX."trackback (<br />
  trackback_id int(10) unsigned NOT NULL auto_increment,<br />
  trackback_pid int(10) unsigned NOT NULL default '0',<br />
  trackback_title varchar(200) NOT NULL default '',<br />
  trackback_excerpt varchar(250) NOT NULL default '',<br />
  trackback_url varchar(150) NOT NULL default '',<br />
<strong>  trackback_blogname varchar(150) NOT NULL default '',</strong><br />
  PRIMARY KEY  (trackback_id)<br />
) TYPE=MyISAM;");<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/06/15/trackback_ping_for_e107/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
	</item>
	</channel>
</rss>

