![]() |
WP Cam Chaturbate Plugin
Hello friends,
I have an old wordpress cb plugin (downloaded many years ago from an old site called sexplugins.com) that stopped to work on a new wordpress installation. Here the error given by wordpress: Code:
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/xxx/xxx.com/wp-content/plugins/wp-chaturbate/wp-chaturbate.php on line 501 Quote:
I offer: money or eternal glory or i will share the entire plugin folder with the community if who fix this wants. Thanks! |
Needs more parentheses.
Or it would probably work if you downgraded from PHP 7 back to 5.x :upsidedow |
Share the plugin and maybe someone can fix it.
|
I meant PHP 8, in 8 the error is fatal, in 7 it's depreciated.
Either way, the plugin was probably written for PHP 5.x, and when 7/8 came along there are some differences like {} and [] make more of a difference, or like in your case where it needs more parentheses to show the execution order. I think they changed that since a lot of people did nested things and it loaded wrong, something like that. So, you can edit the code, downgrade PHP, or find someone to fix it for you. Shouldn't take too long, I'm going to work tho. :( |
Try this :
$s = empty(($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on")) ? "s" : ""; |
bad code
|
Yes, i think it's about PHP version but i can't downgrade (actually using PHP version 8.1.14) so i need to fix it to work with that version of PHP.
Quote:
Finally fixed all the code, all critical and fatal errors disappeared but putting shortcodes on page don't show anything, no error shown. Tried also with php code (it's a plugin option) but nothing appear and broke the theme. If someone can help me and accept USDT (eth) contact me at jvormet[replaceme]gmail.com Thanks! |
What about just buying a currently working plugin compatible with PHP 8, then editing it to add in the things that you want for your website? Most likely better and cheaper.
|
Quote:
Tried WP-script but also problem there with my PHP version. Anyway i like this beacuse is simple, lightweight and got some good personalization. |
Quote:
Never mind; i didn't see your post that you solved it. :thumbsup |
Quote:
Are you using Classic Editor or Gutenberg? Sometimes using the Shortcode block type wouldn't work, but using Paragraph type with shortcode pasted would work. |
Quote:
|
Quote:
:1orglaugh |
Quote:
|
Quote:
(I kept your name in the quote, too, unlike some people) :upsidedow |
|
i had the wordpress version working on a test site but it was loading all cams and load time was bad.
You can have that copy if you want. The current options I know of are these https://nichepornsites.com/how-to-ma...ive-cams-site/ Mechbunny is looking like the best for most people. Haven't seen anyone really rank one well yet though |
Just as update, i finally fixed all the code after a long hours of working on it. Almost everything works fine, for what i need it's ok. :thumbsup
Thanks to all! |
|
Quote:
|
CyberSEO Pro is your #1 Chaturbate, LiveJasmin, BongaCams and Camsoda plugin. Works with the latest version of PHP and supports any existing WordPress theme.
|
Quote:
|
Quote:
|
Quote:
With chaturbate you can use the links that go directly to chaturbate, these are the links inb their feed but they do tend to get blocked by adblockers, etc. Many of us modify the data from the feed to pull the iframes from our whitelabels or to send traffic directly to our whitelabels I have seen several plugins specifically designed for chaturbates feed and most of them allow you to modify to pull the iframes from the whitelabel I think that is what he is referring to but i could be wrong as i often am. |
Quote:
1) Open your feed settings. 2) Click on the "Expert" tab. 3) Paste something like this into the "Custom PHP code" box: Code:
$post['post_content'] = str_replace('something to replace', 'the replacement', $post['post_content']); Everything is well described in the manual and the tutorial articles. |
Quote:
I kind of figured that your plugin would have a way to do it too. good stuff |
Quote:
|
All times are GMT -7. The time now is 01:04 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc