YouTube Plugin dont work!

xryskom

Member
i was tring to add the youtube plugin but i have errors!!
don't work after the 1.3 Version?
 
Last edited:

xryskom

Member
on the admin panel doesnt show install button near plugin name ( for youtube plugin ) and when i try to install it and after i go to the settings i get error
 

Mark

Administrator
Staff member
why do you not post the error you are getting?

its near impossible to help you when you provide so little information.
 

Basti

Administrator
Staff member
Which plugin are we talking about? link?

Might forgot to set install = 1; in the info.php
But only knowing when i see about what we are talking exactly
 

xryskom

Member
here is the link
http://visiolist.com/community/threads/youtube-videos-and-screenshots-on-stats-page.1624/

Code:
<?php

$result = $DB->query("SHOW COLUMNS FROM {$CONF['sql_prefix']}_sites LIKE 'acf_youtube'", __FILE__, __LINE__);

if(!$DB->num_rows($result)) {
   
    $DB->query("INSERT INTO {$CONF['sql_prefix']}_join_fields (field_id, label_text, description, field_type, required, field_text_requirements, field_text_enable_length, field_text_length, field_text_input_size, field_choice_value, field_choice_text)
                VALUES ('acf_youtube', 'Youtube Video Url', 'Members Youtube Url', 'textbox', 0, 'url', 'none', '', 50, '', '')", __FILE__, __LINE__);

    $DB->query("ALTER TABLE `{$CONF['sql_prefix']}_sites` ADD `acf_youtube` VARCHAR(255) DEFAULT '' NOT NULL", __FILE__, __LINE__);

} else {
      $already = $LNG['a_plugins_installed_allready'];
}

?>
 

Basti

Administrator
Staff member
Ah yes, i forgot to change the install instance in the info.php

please open info.php of that plugin and change $install = 0;
to
$install = 1;

Then it will work
 
Top