Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-24-2023, 06:36 AM   #1
TheBlackShark
Confirmed User
 
TheBlackShark's Avatar
 
Industry Role:
Join Date: Aug 2016
Location: Cyberspace
Posts: 262
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!
TheBlackShark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 06:57 AM   #2
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,224
Needs more parentheses.

Or it would probably work if you downgraded from PHP 7 back to 5.x
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 07:01 AM   #3
adtrafic
Confirmed User
 
Industry Role:
Join Date: Nov 2018
Location: Pyongyang
Posts: 191
Share the plugin and maybe someone can fix it.
adtrafic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 07:08 AM   #4
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,224
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.
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 07:14 AM   #5
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
Try this :

$s = empty(($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on")) ? "s" : "";
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 08:05 AM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,229
bad code
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 08:42 AM   #7
TheBlackShark
Confirmed User
 
TheBlackShark's Avatar
 
Industry Role:
Join Date: Aug 2016
Location: Cyberspace
Posts: 262
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!
TheBlackShark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 08:50 AM   #8
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,224
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.
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 08:58 AM   #9
TheBlackShark
Confirmed User
 
TheBlackShark's Avatar
 
Industry Role:
Join Date: Aug 2016
Location: Cyberspace
Posts: 262
Quote:
Originally Posted by Colmike9 View Post
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.
TheBlackShark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 08:59 AM   #10
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,227
Quote:
Originally Posted by TheBlackShark View Post
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.

__________________
Make Money with Porn
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 09:10 AM   #11
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
Quote:
Originally Posted by TheBlackShark View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 09:12 AM   #12
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
Quote:
Originally Posted by blackmonsters View Post
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'];

I already fixed the shorthand code for him 1h 45m before you posted the multi-line ternary operator.
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 09:16 AM   #13
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,227
Quote:
Originally Posted by Tube Ace View Post
I already fixed the shorthand code for him 1h 45m before you posted the multi-line ternary operator.
Yo mamma!

__________________
Make Money with Porn
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 09:43 AM   #14
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
Quote:
Originally Posted by blackmonsters View Post
Never mind; i didn't see your post that you solved it.

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
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 11:27 AM   #15
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,224
Quote:
Originally Posted by Tube Ace View Post
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)
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2023, 11:33 AM   #16
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
Thanks, Colmike9!

Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2023, 01:45 AM   #17
emmasexytime
Confirmed User
 
emmasexytime's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 4,204
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
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
live camss > How to make a live cam site hardlinks > hardlinks.org
emmasexytime is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2023, 08:54 AM   #18
TheBlackShark
Confirmed User
 
TheBlackShark's Avatar
 
Industry Role:
Join Date: Aug 2016
Location: Cyberspace
Posts: 262
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.

Thanks to all!
TheBlackShark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2023, 04:12 PM   #19
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,224
Quote:
Originally Posted by Tube Ace View Post
Thanks, Colmike9!

Any time!

__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-26-2023, 10:44 PM   #20
emmasexytime
Confirmed User
 
emmasexytime's Avatar
 
Industry Role:
Join Date: Jan 2015
Posts: 4,204
Quote:
Originally Posted by TheBlackShark View Post
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.

Thanks to all!
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
live camss > How to make a live cam site hardlinks > hardlinks.org
emmasexytime is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2023, 12:17 AM   #21
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
CyberSEO Pro is your #1 Chaturbate, LiveJasmin, BongaCams and Camsoda plugin. Works with the latest version of PHP and supports any existing WordPress theme.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-29-2023, 11:32 AM   #22
phman79
Confirmed User
 
Industry Role:
Join Date: Sep 2014
Posts: 237
Quote:
Originally Posted by CyberSEO View Post
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,
phman79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-29-2023, 12:12 PM   #23
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
Quote:
Originally Posted by phman79 View Post
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.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-29-2023, 02:25 PM   #24
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,053
Quote:
Originally Posted by CyberSEO View Post
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.
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2023, 06:39 AM   #25
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381
Quote:
Originally Posted by sarettah View Post
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.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2023, 01:22 PM   #26
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,053
Quote:
Originally Posted by CyberSEO View Post
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
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-30-2023, 02:12 PM   #27
GoCastaway
Kiss my ass!
 
GoCastaway's Avatar
 
Industry Role:
Join Date: Feb 2017
Location: Springfield
Posts: 930
Quote:
Originally Posted by sarettah View Post
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.
GoCastaway is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
line, plugin, wordpress, error, function, fix, $protocol.:, return, $port, $s;, $_server[server_port], .$_server[server_port];, $protocol, community, folder, entire, share, offer, money, eternal, glory, 2nd, stopped, installation, fatal



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.