Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. rinuccio
    3. Post
    R

    rinuccio

    @rinuccio

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 0
    • Post 1
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    Età 37
    0
    Reputazione
    1
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da rinuccio

    • RE: Plugin di cache non funzionanti

      Salve a tutti, seguo da anni questo sito ed ho sempre trovato informazioni utili senza chiedere 😄 intanto mi presento, mi chiamo Rino e son davvero felice di far parte di questo forum...

      Oggi ho installato un modulo sul mio Joomla, le funzioni fondamentali ci stanno 😄 ma avrei bisogno di due piccoli aiutini, ma io e php non siamo molto amici, quindi chiedo il vostro prezioso aiuto 🙂

      Questo è il codice .

      <?php
      
      defined('_JEXEC') or die('Restricted access');
      
      global $mainframe, $headtag;
      
      
      
      $type         = intval( $params->get( 'type', 1 ) );
      
      $count         = intval( $params->get( 'count', 5 ) );
      
      $catid         = trim( $params->get( 'catid' ) );
      
      $secid         = trim( $params->get( 'secid' ) );
      
      $show_front    = $params->get( 'show_front', 1 );
      
      
      
      $urlPath = "".$_SERVER['SERVER_NAME']."/forum";
      
      $urlImg = "".$_SERVER['SERVER_NAME']."/forum/templates/subSilver/images/folder_new_big.gif";
      
      $phpbb_root_path = 'forum/';
      
      
      
      define('IN_PHPBB', true);
      
      
      
      $table_prefix = "phpbb_";
      
      $table_topics = $table_prefix. "topics";
      
      $table_forums = $table_prefix. "forums";
      
      $table_posts = $table_prefix. "posts";
      
      $table_users = $table_prefix. "users";
      
      
      
      $query = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
      
      FROM $table_topics t, $table_forums f, $table_posts p, $table_users u
      
      WHERE t.topic_id = p.topic_id AND
      
      f.forum_id = t.forum_id AND
      
      t.topic_status <> 2 AND
      
      p.post_id = t.topic_last_post_id AND
      
      p.poster_id = u.user_id
      
      ORDER BY p.post_id DESC LIMIT $count";
      
      $result = mysql_query($query) or die($query);
      
      
      
      echo "<ul>";
      
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
      
          {
      
          echo "<li><a href=\"".$urlPath."/viewtopic.php?p=".$row['post_id']."#".$row['post_id']."\">".$row["topic_title"]."</a> inserito da <a href=\"".$urlPath."/memberlist.php?mode=viewprofile&u=".$row['user_id']."\">".$row['username']."</a></li>";
      
          }
      
      echo "</ul>";
      
      
      
      mysql_free_result($result);
      
      ?> 
      ```Le due richieste sono...
      
      1) (fondamentale XD) inserire un limite di caratteri nel titolo :sun:
      2) Qui proprio mi trovo OUT :p
      
      Quando clikko sul link, vengo direzionato alla 1 pag del topic, e non al post :(
      
      Spero in voi *.*
      
      Saluti :tongueout:
      postato in SEO: scala la SERP!
      R
      rinuccio