<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>Tutorials</title>
	<link><![CDATA[http://ipbegypt.com/index.php?app=tuts&module=tuts&section=rss]]></link>
	<pubDate>Wed, 08 Sep 2010 00:23:57 +0000</pubDate>
	<ttl>1800</ttl>
	<description>IPBEgyptTutorials RSS</description>
	<item>
		<title>simple tutorial to make unified signature</title>
		<link><![CDATA[http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=26]]></link>
		<description><![CDATA[This will add a unified signature to all your members profiles,<br />
<br />
ACP -&gt; Look & Feel -&gt; Manage Templates & CSS -&gt; Global T [<a href='http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=26'>Read more</a>]]]></description>
		<content><![CDATA[This will add a unified signature to all your members profiles,<br />
<br />
ACP -&gt; Look & Feel -&gt; Manage Templates & CSS -&gt; Global Templates -&gt; signature_separator<br />
<br />
Find:<br />
<br />
[code]&lt;div class="signature"&gt;<br />
        {$sig}<br />
&lt;/div&gt;[/code]<br />
<br />
Then add the desired signature below it  <img src='http://ipbegypt.com/public/style_emoticons/default/unsure.gif' class='bbc_emoticon' alt=':unsure:' />  <img src='http://ipbegypt.com/public/style_emoticons/default/unsure.gif' class='bbc_emoticon' alt=':unsure:' />]]></content>
		<pubDate>Thu, 20 May 2010 19:47:10 +0000</pubDate>
	</item>
	<item>
		<title>Adding a PayPal Hosted Button ID Feature for IPBE MarketPlace v3.0.7</title>
		<link><![CDATA[http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=25]]></link>
		<description><![CDATA[This tutorial will show you how you can add support for a PayPal hosted button ID. A PayPal hosted button ID is a feature from PayPal that allows you  [<a href='http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=25'>Read more</a>]]]></description>
		<content><![CDATA[This tutorial will show you how you can add support for a PayPal hosted button ID. A PayPal hosted button ID is a feature from PayPal that allows you to setup recurring billing such as a Subscription for a Support Package; having a regular button that(buy now, pay now), when added, it could apply  tax percentages that you setup through your PayPal account.<br />
<br />
[size="3"][color="#FF0000"][u][i][b]First And Foremost: Please Remember To Make A Backup Of Your Files Before Editing!![/b][/i][/u][/color][/size]<br />
<br />
Step 1: OK, first off, we'll need to add two(2) new Rows to your items and Member Profile sections in the MarketPlace. The member section allows your members to choose if they want to use the button id, or just use their email as normal for selling items in your MarketPlace.<br />
Go to ACP -&gt; Support tab -&gt; SQL Toolbox, run the following Query to add the necessary rows:<br />
[sql]<br />
ALTER TABLE `ibf_markets_items` ADD `buttonid` TEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL AFTER `price`;<br />
ALTER TABLE `ibf_markets_members` ADD `business_type` VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'email' AFTER `memail`;<br />
[/sql]<br />
<br />
Step 2: File Edits. For this next step, we'll need to edit 3 files to accomplish this task.<br />
<br />
File #1: Open FTP and find, admin -&gt; applications_addon -&gt; other -&gt;  markets -&gt; modules_public -&gt; markets -&gt; items.php,<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]: (In [color="#FF0000"][b][u]function doaddItem()[/u][/b][/color])<br />
[code]<br />
     //----------------------<br />
     // inputs<br />
     //-----------------------<br />
     $stock = intval($this-&gt;request['stock']);<br />
     $unlimited = intval($this-&gt;request['unlimited']);<br />
     $reqship   = intval($this-&gt;request['reqship']);<br />
     <br />
     $price = $this-&gt;request['price'];<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Below[/u][/i][/b][/color]:<br />
[code]<br />
$buttonid = $this-&gt;request['buttonid'];<br />
[/code]<br />
<br />
<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
		//----------------------<br />
		// Approval<br />
		//----------------------<br />
		 $approved = 0;<br />
		 $redirect = $this-&gt;lang-&gt;words['not_approved_redirect'];<br />
		 <br />
		if($this-&gt;libs-&gt;IsApproved())<br />
		{<br />
		 $approved = 1;<br />
		 $redirect = $this-&gt;lang-&gt;words['approved_redirect'];<br />
		 <br />
		 }<br />
	 <br />
	<br />
		<br />
   //-----------------------<br />
   // Save<br />
   //------------------------<br />
   $insert = array('title' =&gt; $title,<br />
			  <br />
			  'owner' =&gt; $this-&gt;memberData[ 'member_id' ],<br />
			  'owner_name' =&gt; $this-&gt;memberData[ 'members_display_name' ],<br />
			  'date' =&gt; time(),<br />
			  'qdesc' =&gt; ( isset( $this-&gt;request['qdesc'] ) ) ? $this-&gt;request['qdesc'] : '',<br />
			  'free' =&gt; $free,<br />
			  'content' =&gt; $content,<br />
			  'approved' =&gt; $approved,<br />
			  'price'    =&gt; $price,<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Below[/u][/i][/b][/color]:<br />
[code]<br />
			  'buttonid'    =&gt; $buttonid,<br />
[/code]<br />
<br />
[color="#FF0000"]<br />
--------------------------------------------------------------------------------------------<br />
[/color]<br />
<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]: (In [color="#FF0000"][b][u]function Doeditmarket()[/u][/b][/color])<br />
[code]<br />
      //----------------------<br />
     // inputs<br />
     //-----------------------<br />
     $stock = intval($this-&gt;request['stock']);<br />
     $unlimited = intval($this-&gt;request['unlimited']);<br />
     $reqship = intval($this-&gt;request['reqship']);<br />
     $price = $this-&gt;request['price'];<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Below[/u][/i][/b][/color]:<br />
[code]<br />
     $buttonid = $this-&gt;request['buttonid'];<br />
[/code]<br />
<br />
<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
		 // &lt!-------------- / End File ----&gt;<br />
		 <br />
			  <br />
			  <br />
		$this-&gt;DB-&gt;update( 'markets_items', array(<br />
		    'title' =&gt; $title,<br />
		    'qdesc' =&gt; ( isset( $this-&gt;request['qdesc'] ) ) ? $this-&gt;request['qdesc'] : '',<br />
			  'free' =&gt; $free,<br />
			  'content' =&gt; $content,<br />
			  'price'    =&gt; $price,<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Below[/u][/i][/b][/color]:<br />
[code]<br />
			  'buttonid'    =&gt; $buttonid,<br />
[/code]<br />
<br />
[color="#FF0000"]<br />
============================================================================================<br />
============================================================================================<br />
[/color]<br />
<br />
File #2: Open FTP and find, admin -&gt; applications_addon -&gt; other -&gt;  markets -&gt; modules_public -&gt; payment -&gt; paypal.php,<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
      //-----------------<br />
      // Log results?<br />
      //--------------------<br />
      <br />
      $this-&gt;ipn_log_file = IPSLib::getAppDir( 'markets' ) . '/logs/ipn_log.txt';<br />
      $this-&gt;ipn_log = true;<br />
      $this-&gt;last_error = '';<br />
      $this-&gt;ipn_response = '';<br />
      $this-&gt;add_field('rm','2');           // Return method = POST for paypal<br />
      $this-&gt;add_field('cmd','_xclick'); <br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Then Remove From The Above[/u][/i][/b][/color]:<br />
[code]<br />
      $this-&gt;add_field('cmd','_xclick'); <br />
[/code]<br />
<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
          $this-&gt;add_field( 'business' , $Owner['mpbusiness']);<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Replace With[/u][/i][/b][/color]:<br />
[code]<br />
          if ( $Owner['business_type'] == 'email' )<br />
          {<br />
               $this-&gt;add_field( 'cmd' , '_xclick' );<br />
               $this-&gt;add_field( 'business' , $Owner['mpbusiness']);<br />
          }<br />
          else<br />
          {<br />
               $this-&gt;add_field( 'cmd' , '_s-xclick' );<br />
          }<br />
[/code]<br />
<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
          $this-&gt;add_field( 'amount' , $item['price']);<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Replace With[/u][/i][/b][/color]:<br />
[code]<br />
          if ( $Owner['business_type'] == 'email' )<br />
          {<br />
               $this-&gt;add_field( 'amount' , $item['price']);<br />
          }<br />
          else<br />
          {<br />
               $this-&gt;add_field( 'hosted_button_id' , $item['buttonid']);<br />
          }<br />
[/code]<br />
<br />
[color="#FF0000"]<br />
============================================================================================<br />
============================================================================================<br />
[/color]<br />
<br />
File #3: Open FTP and find, admin -&gt; applications_addon -&gt; other -&gt;  markets -&gt; modules_public -&gt; payment -&gt; profile.php,<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
	  //-----------------------------------------<br />
		// Check the email address<br />
		//-----------------------------------------<br />
		$mpbusiness = $this-&gt;request['mpbusiness'];<br />
		if( !IPSText::checkEmailAddress( $mpbusiness ) )<br />
		{<br />
		  $this-&gt;registry-&gt;output-&gt;showError( $this-&gt;lang-&gt;words['invalid_email'] );<br />
	     return;<br />
		}<br />
		<br />
		$mname = $this-&gt;memberData['members_display_name'];<br />
		<br />
		if($this-&gt;settings['auth_allow_dnames'] == 0)<br />
		{<br />
		 $mname = $this-&gt;memberData['name'];<br />
		}<br />
		<br />
		$save = array(<br />
		'mid'        =&gt; $this-&gt;memberData['member_id'],<br />
		'mname'      =&gt; $mname,<br />
		'memail'     =&gt; $this-&gt;memberData['email'],<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Below[/u][/i][/b][/color]:<br />
[code]<br />
                'business_type' =&gt; $this-&gt;request['business_type'],<br />
[/code]<br />
<br />
Step 3: Template Edits.<br />
Template Edit #1: Go to ACP -&gt; Look & Feel -&gt; Select Skin -&gt; skin_markets -&gt; ShowForm,<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
				&lt;li class='field'&gt;<br />
					&lt;label for='row'&gt;{$this-&gt;lang-&gt;words['price']} &lt;/label&gt;<br />
					{$this-&gt;settings['markets_sign']} &lt;input type='text' class='input_text' name='price' id='price' value='{$row[ 'price' ]}' size='50' /&gt;&lt;span class="desc"&gt;{$this-&gt;lang-&gt;words['price_desc']}&lt;/span&gt;<br />
				&lt;/li&gt;<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Below[/u][/i][/b][/color]:<br />
[code]<br />
				&lt;li class='field'&gt;<br />
					&lt;label for='row'&gt;PayPal Hosted Button ID &lt;/label&gt;<br />
					&lt;input type='text' class='input_text' name='buttonid' id='buttonid' value='{$row[ 'buttonid' ]}' size='50' /&gt;&lt;span class="desc"&gt;This is so payments are made as a "Purchase Payment" and not a "Personal Payment" which PayPal takes out fees.&lt;/span&gt;<br />
				&lt;/li&gt;<br />
[/code]<br />
<br />
Template Edit #2: Go to ACP -&gt; Look & Feel -&gt; Select Skin -&gt; skin_markets_member -&gt; BusinessProfile,<br />
[color="#008000"][b][i][u]Find[/u][/i][/b][/color]:<br />
[code]<br />
  &lt;tr class='{parse striping="catTable"}'&gt;<br />
     &lt;td class="altrow" width="50%"&gt;&lt;b&gt;{$this-&gt;lang-&gt;words['business']}&lt;/b&gt;&lt;br&gt;<br />
           &lt;p class="desc"&gt; {$this-&gt;lang-&gt;words['business_desc']}<br />
          &lt;/p&gt;<br />
     &lt;/td&gt;<br />
     &lt;td class="altrow"&gt; &lt;input type='text' class='input_text' name='mpbusiness' id='mpbusiness' value='{$data['mpbusiness']}' size='50' /&gt;&lt;/td&gt;<br />
   &lt;/tr&gt;<br />
[/code]<br />
<br />
[color="#FF0000"][b][i][u]Add Above[/u][/i][/b][/color]:<br />
[code]<br />
  &lt;tr class='{parse striping="catTable"}'&gt;<br />
     &lt;td class="altrow" width="50%"&gt;&lt;b&gt;Business Type&lt;/b&gt;&lt;br&gt;<br />
           &lt;p class="desc"&gt; Please choose if you would like to use your PayPal Email address defined below or with a paypal Hosted Button ID?&lt;br /&gt;PayPal Email address is for all items you sell.&lt;br /&gt;PayPal Hosted Button ID is a "Per-Item" setting and must be defined individually when adding items for sell.<br />
          &lt;/p&gt;<br />
     &lt;/td&gt;<br />
     &lt;td class="altrow"&gt;&lt;select name="business_type" id="business_type"&gt;<br />
     &lt;option value="{$data['business_type']}"&gt;Select Business (Current = {$data['business_type']})&lt;/option&gt;<br />
     &lt;option value="email"&gt;PayPal Email&lt;/option&gt;<br />
     &lt;option value="button"&gt;PayPal Hosted Button&lt;/option&gt;<br />
     &lt;/select&gt;&lt;/td&gt;<br />
   &lt;/tr&gt;<br />
[/code]<br />
<br />
Once you have done all of the following instructions, you should now have the ability of switching from your Email Address to a PayPal Hosted Button ID.<br />
<br />
If you have questions or concerns about this tutorial, please post your comments and I'll try to help you with this.<br />
<br />
Regards,<br />
Donald <img src='http://ipbegypt.com/public/style_emoticons/default/happy.gif' class='bbc_emoticon' alt='^_^' />]]></content>
		<pubDate>Wed, 21 Apr 2010 17:22:47 +0000</pubDate>
	</item>
	<item>
		<title>Enable mod_rewrite in xampp</title>
		<link><![CDATA[http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=24]]></link>
		<description><![CDATA[To Enable FURL on your local installation you should enable the mod_rewrite 1st.<br />
This tutorial will walk you through the required edits for it t [<a href='http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=24'>Read more</a>]]]></description>
		<content><![CDATA[To Enable FURL on your local installation you should enable the mod_rewrite 1st.<br />
This tutorial will walk you through the required edits for it to work properly.<br />
Go to the directory of installation &lt;driver&gt;: &lt;xampp&gt;&#092;apache&#092;conf  and edit httpd.conf.<br />
Find<br />
[code]<br />
#LoadModule rewrite_module modules/mod_rewrite.so<br />
[/code]<br />
<br />
Change it to:<br />
[code]<br />
LoadModule rewrite_module modules/mod_rewrite.so<br />
[/code]<br />
<br />
Then find (twice of 3 times depending on your xampp version):<br />
<br />
[code]<br />
AllowOverride None <br />
[/code]<br />
<br />
Change it to:<br />
<br />
[code]<br />
AllowOverride All<br />
[/code]<br />
<br />
Reboot your system<br />
and that should be it]]></content>
		<pubDate>Sun, 04 Apr 2010 00:05:11 +0000</pubDate>
	</item>
	<item>
		<title><![CDATA[Delete Member's Status]]></title>
		<link><![CDATA[http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=23]]></link>
		<description><![CDATA[I got this this Idea from a spammer on my site!<br />
So thanks goes to him rofl!<br />
<br />
Right this tut will allow moderators/admins to  [<a href='http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=23'>Read more</a>]]]></description>
		<content><![CDATA[I got this this Idea from a spammer on my site!<br />
So thanks goes to him rofl!<br />
<br />
Right this tut will allow moderators/admins to delete member's status. I couldnt find a way to do it in ACP or Public end<br />
so had to code it<br />
<br />
Upload This file to <br />
<br />
admins/applications/member/modules_public/profile/<br />
[url="http://ipbegypt.com/stuff/modstatus.php"][b]RIGHT CLICK AND SAVE AS[/b][/url]<br />
<br />
Then goto ACP&gt; Look & Feel &gt; Skin name &gt; Board Index &gt; hookBoardIndexStatusUpdates <br />
<br />
Find <br />
[code]<br />
&lt;li class='hentry {parse striping="recent_status"}'&gt;<br />
[/code]<br />
<br />
Add after <br />
[code]<br />
&lt;if test="statusmoderator:|:$this-&gt;memberData['is_mod'] == 1"&gt;<br />
								&lt;ul class='right'&gt;<br />
									&lt;li class='t_delete'&gt;<br />
&lt;a href='{parse url="app=members&amp;module=profile&amp;section=modstatus&amp;member_id={$r['pp_member_id']}&amp;k={$this-&gt;member-&gt;form_hash}&amp;rurl={parse expression="base64_encode('act=idx')"}" base="public"}' title='{$this-&gt;lang-&gt;words['delete_comment_text']}'&gt;<br />
&lt;img src='{$this-&gt;settings['img_url']}/delete.png' alt='{$this-&gt;lang-&gt;words['delete_comment_text']}' title='{$this-&gt;lang-&gt;words['delete_comment_text']}' /&gt;<br />
&lt;/a&gt;&lt;/li&gt;<br />
								&lt;/ul&gt;<br />
							&lt;/if&gt;<br />
[/code]]]></content>
		<pubDate>Wed, 10 Mar 2010 03:48:50 +0000</pubDate>
	</item>
	<item>
		<title>Change Allowed File Extensions in Market Place</title>
		<link><![CDATA[http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=22]]></link>
		<description><![CDATA[With FTP <br />
Goto &gt; admin &gt; applications_addon &gt; other &gt; markets &gt; public_module &gt; markets &gt; items.php<br />
<br />
Find (TWIC [<a href='http://ipbegypt.com/index.php?app=tuts&module=tuts&section=tuts&do=view&t_id=22'>Read more</a>]]]></description>
		<content><![CDATA[With FTP <br />
Goto &gt; admin &gt; applications_addon &gt; other &gt; markets &gt; public_module &gt; markets &gt; items.php<br />
<br />
Find (TWICE)<br />
[code]<br />
$file-&gt;allowed_file_ext = array( 'zip', 'rar' );<br />
[/code]<br />
<br />
Now you can add the extensions you want for example<br />
If you want to add 'exe' extension<br />
the code should look like this<br />
<br />
[code]<br />
$file-&gt;allowed_file_ext = array( 'zip', 'rar', 'exe');<br />
[/code]<br />
<br />
<br />
Make sure not to for get to add the comma before your new extension [color="#FF0000"][b], 'exe'[/b][/color]]]></content>
		<pubDate>Mon, 22 Feb 2010 08:17:54 +0000</pubDate>
	</item>
</channel>
</rss>