PreScriptZ

PreScriptZ supports this item

Supported

This author's response time can be up to 2 business days.

6 comments found.

Great work, very useful script! :)

thank so much, it’s greater if you’re 1st buyer :)

Hello,

Would I be able to use this with say a RoR folder style meaning i have my Home page home.html also my contact form contact_side.html and include that into the page?

yes, we can include unlimited other files into 1 as we wish by using include_file method, let’s check this example code http://www.prescriptz.com/member/pTemplate/documentation/#method-include_file

Heyy :) I’m first buyer here

thanks for the script its nice but I can see its done for developers more than designers? or I’m mistaken?!

I have a ready template designed, and a ready php script too which i want to change its current theme into my new template…

I really dont know where to start from…

I saw somewhere you have ready made demos, how can i access those?

Please assist

thank so much, the first buyer :)

this script is really made for both DEV & designers, like I said in the intro; but like all other support tools, we must master them before using it :) ; honestly, I think this is for designers mainly, it just helps coders make the tasks faster

let’s begin at Basic usages, in your PHP script, just include my script then use add_file to get this works

there’s only 5 simple instructions in Basic usages; with them, you may use 70% of script’s power

pls give me your email ID, I’ll send key code + instructions for live demos

many thanks

email sent :) thanks a lot for your great response and support

thank for your interests

your access created, please follow instructions in email to use

just let me know if you still any thing

Good afternoon, I am trying to create a method to go make an inquiry and pass the recordset in a variable and then assign it to the template, but can not find the way.

Pass the variable as follows:

do {

$values [] = array( 
    'NAME'             => $row['name'],
    'CITY'             => $row['city'],
    'DATESTART'          => strftime('%d-%m-%Y',strtotime($row['datestart'])),
    'ID'                => $row['id'],
    'SUSCRIPCIONES'     => $row['suscripciones']
);
} while ($row = mysql_fetch_assoc($eventos));

and then execute the next part to pass it to the template:

$listado = $lista->listado_eventos($item); $pTemplate->assign_block_vars(‘eventos’, $listado);

where is the error and how I can fix it?

Thank you

with current solution, you’re assigning 2-dimensions array into block var

but pTemplate can only accept 1-dimension array at present, please assign directly like below:

do {
    $pTemplate->assign_block_vars('eventos', array(
        'NAME'             => $row['name'],
        'CITY'             => $row['city'],
        'DATESTART'        => strftime('%d-%m-%Y',strtotime($row['datestart'])),
        'ID'               => $row['id'],
        'SUSCRIPCIONES'    => $row['suscripciones']
    ));
}
while ($row = mysql_fetch_assoc($eventos));

I had already seen this in the tutorials, the problem I have is that I loop it a method that is part of a class created for me, as I can not solve this problem.

Thanks for your help

yes, then we’ll have need 1 more loop to solve this if your array is result from a method, how about this:

$listado = $lista->listado_eventos($item);

foreach($listado as $aset) {
    $pTemplate->assign_block_vars('eventos', array(
        'NAME'             => $aset['name'],
        'CITY'             => $aset['city'],
        'DATESTART'        => strftime('%d-%m-%Y',strtotime($aset['datestart'])),
        'ID'               => $aset['id'],
        'SUSCRIPCIONES'    => $aset['suscripciones']
    ));
}

Hi, in a javascript script in the template, I need use the operator && , but always change it to & and that invalidate the script!!! How can I work with that logical operator???

please help me comment this line (in pparse method)

$this->html_standard( $content );

the method html_standard used to convert single & signs to valid HTML, base W3C

Hi, in a javascript script in the template, I need use the operator && , but always change it to

&
and that invalidate the script!!! How can I work with that logical operator???
by
by
by
by
by
by