Aller au contenu

Quedlazik

Actif
  • Compteur de contenus

    11
  • Inscrit(e) le

  • Dernière visite

Messages postés par Quedlazik

  1. Salut à tous, sur cette page: http://www.quedlazik.com/test.php vous pouvez voir ce texte écrit à l'aide d'un code Javascript tout en bas de la page:

    Les 10 derniers sujets parus sur le forum Quedlazik

    * Film ? (392 Réponses) - Like A Rainbow, 02/11/06

    * Elections présidentielles 2007 (0 Réponses) - Hugo, 01/11/06

    * Vous écoutez quoi en ce moment ? (2048 Réponses) - Hugo, 01/11/06

    * Charlotte Gainsbourg (33 Réponses) - Hugo, 01/11/06

    * Titre de chanson! (684 Réponses) - Morgan£, 01/11/06

    * Pictionnary (125 Réponses) - LPNicK, 01/11/06

    * tété (2 Réponses) - LPNicK, 01/11/06

    * The pussycat Dolls (233 Réponses) - Like A Rainbow, 01/11/06

    * Najoua Belyzel (4 Réponses) - Lisoute59, 01/11/06

    * Aaron (15 Réponses) - Like A Rainbow, 01/11/06

    Voici le code Js qui m'a permit de le faire:

    			  <p>Les 10 derniers sujets parus sur le forum Quedlazik</p>
    <script language="JavaScript" type="text/javascript" src="http://www.quedlazik.com/forum/topics_anywhere.php?
    mode=show&f=a&n=10&r=y&sr=y&so=d&b=squ&lpb=0&lpd=0"></script>

    Savez vous comment je pourrais placer ce texte est justifié est non en centré?

  2. Voila mon problème, j'utilise actuellement un mod sur mon site qui permet aux utilisateurs de dire ou non s'ils souhaitent etre informé des réponses possibles à l'article dont ils viennent de mettre un commentaire dessus. Mais la phrase qui permet de le dire est en anglais et j'aimerai bien la mettre en français, mais dès que je la change, je vois un message d'erreur qui apparait sur mon site. Est-ce que quelqu'un saurait traduire la phrase ou trouver une solution pour la mettre en français? ( cette phrase est en rouge dans le code suivant )

    Merci =)

    // add the options
    add_option('sg_subscribe_settings', array('use_custom_style' => '', 'email' => get_bloginfo('admin_email'), 'name' => get_bloginfo('name'), 'header' => '[theme_path]/header.php', 'sidebar' => '', 'footer' => '[theme_path]/footer.php', 'before_manager' => '<div id="content" class="widecolumn subscription-manager">', 'after_manager' => '</div>', 'default_subscribed' => '', 'not_subscribed_text' => __('[color="#FF0000"]Notify me of followup comments via e-mail[/color]', 'subscribe-to-comments'), 'subscribed_text' => __('You are subscribed to this entry. <a href="[manager_link]">Manage your subscriptions</a>.', 'subscribe-to-comments'), 'author_text' => __('You are the author of this entry. <a href="[manager_link]">Manage subscriptions</a>.', 'subscribe-to-comments')));

    $settings = get_option('sg_subscribe_settings');

    if ( !$settings['salt'] ) {
    $settings['salt'] = md5(md5(uniqid(rand() . rand() . rand() . rand() . rand(), true))); // random MD5 hash
    $update = true;
    }

    if ( !$settings['clear_both'] ) {
    $settings['clear_both'] = 'clear_both';
    $update = true;
    }

    if ( $update )
    update_option('sg_subscribe_settings', $settings);

    $column_name = 'comment_subscribe';
    foreach ($wpdb->get_col("DESC $wpdb->comments", 0) as $column )
    if ($column == $column_name)
    return true;

    // didn't find it... create it
    $wpdb->query("ALTER TABLE $wpdb->comments ADD COLUMN comment_subscribe enum('Y','N') NOT NULL default 'N'");
    }


    function current_viewer_subscription_status(){
    global $wpdb, $post, $user_email;

    $comment_author_email = ( isset($_COOKIE['comment_author_email_'. COOKIEHASH]) ) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
    get_currentuserinfo();

    if ( is_email($user_email) ) {
    $email = strtolower($user_email);
    $loggedin = true;
    } elseif ( is_email($comment_author_email) ) {
    $email = strtolower($comment_author_email);
    } else {
    return false;
    }

    $post_author = get_userdata($post->post_author);
    if ( strtolower($post_author->user_email) == $email && $loggedin )
    return 'admin';

    if ( is_array($this->subscriptions_from_email($email)) )
    if ( in_array($post->ID, $this->email_subscriptions) ) return $email;
    return false;
    }


    function manage_link($email='', $html=true, $echo=true) {
    $link = get_bloginfo('wpurl') . '/wp-subscription-manager.php';
    if ( $email != 'admin' ) {
    $link = add_query_arg('email', urlencode(urlencode($email)), $link);
    $link = add_query_arg('key', $this->generate_key($email), $link);
    }
    $link = add_query_arg('ref', urlencode('http://' . $_SERVER['HTTP_HOST'] . wp_specialchars($_SERVER['REQUEST_URI'])), $link);
    $link = str_replace('+', '%2B', $link);
    if ( $html )
    $link = htmlentities($link);
    if ( !$echo )
    return $link;
    echo $link;
    }


    function add_admin_menu() {
    add_management_page(__('Comment Subscription Manager', 'subscribe-to-comments'), __('Subscriptions', 'subscribe-to-comments'), 8, __FILE__, 'sg_subscribe_admin');

    if ( class_exists('SmallOptions') )
    add_action('small_options_page', array('sg_subscribe_settings', 'options_page_contents'));
    else
    add_options_page(__('Subscribe to Comments', 'subscribe-to-comments'), __('Subscribe to Comments', 'subscribe-to-comments'), 5, basename(__FILE__), array('sg_subscribe_settings', 'options_page'));
    }


    } // class sg_subscribe










    function sg_subscribe_start() {
    global $sg_subscribe;

    if ( !$sg_subscribe ) {
    load_plugin_textdomain('subscribe-to-comments');
    $sg_subscribe = new sg_subscribe();
    }
    }

    function sg_subscribe_admin() {
    include (ABSPATH . 'wp-subscription-manager.php');
    }


    // This will be overridden if the user manually places the function
    // in the comments form before the comment_form do_action() call
    add_action('comment_form', 'show_subscription_checkbox');

    // priority is very low (50) because we want to let anti-spam plugins have their way first.
    add_action('comment_post', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); return $sg_subscribe->send_notifications($a);'), 50);
    add_action('comment_post', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); return $sg_subscribe->add_subscriber($a);'));

    add_action('wp_set_comment_status', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); return $sg_subscribe->send_notifications($a);'));
    add_action('admin_menu', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); $sg_subscribe->add_admin_menu();'));
    add_action('admin_head', create_function('$a', 'global $sg_subscribe; sg_subscribe_start(); $sg_subscribe->sg_wp_head();'));



    // detect "subscribe without commenting" attempts
    add_action('init', create_function('$a','global $sg_subscribe; if ( $_POST[\'solo-comment-subscribe\'] == \'solo-comment-subscribe\' && is_numeric($_POST[\'postid\']) ) {
    sg_subscribe_start();
    $sg_subscribe->solo_subscribe($_POST[\'email\'], $_POST[\'postid\']);
    }')
    );

    define('STC_PLUGIN_BASENAME', plugin_basename(__FILE__));

    ?>

  3. Bonjour, je n'y connais rien en requete sql, mais j'aimerai bien en trouver une qui me permettrait d'afficher sur l'index de mon site, les dix derniers posts par exemple qu'il y a eu sur mon forum. Après plus recherches qui n'ont pas porté leurs fruits sur le net je voudrais savoir si vous n'auriez pas une solution?

  4. Salut à tous! J'ai un petit problème concernant mes metas: J'utilise un include header.php que l'on peut retrouver dans toutes mes pages. J'aimerai donc y inscrire un code php faisant office de meta pour que chacun de mes articles génère son propre méta à partir de cette page. Je voulais savoir si c'est possible et quel type de code je peux mettre?

  5. En fait je veux que lorsque j'ajoute un article par mon admin. Le lien qu'il y a dans l'article qui mène vers la catégorie ou se trouve l'article soit changé!

  6. Nous venons de mettre un fichier php sur notre site nous permettant de faire un listing de nos articles par catégorie. Voici l'exemple pour que vous compreniez: http://www.quedlazik.com/rubriques.php?cat...lternatif-metal

    Mais le problème c'est qu'avant de faire ça les articles allez automatiquement dans une rubrique qui se présentait de cette façon:

    -http://www.quedlazik.com/category/biographies/biographies-pop-rock-alternatif-metal

    -http://www.quedlazik.com/category/biographies/biographies-pop-rock-alternatif-metal/page/2/

    -http://www.quedlazik.com/category/biographies/biographies-pop-rock-alternatif-metal/page/3/...

    Je voudrais supprimer cette dernière car le but était justement de supprimer les pages 2-3... mais je ne sais pas comment faire, quelqu'un aurait-il la solution?

    <edit Arlette>

×
×
  • Créer...