#102 CB Search & sh404sef
- pbrooksmac
- OFFLINE
- Posts: 1
- Thanks: 0
- Karma: 0
15 years 6 months ago #79827
by pbrooksmac
#102 CB Search & sh404sef was created by pbrooksmac
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:
[code:1]<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.
?>" >[/code:1]
Also, they said that the following "action" code in the comprofiler.html.php file refers to a relative link, where it should be absoulute:
[code:1]<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" >[/code:1]
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
According to the developer of sh404, the CB module has commented out the call to cbSef here:
[code:1]<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.
?>" >[/code:1]
Also, they said that the following "action" code in the comprofiler.html.php file refers to a relative link, where it should be absoulute:
[code:1]<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" >[/code:1]
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
Please Log in or Create an account to join the conversation.
- beat
- OFFLINE
- Posts: 8175
- Thanks: 528
- Karma: 352
15 years 6 months ago #79919
by beat
Beat - Community Builder Team Member
Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Replied by beat on topic Re:CB Search & sh404sef
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.
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 -- Help us spend more time coding by helping others in this forum, many thanks
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Please Log in or Create an account to join the conversation.
- beat
- OFFLINE
- Posts: 8175
- Thanks: 528
- Karma: 352
15 years 5 months ago #80898
by beat
Beat - Community Builder Team Member
Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Replied by beat on topic Re:#102 : CB Search & sh404sef
Search pagination and 2nd search doesn't work with SEF set to on:
To fix:
open comprofiler.html.php and search for:
[code:1] $ue_base_url = "index.php?option=com_comprofiler&task=usersList&listid=" . $listid . "&Itemid=" . $option_itemid; // . $spoofAmp; // Base URL string
[/code:1]
replace by:
[code:1] $ue_base_url = $_CB_framework->getCfg( 'live_site' ) . '/index.php?option=com_comprofiler&task=usersList&listid=' . $listid . "&Itemid=" . $option_itemid; // Base URL string
[/code:1]
Moving to identified issues forum.
To fix:
open comprofiler.html.php and search for:
[code:1] $ue_base_url = "index.php?option=com_comprofiler&task=usersList&listid=" . $listid . "&Itemid=" . $option_itemid; // . $spoofAmp; // Base URL string
[/code:1]
replace by:
[code:1] $ue_base_url = $_CB_framework->getCfg( 'live_site' ) . '/index.php?option=com_comprofiler&task=usersList&listid=' . $listid . "&Itemid=" . $option_itemid; // Base URL string
[/code:1]
Moving to identified issues forum.
Beat - Community Builder Team Member
Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Please Log in or Create an account to join the conversation.
Moderators: beat, nant, krileon