Back to top

Visualizza post

Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.


Post - zanni79

Pagine: [1]
1
Joomla! 1.5 / Come si si fa una query su mysql?
« il: 22 Ott 2010, 10:45:36 »
Buongiorno  a tutti .
Ho installato sul mio joomla il plugin  multilingual approval e lo uso nella registrazione utenti di virtuemart.
L'utente si registra , conferma via mail la registrazione e solo quando un'amministratore conferma il suo account puo "loggarsi" nel sito.
Il problema è che nella mail che arriva all'amministratore , vi sono solo i campi: nome, mail e username ! Vorrei che tutti i dati che si inseriscono sul form di registrazione fossero presenti nella mail.

Sul forum di virtuemart.com ho trovato questo topic :
Citazione
would first like to thank you for a very useful and needed plug-in!

I am attempting to add additional user data to the email generated for the admin so they don't have to login to the site in order to approve a new registrant. I've edited the following code, but it continues to only print name, username, email etc....

Code:
      // send request to approve to admin
      $actLink   = JRoute::_($siteURL."index.php?option=com_user&task=activate&activation="
                           .$activation);
      $sub      = JText::_('REGISAPPROVAL_APPROVAL_REQUIRED_SUBJECT');
      $subject    = sprintf($sub,$name,$sitename);
      $subject    = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');
 
      $msg   =   JText::_('REGISAPPROVAL_APPROVAL_REQUIRED_EMAIL');
      $message = sprintf($msg,$siteURL,$name,$email,$username,$actLink);
                $message = "\nCompany name: " . $userinfo->company
                     .  "\nCompany type: " . $userinfo->vm_biztype
                     . "\nNumber of stores " . $userinfo->vm_locations
                     . "\nProducts sold: " . $userinfo->vm_soldproduct
                     . "\nHow they heard about us: " . $userinfo->vm_heardabout;
      $message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
                                                                                                                   

--------------------------------------------------------------------------------
e lui gli risponde:
Citazione
The admin does NOT have to login to approve the new registrant.
When the admin clicks the activation link in the mail, it only loads the site and displays the message that the activation has been done and that the user has been sent a mail.

The code you propose, if it was correct, would only add some information concerning the user in the mail sent to the admin.

To do it correctly, you have to define what is the variable $userinfo before printing the $message
To get the variable $userinfo (I guess it is in your database), you first have to make a query for
company, vm_biztype, vm_locations, etc.
Then add a $userinfo = the result of your query;
then the message
$message = sprintf($msg,$siteURL,$name,$email,$username,$userinfo,$actLink); //add $userinfo here.
And add in the ini string a %s .

aiutooo mi chiedo cosa devo scrivere in  "$userinfo = the result of your query";

come si si fa una query su mysql?

é corretto scivere : $userinfo = mysql_query(e qui i dati tipo:$company, $city, $adress_1.....)?

scusate l'ignoranza .... ma sono alle prime armi con il mysql e php.

aiutatemi perfavoreeee  :)

2
Gestione e-commerce / Virtuemart e multilingual approval
« il: 20 Ott 2010, 11:21:12 »
Buongiorno  a tutti .
Ho installato sul mio joomla il plugin  multilingual approval e lo uso nella registrazione utenti di virtuemart.
L'utente si registra , conferma via mail la registrazione e solo quando un'amministratore conferma il suo account puo "loggarsi" nel sito.
Il problema è che nella mail che arriva all'amministratore , vi sono solo i campi: nome, mail e username ! Vorrei che tutti i dati che si inseriscono sul form di registrazione fossero presenti nella mail.

Sul forum di virtuemart.com ho trovato questo topic :
Citazione
would first like to thank you for a very useful and needed plug-in!

I am attempting to add additional user data to the email generated for the admin so they don't have to login to the site in order to approve a new registrant. I've edited the following code, but it continues to only print name, username, email etc....

Code:
      // send request to approve to admin
      $actLink   = JRoute::_($siteURL."index.php?option=com_user&task=activate&activation="
                           .$activation);
      $sub      = JText::_('REGISAPPROVAL_APPROVAL_REQUIRED_SUBJECT');
      $subject    = sprintf($sub,$name,$sitename);
      $subject    = html_entity_decode($subject, ENT_QUOTES, 'UTF-8');
 
      $msg   =   JText::_('REGISAPPROVAL_APPROVAL_REQUIRED_EMAIL');
      $message = sprintf($msg,$siteURL,$name,$email,$username,$actLink);
                $message = "\nCompany name: " . $userinfo->company
                     .  "\nCompany type: " . $userinfo->vm_biztype
                     . "\nNumber of stores " . $userinfo->vm_locations
                     . "\nProducts sold: " . $userinfo->vm_soldproduct
                     . "\nHow they heard about us: " . $userinfo->vm_heardabout;
      $message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
                                                                                                                   

--------------------------------------------------------------------------------
e lui gli risponde:
Citazione
The admin does NOT have to login to approve the new registrant.
When the admin clicks the activation link in the mail, it only loads the site and displays the message that the activation has been done and that the user has been sent a mail.

The code you propose, if it was correct, would only add some information concerning the user in the mail sent to the admin.

To do it correctly, you have to define what is the variable $userinfo before printing the $message
To get the variable $userinfo (I guess it is in your database), you first have to make a query for
company, vm_biztype, vm_locations, etc.
Then add a $userinfo = the result of your query;
then the message
$message = sprintf($msg,$siteURL,$name,$email,$username,$userinfo,$actLink); //add $userinfo here.
And add in the ini string a %s .

aiutooo mi chiedo cosa devo scrivere in  "$userinfo = the result of your query";

come si si fa una query su mysql?

é corretto scivere : $userinfo = mysql_query(e qui i dati tipo:$company, $city, $adress_1.....)?

scusate l'ignoranza .... ma sono alle prime armi con il mysql e php.

aiutatemi perfavoreeee  :)

3
Gallerie di immagini / Re:Virtuemart e oziogallery
« il: 20 Lug 2010, 13:24:29 »
grazie della risposta ....

ma purtroppo non sono un esperto in php
puoi spiegarmi  come funziona?

bisogna agire su i file xml?

grazie ancora

4
Gallerie di immagini / Virtuemart e oziogallery
« il: 20 Lug 2010, 12:23:19 »
Salve a tutti.
Vorrei sapere se è possibile collegare la OzioGallery ai prodotti di virtuemart , in modo che cllicando sull'immagine si è indirizzati alla flypage del prodotto.

Grazie in anticipo.

5
AIUTOOO ... Ho un problema con i titoli degli articoli ed il footer di una sola pagina . Tranne il primo titolo tutti gli altri sono in corsivo e non capisco perchè . nella stessa pagina il testo del footer è anche lui in corsivo . Problema al database ? Virus? non so.

invio  i link della pagina sospetta e di un'altra pagina dello steso sito che non ha questi problermi.

http://www.otago.it/Otago/index.php?option=com_content&view=category&layout=blog&id=44&Itemid=81&lang=it

http://www.otago.it/Otago/index.php?option=com_content&view=category&layout=blog&id=3&Itemid=55&lang=it
Grazie in anticipo

6
Gestione Form / Re:form per multi mail
« il: 26 Apr 2010, 15:18:44 »
si scusami... vorrei un form nel quale scegliere a quale ufficio inviare il contenuto con una semplice scelta del email da un unico form

grazie

7
Gestione Form / form per multi mail
« il: 21 Apr 2010, 13:50:16 »
aiuto aiuto
Vorrei creare un form email nel mio sito con la possibilità di inviare i messaggi ai diversi uffici presenti nella ditta. come grafica, info, ufficio stampa, human rights....


qualcuno mi puo aiutare?

8
Gallerie di immagini / Re:galleria per copertine di libri
« il: 11 Apr 2010, 16:13:17 »
grazie per la risposta ed il benvenuto......
ma ancora non riesco a trovare il modulo adatto a quello che cerco .
Hai qualche suggerimento più dettagliato?

grazie ancora

9
Gallerie di immagini / galleria per copertine di libri
« il: 11 Apr 2010, 15:43:24 »
aiutatemiiiiii
sto cercando un modulo che mi faccia apparire sulla homepage del mio sito un antemprima ( mi piacerebbe a carosello) di copertine di libri . Il problema è che vorrei che cliccando su ogni copertina si aprisse una scheda dettagliata del libro .

grazie anticipatamente. :)

Pagine: [1]


Web Design Bolzano Kreatif