yustein
Forum Replies Created
-
Forum: Plugins
In reply to: [Two Factor Authentication] One Time Passwords Don't MatchWas this resolved, could it be related to daylight savings time change?
Forum: Plugins
In reply to: [Custom Content Shortcode] Using [loop] multiple times on the same pageIt seems like when I use Visual Composer to do the structure of the page this specific code is creating a problem
[pass global="_GET" field="eventidpar"][loop type="pods_event" field="id_event" value="{FIELD}"] <h2>[field title_event]</h2> [/loop][/pass]
The code below is the one which doesn’t work, it obviously have Visual Composer Shortcodes surrounding our code to create row/column structure.
[vc_row][vc_column width="1/2"][vc_row_inner][vc_column_inner width="1/4"][vc_column_text css_animation="right-to-left"][/vc_column_text][/vc_column_inner][vc_column_inner width="3/4"][vc_column_text css_animation="right-to-left"][raw][pass global="_GET" field="eventidpar"][loop type="pods_event" field="id_event" value="{FIELD}"] <h2>[field title_event]</h2> [/loop][/pass][/raw][/vc_column_text][/vc_column_inner][/vc_row_inner][vc_column_text css_animation="right-to-left"][/vc_column_text][/vc_column][vc_column width="1/2"][vc_row_inner][vc_column_inner width="1/1"][vc_column_text css_animation="right-to-left"][/vc_column_text][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row]
Maybe I’m approaching this from the wrong angle, maybe every little part should be an html file and load them in the VC parts, or make every single data that is going to be used on the screen a shortcode using Global Content Blocks plugin and use do shortcode inside PHP to get the values (because I hate PHP)
or ditch the whole thing code the pages in PHP completely (and go mad)
Hmm, I’m stuck! ??
I use Query Monitor as well with WP_DEBUG to true…
The names of the fields passed are not important right, they can be anything like xyz1, xyz2?
I think loading files and editing them locally over SSH is the best way for inserting PHP and shortcodes…
Thanks a lot again, our conversation assured me that I’m on the right track and did not miss any information for my developments. ??
Tony
You are correct!
Using load is an option that I can try instead of using the plugin Global Content Blocks.
Is there a standard for the files I can load?
For example can shortcodes, PHP and HTML co exist in a single file, if yes how, if no what is the correct workflow to use PHP, html and shortcodes?
And yes #2 did not work, exactly because of the format of the date…
Another question is can you pass more than 1 parameter to a shortcode?
Currently I’m using do shortcodes in php for complex parameter passing.
It’s funny but I rather use do shortcode in PHP and use PHP just for logic and data manipulation. Remote debugging is not the easiest thing for PHP, what is your favorite method of debugging remote PHP?
This has turned to be a very valuable information, I have to archive it ??
Tony
1) just a mistake it should be value for sure instead of start
2) I will try it that way3) there is a strong need for an inline language for WordPress. I can use PHP (which I do for this case) debugging PHP is a huge pain in my neck. I use the Global Content Blocks plugin to inject PHP and it works fine, I just don’t think that a WordPress developer should drop to PHP to accomplish such simple tasks as passing parameters and doing loops, checking logic etc.
Did I miss something, is there an inline language plugin for WordPress?
Thank you by the way for taking time to reply me ??
For example:
I’m getting the date from the database, and trying to pass that as a parameter to another plugin. I think the syntax is OK, but I might be using the wrong variable name, also I’m trying to format the date as well.
[raw][pass global="_GET" field="eventidpar"][loop type="pods_event" field="id_event" start="{FIELD}"][content field="date_event" date_format="d/m/Y"][field date_event][content field="title_event"][-pass datetime={DATE_EVENT} date_format="d/m/Y"][TS-VCSC-Countdown counter_scope="1" counter_interval="60" counter_date="{DATETIME}" reset_hours="0" reset_minutes="15" reset_seconds="0" reset_restart="true" date_zeros="false" date_days="true" date_hours="true" date_minutes="true" date_seconds="false" style="horizontal" border_thick="1" border_color="#dddddd" circle_width="5" color_background_basic="#f7f7f7" color_numbers_basic="#000000" color_text_basic="#000000" color_background_bars="#ffc728" color_numbers_bars="#ffffff" color_text_bars="#a76500" color_barback_bars="#a66600" color_barfore_bars="#ffffff" color_background_clock1="#000000" color_numbers_clock1="#ffffff" color_background_clock2="#000000" color_numbers_clock2="#00deff" color_dividers_clock2="#00deff" color_background_circles="#000000" color_numbers_circles="#ffffff" color_text_circles="#929292" color_circleback_all="#282828" color_circlefore_days="#117d8b" color_circlefore_hours="#117d8b" color_circlefore_minutes="#117d8b" color_circlefore_seconds="#117d8b" color_background_horizontal="#ffffff" color_flippers_horizontal="#ea9400" color_numbers_horizontal="#ffffff" color_text_horizontal="#929292" color_background_flipboard="#ffffff" column_equal_width="false" column_background_color="#f7f7f7" column_border_thick="1" column_border_color="#dddddd" margin_top="-50" margin_bottom="-50"]date passed: {DATETIME}[/-pass][/loop][/pass][/raw]
It didn’t work, that t- plugin is a stubborn one, maybe it is because of that…
I will try this, I managed to do it with PHP but of course this will be better.
The issue is the “field_name” parameter will be the result of another plugin like [plugin foo=”bar”][/plugin] so I hope it works.
Forum: Plugins
In reply to: [Custom Content Shortcode] Documentation?Yes, in this version it works fine ??
Forum: Plugins
In reply to: [Custom Content Shortcode] Value search issueAh, actually wouldn’t it be nice to have the option to use equals and like separately? People can choose between the two, or make it an option value as search type.
search_type = 0 -> Equals to
search_type = 1 -> Use Like to search
search_type = ?Basically turning the power of SQL queries to the non-programmers’ use.
My 2 cents ??
TonyForum: Plugins
In reply to: [Custom Content Shortcode] Value search issueHi,
You are most welcome! Btw, you have a great plug-in, IMHO one of the most important plug-ins for advanced WordPress development.
Please keep up the great work, and if you need an additional hand, shout and I will do my best ??
Kind regards,
Tony
co-creator of https://purdox.com a free one click Amazon+WordPress solutionMy data was playing games with me, resolved, not a plugin issue.
Forum: Plugins
In reply to: [Custom Content Shortcode] Documentation?Very strange, when I do a VPN to the US East Coast I can see the content there, the place you are hosting that dynamic content must be blocked on my ISP for some reason…
Forum: Plugins
In reply to: [Custom Content Shortcode] Documentation?I get an empty page when I do that?
Forum: Reviews
In reply to: [Gigaom New Relic] there's no interfaceFirst start using New Relic for PHP on your WordPress server (newrelic.com) and then after seeing what New Relic does, come here, read the description of the plugin and then install it. It does fill a gap in New Relic’s reporting for PHP/Wordpress.