| Community Builder SEFS article tab |
| Friday, 24 August 2007 12:13 | |||
|
Modify Community Builder to show SEFS in article tab of members profile To make your Joomla website with Community Builder as SEO as possible, we recommend you perform the following modification to one CB file. This modification will allow CB to show SEFS in the articles tab of a member profile. If this modification is not made, then CB will show Joomla’s default URLS. This is OK, as SerrBizSEF will 301 redirect the default URL to the corosponding SEF. But, for optimum SEO, we recommend this modfication. File name: cb.authortab.php Details of hacking: Step 1: Back up above file. Open above file. Step 2: Go to line 159 (approximate location) or search for following statement. $return .= "<tr class=\"sectiontableentry$i\"><td>".mosFormatDate($item->created)."</td><td><a href=\"".$artURL.$item->id."\">".$item->title."</a></td>".$hits.$rating."</tr>\n"; Step 3: Comment this line by adding two back slashes. // $return .= "<tr class=\"sectiontableentry$i\"><td>".mosFormatDate($item->created)."</td><td><a href=\"".$artURL.$item->id."\">".$item->title."</a></td>".$hits.$rating."</tr>\n"; Step 4: Now add following code just after above statement. /* code to replace starts */ $filepath = $GLOBALS['mosConfig_absolute_path'].
'/administrator/components/com_serrbizsef/serrbizsef.sef.php'; /* code to replace ends */ Step 5: Save this file and close it. Step 6: Upload file to server. Check the Article tab in CB member profile, the internal URLs should be replaced with SerBizSEF URLs. Note: You may need to clear cache and refresh to see changes.
|
|||
| Last Updated ( Friday, 24 August 2007 12:17 ) |