| 
Welcome, Guest

#102 CB Search & sh404sef
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: #102 CB Search & sh404sef

#102 CB Search & sh404sef 3 years, 2 months ago #79827

  • Posts:
  • Karma:
I'm currently using CB 1.2, RC3. I use sh404sef, and am having a 404 error issue when searching within a userlist.

According to the developer of sh404, the CB module has commented out the call to cbSef here:

<div class="cbUsersList"><div id="cbUsersListInner">
<form class="cb_form" name="adminForm" id="adminForm" method="get" action="<?php echo /* cbSef */ ($ue_base_url."&action=search"«»); // on purpose without SEF, as joomla 1.0/mambo 4.5.5 core sef doesn't work with this.
?>" >


Also, they said that the following "action" code in the comprofiler.html.php file refers to a relative link, where it should be absoulute:

<div class="cbUsersList"><div id="cbUsersListInner">
<form class="cb_form" name="adminForm" id="adminForm" method="get" action="index.php?option=com_comprofiler&task=usersList&listid=7&Itemid=103&action=search" >


In any event, this is the one thing that is keeping me from using Community Builder with sh404. Any ideas on a fix for this problem? sh404 will be an integral part of my site as it is required for the use of the Profile URL plugin.

Regards

EDIT: added #

Post edited by: beat, at: 2008/11/29 14:56
The topic has been locked.

Re:CB Search & sh404sef 3 years, 2 months ago #79919

  • Posts:
  • Karma:
2 different issues here:

1) not calling cbSef on userslists is unfortunately normal, as the search form itself gets posted as a GET (so that the back button of the browser can be used) instead of a POST. In that case all the search arguments are appended by the browser to the URL with &arg=value... And in Joomla 1.0 core SEF, that doesn't work when the bas URL is sefed.

2) not prepending the live_site URL : that's really a bug which can affect sefed site.
added as #102.
Beat
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Subscribe to CB documentation - Our templates - Paid Subscriptions - Get Hosting - Our Forge - Incubator
Visit my CB Profile - Send me a Private Message (PM)
--
help us spend more time coding by helping others in this forum, many thanks
The topic has been locked.

Re:#102 : CB Search & sh404sef 3 years, 2 months ago #80898

  • Posts:
  • Karma:
Search pagination and 2nd search doesn't work with SEF set to on:


To fix:

open comprofiler.html.php and search for:

		$ue_base_url			=	"index.php?option=com_comprofiler&amp;task=usersList&amp;listid=" . $listid . "&amp;Itemid=" . $option_itemid; // . $spoofAmp;	// Base URL string
 


replace by:

		$ue_base_url			=	$_CB_framework->getCfg( 'live_site' ) . '/index.php?option=com_comprofiler&amp;task=usersList&amp;listid=' . $listid . "&amp;Itemid=" . $option_itemid;	// Base URL string
 



Moving to identified issues forum.
Beat
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Subscribe to CB documentation - Our templates - Paid Subscriptions - Get Hosting - Our Forge - Incubator
Visit my CB Profile - Send me a Private Message (PM)
--
help us spend more time coding by helping others in this forum, many thanks
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.93 seconds