nwalker
Forum Replies Created
-
Forum: Plugins
In reply to: [Sticky Menu & Sticky Header] Change Anchor display when Sticky is activeThat’s fine, just thought I’d ask.
Thank you.
I have setup debugging for php. you can see the error file here. https://www.livecasinocomparer.com/includes/php-errors.log
I have disabled the geotarget plugin, but still get same error.
The only way I can get posts to update or save is to disable the insert php script.
Any update? Currently the only way i can save work in wordpress where i have the insert-php plugin in use is to disable the plugin, save the work and the enable the plugin.
email sent.
Yep, something like that on the page would be perfect.
[wbcr_php_snippet id=”445″ my_custom_attribute=”football”]
so it calls the create_game_table from my Functions.php file and passes it “football” as the parameter.
Perhaps also allowing multiple parameters to be passed like “Football” & “Womens” & “Premier” would run my create_games_table(“football”,”Womens”, “Premier”).
I have some scripts that need multiple parameters.
Something to think on ?? I’ll continue using insert_php for now.
Thanks Alex.
Ok thanks Alex for looking at this and coming up with some alternatives. Sadly they just won’t work for me.
I use the same script multiple times on a page each with different parameters.
I also have scripts that need multiple parameters.
I need to control the parameters at the point where i run the Snippet, not at the page level.
The only way to do that is take the 5 scripts I have and create approx 500 snippets to cater for each parameter type, which quite honestly is a massive backward step for me and not something I can do. The overhead of making changes to 500 individual scripts on an ongoing basis is also not something I want to take on.
It would be great if you could take parameters into the snippets for people running their own functions.php files, but if you have no plans to do this, i’ll look around for an alternative. The Insert_php worked very well for me.
Regards
Neil.sure
[insert_php]create_games_table (“football”);[/insert_php]
Thank you, that has helped, but i still don’t quite understand how i can pass a paranter into a snippet at the time of calling it.
I need to pass a different parameter each time I call the create_games_table script.
can i have one snippet for create_games_table and when i call it I can add a different parameter each time?. I have 30 possible parameters to chose from each time i use the code depending on where it’s placed on my site. I want to avoid having 30 individually coded snippets as at the moment i have one script that will take a variable paramter.
Sorry just want to clairy.
At the moment i run this [insert_php]create_games_table (“football”);[/insert_php]
So this runs a php script from my functions.php file called create_games_table and passes a parameter into it of “football”
How do I do this with the new Snippets?
Forum: Fixing WordPress
In reply to: Error Message in RSS FeedThank you. I’ve got to the bottom of it now. The feed was failing because the plugin i was using to run PHP couldn’t call the function that I had written as the plugin didn’t know where it was.
I had put the path in the theme header.php file but as the rss feed runs outside of the theme it wasn’t using the header file.
So I have edited the plugin to add the path and now all is well.
Many thanks.
- This reply was modified 8 years, 2 months ago by nwalker. Reason: grammer
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table overwriting page contentI turned off the datatables_fixedcolumns=”left” function and that seemed to cure it. I couldn’t test it in Twenty Fifteen, for some reason none of the content could be displayed.
Would be nice to get it working with the fixedcolumns function as this really helps when using the table on a mobile.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] Table overwriting page contentJust thought I’d pop back. I managed to resolve my issue. I just set the height of the row and set the width of the column and now the first column works fine if it has images in.
I did also find that if you resize the browser window it doesn’t render that part of the table properly, but if you refresh the browser it renders fine, which means if the page is viewed on a smaller device it renders correctly first time.
ok thanks for looking. I’ll have to have a bit of a rethink.
actually I’ve switched it on so you can see.
https://www.livecasinocomparer.com/live-casino-reviews/best-live-casinos/