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. rocco.mod
    3. Post
    R

    rocco.mod

    @rocco.mod

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 8
    • Post 11
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    18
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User

    Post creati da rocco.mod

    • vbseo board

      Salve ragazzi volevo chiederi , cos'è il vbseo , un abbellimento per vbulletin_o un forum con i suoi database i tutti i suoi files? Io ne ho trovato uno online e pesa 320 kb e mi sembra strano fatemi sapere se vbseo è tutto un unico forum.:smile5:

      postato in CMS & Piattaforme Self-Hosted
      R
      rocco.mod
    • portali in rete

      salve sapreste consigliarmi un portale come meetic o come badoo dove si possa incontrare la gente grazie

      postato in CMS & Piattaforme Self-Hosted
      R
      rocco.mod
    • RE: Funzione per estrarre in un unica variabile chiave e valore

      Ciao non va bene non mi da il risultato che deve darmi id chiave nome valore.

      postato in Coding
      R
      rocco.mod
    • Funzione per estrarre in un unica variabile chiave e valore

      Salve a tutti avrei bisogno di un vostro aiuto vi spiego intanto cosa dovrei fare:
      In una tabella del database ho inserito i gruppi del tipo superadmin , admin , staff, ecc...

      Adesso io dovrei estrarre da questa tabella l ' id del gruppo, e associarlo al nome, quindi un unica variabile.

      Ho fatto tante prove, adesso con l ultima prova mi stampa l ultimo id e nome, e non mi stampa tutti gli id e nomi inoltre non associa l'id al nome cosa fare mi date una mano grazie.[php]

      function GroupSelect(){
      global $dbcore ;
      $sql = mysql_query("select id_groups, nome_group from groupstaff order by id_groups asc")or die(mysql_error());
      while( $row = mysql_fetch_assoc($sql)){
      $return = array($row['id_groups']=>$row['nome_group']);
      }
      return $return;
      }

      [/php]

      postato in Coding
      R
      rocco.mod
    • plugin per formattazione codice php

      salve ragazzi qualcuno saprebbe indicarmi un plugin per il bbcode che formatt il php grazie

      postato in CMS & Piattaforme Self-Hosted
      R
      rocco.mod
    • nome utente skype su due pc

      salve ragazzi avrei bisognio una vostra mano, innanzi tutto mi scuso con la comunity e lo staff , se magari ho sbagliato la sezione dove postare , comunque, io ho due pc uno in ufficio e uno a casa che sono 24 ore su 24 connessi a internet,adesso come posso fare a far funzionare un unico nome utente su skype? quindi il problema e che il mio nome utente deve essere funzionante su entrambi i pc che sono sempre connessi .aspetto vostre notizie grazie rocco

      postato in Tutti i Software
      R
      rocco.mod
    • consigli su vari blog

      salve ragazzi conoscete qualche blog tipo cms da consigliarmi ? grazie

      postato in CMS & Piattaforme Self-Hosted
      R
      rocco.mod
    • passare a smarty ilcontenuto da database in due colonne

      salve ragazzi ho un problema che da giorni non riesco a risolvere, vi spiego in che cosa consiste: io sto facendo un lavoro dove il menu e tutti i contenuti vengono estratti da database il menu e composto da icona titolo e descrizione e patch , vi spiego io dovrei passare tutto questo a smarty template,pero il problema che questi contenuti che sono 6 li voglio mettere in due colonne, adesso io una mezza oluzione l avrei trovata, comunque vi faccio vedere lo script l index.php [php]if($autorizzato=="1"){
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='1' and
      permission='2' and enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)){
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      } // FIN QUI DOVREBBE ANDARE TUTTO BENE: fai una sola query
      } else { // Anche qui ok, perchè fai una query
      $cnt = 0; // Contatore
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='1' and
      permission='1' and enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)) {
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      }
      } // Provo a cambiare...
      unset($caric_blocks_home);
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='2' and
      enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)) {
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      }

      unset($caric_blocks_home);
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='3' and
      enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)) {
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      }
      unset($caric_blocks_home);
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='4' and
      enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)){
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      }
      unset($caric_blocks_home);
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='5' and
      enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)){
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      }
      unset($caric_blocks_home);
      $caric_blocks_home = mysql_query("select * from blocks_home where posizione ='6' and
      enable ='1' limit 1");
      while($array=mysql_fetch_array($caric_blocks_home)){
      $valori_da_passare[$cnt]['posizione'] = $array['posizione'];
      $valori_da_passare[$cnt]['img_icon'] = $array['img'];
      $valori_da_passare[$cnt]['path_content'] = $array['path'];
      $valori_da_passare[$cnt]['title_content'] = constant("".$array['nome']."");
      $valori_da_passare[$cnt]['descrict_content'] = constant("".$array['description']."");
      // Incremento il contatore
      $cnt++;
      }
      $smarty->assign("array_lato_sinistro",$valori_da_passare);

      $smarty->assign("array_lato_destro",$valori_da_passare);
      $smarty->display('index.tpl');
      [/php]
      adesso posto il template

       <table id='contenutitexticone' border="0" width="100%" cellpadding="0" cellspacing="0" >
        <tr>
        <td>
      {foreach name=nome item=row from=$array_lato_sinistro}  
        <table border="1" width="100%"  cellpadding="0" cellspacing="0">
        <tr>
         <td id='iconticket'> <a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><img src="{$path_site}/immagini/{$row.img_icon}.gif" width='60' height='60' /></a> </td>
          <td id='titlemessage'><a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><strong>{$row.title_content}</strong></a><br><span class='smalltext'>{$row.descrict_content}</span> </td>
         </tr>
      </table>
      {/foreach}
          </td>
           <td>
         {foreach name=nome item=row from=$array_lato_destro}   
      <table border="1" width="100%" cellpadding="0" cellspacing="0" >
        <tr>
          <td id='iconticket'> <a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><img src="{$path_site}/immagini/{$row.img_icon}.gif" width='60' height='60' /></a> </td>
         <td id='titlemessage'><a href ="{$row.path_site}/{$row.path_content}/index.php" target="_parent"><strong>{$row.title_content}</strong></a><br><span class='smalltext'>{$row.descrict_content}</span> </td>
        </tr>
       </table>
       {/foreach}
       </td>
       </tr>
      </table>
      ```lcosi com e funziona ma mi riperte il tutto nelle due colonne , i contnuti sono 6 soltanto che non me li divide in due colonne, ma me li duplica, io la soluzione l avrei trovata, sltanto che non so come passarla a smarty
       
      :fumato:
      [php]
       
      $colonne = 2; 
      $tot_righe = $num_record/$colonne; 
      $i_x = 0; 
      $x_x = 0; 
      $k_x = 0; 
      $cell_width = floor(100/$colonne); 
      $sql = " 
      SELECT * 
      FROM blocks_home 
      WHERE posizione BETWEEN 1 AND 6 
      AND permission = 1 
      AND enable = 1 
      "; 
      $query = @mysql_query($sql); 
      $num_record = @mysql_num_rows($query); 
      echo 
      '<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr>'; 
       
      while($array = mysql_fetch_array($query)){ 
      $i_x++; 
      $k_x++; 
      $x_x++; 
       
      echo"<td id='iconticket'><a href ='' target='_parent'><img src='' width='60' height='60' /></a></td><td id='titlemessage'><a href ='$path_site/".$array['path']."/index.php' target='_parent'><strong>".constant("".$array['nome']."")."</strong></a><br><span class='smalltext'>".constant("".$array['description']."")."</span></td>";
       
       
      if($i_x == $colonne) { 
      echo"</tr>"; 
      if ($i_x == $colonne && (($x_x/$colonne) != $tot_righe)) { 
      echo"<tr>";
      } 
      $i_x = 0; 
      } // fine $i_x == $colonne 
      } //fine del ciclo 
      if ($colonne <= $x_x){ 
      if (($k_x%$colonne) != 0){ 
      $indice = $k_x; 
      $indice++; 
      if(($indice%$colonne) == 0 ){ 
      echo'</tr>'; 
      } 
      } //fine ($k%$colonne)!= 0 
      } else{ //fine if $colonne <= $x 
      echo '</tr>'; 
      }
      echo '</table>';[/php]
      postato in Coding
      R
      rocco.mod
    • RE: invio email al db

      si c e un controllo nel config

      postato in Coding
      R
      rocco.mod
    • RE: invio email al db

      ciao ho risolto comunque era che non avevo messo nel db id aut increment comunque adesso ho un altro problema togliere il controllo sull email cioe se trova l email adesso non me la scrive perche c e toglerlo questo controllo

      postato in Coding
      R
      rocco.mod
    • invio email al db

      salve gente ho un problema che spero mi aiutiate a risolvere io voglio salvare le mail nel database io ho usato due files uno config e uno mailform

      posto il mail form.php[PHP]
      <?
      include 'config.php';
      $adminaddress = "[email protected]";
      $siteaddress ="http://www.actionscriptnews.com";
      $sitename = "actionscriptnews.com";

      //No need to change anything below ...
      // Gets the date and time from your server
      $date = date("m/d/Y H:i:s");
      // Gets the IP Address
      if ($REMOTE_ADDR == "") $ip = "no ip";
      else $ip = getHostByAddr($REMOTE_ADDR);
      // Gets the POST Headers - the Flash variables
      $action = $HTTP_POST_VARS['action'] ;
      $email = $HTTP_POST_VARS['email'] ;
      $name = $HTTP_POST_VARS['name'] ;
      $cognome = $HTTP_POST_VARS['cognome'] ;
      $comments = $HTTP_POST_VARS['comments'] ;
      $telefono = $HTTP_POST_VARS['telefono'] ;
      $oggetto = $HTTP_POST_VARS['oggetto'] ;
      //Process the form data!
      // and send the information collected in the Flash form to Your nominated email address
      if ($action == "send")
      {
      //Innanzitutto controlliamo la var.le name:
      $controllo = check_email($email);
      if ($controllo != "OK")
      {
      echo $controllo;
      //Qui potresti anche far visualizzare una cosa del genere:
      echo "<BR><A HREF="http://www.marikweb.com/homeita/">Ritorna alla registrazione</A>";
      }
      else
      {
      //Ora inseriamo i dati nel DB.
      //Ovviamente devi creare una tabella in cui inserire i dati ke passi con il post.

      $link_db = mysql_connect($CONFIG['host'],$CONFIG['user'],$CONFIG['pass']);
      mysql_select_db($CONFIG['dbname']);
      $sql_insert = "INSERT INTO contact (name,cognome,email,telefono,oggetto,comments) VALUES('$name','$cognome','$email','$telefono','$oggetto','$comments')";
      if (mysql_query($sql_insert))
      {
      echo "OK RIGA INSERITA <br />";
      }
      else
      {
      die(mysql_error());
      }
      mysql_close($link_db);

      //
      mail ("$adminaddress","informazioni",
      "Il visitatore ha lasciato le seguenti informazioni \n
      Name: $name
      Email: $email\n
      Telefono: $telefono
      Messaggio:

      $comments

      Logged Info :

      Using: $HTTP_USER_AGENT
      Hostname: $ip
      IP address: $REMOTE_ADDR
      Date/Time: $date","FROM:$email" ) ;

      //This sends a confirmation to your visitor
      mail ("$email","Re:",
      "Salve $name,\n
      abbiamo ricevuto il suo messaggio e presto sarà contattato.\n
      Saluti dallo Staff di $sitename
      By
      $siteaddress","FROM:$adminaddress ") ;

      //Confirmation is sent back to the Flash form that the process is complete
      $sendresult = "Thank you. You will receive a confirmation email shortly.";
      $send_answer = "answer=";
      $send_answer .= rawurlencode($sendresult);
      echo $send_answer;
      }

      }
      ?>

      [/PHP]

      [PHP]
      <?php
      $CONFIG['host'] = "localhost";
      $CONFIG['user'] = "rocco";
      $CONFIG['pass'] = "maurizio";
      $CONFIG['dbname'] = "user35512_7777";
      $CONFIG['expire'] = 60;
      $CONFIG['regexpire'] = 24; //in ore
      $CONFIG['expire'] = 60;
      $CONFIG['regexpire'] = 24; //in ore
      $CONFIG['check_table'] = array(
      "name" => "check_global",
      "email" => "check_global"
      );
      function check_email($value)
      {
      global $CONFIG;
      $value = trim($value);
      if (($value == ""))
      {
      echo"Il campo non può essere lasciato vuoto";
      }
      else{
      $query = @mysql_query("SELECT id FROM contact WHERE email='$value'")or die("Errore nella query");

      if (@mysql_num_rows($query) != 0) return "Email già utilizzata";
      else return"OK";
      }
      }
      //--------------
      define('AUTH_LOGGED', 99);
      define('AUTH_NOT_LOGGED', 100);
      define('AUTH_USE_COOKIE', 101);
      define('AUTH_USE_LINK', 103);
      define('AUTH_INVALID_PARAMS', 104);
      define('AUTH_LOGEDD_IN', 105);
      define('AUTH_FAILED', 106);
      define('REG_ERRORS', 107);
      define('REG_SUCCESS', 108);
      define('REG_FAILED', 109);
      $conn = @mysql_connect($CONFIG['host'], $CONFIG['user'], $CONFIG['pass']) or die('Impossibile stabilire una connessione');
      @mysql_select_db($CONFIG['dbname']) or die("Errore nel DB");
      ?>

      tabella#################################

            
      CREATE TABLE `contact` (
        `id` int(40) NOT NULL default '0',
        `date` datetime NOT NULL default '0000-00-00 00:00:00',
        `name` varchar(50) NOT NULL default '',
        `cognome` varchar(50) NOT NULL default '',
        `email` varchar(100) NOT NULL default '',
        `telefono` varchar(50) NOT NULL default '',
        `oggetto` varchar(100) NOT NULL default '',
        `comments` text NOT NULL,
        `ip` varchar(15) NOT NULL default '',
        PRIMARY KEY  (`id`)
      )
       
      
      

      [/PHP]

      postato in Coding
      R
      rocco.mod