Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : djchri 23 Jul 2009, 20:08:32

: Inserire script nella pagina di registrazione CB
: djchri 23 Jul 2009, 20:08:32
ciao ragazzi,
io dovrei inserire uno script html nella pagina di registrazione, che č gestita da community builder... praticamente, in quale file dovrei inserire questo script? non riesco a trovare un file html di registrazione....

cioč... io dovrei inserire uno script all'interno di questa pagina: http://www.stylecult.net/registratimenu/registers.html (http://www.stylecult.net/registratimenu/registers.html) subito al di sotto del campo Fax, ma non so in che file andare ad inserire lo script html
: Re:Inserire script nella pagina di registrazione CB
: djchri 23 Jul 2009, 21:19:02
dovrei inserire questo codice:

<script type="text/javascript" src="http://coreg.1x12.net/?act=getoffers&pubid=2646"></script>
<script type="text/javascript">
// These three functions must be included in your page.

// validatePublisherForm() is called before processing offers form.
// This is where you validate data from your own form, and if necessary, returns error.
// If this function returns false, offers won't be processed.
function validatePublisherForm()
{
   if(cbFrmSubmitButton())
      return true;
  return false;
}

// submitPublisherForm() is called by the LSF scripts after processing the coreg offers sending data to the LSF server.
// This function must be the only way to submit the form.
function submitPublisherForm() { document.adminForm.submit(); }

// This is a security wrapper, used to call the two previous functions.
function LSFaction(action)
{
    switch (action) {
        case 0: if (window.display_LSF_offers) display_LSF_offers(); break;
        case 1: if (window.LSF_submit) LSF_submit(); else if (validatePublisherForm()) submitPublisherForm(); break;
    }
}

</script>

tra i tag <head> e </head> della pagina, e poi questo:

...

<form action="http://www.stylecult.net/registratimenu.html" method="post" id="cbcheckedadminForm" name="adminForm" enctype="multipart/form-data">

<!-- This is where you want to display the coregistration offers -->
<script type="text/javascript">
LSFaction(0);
</script>


</form>


<!-- Your submission button (or link) has to call LSFaction(1) -->

<input type="button" value="Registrati" class="button" name=btnG onclick="LSFaction(1)"/>


...

tra i tag <body> e </body> di quella pagina...

qualche idea su come fare?  :(
: Re:Inserire script nella pagina di registrazione CB
: 56francesco 24 Jul 2009, 12:30:11
penso sia il file cblogin.php

ma ora non chiedermi in quale riga e colonna...