suntower
Forum Replies Created
-
Forum: Plugins
In reply to: [Appointment Calendar] Pre-Sales QuestionsHello Frank,
Q1. What we want is for clients to be able to visit a particular page with a picture of a Staff person and then make an appointment with -that- person. The Staff ID should be pre-selected and the choice of times/services be limited to only that person. We will need a separate page for each Staff person. My hope was that the APCAL shortcode had parameters for Staff ID.
Also: What are the options for localization (spellings) and CSS? I’m sure you realise that there are -numerous- spelling mistakes in the product. We also would need to be able to customise the styles to fit our own company theme.
Also: Is there a way to book an appointment that does NOT require ‘approval’? None of our staff will need that. Also, the text sent to clients will be confusing so we need to be able to change that. Clients will not know whether their appointment is ‘real’ or not.
Forum: Plugins
In reply to: [Appointment Booking Calendar - BirchPress Scheduler] Pre-Sales QuestionHi again. Thanks for the reply. A couple of follow ups…
1. Where you wrote: “Currently there is no way to have the bp-calendar form pre-populate with a given ‘Staff’ ID. It is already in our future development list, but will be not implemented in the near future. This can be done by adding a parameter to the short code.”
Do you mean there is already a shortcode for this? -Or- do you mean you can show me how to do this via PHP?
2. Where you wrote: “We think it is better to use short code to implement that instead of making it public. This can be more compatible with other themes and plugins.”
Do you mean there is already a shortcode for this?
5. So is every Staff given a separate User ID? We don’t want User ‘Bob’ to be able to see User ‘Mary’ calendar.
One other thing: I tried the free version and there is no blocking of appointments at the same time. I assume this is included in the ‘Pro’ version?
TIA,
—JC
Forum: Plugins
In reply to: [Promotion Slider] Auto Advance Not Working (jQuery)Yes. I must be getting blind… impatient… or ADHD in my old age. If you were to look at the two sites, you’d see that one calls a file ‘promoslider.js’ and the one that doesn’t work is ‘promotion_slider.js’. Both were run through the Admin update service and registered as version 3.51 and the first few lines of both are the same. But at a certain point inside they contain -very- different js. So the older file promoslider.js works within this theme (themeforest websplash) and the larger file (promotion_slider.js) does -not-… I guess because it contains that .replace() method.
I contacted the theme author and he sent me an ‘update’ in which he simply included a minified jQuery 1.8… rather than re-writing to call jQuery from the WP core (which I thought was best practice.) So I am recommending that my client move away from this theme.
Thanks. Sorry to give you a wild goose chase. I appreciate your following up… one of the reasons I recommend this plug to clients.
Best,
—JC
Forum: Plugins
In reply to: [Promotion Slider] Auto Advance Not Working (jQuery)Hi Micah,
I am SOOOOOO SORRY. I gave you the wrong domain for the one that does -not- work. The client created a subdomain just for ‘me’ to look at this which -does- load the promotion-slider.js and yet it -still- does not work. I can see the settimeout advancing in Firebug, but it hits line 171 and then throws an error at the console
Working: http://test2.raima.com
NOT working: http://jcharris.raima.com
TypeError: c.replace is not a function
http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js?ver=1.5.1
Line 16…but as I said, on the test2.raima.com site, it’s configured (supposedly) the same and it -does- work—in spite of the old jQuery 1.51.
Can you please look at it again. I know it’s annoying. I truly apologise. I’ll even donate again! π
Forum: Plugins
In reply to: [HTML Import 2] [Plugin: HTML Import 2] Postname Permalinks Not WorkingAfter I wrote this, I found that I could save myself some real time by manipulating the db directly. I’m comfortable doing this, but I caution others to think twice and BACKUP before doing so. I learned (by somewhat painful trial and error) how permalinks and revisions are stored–hence the reason for all my ‘phantom’ permalinks.
The ‘trick’ (if there is one) is just to realise that if you are getting dupes it’s because every draft/revision/or post of any type might share that same permalink (name). You just have to search by that field and get rid of the dupes… Again, you run the risk of de-normalising your data (creating orphans) if you’re not careful.
Forum: Plugins
In reply to: [HTML Import 2] [Plugin: HTML Import 2] Including Line Breaks?Wow. Message in a bottle. π
It’s a bit late for what I was doing at the time, but I do appreciate the reply. Likely will come in handy.
Cheers,
—JC
Good idea.
Can you point me to where the code which ‘automatically’ invokes dataTable is loaded (if you check the box) so I see how the plug-in does it?
Thanks,
—JC
Thanks. Got it to work. The dataTables guy has some great examples.
QUESTION: Although what I did works fine, I couldn’t figure out a way to hook into the dataTable object when it first -loads-. IOW: I could only get my filters to work if I issue an fnDraw() in the jQuery ready(). So I think the table is loading and -then- it is redrawing with my filter. Again, not a problem for my end-users BUT I’m concerned that if the table got much larger (400 rows) it would be slow. Any ideas on this?
COMMENT For -whoever-…
You have to make sure your JQuery/JS is loaded in the footer. Otherwise you get an alert msg (which is actually a great idea.)—JC
Forum: Plugins
In reply to: Selectively Loading Javascript files by page?That’s what I thought. But I’m still confused… So I’ll tax yer patience once more to ask again why we need the add_action() callback to my_function() just to enqueue the script.
Why is that better than just writing:
if(is_page( 'Foobar' ) ) wp_enqueue_script('custom-script',get_template_directory_uri() . '/js/custom_script.js', array('jquery') );Aren’t they both functionally much the same? IOW: why is my example -bad- and yours -good-?
Thanks again,
—JC
Forum: Plugins
In reply to: Selectively Loading Javascript files by page?So in your example:
if(is_page( 'Foobar' ) ) add_action('wp_enqueue_scripts', 'my_scripts_method');…is meant to be included in the -template- PHP file, right? And the function above (with the enqueue) is left in the functions.php file?
For some reason, I was imagining that one could have a switch statement in the functions.php which would selectively enqueue scripts as each page loaded. Am I missing the sequence of when functions.php is loaded?
Thanks!
—JC
Forum: Plugins
In reply to: Selectively Loading Javascript files by page?Wow. Thanks for the snappy response!
Please forgive my ignorance, but a quick follow-up: What is the advantage of the code you wrote above over:
if(is_page( 'Foobar' ) ) wp_enqueue_script('custom-script',get_template_directory_uri() . '/js/custom_script.js', array('jquery') );IOW: Why does one need the call to add_action() ?
THANKS!
—JC
Forum: Plugins
In reply to: Selectively Loading Javascript files by page?That’s correct but you can still enqueue conditionally.
Pretty please? An example?
TIA,
—JC
Forum: Hacks
In reply to: Conditional Tag In Excerpt Length Filter?OK, I figured it out… it’s a conceptual thing. I thought the filter was tested once when the -page- was loaded. But in fact, the function fires every time an excerpt is printed to the screen. IOW: it thinks the ‘current page’ is the one of it’s post.
What I want to do is display some post excerpts as part of a larger page (Latest News!) on one or (FAQs!) on another.
So for me, the thing to do was test for the page_template.
Thanks for the replies.
—JC
Forum: Plugins
In reply to: Selectively Loading Javascript files by page?That’s correct but you can still enqueue conditionally.
Can you give me a (brief) example?
—JC
Forum: Plugins
In reply to: Selectively Loading Javascript files by page?Can you enqueue a script in a PHP template -before- or -after- get_header()? I thought they needed to be included in functions.php or in a plug-in file. Am I wrong?
—JC