jiipsijack
Forum Replies Created
-
Forum: Plugins
In reply to: [YOP Poll] TranslationHi there I would like to change the error message for when a non registered user tries to vote in a registered only poll from: “you are not allowed to vote” to “you must be logged in or registered to vote in this poll” Cheers.
Fantastic, Is the search revamping going to be in the next release? I know it’s impossible to give an exact date but do you have a target time or anything?
Correct, that’s what i’m after, If they can search all the fields on the listing that would be great.
Any response on this? I understand it’s not just a basic solution but whatever the answer it would be great to hear something so I know where we’re at. Even if you could tell me where in the code this is handled so I have some idea of where to start? Thanks.
I understand it’d hardwired to do that, what I’m asking is if there is any way to adjust the code that will make it search all three fields, for people to use my keywords field they would have to search the same words in both fields for the search to check the entire listing for them which isn’t very practical or user friendly. If it’s easier Could I change the code on the extra field to search all three and remove the original search keywords option?
Sorry, I did a terrible job of explaining this, I have extra fields, My keywords field is marked as public but made invisible so it is on the listing, you just can’t see it, What I’m trying to change is the fields that the standard “search for ads containing this word or phrase” field will pick up so it will look at what’s in my extra field, as it currently only looks in ad details and ad title, I’m trying to avoid having an extra search box for keywords since it will look to a user as if they’re just searching the same things twice. Sorry for my awful explanation and thanks for your response.
It’s worked! I’ve differentiated between fields now and my address field is showing up as a link while my keywords field is showing up hidden in listings, just like I wanted
For anyone else trying something similar the code I used looks like:
`else if (count($value) > 0 && $field->field_name == “address”) {
$value = awpcp_extra_fields_render_field_single_value($field, $value[0]);
$html .= sprintf( ‘<span class=”awpcp-extra-field-value”><address>%s</address></span>’, $value );
} else if (count($value) > 0 && $field->field_name == “keywords”) {
$value = awpcp_extra_fields_render_field_single_value($field, $value[0]);
$html .= sprintf( ‘<span class=”awpcp-extra-field-value”><font color=”white”>%s</font></span>’,`However I didn’t realise that the search form doesn’t recognise the content of extra fields unless I have a search section specifically for that. Is there any way that I can change the search form so it will read from “ad title” “ad details” and my extra field? If you like I can start a new Forum question as this is sort of a different question now.
Fantastic! Thank you so much for your help, The support for this plugin really is great. I’ll give this a whirl and let you know how it works out.
It doesn’t seem daunting, all I really need is a starting point so if you wouldn’t mind explaining how to use the $field->field_name to differentiate, I’m sure I can figure the rest out myself. Thanks once again for your time.
Hi there, thanks again for your reply, while I appreciate your confidence in my coding abilities, unfortunately I’m not certain how to use $field->field_name to differentiate the fields. I see this line 30 times in awpcp_extra_fields_module.php. If you could tell me how to use it to see which field is being processed I’m sure I could figure the rest out with that as a starting point. And you are correct, it is two text fields.
Thanks in advance.
Hi there, Sorry to inundate but I see that your developer is back as other support queries have been resolved, was just wondering whether any ground has been made on this? Really need to get it sorted and I can’t figure it out by myself unfortunately, Thanks Again.
Thanks for such a prompt reply, I look forward to hearing from him.
Solved this by changing the limit in the mysql db from 255 to 500.