Home Joomla 1.0 Web Development SerrBizSEF Joomla SEO Community Builder SEFS article tab
Joomla 1.0 Web Development
Community Builder SEFS article tab

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
File Location:
/components/com_comprofiler/plugin/user/plug_cbmamboauthortab/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';
if(file_exists($filepath)) {
require_once($filepath);
$strURL = sefRelToAbs($artURL.$item->id);
}else{
$strURL = $artURL.$item->id;
}
$return .= "<tr class=\"sectiontableentry$i\"><td>".mosFormatDate($item->created)."</td><td><a href=\"".$strURL."\">".$item->title."</a></td>".$hits.$rating."</tr>\n";

/* 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.

 

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:


Request Services
 
First Name
Last Name
E-mail
Phone
Domain
Service needed
Budget
  
Watch video overview


+ Suggested tags