Member
Member
robb1e   2019-06-28, 00:31
#1
hello again Smile

is there somewhere that will show me exactly how to add the contact form to ZenPhoto?
I read the user guide but it must assume you already know how to call a php page. I don't and its annoying me now Smile

Thanks in advance folks.

ps ZP is in my root webfolder.
Administrator
Administrator
fretzl   2019-06-29, 08:45
#2
It depends on what you want.

* Place a link to the theme's contact page (contact.php)
(_contact.php_ itself contains a call to the _printContactForm()_ function. See next possibility)
`<?php printCustomPageURL(gettext('Contact us'), 'contact', '', ''); ?>`
_Example_: /themes/basic/inc-footer.php
_Documentation_: https://docs.zenphoto.org/1.5.3/function-printCustomPageURL.html



* Print a contact form (almost) anywhere you like.
`<?php printContactForm(); ?>`
_Example_: /themes/basic/contact.php
_Documentation_: https://docs.zenphoto.org/1.5.3/function-printContactForm.html


* Use a macro to place a contact form in zenpage pages and zenpage news-articles. (requires the _zenpage_ plugin to be enabled)
Type `[CONTACTFORM]` in the content field.
Member
Member
robb1e   2019-06-30, 11:12
#3
Thanks, I'll try that.
Administrator
Administrator
fretzl   2019-06-30, 11:52
#4
Note that those are 3 different possibilities.
Member
Member
robb1e   2019-07-02, 01:31
#5
ok, so i still cant get the form to work. clearly i cant be understanding this.
I can get a text link on my page saying 'Contact Me' but when clicked I get 'Error Loading Page.
I'm using the ZPmobile theme and i'm inserting the php code into the index.php of that theme.
Using your first suggestion, I change it from
<?php printCustomPageURL(gettext('Contact Me'), 'contact', '', ''); ?>
to
<?php printCustomPageURL(gettext('Contact Me'), '/zp-core/zp-extensions/contact_form.php', '', ''); ?>

What do i need to change?

thanks in advance Smile
Member
Member
robb1e   2019-07-02, 01:36
#6
Sorry, again i've found the pages link at top (never used to be there and i just noticed it now after enabling the zenpage plugin)
i then used the last suggestion and it is appearing now.
Unfortunately this does not yet mean i am finished needing help Tongue i'll get back to you.


thanks for all your help so far mate
Administrator
Administrator
acrylian   2019-07-02, 07:54
#7
>Using your first suggestion, I change it from
> <?php printCustomPageURL(gettext('Contact Me'), 'contact', '', ''); ?>
> to
> <?php printCustomPageURL(gettext('Contact Me'), '/zp-core/zp- extensions/contact_form.php', '', ''); ?>

The first was correct. But the theme has to have a custom page named `contact.php` to have this working. zpMobile does not and you didn't mention the theme you are using. They are not all the same.

I recommend to read the theming tutorial for the basics if you are planning to do more customizations. Especially you should modify a copy of the theme and not the original.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.