Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Uservalue With Merged Google+ Accounts

wordpress youtube

Best Answer eric, 12 August 2013 - 08:35 PM

This will be released with TubePress 3.1.2. In the meantime, you can make a single change to the following file:

tubepress/src/main/php/add-ons/youtube/classes/tubepress/addons/youtube/impl/options/YouTubeOptionsProvider.php

Simply change line 239 from

$option->setValidValueRegex($_regexWordChars);

to

$option->setValidValueRegex('/[\w-]+/');

You can also view this change in the commit on GitHub.

 

Give it a try and let us know. Thanks!

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 Jesse Hoffman

Jesse Hoffman

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 06 August 2013 - 01:02 PM

I searched all over and couldn't find a work around to this:

 

The "Videos from this YouTube user" option in the "Which Videos" section on the WordPress plugins settings page will not accept the newer merged Google+ account usernames with spaces in them, for obvious reasons. I am at a point now were I cannot find a userValue that TubePress will accept.

 

This is the feed I'm working with: https://gdata.youtub...-1XGx0DrjYY05zg

 

You can see that <yt:username> is now Zj16X6H-1XGx0DrjYY05zg which is also not usable by TubePress (I'm assuming that TubePress accepts only alphanumeric characters for this field and the "-" is throwing it off.)

 

My question is whether or not I'm just out of luck on this because of the merged account, or if anybody else has gotten this to work. Thanks in advance!



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 07 August 2013 - 04:09 PM

Jesse,

 

I have elevated this to one of our developers and we should have an answer for you soon.

 

Thanks for your patience.


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 12 August 2013 - 08:35 PM   Best Answer

This will be released with TubePress 3.1.2. In the meantime, you can make a single change to the following file:

tubepress/src/main/php/add-ons/youtube/classes/tubepress/addons/youtube/impl/options/YouTubeOptionsProvider.php

Simply change line 239 from

$option->setValidValueRegex($_regexWordChars);

to

$option->setValidValueRegex('/[\w-]+/');

You can also view this change in the commit on GitHub.

 

Give it a try and let us know. Thanks!



#4 Jesse Hoffman

Jesse Hoffman

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 14 August 2013 - 12:05 PM

Thanks Eric, this worked out great!



#5 Chadwickhugh

Chadwickhugh

    Member

  • Members
  • PipPip
  • 17 posts

Posted 13 September 2013 - 08:29 PM

Tried this, but still having issues:

 

"developerKey" must match the regular expression /\w+/. You supplied "AI39si5uUzupiQW9bpzGqZRrhvqF3vBgRqL-I_28G1zWozmdNJlskzMDQEhpZ-l2RqGf_6CNWooL96oJZRrqKo-eJ9QO_QppMg".

 

That said, videos are now showing!



#6 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 20 September 2013 - 11:35 PM

chadwickhugh,

 

This topic, and the issue you are speaking of are different issues.

 

 

That said, videos are now showing!

 

Does this mean that you are not having any issues at the moment?

 

Please let us know.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!