Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter Sameer

    (@msameerbutt)

    Thanks,

    Actually i am thinking to write a short script to sync the linking

    can you please confirm the format:

    for post it will be:

    suppose xx/yy/zz are ids of post in en/ar/fr
    msls_xx = array(‘lang1’=>yy,’lang2’=>’zz’,i=>’xx’);

    for taxonomy_term
    msls_term_xx = array(‘lang1’=>yy,’lang2’=>’zz’,i=>’xx’);

    is above is correct?

    Thread Starter Sameer

    (@msameerbutt)

    Thanks you very much for quick response.

    No i did not change the language settings
    I do upgraded from wordpress 4.0 to wordpress 4.0.1 and then wordpress 4.1

    But i dont think it create that problem.

    I have three languages (English/French/Arabic)
    I have queryed from database it shows in options table the following

    English has only :33 linking
    Arabic has :251 Linking
    French has :268 Linking

    from that i hope i can recovered english linking if you can guide me
    on this
    Please

    Thread Starter Sameer

    (@msameerbutt)

    Thanks for Quick response

    Thread Starter Sameer

    (@msameerbutt)

    Sorry for late reply, this not simple but you can give it a try

    1) copy this function to your function.php
    2) paste this code <?php echo(youfunction ());?> where you want to display the polls

    Thanks

    Thread Starter Sameer

    (@msameerbutt)

    Thanks for you quick reply
    I have done this functionality by adding a function to my functions.php.

    I know it may not be robust solution but it can save someone time, below is the function code

    public youfunction ($args=array()){
    
          // display polls forcefully as poll archive page not allow voting
          global $wpdb;
          $output = "";
          extract($args,EXTR_OVERWRITE);
          $offset = isset($offset) && is_numeric($offset) ? $offset : 0;
          if (function_exists('vote_poll') && !in_pollarchive()):;
            $polls_perpage = intval(get_option('poll_archive_perpage'));
            $polls_type = intval(get_option('poll_archive_displaypoll'));
            $polls_type_sql = '';
            // Determine What Type Of Polls To Show
            switch($polls_type) {
              case 1:
                $polls_type_sql = 'AND pollq_active = 0';
                break;
              case 2:
                $polls_type_sql = 'AND pollq_active = 1';
                break;
              case 3:
                $polls_type_sql = 'AND pollq_active IN (0,1)';
                break;
            }
            $post__not_in = isset($post__not_in) && !empty($post__not_in) ? 'AND pollq_id NOT IN('.$post__not_in.')' : '';
            $total_polls = $wpdb->get_var("SELECT COUNT(pollq_id) FROM $wpdb->pollsq WHERE 1 $polls_type_sql AND pollq_active != -1");
            $questions = $wpdb->get_results("SELECT pollq_id FROM $wpdb->pollsq WHERE 1 $polls_type_sql $post__not_in ORDER BY pollq_id DESC LIMIT $offset, $polls_perpage");
            if($questions) {
              foreach($questions as $question) {
                ob_start();
                get_poll($question->pollq_id);
                $output .= ob_get_contents();
                ob_end_clean();
              }
              if($total_polls > $polls_perpage):
                // ajax load more button
              endif;
            }else{
              // NO POLL FOUND
            }
          endif;
          return $output;
      }

    You can adjust this function according to your own requirement
    of-course i have extract this code from plugin and re arrange it.

    Thanks.

    I got the same error

    Warning: simplexml_load_file(https://gdata.youtube.com/feeds/api/videos/b7rGEb3iBBE) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 403 Access denied. in /home/zedacc/public_html/fscad/wp-content/plugins/cool-video-gallery/lib/youtube.php on line 109

    Following are my server settings:

    Operating System : Linux (64 Bit)
    Server : Apache
    MySQL Version : 5.5.23-55
    PHP Version : 5.2.17
    PHP Max Upload Size : 64MB
    FFMPEG : Not Installed
    [Note: Preview images for uploaded videos will not be created automatically using FFMPEG. Manually upload preview images for videos.]
    PHP extension SimpleXML : Enabled
    PHP setting allow_url_fopen : Enabled

    So its not server problem, its works find in local machine but it gives error on my live server

    I am also entring the video ID not the URL e.g. i have entered (b7rGEb3iBBE) without bracket

    It seems youtube is not authorizing the CVG request, can you guide me

    Does anyone found solution to this problem, its driving me crazy ??

Viewing 7 replies - 16 through 22 (of 22 total)