<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WeBid Support - Blogs</title>
		<link>http://www.webidsupport.com/forums/blog.php</link>
		<description>A support site for WeBid the best free auction script</description>
		<language>en</language>
		<lastBuildDate>Thu, 17 May 2012 04:04:01 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.webidsupport.com/forums/images/misc/rss.jpg</url>
			<title>WeBid Support - Blogs</title>
			<link>http://www.webidsupport.com/forums/blog.php</link>
		</image>
		<item>
			<title><![CDATA[How to get around the '"BC Math support" not found' error]]></title>
			<link>http://www.webidsupport.com/forums/blog.php?b=908</link>
			<pubDate>Sat, 21 Jan 2012 14:49:25 GMT</pubDate>
			<description>This is an error which crops up from time to time and unless you own the server or have a very nice service provided theres not much you can do to...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">This is an error which crops up from time to time and unless you own the server or have a very nice service provided theres not much you can do to enable BCMath as it involves turning off the server re-compiling PHP with BCMath enabled. <br />
<br />
But there is an easy work around you can just add the following function to the bottom of functions_global.php<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:372px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">bcadd</span><span style="color: #007700">(</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">,</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">,</span><span style="color: #0000BB">$Scale</span><span style="color: #007700">=</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;{&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;check&nbsp;if&nbsp;they're&nbsp;valid&nbsp;positive&nbsp;numbers,&nbsp;extract&nbsp;the&nbsp;whole&nbsp;numbers&nbsp;and&nbsp;decimals&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #007700">if(!</span><span style="color: #0000BB">preg_match</span><span style="color: #007700">(</span><span style="color: #DD0000">"/^\+?(\d+)(\.\d+)?$/"</span><span style="color: #007700">,</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">,</span><span style="color: #0000BB">$Tmp1</span><span style="color: #007700">)||&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;!</span><span style="color: #0000BB">preg_match</span><span style="color: #007700">(</span><span style="color: #DD0000">"/^\+?(\d+)(\.\d+)?$/"</span><span style="color: #007700">,</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">,</span><span style="color: #0000BB">$Tmp2</span><span style="color: #007700">))&nbsp;return(</span><span style="color: #DD0000">'0'</span><span style="color: #007700">);&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;this&nbsp;is&nbsp;where&nbsp;the&nbsp;result&nbsp;is&nbsp;stored&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Output</span><span style="color: #007700">=array();&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;remove&nbsp;ending&nbsp;zeroes&nbsp;from&nbsp;decimals&nbsp;and&nbsp;remove&nbsp;point&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Dec1</span><span style="color: #007700">=isset(</span><span style="color: #0000BB">$Tmp1</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">2</span><span style="color: #007700">&#93;)?</span><span style="color: #0000BB">rtrim</span><span style="color: #007700">(</span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$Tmp1</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">2</span><span style="color: #007700">&#93;,</span><span style="color: #0000BB">1</span><span style="color: #007700">),</span><span style="color: #DD0000">'0'</span><span style="color: #007700">):</span><span style="color: #DD0000">''</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Dec2</span><span style="color: #007700">=isset(</span><span style="color: #0000BB">$Tmp2</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">2</span><span style="color: #007700">&#93;)?</span><span style="color: #0000BB">rtrim</span><span style="color: #007700">(</span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$Tmp2</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">2</span><span style="color: #007700">&#93;,</span><span style="color: #0000BB">1</span><span style="color: #007700">),</span><span style="color: #DD0000">'0'</span><span style="color: #007700">):</span><span style="color: #DD0000">''</span><span style="color: #007700">;&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;calculate&nbsp;the&nbsp;longest&nbsp;length&nbsp;of&nbsp;decimals&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">=</span><span style="color: #0000BB">max</span><span style="color: #007700">(</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$Dec1</span><span style="color: #007700">),</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$Dec2</span><span style="color: #007700">));&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;$Scale&nbsp;is&nbsp;null,&nbsp;automatically&nbsp;set&nbsp;it&nbsp;to&nbsp;the&nbsp;amount&nbsp;of&nbsp;decimal&nbsp;places&nbsp;for&nbsp;accuracy&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #007700">if(</span><span style="color: #0000BB">$Scale</span><span style="color: #007700">==</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">$Scale</span><span style="color: #007700">=</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">;&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;remove&nbsp;leading&nbsp;zeroes&nbsp;and&nbsp;reverse&nbsp;the&nbsp;whole&nbsp;numbers,&nbsp;then&nbsp;append&nbsp;padded&nbsp;decimals&nbsp;on&nbsp;the&nbsp;end&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">=</span><span style="color: #0000BB">strrev</span><span style="color: #007700">(</span><span style="color: #0000BB">ltrim</span><span style="color: #007700">(</span><span style="color: #0000BB">$Tmp1</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">).</span><span style="color: #0000BB">str_pad</span><span style="color: #007700">(</span><span style="color: #0000BB">$Dec1</span><span style="color: #007700">,</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">));&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">=</span><span style="color: #0000BB">strrev</span><span style="color: #007700">(</span><span style="color: #0000BB">ltrim</span><span style="color: #007700">(</span><span style="color: #0000BB">$Tmp2</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">).</span><span style="color: #0000BB">str_pad</span><span style="color: #007700">(</span><span style="color: #0000BB">$Dec2</span><span style="color: #007700">,</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">));&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;calculate&nbsp;the&nbsp;longest&nbsp;length&nbsp;we&nbsp;need&nbsp;to&nbsp;process&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$MLen</span><span style="color: #007700">=</span><span style="color: #0000BB">max</span><span style="color: #007700">(</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">),</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">));&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;pad&nbsp;the&nbsp;two&nbsp;numbers&nbsp;so&nbsp;they&nbsp;are&nbsp;of&nbsp;equal&nbsp;length&nbsp;(both&nbsp;equal&nbsp;to&nbsp;$MLen)&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">=</span><span style="color: #0000BB">str_pad</span><span style="color: #007700">(</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">,</span><span style="color: #0000BB">$MLen</span><span style="color: #007700">,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">);&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">=</span><span style="color: #0000BB">str_pad</span><span style="color: #007700">(</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">,</span><span style="color: #0000BB">$MLen</span><span style="color: #007700">,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">);&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;process&nbsp;each&nbsp;digit,&nbsp;keep&nbsp;the&nbsp;ones,&nbsp;carry&nbsp;the&nbsp;tens&nbsp;(remainders)&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #007700">for(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">$MLen</span><span style="color: #007700">;</span><span style="color: #0000BB">$i</span><span style="color: #007700">++)&nbsp;{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$Sum</span><span style="color: #007700">=((int)</span><span style="color: #0000BB">$Num1</span><span style="color: #007700">{</span><span style="color: #0000BB">$i</span><span style="color: #007700">}+(int)</span><span style="color: #0000BB">$Num2</span><span style="color: #007700">{</span><span style="color: #0000BB">$i</span><span style="color: #007700">});&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(isset(</span><span style="color: #0000BB">$Output</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&#93;))&nbsp;</span><span style="color: #0000BB">$Sum</span><span style="color: #007700">+=</span><span style="color: #0000BB">$Output</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&#93;;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$Output</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&#93;=</span><span style="color: #0000BB">$Sum</span><span style="color: #007700">%</span><span style="color: #0000BB">10</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">$Sum</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">9</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">$Output</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">$i</span><span style="color: #007700">+</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;}&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;convert&nbsp;the&nbsp;array&nbsp;to&nbsp;string&nbsp;and&nbsp;reverse&nbsp;it&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Output</span><span style="color: #007700">=</span><span style="color: #0000BB">strrev</span><span style="color: #007700">(</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #0000BB">$Output</span><span style="color: #007700">));&nbsp;<br /><br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;substring&nbsp;the&nbsp;decimal&nbsp;digits&nbsp;from&nbsp;the&nbsp;result,&nbsp;pad&nbsp;if&nbsp;necessary&nbsp;(if&nbsp;$Scale&nbsp;&gt;&nbsp;amount&nbsp;of&nbsp;actual&nbsp;decimals)&nbsp;<br />&nbsp;&nbsp;//&nbsp;next,&nbsp;since&nbsp;actual&nbsp;zero&nbsp;values&nbsp;can&nbsp;cause&nbsp;a&nbsp;problem&nbsp;with&nbsp;the&nbsp;substring&nbsp;values,&nbsp;if&nbsp;so,&nbsp;just&nbsp;simply&nbsp;give&nbsp;'0'<br />&nbsp;&nbsp;//&nbsp;next,&nbsp;append&nbsp;the&nbsp;decimal&nbsp;value,&nbsp;if&nbsp;$Scale&nbsp;is&nbsp;defined,&nbsp;and&nbsp;return&nbsp;result&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Decimal</span><span style="color: #007700">=</span><span style="color: #0000BB">str_pad</span><span style="color: #007700">(</span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$Output</span><span style="color: #007700">,-</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">,</span><span style="color: #0000BB">$Scale</span><span style="color: #007700">),</span><span style="color: #0000BB">$Scale</span><span style="color: #007700">,</span><span style="color: #DD0000">'0'</span><span style="color: #007700">);&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Output</span><span style="color: #007700">=((</span><span style="color: #0000BB">$MLen</span><span style="color: #007700">-</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1</span><span style="color: #007700">)?</span><span style="color: #DD0000">'0'</span><span style="color: #007700">:</span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$Output</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,-</span><span style="color: #0000BB">$DLen</span><span style="color: #007700">));&nbsp;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$Output</span><span style="color: #007700">.=((</span><span style="color: #0000BB">$Scale</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">0</span><span style="color: #007700">)?</span><span style="color: #DD0000">".{$Decimal}"</span><span style="color: #007700">:</span><span style="color: #DD0000">''</span><span style="color: #007700">);&nbsp;<br />&nbsp;&nbsp;return(</span><span style="color: #0000BB">$Output</span><span style="color: #007700">);&nbsp;<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> taken from <a href="http://www.php.net/manual/en/function.bcadd.php" target="_blank">http://www.php.net/manual/en/function.bcadd.php</a></blockquote>

 ]]></content:encoded>
			<dc:creator>renlok</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=908</guid>
		</item>
		<item>
			<title>Optimisation of URLS</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=787</link>
			<pubDate>Fri, 10 Jun 2011 12:45:10 GMT</pubDate>
			<description>Hello there! 
 
Just thought I would let you know of some updates that I carried out to optimise the browse and item pages so that the urls will...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Hello there!<br />
<br />
Just thought I would let you know of some updates that I carried out to optimise the browse and item pages so that the urls will appear to include the product / category names in the search engines.<br />
<br />
The first thing I did was to add the following function to the includes/functions_global.php file:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:108px;">function _urlEncode($val) {
	$val = str_replace(&quot;&amp;amp;&quot;, &quot;and&quot;, $val);
	$val = preg_replace(&quot;/[^a-zA-Z0-9\s]/&quot;, &quot;&quot;, $val);
	$val = ereg_replace(&quot; +&quot;, &quot; &quot;, $val);
	$val = strtolower($val);
	return str_replace(&quot; &quot;, &quot;-&quot;, $val);
}</pre>
</div> This function takes a name and makes it url ready. <br />
<br />
After that I amended the .htaccess file in the root dir to include the following:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:84px;">RewriteEngine on
RewriteBase /

RewriteRule ^browse/([^/]+)/([^/]+)/$ browse.php?id=$1 [QSA,L]
RewriteRule ^item/([^/]+)/([^/]+)/$ item.php?id=$1 [QSA,L]</pre>
</div> This meant that the new urls would get redirected to the existing pages.<br />
<br />
Finally we just had to get all the a links in the templates amended to show the new urls.<br />
<br />
I'm not going to go through all the pages for you but this is an example of one of the links on the index.php page (last created auctions):<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:312px;">// get last created auctions
$query = &quot;SELECT id, title, starts, pict_url, current_bid, minimum_bid, buy_now, bn_only, num_bids from &quot; . $DBPrefix . &quot;auctions
		 WHERE closed = 0 AND suspended = 0
		 AND starts &lt;= &quot; . $NOW . &quot;
		 ORDER BY starts DESC
		 LIMIT &quot; . $system-&gt;SETTINGS['lastitemsnumber'];
$res = mysql_query($query);
$system-&gt;check_mysql($res, $query, __LINE__, __FILE__);

$i = 0;
while ($row = mysql_fetch_assoc($res))
{
	$high_bid = ($row['num_bids'] == 0) ? $row['minimum_bid'] : $row['current_bid'];
	$high_bid = ($row['bn_only'] == 'y') ? $row['buy_now'] : $high_bid;
	$template-&gt;assign_block_vars('auc_last', array(
			'BGCOLOUR' =&gt; (!($i % 2)) ? '' : 'class=&quot;alt-row&quot;',
			'DATE' =&gt; ArrangeDateNoCorrection($row['starts'] + $system-&gt;tdiff),
			'ID' =&gt; $row['id'],
			'TITLE' =&gt; $row['title'],
			'IMAGE' =&gt; (!empty($row['pict_url'])) ? 'getthumb.php?w=' . $system-&gt;SETTINGS['thumb_show'] . '&amp;fromfile=' . $uploaded_path . $row['id'] . '/' . $row['pict_url'] : 'images/email_alerts/default_item_img.jpg',
			'BID' =&gt; $system-&gt;print_money($high_bid),
			'URLTITLE' =&gt; _urlEncode($row['title'])
			));
	$i++;</pre>
</div> Notice the last var 'urltitle' using the function we put in the global functions file _urlEncode.<br />
<br />
Then in the home.tpl file changed the link to be from:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">&lt;p {auc_last.BGCOLOUR}&gt;{auc_last.DATE} &lt;a href=&quot;{SITEURL}item.php?id={auc_last.ID}&quot;&gt;{auc_last.TITLE}&lt;/a&gt;&lt;/p&gt;</pre>
</div> to be:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">&lt;p {auc_last.BGCOLOUR}&gt;{auc_last.DATE} &lt;a href=&quot;{SITEURL}item/{auc_last.ID}/{auc_last.URLTITLE}/&quot;&gt;{auc_last.TITLE}&lt;/a&gt;&lt;/p&gt;</pre>
</div> I have done this throughout with all sorts of urls, just to give it the best advantage when it comes to listings in the SE's.<br />
<br />
Hope this comes in useful to some peeps.</blockquote>

 ]]></content:encoded>
			<dc:creator>dcourtney</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=787</guid>
		</item>
		<item>
			<title>WeBid Modification</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=783</link>
			<pubDate>Tue, 05 Apr 2011 10:05:02 GMT</pubDate>
			<description><![CDATA[Wasup guys, 
 
I was fascinated by WeBid and trying to publish a bidding site. The main problem I faced is , the intended customers don't have a...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Wasup guys,<br />
<br />
I was fascinated by WeBid and trying to publish a bidding site. The main problem I faced is , the intended customers don't have a credit card processing or pay pal or any other online transaction processing facility.<br />
<br />
Can you still think of making use of WeBid , with no creditcard or paypal? with only local currency.<br />
<br />
The country don't use credit card but they have a debit card which you put money and withdraw when you need.<br />
<br />
Thank you for your idea.</blockquote>

 ]]></content:encoded>
			<dc:creator>theGamer</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=783</guid>
		</item>
		<item>
			<title>Adding a field to the registration page</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=704</link>
			<pubDate>Fri, 11 Feb 2011 11:21:45 GMT</pubDate>
			<description>Adding a field to the registration page 
 
remember to replace every instance of YOUR_NEW_FIELD with whatever its called in the database 
 
run the...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><font size="4"><font color="#8b0000">Adding a field to the registration page</font></font><br />
<br />
<font size="2">remember to replace every instance of YOUR_NEW_FIELD with whatever its called in the database</font><br />
<br />
run the code:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:36px;">ALTER TABLE `webid_users` ADD `YOUR_NEW_FIELD` varchar(50) default '';</pre>
</div> ok heres how to add it to the registration page<br />
in register.php find (~line 299)<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB">birthdate</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">suspended</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">language</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">groups</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">balance</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">timecorrection</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paypal_email</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">worldpay_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">moneybookers_email</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">toocheckout_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">authnet_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">authnet_pass</span><span style="color: #007700">)&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> replace with<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB">birthdate</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">suspended</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">language</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">groups</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">balance</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">timecorrection</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">paypal_email</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">worldpay_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">moneybookers_email</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">toocheckout_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">authnet_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">authnet_pass</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">YOUR_NEW_FIELD</span><span style="color: #007700">)&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> find (~line 324)<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #DD0000">'"&nbsp;.&nbsp;((isset($_POST&#91;'</span><span style="color: #0000BB">TPL_authnet_pass</span><span style="color: #DD0000">'&#93;))&nbsp;?&nbsp;$system-&gt;cleanvars($_POST&#91;'</span><span style="color: #0000BB">TPL_authnet_pass</span><span style="color: #DD0000">'&#93;)&nbsp;:&nbsp;'')&nbsp;.&nbsp;"'</span><span style="color: #007700">)</span><span style="color: #DD0000">";&nbsp;<br /></span>
</span>
</code></code></div>
</div> replace with<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:48px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #DD0000">'"&nbsp;.&nbsp;((isset($_POST&#91;'</span><span style="color: #0000BB">TPL_authnet_pass</span><span style="color: #DD0000">'&#93;))&nbsp;?&nbsp;$system-&gt;cleanvars($_POST&#91;'</span><span style="color: #0000BB">TPL_authnet_pass</span><span style="color: #DD0000">'&#93;)&nbsp;:&nbsp;'')&nbsp;.&nbsp;"'</span><span style="color: #007700">,<br /></span><span style="color: #DD0000">'"&nbsp;.&nbsp;((isset($_POST&#91;'</span><span style="color: #0000BB">TPL_YOUR_NEW_FIELD</span><span style="color: #DD0000">'&#93;))&nbsp;?&nbsp;$system-&gt;cleanvars($_POST&#91;'</span><span style="color: #0000BB">TPL_YOUR_NEW_FIELD</span><span style="color: #DD0000">'&#93;)&nbsp;:&nbsp;'')&nbsp;.&nbsp;"'</span><span style="color: #007700">)</span><span style="color: #DD0000">";&nbsp;<br /></span>
</span>
</code></code></div>
</div> find (~515)<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #DD0000">'V_PHONE'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;(isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'TPL_phone'</span><span style="color: #007700">&#93;))&nbsp;?&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'TPL_phone'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #DD0000">''&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> replace with<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:48px;"><code><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #DD0000">'V_PHONE'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;(isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'TPL_phone'</span><span style="color: #007700">&#93;))&nbsp;?&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'TPL_phone'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">,<br /></span><span style="color: #DD0000">'V_YOUR_NEW_FIELD'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;(isset(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'TPL_YOUR_NEW_FIELD'</span><span style="color: #007700">&#93;))&nbsp;?&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'TPL_YOUR_NEW_FIELD'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #DD0000">''&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> now in the template file register.tpl<br />
find<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:10*12px};">        <i><span style="color:#000080">&lt;!-- IF TEL --&gt;</span></i>
					<span style="color:#008080">&lt;tr&gt;</span>
						<span style="color:#008080">&lt;td width=<span style="color:#0000FF">&quot;40%&quot;</span> valign=<span style="color:#0000FF">&quot;top&quot;</span> align=<span style="color:#0000FF">&quot;right&quot;</span>&gt;</span><span style="color:#000080">&lt;b&gt;</span>{L_013}<span style="color:#000080">&lt;/b&gt;</span>{REQUIRED(6)}<span style="color:#008080">&lt;/td&gt;</span>
						<span style="color:#008080">&lt;td width=<span style="color:#0000FF">&quot;60%&quot;</span>&gt;</span>
							<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;TPL_phone&quot;</span> size=40 maxlength=40 value=<span style="color:#0000FF">&quot;{V_PHONE}&quot;</span>&gt;</span>
						<span style="color:#008080">&lt;/td&gt;</span>
					<span style="color:#008080">&lt;/tr&gt;</span>
        <i><span style="color:#000080">&lt;!-- ENDIF --&gt;</span></i></pre>
</div> after add<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:8*12px};">					<span style="color:#008080">&lt;tr&gt;</span>
						<span style="color:#008080">&lt;td width=<span style="color:#0000FF">&quot;40%&quot;</span> valign=<span style="color:#0000FF">&quot;top&quot;</span> align=<span style="color:#0000FF">&quot;right&quot;</span>&gt;</span><span style="color:#000080">&lt;b&gt;</span>YOUR NEW FIELD<span style="color:#000080">&lt;/b&gt;</span><span style="color:#008080">&lt;/td&gt;</span>
						<span style="color:#008080">&lt;td width=<span style="color:#0000FF">&quot;60%&quot;</span>&gt;</span>
							<span style="color:#FF8000">&lt;input type=<span style="color:#0000FF">&quot;text&quot;</span> name=<span style="color:#0000FF">&quot;TPL_YOUR_NEW_FIELD&quot;</span> size=40 maxlength=40 value=<span style="color:#0000FF">&quot;{V_YOUR_NEW_FIELD}&quot;</span>&gt;</span>
						<span style="color:#008080">&lt;/td&gt;</span>
					<span style="color:#008080">&lt;/tr&gt;</span></pre>
</div> just remember to replace every instance of YOUR_NEW_FIELD with whatever its called in the database</blockquote>

 ]]></content:encoded>
			<dc:creator>renlok</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=704</guid>
		</item>
		<item>
			<title>Fly-out Category and Sub-Category menu</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=701</link>
			<pubDate>Fri, 28 Jan 2011 22:58:20 GMT</pubDate>
			<description><![CDATA[So the next step for me was to get a working category menu that had a flyout of each top level categories' child(sub) categories. 
 
I have to...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">So the next step for me was to get a working category menu that had a flyout of each top level categories' child(sub) categories.<br />
<br />
I have to say...this was a pain in the proverbial for me...I spent a few hours trying to get this to work right I can assure you.  Even though I got it working, I imagine my code is probably quite inefficient so I'd really appreciate any feedback from some experienced coders.<br />
<br />
Anyway, here's the code to go in the home.tpl file, which is basically a nested, un-ordered list. The flyout functionality is generated by a little bit of trick CSS....<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:216px;">    &lt;div id=&quot;menu&quot;&gt; 
        &lt;ul&gt;
        	&lt;li id=&quot;top&quot;&gt;&lt;a href=&quot;browse.php?id=0&quot;&gt;{L_276}&lt;/a&gt;&lt;/li&gt;
&lt;!-- BEGIN cat_list --&gt;
            &lt;li&gt;
                &lt;a href=&quot;browse.php?id={cat_list.ID}&quot;&gt;{cat_list.IMAGE}{cat_list.NAME}&lt;/a&gt;
                &lt;ul&gt;
                	&lt;!-- BEGIN sub_list --&gt;
                	&lt;li&gt;&lt;a href=&quot;browse.php?id={cat_list.sub_list.SID}&quot;&gt;{cat_list.sub_list.SNAME}&lt;/a&gt;&lt;/li&gt;
                	&lt;!-- END sub_list --&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
&lt;!-- END cat_list --&gt;
        &lt;li id=&quot;bottom&quot;&gt;&lt;a href=&quot;{SITEURL}browse.php?id=0&quot;&gt;{L_277}&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;</pre>
</div> I'd never dealt with .tpl files before discovering webid and I confess I really don't know what is going on with them but during this process I discovered that those lines that look like nice handy comments are infact required in order for the tpl to parse correctly. Who knew? :) well we all do now!<br />
Above, the &lt;!-- BEGIN cat_list --&gt; is the orginal code to signal the insertion of the block_vars 'cat_list' created in the index.php code.<br />
The second &lt;!-- BEGIN sub_list --&gt; is the start of the block_vars containing the array of sub-categories for each top level cat, this array being generated within the index.php file with the following code:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:144px;">function getsub($rowid,$catsort)
{
	global $system, $LANGUAGES, $subres;
	$subquery = &quot;SELECT cat_id, cat_name FROM webid_categories
		  		WHERE parent_id = &quot; . $rowid . &quot;
		  		&quot; . $catsort;
	$subres = mysql_query($subquery);
	$system-&gt;check_mysql($subres, $subquery, __LINE__, __FILE__);
	return $subres;
}</pre>
</div> Now, as I've said beore I'm a novice coder. what I manage to figure out usually comes from a bunch of google searches and trial and error.  In this case I couldn't manage to get the query I required to work within the loop that creates the list of main categories so I created a function getsub() to contain my sub-cat query and I call it from within the main cat loop, passing it the main cat_id for use in the query.<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:252px;">while ($row = mysql_fetch_assoc($res))
{
	$template-&gt;assign_block_vars('cat_list', array(
			'CATAUCNUM' =&gt; ($row['sub_counter'] != 0) ? '(' . $row['sub_counter'] . ')' : '',
			'ID' =&gt; $row['cat_id'],
			'IMAGE' =&gt; (!empty($row['cat_image'])) ? '&lt;img src=&quot;' . $row['cat_image'] . '&quot; border=0&gt;' : '',
			'COLOUR' =&gt; (empty($row['cat_colour'])) ? '#FFFFFF' : $row['cat_colour'],
			'NAME' =&gt; $category_names[$row['cat_id']]
			));

		$subcats = getsub($row['cat_id'],$catsorting);	
		while($subrow = mysql_fetch_assoc($subcats))
		{
		 $template-&gt;assign_block_vars('cat_list.sub_list', array(
 			'SNAME' =&gt; $subrow['cat_name'],
 			'SID' =&gt; $subrow['cat_id']
 			));
		}			
}</pre>
</div> You can see I pass it the $row['cat_id'] value, then run the second loop to retreive the sub-categories and then insert them into a block_vars array, for each main cat_id.<br />
So this all works really well (if not very efficiently) so you are probably now wondering how to get the flyout menu huh?<br />
I COULD spell all the CSS out for you but I think I'll just give you a link to a good tutorial and let you nut it out. If you have trouble, post a comment and I'll try and help you out :)<br />
Heres the link: <a href="http://ago.tanfa.co.uk/css/examples/menu/tutorial-v.html#vs7" target="_blank">http://ago.tanfa.co.uk/css/examples/...ial-v.html#vs7</a><br />
(its a actually a bit old this tutorial I think. I didn't use the htc file that they refer to. Focus on the CSS styles and in particular the position:absolute/relative properies.</blockquote>

 ]]></content:encoded>
			<dc:creator>h20boynz</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=701</guid>
		</item>
		<item>
			<title>Home page item listing template</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=674</link>
			<pubDate>Mon, 24 Jan 2011 03:35:13 GMT</pubDate>
			<description>So I wanted a horizontal listing on the homepage, similar to that which is shown on the bottom of the browse.php page. 
This format will eventually...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">So I wanted a horizontal listing on the homepage, similar to that which is shown on the bottom of the browse.php page.<br />
This format will eventually go throughout the site, where ever a horizontal layout for the listings is desired.<br />
<br />
Here is the code for the layout in home.tpl:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:372px;">&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; class=&quot;maincolum&quot;&gt;
    &lt;tr&gt;
        &lt;td class=&quot;table2&quot;&gt;
&lt;!-- BEGIN randomitems --&gt;
            &lt;div style=&quot;float:left;display:block;width:99%;border-bottom:#CCCCCC 1px solid;padding:2px;&quot;&gt;
                &lt;div style=&quot;display:block;&quot;&gt;
                	&lt;table width=&quot;100%&quot;&gt;
                		&lt;tr&gt;
    						&lt;td align=&quot;center&quot; style=&quot;vertical-align:middle&quot;&gt;
							&lt;a href=&quot;{SITEURL}item.php?id={randomitems.ID}&quot;&gt;&lt;img src=&quot;{randomitems.IMAGE}&quot; alt=&quot;{randomitems.TITLE}&quot; style=&quot;border: none&quot;&gt;&lt;/a&gt;
							&lt;/td&gt;
							&lt;td align=&quot;left&quot; width=&quot;40%&quot;&gt;
								&lt;table style=&quot;width:100%; vertical-align:middle; margin:0 auto&quot;&gt;
									&lt;tr&gt;
										&lt;td&gt;&lt;a id=&quot;itemdesc&quot; href=&quot;{SITEURL}item.php?id={randomitems.ID}&quot;&gt;{randomitems.TITLE}&lt;/a&gt;&lt;br /&gt;
                						{randomitems.SUBTITLE}&lt;/td&gt;
                					&lt;/tr&gt;
                					&lt;tr&gt;
                						&lt;td id=&quot;closes&quot;&gt;Closes in: {randomitems.TIMELEFT}&lt;/td&gt;
                					&lt;/tr&gt;
                					&lt;tr&gt;
                						&lt;td&gt;{randomitems.FLAG}{randomitems.FLAGDESC}&lt;/td&gt;
                					&lt;/tr&gt;
                				&lt;/table&gt;
							&lt;/td&gt;
							&lt;td id=&quot;buynow&quot; align=&quot;center&quot; width=&quot;15%&quot;&gt;
							{randomitems.BUY_NOW}
							&lt;/td&gt;
							&lt;td id=&quot;currentbid&quot; align=&quot;center&quot; width=&quot;25%&quot;&gt;
							{randomitems.BID}
							&lt;/td&gt;
						&lt;/tr&gt;
					&lt;/table&gt;
                &lt;/div&gt;
            &lt;/div&gt;
&lt;!-- END randomitems --&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
   
&lt;!-- IF B_AUC_LAST --&gt;</pre>
</div> Probably not perfect, but it seems to work in all the browsers I've tested so far :)<br />
Here is the code in index.php:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:372px;">// get random selection of 6 items for home page display
$query = &quot;SELECT id, title, current_bid, pict_url, ends, num_bids, minimum_bid, bn_only, buy_now, subtitle, starts, ends, reserve_price
        FROM &quot; . $DBPrefix . &quot;auctions
        WHERE closed = 0 AND suspended = 0 AND starts &lt;= &quot; . $NOW . &quot;
        ORDER BY RAND() DESC LIMIT 6&quot;;
$res = mysql_query($query);
$system-&gt;check_mysql($res, $query, __LINE__, __FILE__);

$k = 0;
while($row = mysql_fetch_assoc($res))
{
	$ends = $row['ends'];
	$difference = $ends - time();
	if ($difference &gt; 0)
	{
		$ends_string = FormatTimeLeft($difference);
	}
	else
	{
		$ends_string = $MSG['911'];
	}
	
	$high_bid = ($row['num_bids'] == 0) ? $row['minimum_bid'] : $row['current_bid'];
	$high_bid = ($row['bn_only'] == 'y') ? $row['buy_now'] : $high_bid;
	
	//determine whether the auction has a Buy Now price, show if appropriate.
	if($row['buy_now'] == '0.0000') {
	$bnamount = &quot;&quot;;
	} else {
	$bnamount = &quot;$&quot; . substr($row['buy_now'], 0, -2) . &quot;&lt;br /&gt;&quot; . &quot;Buy Now&quot;;
	}
	
	//determine if the auction has a reserve set and if it has been met. display appropriate symbol
	if($row['reserve_price'] == '0.0000' &amp;&amp; $row['bn_only'] == 'n') {
		$flag = '&lt;img src=&quot;images/noreserve.gif&quot; alt=&quot;No Reserve&quot;&gt;';
		$flagdesc = &quot; No Reserve!&quot;;
		$bnonly = &quot;Current Bid&lt;br /&gt;&quot;;
		} else {
			if($row['current_bid'] &gt;= $row['reserve_price']) {
			$flag = '&lt;img src=&quot;images/reservemet.gif&quot; alt=&quot;Reserve Met&quot;&gt;';
			$flagdesc = &quot; Reserve Met!&quot;;
			$bnonly = &quot;Current Bid&lt;br /&gt;&quot;;
			} else {
			$flag = '&lt;img src=&quot;images/noflag.gif&quot;&gt;';
			$flagdesc = &quot;&quot;;
			$bnonly = &quot;Current Bid&lt;br /&gt;&quot;;
			}
		}
	if($row['reserve_price'] == '0.0000' &amp;&amp; $row['bn_only'] == 'y') {
		$flag = '&lt;img src=&quot;images/noflag.gif&quot;&gt;';
		$flagdesc = &quot;&quot;;
		$bnonly = &quot;Asking Price &quot;;
		$bnamount = &quot;&quot;;	
		}


	$template-&gt;assign_block_vars('randomitems', array(
			'ID' =&gt; $row['id'],
			'BID' =&gt; $bnonly . &quot;$&quot; . substr($high_bid, 0, -2),
			'IMAGE' =&gt; (!empty($row['pict_url'])) ? 'getthumb.php?w=' . $system-&gt;SETTINGS['thumb_show'] . '&amp;fromfile=' . $uploaded_path . $row['id'] . '/' . $row['pict_url'] : 'images/email_alerts/default_item_img.jpg',
			'TITLE' =&gt; $row['title'],
			'BUY_NOW' =&gt; $bnamount,
			'SUBTITLE' =&gt; $row['subtitle'],
			'TIMELEFT' =&gt; $ends_string,
			'NUMBIDS' =&gt; $row['num_bids'],
			'FLAG' =&gt; $flag,
			'FLAGDESC' =&gt; $flagdesc
			));
	$k++;
}</pre>
</div> I have set up some simple conditional statements to control what is being shown. i.e. no reserve, met reserve or, in the case of a 'Buy Now Only' auction, the 'Asking Price' string. (these auctions are basically classifieds anyway.) I also wanted to highlight the Buy Now amount if applicable.<br />
<br />
Onto the CSS:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:240px;">/*styles for index.php listing gallery*/
a#itemdesc {
	font-weight:bold;
	font-size:medium;
	color:#146EB4;
}
td#closes {
	font-weight:bold;
	font-size:small;
	color:red;
}
td#buynow {
	color:#E97C03;
	font-weight:900;
}
td#currentbid {
	font-weight:900;
}</pre>
</div> And thats about it really.  Not rocket science :) (Took me a couple of days of experimenting though :))</blockquote>

 ]]></content:encoded>
			<dc:creator>h20boynz</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=674</guid>
		</item>
		<item>
			<title>Tabbed horizontal menu</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=673</link>
			<pubDate>Mon, 24 Jan 2011 01:33:16 GMT</pubDate>
			<description><![CDATA[I really wanted a tabbed menu across the top of my site. Either left, center or right aligned. 
I've managed so far to get the left or right...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">I really wanted a tabbed menu across the top of my site. Either left, center or right aligned.<br />
I've managed so far to get the left or right alignments working ok, but centering has alluded me thus far :)<br />
<br />
Here's the code placed in the themes/default/global_header.tpl file:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:252px;">	&lt;div id=&quot;tabheader&quot; &gt;
        &lt;ul&gt;
                &lt;li&gt;&lt;a href=&quot;{SITEURL}index.php?&quot;&gt;{L_166}&lt;/a&gt;&lt;/li&gt;
	&lt;!-- IF B_CAN_SELL --&gt;
	&lt;li&gt;&lt;a href=&quot;{SITEURL}select_category.php?&quot;&gt;{L_028}&lt;/a&gt;&lt;/li&gt;
	&lt;!-- ENDIF --&gt;
	&lt;!-- IF B_LOGGED_IN --&gt;
               &lt;li&gt;&lt;a href=&quot;{SITEURL}user_menu.php?&quot;&gt;{L_622}&lt;/a&gt;&lt;/li&gt;
               &lt;li&gt;&lt;a href=&quot;{SSLURL}logout.php?&quot;&gt;{L_245}&lt;/a&gt;&lt;/li&gt;
	&lt;!-- ELSE --&gt;
                &lt;li&gt;&lt;a href=&quot;{SSLURL}register.php?&quot;&gt;{L_235}&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href=&quot;{SSLURL}user_login.php?&quot;&gt;{L_052}&lt;/a&gt;&lt;/li&gt;
	&lt;!-- ENDIF --&gt;
	&lt;!-- IF B_BOARDS --&gt;
	&lt;li&gt;&lt;a href=&quot;{SITEURL}boards.php&quot;&gt;{L_5030}&lt;/a&gt;&lt;/li&gt;
	&lt;!-- ENDIF --&gt;
                &lt;li&gt;&lt;a href=&quot;{SITEURL}faqs.php&quot; alt=&quot;faqs&quot; class=&quot;new-window&quot;&gt;{L_148}&lt;/a&gt;&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/div&gt;</pre>
</div> Pretty straight forward, unordered list. In the CSS we set a background image. I'm using the sliding door method which I found out about here:<br />
<a href="http://www.alistapart.com/articles/slidingdoors/" target="_blank">http://www.alistapart.com/articles/slidingdoors/</a><br />
<br />
Here is the CSS in themes/default/style.css:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<pre class="bbcode_code"style="height:372px;">/* TABBED MENU STYLES */

#tabheader {
	width:100%;
	background:#F7f8f4;
	/*padding: 5px;*/
	clear: both;
	/*text-transform: uppercase;*/
	font-weight: bold;
}
#tabheader ul {
    margin:0;
    padding:0;
    list-style:none;
    background-color:#F7f8f4;
    float:right;
    /*margin-right:5px;*/
}

#tabheader li {
    float:left;
    background:url('../../images/tabtop_right.gif') no-repeat right top;
    margin:0;
    padding:0;
    height:30px;
}
#tabheader a {
    display:block;
    background:url('../../images/tabtop_left.gif') no-repeat left top;
    padding:5px 20px;
	color: #FFFFFF;
	padding-top:12px;
	
}</pre>
</div> Check out the link above for a good explanation of this method.<br />
<br />
You can also see my development site at <a href="http://www.myrehablab.co.nz/webid/index.php" target="_blank">www.myrehablab.co.nz/webid/index.php</a><br />
<br />
Well this is my first blog post. I am no expert on PHP, CSS or HTML for that matter so please go easy on me, but all advice is welcome :)</blockquote>

 ]]></content:encoded>
			<dc:creator>h20boynz</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=673</guid>
		</item>
		<item>
			<title>Neues WeBID Autionshaus</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=248</link>
			<pubDate>Sun, 17 Oct 2010 17:38:14 GMT</pubDate>
			<description>Wir haben unser WeBID Auktionshaus auf eine andere Domain verlegt. 
Wer ein eingedeutschtes WeBID Auktionshausskript in Aktion ansehen und als User...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Wir haben unser WeBID Auktionshaus auf eine andere Domain verlegt.<br />
Wer ein eingedeutschtes WeBID Auktionshausskript in Aktion ansehen und als User testen möchte, der kann auf <a href="http://kruschtelkischt.de/" target="_blank">http://kruschtelkischt.de/</a> das tun. ;)<br />
Wir freuen uns auf Euren Besuch!</blockquote>

 ]]></content:encoded>
			<dc:creator>franky4you</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=248</guid>
		</item>
		<item>
			<title>Debugging A Template Error</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=41</link>
			<pubDate>Fri, 23 Jul 2010 18:31:02 GMT</pubDate>
			<description><![CDATA[This is a (un?)helpful guide of how to debug the incredably unhelpful template compliler errors. 
 
If you don't know what I mean heres an example...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">This is a (un?)helpful guide of how to debug the incredably unhelpful template compliler errors.<br />
<br />
If you don't know what I mean heres an example<br />
<b>Parse error:</b> parse error in <b>C:\wamp\www\webid\includes\template.php(166) : eval()'d code</b> on line <b>69</b><br />
<a href="http://www.webidsupport.com/forums/attachment.php?attachmentid=781&amp;d=1279908893" id="attachment781" rel="Lightbox_41" ><img src="http://www.webidsupport.com/forums/attachment.php?attachmentid=781&amp;d=1279908893&amp;thumb=1" border="0" alt="Click image for larger version

Name:	screen1.jpg
Views:	492
Size:	7.6 KB
ID:	781" class="thumbnail" style="float:CONFIG" /></a><br />
<br />
Now the only helpful part of this is <b>69</b> which is the line in the cache file that contains the error<br />
<br />
If you dont know what template file has the error open the page you are on in your fravorite text editor and search for<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:36px;"><code><code><span style="color: #000000">
<span style="color: #0000BB">$template</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">set_filenames</span><span style="color: #007700">(array(&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> it will look something like<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<div class="bbcode_code"style="height:60px;"><code><code><span style="color: #000000">
<span style="color: #0000BB">$template</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">set_filenames</span><span style="color: #007700">(array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'body'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'newfaq.tpl'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">));&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code></div>
</div> where <b>newfaq.tpl</b> is the template file.<br />
<br />
Now you can either open the template file now and look through to find the error or look in the cache file to get a more accurate idea of whats wrong (recommended on large files).<br />
<br />
If you choose the cache route open the cache folder in your WeBid root and the file your looking for will be named something like <b>tpl_defaultadmin_newfaq.tpl</b> or <b>tpl_default_newfaq.tpl</b> where default is the name of your theme and newfaq.tpl is the name of the theme file. If the theme file is for the admin backend it will have admin directly after the theme name like the first example.<br />
<br />
Now once you've found the correct file now open it up and go to the line indecated by the initial error (in this example 69) this should help you unerstand what wrong. Then fix it in your theme file.<br />
<br />
If you dont know any php I'd recommend <a href="http://sourceforge.net/projects/npp-plugins/files/DBGP%20Plugin/DBGpPlugin_0_11b_dll.zip" target="_blank">DBGP Plugin</a> for NotePad++ to help debuging</blockquote>

 ]]></content:encoded>
			<dc:creator>renlok</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=41</guid>
		</item>
		<item>
			<title><![CDATA[Neat CSS tips & tricks I've learn in the last week]]></title>
			<link>http://www.webidsupport.com/forums/blog.php?b=35</link>
			<pubDate>Tue, 20 Jul 2010 15:55:26 GMT</pubDate>
			<description><![CDATA[Well I've recently been working on coding the new admin backend (You can see the most recent screen on it here...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Well I've recently been working on coding the new admin backend (You can see the most recent screen on it <a href="http://www.webidsupport.com/forums/showthread.php?1022-Request-for-designers&amp;p=13128&amp;viewfull=1#post13128" target="_blank">here</a>)<br />
<br />
<font size="4">Tip 1: Making a container div wrap around a floating div</font><br />
You may of had this problem I know I have many times; when you try and fill a container with floating boxes and the container seems to act like there's nothing in it. With it sitting uncooperatively at the top making your whole design look bad well here's the solution i found :)<br />
<br />
Well lets start with the HTML<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:10*12px};"><span style="color:#000080">&lt;div class=<span style="color:#0000FF">&quot;clearfix&quot;</span>&gt;</span>
<span style="color:#000080">&lt;div style=<span style="color:#0000FF">&quot;width:25%; float:left;&quot;</span> class=<span style="color:#0000FF">&quot;float&quot;</span>&gt;</span>
left
<span style="color:#000080">&lt;/div&gt;</span>
<span style="color:#000080">&lt;div style=<span style="color:#0000FF">&quot;width:70%; float:right;&quot;</span> class=<span style="color:#0000FF">&quot;float&quot;</span>&gt;</span>
right
<span style="color:#000080">&lt;/div&gt;</span>
<span style="color:#000080">&lt;/div&gt;</span></pre>
</div> Nothing really special here just your run of the mill two columns type thing.<br />
<br />
The CSS<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:29*12px};"><span style="color:#800080">&lt;style type=<span style="color:#0000FF">&quot;text/css&quot;</span>&gt;</span>
.clearfix {
	display: inline-block;
	border: 1px solid #BBD8EE; /* just so the box will show */
}

.clearfix:after {
	content: &quot;.&quot;;
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.float {
	border: 1px solid #CCCCCC; /* just so the box will show */
}
<span style="color:#800080">&lt;/style&gt;</span>

<i><span style="color:#000080">&lt;!--&#91;if IE&#93;&gt;</span>
<span style="color:#800080">&lt;style type=<span style="color:#0000FF">&quot;text/css&quot;</span>&gt;</span>
.clearfix {
    zoom: 1;
    display: block;
}
<span style="color:#800080">&lt;/style&gt;</span>
<span style="color:#000080">&lt;!&#91;endif&#93;--&gt;</span></i></pre>
</div> If you dont know, the :after is a pseudo element that adds content after the element. And thats it, pretty simple eh? I honestly have no idea why this works I just know it does.<br />
<br />
<font size="4">Tip 2: The focus pseudo class</font><br />
I can't believe I hadn’t heard of this before it makes forms look so much better. Its similar to :hover for links, when a user has clicked on an input field or...anything really you can set up a new style for when this happens.<br />
<br />
example<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:9*12px};">input, textarea {
	border: 2px solid #000000;
}

input:focus, textarea:focus {
	border: 2px solid #FF0000;
}</pre>
</div> This will give all textboxes/textareas and submit buttons a black border until a user clicks on it when its border will turn red. Pretty horrible colours but you get the picture :)<br />
<br />
<br />
<font size="4">Tip 3: CSS3 Rounded borders</font><br />
Well I've know about this ages but its pretty awesome so I'll share it with everyone<br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:6*12px};">	border-radius: 5px; /* opera 10 &amp; IE 9 */
	-moz-border-radius: 5px; /* firefox */
	-webkit-border-radius: 5px; /* safari */
	-khtml-border-radius: 5px; /* konqueror */</pre>
</div> This will give the element rounded corners with a corner radius of 5px<br />
From the w3 site its defined as &quot;define the radii of a quarter ellipse that defines the shape of the corner&quot;<br />
You can also put two values if you dont want the corners to be perfectly circle for example<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:6*12px};">	border-radius: 5px 2px; /* opera 10 &amp; IE 9 */
	-moz-border-radius: 5px 2px; /* firefox */
	-webkit-border-radius: 5px 2px; /* safari */
	-khtml-border-radius: 5px 2px; /* konqueror */</pre>
</div> This will make the corners squashed in the y-direction for more <br />
<br />
Then if you only want certain corners rounded you can use some of the following<br />
<div class="bbcode_container">
	<div class="bbcode_description">HTML Code:</div>
	<pre class="bbcode_code" style="height:25*12px};">	/* top-left corner */
	border-top-left-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-webkit-border-top-left-radius: 5px;
	-khtml-border-top-left-radius: 5px;

	/* top-right corner */
	border-top-right-radius: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-right-radius: 5px;
	-khtml-border-top-right-radius: 5px;

	/* bottom-left corner */
	border-bottom-left-radius: 5px;
	-moz-border-radius-bottomleft: 5px;
	-webkit-border-bottom-left-radius: 5px;
	-khtml-border-bottom-left-radius: 5px;

	/* bottom-right corner */
	border-bottom-right-radius: 5px;
	-moz-border-radius-bottomright: 5px;
	-webkit-border-bottom-right-radius: 5px;
	-khtml-border-bottom-right-radius: 5px;</pre>
</div> <font size="4">Tip 4: CSS only tabs</font><br />
Not so much a tip more a really nice piece of CSS from <a href="http://unraveled.com/publications/css_tabs/" target="_blank">http://unraveled.com/publications/css_tabs/</a> which is a CSS only tabs<br />
<a href="http://unraveled.com/publications/css_tabs/" target="_blank"><img src="http://media.smashingmagazine.com/cdn_noupe/img/t28.gif" border="0" alt="" /></a><br />
<br />
My first proper blog post dont judge me too harshly :p</blockquote>

 ]]></content:encoded>
			<dc:creator>renlok</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=35</guid>
		</item>
		<item>
			<title>GX-Auction</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=32</link>
			<pubDate>Tue, 29 Jun 2010 09:17:37 GMT</pubDate>
			<description><![CDATA[Some information about theme: 
 
Fresh Theme! 
 
*Structure: *Biggest part *<div> + Css* 
*Info: *Sky Blue theme with *CSS3* and* Html5* tags. Best...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Some information about theme:<br />
<br />
Fresh Theme!<br />
<br />
<b>Structure: </b>Biggest part <b>&lt;div&gt; + Css</b><br />
<b>Info: </b>Sky Blue theme with <b>CSS3</b> and<b> Html5</b> tags. Best support with FireFox 3,5+<br />
<b>Changed files:</b><br />
<br />
<i>header.php</i> <font color="SeaGreen">&lt;- added login function</font><br />
<i>index.php</i> <font color="SeaGreen">&lt;- removed login function</font><br />
<i>all theme/default</i> <font color="SeaGreen">&lt;- almoust everything is changed.</font><br />
<i>login.php </i><font color="SeaGreen">&lt;- modified to work properly in header.tpl section.</font><br />
<br />
Forum:<br />
<br />
<a href="http://www.webidsupport.com/forums/showthread.php?2401-GX-Auction" target="_blank">http://www.webidsupport.com/forums/s...401-GX-Auction</a><br />
<br />
<a href="http://www.ipix.lt/desc/68604907" target="_blank"><img src="http://www.ipix.lt/thumbs/68604907.jpg" border="0" alt="" /></a></blockquote>

 ]]></content:encoded>
			<dc:creator>GomatoX</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=32</guid>
		</item>
		<item>
			<title>Deutsche Übersetzung</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=23</link>
			<pubDate>Thu, 13 May 2010 20:44:18 GMT</pubDate>
			<description>---Quote (Originally by franky4you)--- 
Probiers mal wg. der Hilfe bei: 
http://dekoschrift.ch/ 
Ich glaube die machen sowas! 
 
Ansonsten: 
Themes...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore"><div class="bbcode_container">
	<div class="bbcode_quote">
		<div class="quote_container">
			<div class="bbcode_quote_container"></div>
			
				<div class="bbcode_postedby">
					<img src="images/misc/quote_icon.png" alt="Quote" /> Originally Posted by <strong>franky4you</strong>
					<a href="showthread.php?p=11888#post11888" rel="nofollow"><img class="inlineimg" src="images/buttons/viewpost-right.png" alt="View Post" /></a>
				</div>
				<div class="message">Probiers mal wg. der Hilfe bei:<br />
<a href="http://dekoschrift.ch/" target="_blank">http://dekoschrift.ch/</a><br />
Ich glaube die machen sowas!<br />
<br />
Ansonsten:<br />
Themes gibt es hier:<br />
<a href="http://www.webidsupport.com/mods.php?do=themes" target="_blank">http://www.webidsupport.com/mods.php?do=themes</a><br />
und in den entsprechenden Sektionen im Forum<br />
<br />
Wie Sprachdateien installiert werden findest Du in der Beschreibung....<br />
<br />
Deine RSS Feeds füllen sich von allein sobald du auch Artikel einstellst.<br />
<br />
Im Moment sind wir mit unserem Umzug beschäftigt und haben keine Zeit für so etwas!<br />
<br />
Have fun mit WeBID!<br />
<br />
Schöne Grüße<br />
Frank &amp; Gaby</div>
			
		</div>
	</div>
</div> </blockquote>

 ]]></content:encoded>
			<dc:creator>franky4you</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=23</guid>
		</item>
		<item>
			<title>www.webidsupport.com Help</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=19</link>
			<pubDate>Tue, 04 May 2010 14:42:53 GMT</pubDate>
			<description>I have set this blog up so we can post help related questions in here that relate to the www.webidsupport.com (http://www.webidsupport.com) website,...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">I have set this blog up so we can post help related questions in here that relate to the <a href="http://www.webidsupport.com" target="_blank">www.webidsupport.com</a> website, I have set this up as there is no dedicated forum for posting help related questions, For example, How do I upload attachements to the forum?<br />
 <br />
So If you have questions or problems with any aspect of the <a href="http://www.webidsupport.com" target="_blank">www.webidsupport.com</a> site then post them here and hopefuly they will be answered</blockquote>

 ]]></content:encoded>
			<dc:creator>nay27uk</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=19</guid>
		</item>
		<item>
			<title>Modifications</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=18</link>
			<pubDate>Sun, 02 May 2010 13:23:52 GMT</pubDate>
			<description>Well seeing as people  on here arent doing many mods i will be making mods by request. 
 
I will do the mods on a once a week basis and they will be...</description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">Well seeing as people  on here arent doing many mods i will be making mods by request.<br />
<br />
I will do the mods on a once a week basis and they will be by request.<br />
 I WILL charge for my mods.<br />
My mods WILL be for sale to EVERYONE.<br />
<br />
Anyone want anything doing let me know!</blockquote>

 ]]></content:encoded>
			<dc:creator>andre88uk</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=18</guid>
		</item>
		<item>
			<title>creating blog</title>
			<link>http://www.webidsupport.com/forums/blog.php?b=16</link>
			<pubDate>Mon, 26 Apr 2010 16:50:29 GMT</pubDate>
			<description><![CDATA[When creating a blog you'll want to keep a few things in mind from the very beginning that will help you to properly direct your efforts. If you...]]></description>
			<content:encoded><![CDATA[<blockquote class="blogcontent restore">When creating a blog you'll want to keep a few things in mind from the very beginning that will help you to properly direct your efforts. If you aspire to become one of the most popular blogs in your niche your focus will have to be on the blog reader. If you are blogging to make money then realize your income will be dependent upon the people who visit your site. These people will ultimately decide how popular your blog is or how successful your promotional efforts may be so don't lose sight of that. <br />
<a href="http://www.mightystudents.com" target="_blank">essay topics</a></blockquote>

 ]]></content:encoded>
			<dc:creator>richareford</dc:creator>
			<guid isPermaLink="true">http://www.webidsupport.com/forums/blog.php?b=16</guid>
		</item>
	</channel>
</rss>

