| 
Welcome, Guest

#145 removing filters in list
(1 viewing) (1) Guest

TOPIC: #145 removing filters in list

Re:removing filters in list 3 years, 5 months ago #81687

  • beat
  • beat
  • ONLINE
  • Administrator
    Administrator
  • Posts: 6783
  • Karma: 327
I'm recognizing the bug effect...

Hope you or someone has the time in next days for a tested fix proposal, it's the right time for that
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:removing filters in list 3 years, 5 months ago #82814

  • ndee
  • ndee
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 543
  • Karma: 19
cmon.. i made an extensive report of my findings and the "POST method not implemented error" destroyed it!!!!!!!!


EDIT: I get always this error on pasting php code into code blocks
Method Not Implemented
 
POST to /component/option,com_joomlaboard/Itemid,38/func,post/ not supported.
Apache Server at www.joomlapolis.com Port 80


Post edited by: ndee, at: 2008/12/19 00:06
###################
SPEED UP HELP, read first: Help us help you
###################
The topic has been locked.

Re:removing filters in list 3 years, 5 months ago #82816

  • krileon
  • krileon
  • OFFLINE
  • Moderator
    Moderator
  • Posts: 24022
  • Karma: 695
ndee wrote:
cmon.. i made an extensive report of my findings and the "POST method not implemented error" destroyed it!!!!!!!!


Then will you please kindly retype your findings. This error occurs from time to time. Just copy your posts everytime as I do.
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Advanced, Professional, Developer, or CBSubs subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Advanced, Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
--
My personal site(s)/link(s): AllMySocials - Tutorials
The topic has been locked.

Re:removing filters in list 3 years, 5 months ago #82818

  • ndee
  • ndee
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 543
  • Karma: 19
second try....
third try... making two parts...

################# POST - after adding filter and saving list ############
filtertype 0
filterfieldlist `name`
comparison =
condition zzzzz
filter `name` ='zzzzz'
advFilterText
filterfields s(`name` ='zzzzz')
 
 
########## POST - after loading list again and removing filter and saving list#############
filtertype 0
filterfieldlist `name`
comparison >
condition
advFilterText `name` ='zzzzz'
filterfields `name` ='zzzzz'
 


As you can see above the filterfields var is not empty as it should. Where can I find the fuction which works wrong? I do not understand which function updates the db entry and which does not properly empty the var...
###################
SPEED UP HELP, read first: Help us help you
###################
The topic has been locked.

Re:removing filters in list 3 years, 5 months ago #82820

  • ndee
  • ndee
  • OFFLINE
  • Platinum Boarder
    Platinum Boarder
  • Posts: 543
  • Karma: 19
What I understand:
In the filterfields column the filterstring/condition and the view type of the filter is stored together.
s() stands for simpleview

In the codeblock below the "s(" and ")" gets stripped. The bug effect we see is that the crippled string gets stored and then stripped again after opening the db again. So the remove function does not remove the entire string but only first 2 chars and the last one. Where should I search to get this fixed?

File: comprofiler.admin.html.php
Line: 822 - 852
CB 1.2 RC4
		$simChecked="";
$advChecked="";
$simStyle="display:none;";
$advStyle="display:none;";
$filttype=substr($row->filterfields,0,1);
$row->filterfields=substr($row->filterfields,2,-1);
if($filttype=="a"«») {
$advChecked="CHECKED";
$advStyle="display:block;";
} else {
$simChecked="checked=\"checked\"";
$simStyle="display:block;";
}
$filterlists=explode(" AND ",$row->filterfields);
$filterparts=array();
$i=0;
foreach($filterlists as $filterlist) {
 
$filterlistpart=array();
$filterlistpart=explode(" ",$filterlist);
$filterparts[$i]['field']=str_replace("`","",$filterlistpart[0]);
$_CB_database->setQuery("SELECT title FROM #__comprofiler_fields WHERE name='".$filterparts[$i]['field']."' LIMIT 1"«»);
$filtertitle=$_CB_database->loadResult();
$filterparts[$i]['value']=$filterlist;
$filterparts[$i]['title']=str_replace(array("'","`"«»),"",str_replace($filterparts[$i]['field'],getLangDefinition($filtertitle),$filterlist));
 
$i++;
}


Beat, I hope you can give me a hint


PS: METHOD NOT IMPLEMENTED error is caused by // commented php lines
###################
SPEED UP HELP, read first: Help us help you
###################
The topic has been locked.

Re:removing filters in list 3 years, 5 months ago #82914

  • beat
  • beat
  • ONLINE
  • Administrator
    Administrator
  • Posts: 6783
  • Karma: 327
No real idea without digging into the code. But added it to the things to check.

#145
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.
Time to create page: 0.99 seconds