1
Mkjones
Re: APCal problem with javascript date
  • 2013/1/26 17:49

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Thanks. Worked, well partially. I also didn't have the necessary files in the common folder. I must have installed it wrong in the first place. Sorted now and working fine .



2
Mkjones
Re: APCal problem with javascript date
  • 2013/1/26 12:23

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Can't edit the above post?

Please visit the forum to login.



3
Mkjones
APCal problem with javascript date
  • 2013/1/26 11:20

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


- PHP version = 5.3.3
- XOOPS Version = 2.5.4
- module version = 2.11
site url: apet4life

When I attempt to add a new event the javascript date finder and form filler doesn't seem to work as the only output from it is this: 13-mm-dd. If I could find the template for the page I would remove it I think but I can't. Its using the calendar.js file found in the Xoops include directory which must be faulty I think.

I have added a test user if anyone needs to see what is happening.

user name: test
password: test

You need to login and then attempt to add an event to be able to see the problem page and script.



4
Mkjones
Re: Xootube Problems
  • 2013/1/25 21:53

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Had to make a few more alterations:

1. altered the user.php file and added the same code under $id = $_GET['id']; which can be found at the top of the file. The code then should read like this:

$id $_GET['id'];
$vidid $_GET['id'];
$str $vidid;
$str=str_replace('_player'''$str);
$xoopsTpl->assign('vidid'$str);


2. the youtube player code found in xootube_user.html should then be removed and replaced with this:

<iframe width="<{$width}>" height="<{$height}>" src="http://www.youtube.com/embed/<{$vidid}>" frameborder="0" allowfullscreen></iframe>


3. sometimes certain tags fail to load and it causes an error message to screw up the graphics so I removed the error message from the langauge/english/main.php file. The entry should look like this once the error message is removed ( 3rd from top ):

define("_MD_XOOTUBE_NOTID","");


If you are using any other language then the same file in their respective directories need to be altered too.



5
Mkjones
Re: Xootube Problems
  • 2013/1/22 9:21

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Managed to find a solution to this. I added this to the xootube index.php file:

$vidid $_GET['id'];
        
$str $vidid;
        
$str=str_replace('_player'''$str);
    
$xoopsTpl->assign('vidid'$str);

and then used <{$vidid}> instead of <{$title}> in the flashvars url in the xootube_player.html

The above makes the player search for the video id instead of the video title.

The embed player that Youtube uses can now be implemented instead of the player code that youtube reloaded is using (searches for playlists) by replacing the player code in the xootube_player.html with this:

<iframe width="<{$width}>" height="<{$height}>" src="http://www.youtube.com/embed/<{$vidid}>" frameborder="0" allowfullscreen></iframe>


Use the above in both instances of the player code.



6
Mkjones
Re: Xootube Problems
  • 2013/1/22 0:23

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


- PHP version = 5.3.3
- XOOPS Version = 2.5.4
- your module version = 2.3
site url: apet4life

I have now removed bits and pieces from the template files and fixed the first problem but I have another one now. The player is being loaded with the video title which is causing the wrong video to play at times if there are a number of videos with the same title. What I would like to do is use the video id instead. This would allow me to use different player code if I want to. I am not familiar with the youtube api so it isn't an easy fix for me. Anyone able to have a gander at the code?

Regards
Mark



7
Mkjones
Re: Xootube Problems
  • 2013/1/20 20:51

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Quote:

Mamba wrote:
Quote:
I have a few sites using the Xootube module.

Please ALWAYS let us know:

- PHP version
- XOOPS Version
- your module version

and steps to reproduce, or screenshot.

Did you change anything lately?


Sorry!

I did a google search for youtube api and managed to find some info. I have updated the original post rather than delete it as it might help others.



8
Mkjones
Xootube Problems
  • 2013/1/20 20:34

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Hi

I have a few sites using the Xootube module. Only noticed lately that the tags and favourites are no longer working. Video is still streaming which is the main thing I suppose. Obviously something has been changed with regard to the Youtube api. What these changes are I have no idea. Anyone up on this?

Regards
Mark

UPDATE
It appears tags and possibly favourites are no longer included in the api.



9
Mkjones
Re: Topic link not showing
  • 2012/11/19 9:38

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Great. That seems to have fixed it.

Thanks



10
Mkjones
Re: Topic link not showing
  • 2012/11/18 15:13

  • Mkjones

  • Just popping in

  • Posts: 24

  • Since: 2009/7/29


Fixed this kinda. I have the links and images showing now but if a user isn't allowed to post then they get the warning instead. Good enough I think.

Deleted test user too.




TopTop
(1) 2 3 »



Login

Who's Online

159 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits