rareyush
-
Posts
73 -
Joined
-
Last visited
Posts posted by rareyush
-
-
I am using module "FormTemplateProcessor" to get data in a pages but they all are unpublished and when I am trying to display them with relevent pages it not working
page1 p1 p2 p3 page2 (FormTemplateProcessor) up1 (unpublished page and have p1 id on field knows as "ID") up2 (unpublished page and have p3 id on field knows as "ID") up3 (unpublished page and have p2 id on field knows as "ID")
now here
up1, ip2, up3 can be created by p1, p2 or p3 and I am saving respectively I'm saving their id in field which is being used by up1,up2,up3, etc template.
now I want to show the data from unpublished pages which belongs to p1, p2 and p3 respectively
anyone has experienced this or knows something which can help me out ?
-
6 hours ago, kongondo said:
Do you mean a separate field for time? Not out of the box, no. You'd have to edit the source code. If you can be a bit more specific about your needs, we can rustle up something for you.
here is the link for my thread where I described my prolem
-
On 4/27/2018 at 8:08 PM, dragan said:
A little search goes a long way... here's two similar threads
https://processwire.com/talk/topic/14888-simple-calendar-module-with-reservation-and-confirmation/
https://processwire.com/talk/topic/16757-booking-calendar-–-overview/
As far as GUI is concerned, there are better alternatives than Bootstrap datepickers. Out of the box, they are not truly accessible. Try something like this instead https://github.com/flatpickr/flatpickr
On 4/27/2018 at 7:36 PM, Pixrael said:Try to find a calendar script (php or javascript) there are tons on internet, free and paid. Follow the instructions to set/get the data and use it in your template file.
https://www.google.com/search?q=Hours+Booking+calendar+php
I previously used this http://eonasdan.github.io/bootstrap-datetimepicker/ (javascript), it's for use with bootstrap, you just have to output the plugin config with php and later receive the data using a post.. it's very straightforward
4none of them is working in my case
I am actually looking for something like an appointment booking calendar with multiple time slots during each day, where availability can also be specified. Also the availability can be specified by the service provider, not necessarily the super admin, and can be selected and booked by users with an online payment.
Thanks for your help and support. -
is it possible to get time as well in this?
-
I am using this module is there anyway to add time field as well in this module ?
-
anybody ?
noone has experienced this ?
-
Has anyone any experience making a dynamic hours booking calendar:
- person visits site and can see a calendar with available hours marked as taken and others as free
- person clicks number of hour and is allowed to fill a form to book the timing like: 6:17pm - 10:67-pm
Any comments most appreciated,
-
On 4/13/2018 at 5:54 PM, gebeer said:
what does this say when you put it before everything else?
var_dump($modules->isInstalled('FormTemplateProcessor'));
it solved my problem
thanks
-
14 minutes ago, gebeer said:
don't you get anything from the var_dump?
NULL
-
43 minutes ago, gebeer said:
I just set this up on my dev install 3.0.96 with your code from above and it works.
Only thing I changed is $form->parent...So it is hard to say what goes wrong on your end without seeing the complete template code.
EDIT: what does this say?
$form = $modules->get('FormTemplateProcessor'); var_dump($form);
And then right before your echo?
var_dump($form); echo $form->render();
this error
Error: Uncaught Error: Call to a member function render() on null in C:\wamp64\www\mbs\site\templates\book-now.php:13
-
8 minutes ago, gebeer said:
what happens if you comment out the first call to $form->render?
same error with different line number
-
1 hour ago, flydev said:
If you put namespace ProcessWire; on top of the module file, does it work ?
nope not working
5 minutes ago, gebeer said:The error message you posted does not fit with the code.
You got that error when you tried it with render(array('name','email','body',))
What error do you get with the actual code that you posted?
code is here
<?php namespace ProcessWire; $form = $modules->get('FormTemplateProcessor');$form->template = $templates->get('book-now'); // required $form->requiredFields = array('title', 'email', 'number','body'); //$form->email = 'your@email.com'; // optional, sends form as email $form->parent = $page('template=book-now'); // optional, saves form as page $form->render(); // draw form or process submitted form ?> <?php echo $form->render(); ?>
here is the error
-
<?php namespace ProcessWire; $form = $modules->get('FormTemplateProcessor');$form->template = $templates->get('book-now'); // required $form->requiredFields = array('title', 'email', 'number','body'); //$form->email = 'your@email.com'; // optional, sends form as email $form->parent = $page('template=book-now'); // optional, saves form as page //$form->render(); // draw form or process submitted form ?> <?php echo $form->render(); ?>
using this to for a contact on new processwire version 3 and I am receiving this error
Error: Uncaught Error: Call to undefined method stdClass::render() in C:\wamp64\www\mbs\site\templates\book-now.php:9
tried following but none of them works
render(array('name','email','body',))
wireRender()
Render()
wire()
anyone ?
-
is there any way to get contact form queries without any session
-
21 hours ago, gebeer said:
Have you tried to check the "Add DROP TABLE / VIEW / PROCEDURE..." Option when exporting from phpMyAdmin?
EDIT: It is in your screenshot above under "Object Creation Options"
yeah either some tables got missing or same error,
nvm it has no solution except one which is to use linux system
installing virtualbox and it should work in there
-
12 hours ago, BitPoet said:
If you're really importing into an empty database, this should have worked.
If you run the following statement in phpMyAdmin on your server, do you get any table names back?
/* Replace $YOUR-DATABASE-HERE$ with the real name of your database */ SELECT TABLE_NAME FROM information_schema.tables WHERE TABLE_SCHEMA = '$YOUR-DATABASE-HERE$' AND CAST(TABLE_NAME AS BINARY) RLIKE '[A-Z]';
nope not even 1 table
-
3 hours ago, BitPoet said:
Best would be to check "Export tables as separate files", then you can select which table files to transfer (or extract from zip) to your local computer. Skip any tables with uppercase characters, then import the remaining (all lowercase) tables.
In any case, do not check the "IF NOT EXISTS" box or you might end with old or duplicate data in your tables.
I tried but it didn't work
1 hour ago, 3fingers said:Could this be part of a soultion?
nope no help from there either
-
21 minutes ago, BitPoet said:
Are you transferring from Linux to Windows or MacOS? It looks like you have table names that are different in upper-/lowercasing but otherwise identical. MySQL makes distinctions there on Linux but treats upper and lower case the same on other OSes, depending on whether the underlying file system is case sensitive (here's some more information on that topic).
If that's the case, your best bet would probably be to do a selective database export and only export the tables that are all lowercase, then the import should run fine. There's a miniscule possibility that some valid data is contained in the uppercase tables, but I'd only start looking there if something is actually missing.
yeah online I am using centos server and fro machine I am using windows
and I tried different char set, old db system options but nothing seems to be working
these are the option I have in phpmyadmin on my server
-
nobody has used google cloud platform here???
-
3 minutes ago, zoeck said:
Can you tell us the error ? Without the error message, it's quite hard
updated my thread
-
i am receiving and error whenever I try to run my processwire on localhost,
sql code
-- -- Table structure for table `field_fieldset_meta_end` -- CREATE TABLE `field_fieldset_meta_end` ( `pages_id` int(10) UNSIGNED NOT NULL, `data` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `field_fieldset_meta_END` -- CREATE TABLE `field_fieldset_meta_END` ( `pages_id` int(10) UNSIGNED NOT NULL, `data` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
anyone ?
whenever I make a new database and upload it there, database get imported without errors.
-
it's fixed
I mistakenly selected this in files tab in services template
still anyone knows how to show subcate pages using services???
-
42 minutes ago, neosin said:
can you post template code?
subcate template code <?php namespace ProcessWire; $ser=""; $title= $page->title; $services = $page->get('services'); $brief= $page->brief; if($page->services) { foreach($page->services as $p) { $ser.= "<br><p>{$p->title}</p>"; } } echo " <div style='margin-top: 100px;'> $title <br> $ser </div> "; ?>
-
I added a field type 'page reference' using checkboxes knows as services.
now i want to display the pages according to service.
I can display all services list but when i click on any services then I can see whole code of site
any idea where i am wrong
?
main cate1 subcate1 subcate2 cate2 subcate1 subcate2 services first-service second services
these services is being used as a page reference in subcate1, subcate2 templates.
and in the navbar when i click on services and then when i click on any of the following service then i can see whole source code of my site.
fields from unpublished pages
in General Support
Posted
thanks it worked