GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WP Cam Chaturbate Plugin (https://gfy.com/showthread.php?t=1367834)

TheBlackShark 08-24-2023 06:36 AM

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
Here is the function, line 501 is the 2nd line:

Quote:

function chaturbate_selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = chaturbate_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
Tried to fix in many ways but unfortunately still doesn't work..

I offer:
money or eternal glory or i will share the entire plugin folder with the community if who fix this wants.

Thanks!

Colmike9 08-24-2023 06:57 AM

Needs more parentheses.

Or it would probably work if you downgraded from PHP 7 back to 5.x :upsidedow

adtrafic 08-24-2023 07:01 AM

Share the plugin and maybe someone can fix it.

Colmike9 08-24-2023 07:08 AM

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. :(

Tube Ace 08-24-2023 07:14 AM

Try this :

$s = empty(($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on")) ? "s" : "";

fris 08-24-2023 08:05 AM

bad code

TheBlackShark 08-24-2023 08:42 AM

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:

Try this :
$s = empty(($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on")) ? "s" : "";
Thank you! Error is disappeared, unfortunately there are still many errors..

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!

Colmike9 08-24-2023 08:50 AM

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.

TheBlackShark 08-24-2023 08:58 AM

Quote:

Originally Posted by Colmike9 (Post 23169165)
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.

Example of CB or Stripchat plugin compatible with PHP 8 that works on wordpress?

Tried WP-script but also problem there with my PHP version.

Anyway i like this beacuse is simple, lightweight and got some good personalization.

blackmonsters 08-24-2023 08:59 AM

Quote:

Originally Posted by TheBlackShark (Post 23169162)
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.



Thank you! Error is disappeared, unfortunately there are still many errors..

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!


Never mind; i didn't see your post that you solved it.

:thumbsup

Tube Ace 08-24-2023 09:10 AM

Quote:

Originally Posted by TheBlackShark (Post 23169162)
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.



Thank you! Error is disappeared, unfortunately there are still many errors..

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!

Did you try the PHP code directly in the theme file?

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.

Tube Ace 08-24-2023 09:12 AM

Quote:

Originally Posted by blackmonsters (Post 23169173)
New code :
PHP Code:

function chaturbate_selfURL() {
$s '';
if (!empty(
$_SERVER["HTTPS"])) {
    if (
$_SERVER["HTTPS"] == "on") {
        
$s "s";
    }
}
$protocol chaturbate_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return 
$protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];


:2 cents:

I already fixed the shorthand code for him 1h 45m before you posted the multi-line ternary operator.

blackmonsters 08-24-2023 09:16 AM

Quote:

Originally Posted by Tube Ace (Post 23169177)
I already fixed the shorthand code for him 1h 45m before you posted the multi-line ternary operator.

Yo mamma!

:1orglaugh

Tube Ace 08-24-2023 09:43 AM

Quote:

Originally Posted by blackmonsters (Post 23169173)
Never mind; i didn't see your post that you solved it.

:thumbsup

You may not have noticed since he removed my name from the quote after fixing it for him. Last time I help somebody on GFY :1orglaugh

Colmike9 08-24-2023 11:27 AM

Quote:

Originally Posted by Tube Ace (Post 23169127)
Try this :

$s = empty(($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on")) ? "s" : "";

See, told you it needed more parentheses.
(I kept your name in the quote, too, unlike some people) :upsidedow

Tube Ace 08-24-2023 11:33 AM

Thanks, Colmike9!

https://media1.giphy.com/media/l2QEi...z78c/giphy.gif

emmasexytime 08-25-2023 01:45 AM

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

TheBlackShark 08-25-2023 08:54 AM

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!

Colmike9 08-25-2023 04:12 PM

Quote:

Originally Posted by Tube Ace (Post 23169268)

Any time!

https://i.gifer.com/41MT.gif

emmasexytime 08-26-2023 10:44 PM

Quote:

Originally Posted by TheBlackShark (Post 23169685)
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!

:thumbsup:thumbsup:thumbsup

just a punk 08-27-2023 12:17 AM

CyberSEO Pro is your #1 Chaturbate, LiveJasmin, BongaCams and Camsoda plugin. Works with the latest version of PHP and supports any existing WordPress theme.

phman79 08-29-2023 11:32 AM

Quote:

Originally Posted by CyberSEO (Post 23170209)
CyberSEO Pro is your #1 Chaturbate, LiveJasmin, BongaCams and Camsoda plugin. Works with the latest version of PHP and supports any existing WordPress theme.

The only problem I see is that you can't run whitelabel links with your product,

just a punk 08-29-2023 12:12 PM

Quote:

Originally Posted by phman79 (Post 23171025)
The only problem I see is that you can't run whitelabel links with your product,

I'm not an affiliate program owner to run it. Whitelabels are the sites that run on your sponsor's server. CyberSEO Pro is made to run only your own site on your own server to get indexed by Google.

sarettah 08-29-2023 02:25 PM

Quote:

Originally Posted by CyberSEO (Post 23171035)
I'm not an affiliate program owner to run it. Whitelabels are the sites that run on your sponsor's server. CyberSEO Pro is made to run only your own site on your own server to get indexed by Google.

I think you misunderstood what he was saying.

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.

just a punk 08-30-2023 06:39 AM

Quote:

Originally Posted by sarettah (Post 23171085)
Many of us modify the data from the feed to pull the iframes from our whitelabels or to send traffic directly to our whitelabels

If you want to modify their iframes, just modify them: https://www.cyberseo.net/blog/conten...-cyberseo-pro/

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']);
4) Save the settings.

Everything is well described in the manual and the tutorial articles.

sarettah 08-30-2023 01:22 PM

Quote:

Originally Posted by CyberSEO (Post 23171310)
If you want to modify their iframes, just modify them: https://www.cyberseo.net/blog/conten...-cyberseo-pro/

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']);
4) Save the settings.

Everything is well described in the manual and the tutorial articles.


I kind of figured that your plugin would have a way to do it too.

good stuff

GoCastaway 08-30-2023 02:12 PM

Quote:

Originally Posted by sarettah (Post 23171461)
I kind of figured that your plugin would have a way to do it too.

good stuff

That old sexplugin script is working fine here without any changes, i only turned up the CSS to a more modern look.


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