Forum Replies Created
-
AuthorPosts
-
stevenmilstein
ParticipantLeah, thanks for following-up! In the meantime, is there any workaround, or, would you like me test something on my end.
Regards
stevenmilstein
ParticipantFair enough.
Thanksstevenmilstein
ParticipantBarry, the https://theeventscalendar.com/support/forums/topic/event-pages-and-referrer-url-detection/#post-256146 thread is Closed. Can you please tell me where that snippet of code would go? Can I add an Eventbrites Ticket child theme?
stevenmilstein
ParticipantYes, this about the Eventbrite Tickets plugin.
stevenmilstein
ParticipantThe end result would be the same as passing in the parameter to Eventrbite & the hidden tickets, or, discounts are displayed.
stevenmilstein
ParticipantIt’s to resolve the same challenge I have trying deal with a referrer site. I’d like to dynamically add a “Welcome .yada yada yada … here’s your promo code”.
stevenmilstein
ParticipantSorry no, I didn’t deactivate all the plugins & revert to the default theme.
My event is live, being promoted & is only a few weeks away. Messing around with it like that, is something I’d like to avoid right now.
Thanks anyway
stevenmilstein
ParticipantI removed all the shortcodes except the WP built-in [caption] & [gallery] & still receive with the snippet:
“Error
An error occurred while contacting Eventbrite. Please review your information and try again.
Status: 400”stevenmilstein
ParticipantI added the code to my child theme functions.php, edited the page, clicked Update & received “An error occurred while contacting Eventbrite. Please review your information and try again.
Status: 400”.Any thoughts?
stevenmilstein
ParticipantUnderstood. But in the meantime, is there a workaround? I tried embedding javascript in the html to render code based on the host but neither WordPress, nor, Eventbrite seem to allow for this. Unless, of course I’mm doing it wrong.
Do you have any suggestions?
stevenmilstein
ParticipantBarry, I don’t have a “tribes-events” directory under wp-content/themes/Trim, nor, under wp-content/themes/Trim-child.
thanks
stevenmilstein
ParticipantWoohoo! All better now 🙂
Thanks for your perseverance!stevenmilstein
ParticipantKelly, copy/pasting that code crashes my site – with my theme, as well as, Twenty Twelve. That’s the parsing error I posted here in Sep 19. The problem seems to start with the double quote in “style=”height:200px”.
Regards,
Stevenstevenmilstein
Participant
add_filter(‘tribe_template_factory_debug’, ‘change_eb_iframe_height’);function change_eb_iframe_height($html) {
if (false === strpos($html, ‘eventbrite-ticket-embed’)) return $html;
$search = htmlspecialchars('style="height:200px;', ENT_QUOTES, "UTF-8");
$replace = htmlspecialchars('style="height:700px;', ENT_QUOTES, "UTF-8");
return str_replace($search, $replace, $html);
}
stevenmilstein
ParticipantHi Kelly,
I changed the function.php to:
There’s no php parsing errors now but when viewing the page source, I can see the height value has not changed.
Thanks,
Steven -
AuthorPosts
