Using Displays in Marquee

Good afternoon,

First off, I love the plugin and have used it for my own site as well as several client’s sites getting them to purchase the PRO version.

I am using it for another site where as I have completed a form that simply has a title and text.

The client wants to display those entries a marquee style, which I have successfully done using the PHP shortcode in the theme.

The problem is that it shows all the entries that scroll in the marquee where the idea is to show one entry at a time.

Is there a way to do something similar to WordPress for the display i.e. while – for each – end while – end each?

I hope  that makes sense.

On another quick note, if there is a way to limit the character input in the textarea field that would be great.

As always, thank you for your great support.

By the way, I have created a custom post type called Marguee. When the form is submitted, it does create the post entry in the custom Marquee post type. Which is good.

I just cannot figure out how to show one of those custom post types at a time in the marguee.

Thanks again.

Here is the code you need to limit the word count on your text field: http://formidablepro.com/knowledgebase/formidable-hooks/frm_validate_field_entry/#kb-minimum-word-count

Take a look at this page...I think the "create a random testimonial widget" might be what you are looking to accomplish. http://formidablepro.com/knowledgebase/use-formidable-pro-for-testimonials-2/
Let us know if you have other questions on this.

Thanks Steve, I will check it out.

I added the word count code to my functions.php but it didn't work. I am assuming I should add it somewhere else?

functions.php is the right place to add that code. Can you post the code here that you are using?

add_filter('frm_validate_field_entry', 'my_custom_validation', 10, 3);
function my_custom_validation($errors, $posted_field, $posted_value){
if($posted_field->id == 25){ //change 25 to the ID of the field to validate
//check the $posted_value here
$words = explode(' ', $posted_value); //separate at each space
$count = count($words); //count each word
//if it doesn't match up, add an error:

if($count > 125) //change to > to limit the word count
$errors['field'. $posted_field->id] = 'Your message has too many characters.';
}
return $errors;
}
I changed it to be activated if above 125
Thanks much

if($posted_field->id == 25){ //change 25 to the ID of the field to validate

Did you change the 25 to the ID of your text field?

Hi Steve,

I hope you had a great weekend. Thank you for your continued support.

Initially, no.. I did not do that... duh on me. However, even after doing it didn't work but I must not have refreshed both the site and the form. So that part seems to work fine now. Thanks much!

Now, I just need to figure out how to get the marquee entries to scroll as separate entries instead of all of them one on top of the other. (By doing it like that, it is outside the marquee area).

I have tried creating the entries as posts and then using the normal if/while that is inherit to WordPress but the same results. It may be just a matter of some CSS styling I have thought of.

I will check out your other link and then update this post when I find a solution.

Thanks again.

Quick update: Thank You!

I am so close now I can taste it. I ended up using your testimonial process and instead of putting the marquee element in the PHP of the template, I put it in the display.

Now... I just need to style it.

The only thing I can see is that the random seems to take more than a couple of refreshes to show the next one. Maybe when more are added that will change.

I really don't want to use the marquee element but the client is insisting.

Thanks much!~

Further help is difficult without seeing your marquee. Can you provide a link to this page so I can take a look?

The random is random, so if you only have a couple entries, chances are that the same one will be displayed repeatedly. This should change as you get more in there.

Hi Steve,

I meant to actually close the ticket but if you have a moment and want to check it out you can. (The site, of course, is still in development.

Based on your support and help, I did get it work and I did add a couple more of mock up marquee entries so they randomize more often. Based on the fact, we both mentioned that... I have no doubt.

You can check it out at http://thesystemcamps.com/wpsite/

I am building out this guy's site in WordPress obviously getting him away from C5.

Thanks.

 

If you want, you can check out this page on the site as well and see what else I am doing with your great plugin.

http://thesystemcamps.com/wpsite/registration-form/

 

 

Topic closed.