Jump to content

Recommended Posts

Hi All,

I am gladly posting my first site profile.

Blue-VR Site Profile for ProcessWire

Summary 

A site profile for corporate or personal website. Profile can be used with ProcessWire open source CMS/CMF version 2.3+. The front-end uses the Bootstrap 3.1 css framework for to get the responsiveness and mobile friendliness.

Front-end Demo - bluevr.webcreate.lk

Back-end Demo mode - bluevr-webcreate.lk/processwire (The username 'admin' and password 'bluevr2')

Overall features
 
 * HTML5 & CSS3 + ({less})
 * Build with bootstrap 3.1
 * SEO Friendly
 * Clean & modern design
 * Responsive markup
 * Contact form and google map locations with multiple google markers
 * Testimonials using bxSlider
 * AIOM supports (Just install the module no need to touch the code)
 
How to install
 
Please take a copy of the latest ProcessWire (Replace the install, modules and templates directories with those in this profile, as shown below: 
 
- /site-default/install/
- /site-default/modules/
- /site-default/templates/ 
 
Make sure you do following steps as well
 
 1. Add `tinymce` directory into /site-defaut.
 2. Add the following two lines to your `/site/config.php` file: 
$config->prependTemplateFile = '_init.php';
$config->appendTemplateFile = '_main.php';
Download
 
 
Credits
  • I would like to thanks Ryan for giving us great CMS/CMF and modules.
  • Hani AbuGhazaleh for a great module of Fieldtype: Select (AKA Drop Down)
  • David Karich for providing such a nice module AIOM+.
*** Please note that the site profile is still on testing stage. 
 
Thanks

------------------------------------------------------------------------

Edit: install instructions. 

Edit: Add credits

Edit: Update live demo url

Edit: Update back-end demo mode details

post-1911-0-93639600-1402515282_thumb.jp

post-1911-0-76204000-1402515287_thumb.jp

  • Like 18

Share this post


Link to post
Share on other sites

Thanks for sharing Gayan!

It would be good to explicitly state in your install instructions that Site Profiles can only be installed on 'new' sites (newbie alert :D). I know it is implicit here 'Please take a copy of the [latest ProcessWire]' but it could be clearer :-)

Edited to request clearer instructions...

Edited by kongondo
  • Like 2

Share this post


Link to post
Share on other sites

Thanks for sharing Gayan!

It would be good to explicitly state in your install instructions that Site Profiles can only be installed on 'new' sites (newbie alert :D). I know it is implicit here 'Please take a copy of the [latest ProcessWire]' but it could be clearer :-)

Thank you so Kongondo. I updated the post. 

  • Like 1

Share this post


Link to post
Share on other sites

I just saw this when approving your entry in the Developer's Directory - nice work :)

Would you like to add it to the Modules Directory? There is a category for site profiles and you can link it to your GitHub page for the project so it will get seen by more people browsing the directory. Plus I can then list you as a module author in the Developer Directory (I can only do this if your module is in the official directory though).

  • Like 1

Share this post


Link to post
Share on other sites

I have enjoyed using this site profile.  I have learned a lot about processwire by using it.  Thank you. 

When I turn on error reporting I get the following error on multiple installations.

Notice: Undefined variable: siteSetting in /home/mechanic/public_html/site/templates/_init.php on line 27

Notice: Trying to get property of non-object in /home/mechanic/public_html/site/templates/_init.php on line 27

Code

$browserTitle = ($homepage->seo_title)? $homepage->seo_title : $page->title;
if ($page->seo_title) $browserTitle = $page->get('seo_title');

$seoMetaDescription = ($homepage->seo_meta_description)? $siteSetting->seo_meta_description : "";
if ($page->seo_meta_description) $seoMetaDescription = $page->seo_meta_description;

I'm inclined to just ignore it but thought I would still ask.

  • Like 2

Share this post


Link to post
Share on other sites

Looks lovely Gayan. You could create a demo for this over on lightning.pw - the guys over there do a free deal for free modules and I think that probably includes site profiles too! You might have to install this manually though, I don't think it lets you upload a site profile as part of the site creation process - but I may be wrong.

Regardless, thank you for this profile!

  • Like 1

Share this post


Link to post
Share on other sites

I guess this is as good a place as any to make my first forum post.  I stumbled across PW some months ago, and I'm just now starting to learn how to use it, and when I found your BlueVR profile I liked it's looks, and installed the profile to begin learning the ins-and-outs of Processwire.

  • Like 3

Share this post


Link to post
Share on other sites

Gayan, looks great. What about putting site into demo mode and allowing backend login?

  • Like 1

Share this post


Link to post
Share on other sites

Hi again,

In FormTemplateProcessor.module, I've precised an email address (not this one of course...):

// Optional E-Mail address that form will get submitted to
		$this->set('email', 'name@domain.tld');

I still receive the messages as pages, but not as emails.

How can I receive them as pages and as emails, or just as emails?

NB: I've seen commented code(s) related to all this at the top of the file, but I don't want to mess things up.

  • Like 1

Share this post


Link to post
Share on other sites

Hi Christophe,

Please refer `site/templates/_functions.inc` file. Inside of that file there is a method named `getContactUsForm()`. At the moment `from email address` would be your admin email address. Please feel free to modify it in `getContactUsForm()` method. 

Thanks

  • Like 3

Share this post


Link to post
Share on other sites

I never would get the email from the adminEmail address so I just added $form->email = ('email@example.com');

    $form->template = wire('templates')->get('contact-form'); // required
    $form->requiredFields = $formRequiredElements;
    $form->email = ('mont@exampledomain.com');
 // $form->email = wire('config')->adminEmail; // optional, sends form as email
    $form->parent = wire('page'); // optional, saves form as page
    $content .= $form->render(); // draw form or process submitted form
  • Like 2

Share this post


Link to post
Share on other sites

Hey there, thanks for the awesome profile. I'm going to probably use it as an example for a simple site I'm doing as a class project. Here it is running on a raspberry pi. therestaurant.endoftheinternet.org

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

In the _functions.inc file, I've tried with :

  • $form->email = ('name@exampledomain.com'); -> it works well;
  • //$form->parent = wire('page'); // optional, saves form as page -> it works well.

But I wonder why it doesn't work by default with the following line as my admin email address is the same in this case :

  • $form->email = wire('config')->adminEmail; // optional, sends form as email

Otherwise, I had posted something about the translation of the "missing required field" error message (but had no answer) here: https://processwire.com/talk/topic/925-german-de-de/page-8#entry87848

Does someone have an answer(s)?

Thanks.

Have a nice weekend!

Share this post


Link to post
Share on other sites

Hi Christophe,

But I wonder why it doesn't work by default with the following line as my admin email address is the same in this case :

  • $form->email = wire('config')->adminEmail; // optional, sends form as email

Please double check your site/config.php for adminEmail configuration.

If not you can add that to site/config.php like follows:

/**
 * adminEmail: address to send optional fatal error notifications to.
 *
 */
$config->adminEmail = 'name@exampledomain.com';

Here is a little reference.

Thanks

  • Like 3

Share this post


Link to post
Share on other sites

Thank you for these details Gayan. I'll look at them.

But do you have an idea about the translation of the "missing required field" error message. Can we translate it elsewhere than in the core file where it is?

Share this post


Link to post
Share on other sites

Hi Gayan

Thank you for taking the time to write this site profile - I like it a lot.

For my site, the Blue-VR homepage is a lot more than I need, but the rest of the pages are idea.

Please how do I make the homepage look like the rest of pages across the site?

Kind regards,

Luke

(Derby, UK) 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By rushy
      I'm trying to migrate a PW site on my local dev server to a shared hosted server and have used the ProcessExportProfile module to export a profile as a zip file. So far so good. I then deploy new install of PW on the server by unzipping the PW installation files but I do not run the install until I have replaced the various site profiles with the files from the exported profile. So basically:
      In the PW install files I delete all the site-* folders except site-default. This one I overwrite with  the export profile folders so it contains my assets, install, modules and templates folders together with the exported config.php
      I then run the install in the browser in the normal way and it starts the installation and I can see my website profile in the list and I select it. It proceeds as normal and gets to setting up the database. I provide the db info. as usual and it proceeds as far the info. below and 'hangs' at this point , it never goes on to setup the PW login admin. and complete the install I am left at that screen.  
      If I relaunch the browser at the site it all seems to work! BUT I have no admin login to PW so cannot get into the backend. 
      I have basically followed the Installation, Moving and Troubleshooting guide by Joss Sanglier: http://processwire.com/docs/tutorials/installation-moving-and-troubleshooting/page4
      Any idea where I could check for an error log or some help as I am at a loss as to the problem. 
      Many thanks. Paul
      ProcessWire 3.x Installer
       Test Database and Save Configuration
       Database connection successful to pinpoin1_master
       Saved configuration to ./site/config.php
       Profile Import
       Imported database file: ./wire/core/install.sql
       Imported database file: ./site/install/install.sql
    • By Marcel
      Hey, 
      I am very new to processwire and bootstrap. I have a field (text area) and there I want to be able to insert an image which is responsive. I tryed it with Source but in the end the page doesn't seem to like it when I insert in Source the following code
      <img src="<?php echo $homepage->content_img->url; ?>" class="img-fluid" alt="Responsive image"> What can I do to make it possible to insert reponsive images in a text area?
      Thank you in advance.
      Marcel
    • By Clément Lambelet
      Hi all,
       
      I'm really new to ProcessWire, maybe I missed the solution in the documentation.
      I'm working on a site which involves a lot of image upload fields, and I'm always getting many timeout errors. I'm pretty sure it's because I generate too many variations on a single page load (around 20 images with 7 different sizes, for them to be responsive).
      I can't use ImageSizerEngineIMagick to help (my host doesn't support it).
       
      I was wondering if there was a way to hook to the process of client-side image resizing (https://processwire.com/blog/posts/processwire-3.0.63-adds-client-side-image-resizing/) to generate the different variations (as it seems really faster). If not, is there a way to generate the different variations on upload and not on page load ?
       
      Any ideas and suggestions are welcome!
    • By rafaoski
      You can download and test from this address:  GITHUB-SITE-BS4 and this MODULES - SITE-BS4
      And I add a screenshot:

       
    • By abdus
      While I was reading Smashing Magazine, I discovered this handy tool called XRespond that lets you load webpages in iframes that are designed to simulate different devices, (similar to how browsers' mobile simulators work).
      I think it's quite useful for local development. In fact it works for any website as long as it doesnt have `X-Frame-Options` headers set to `sameorigin`. I highly recommend using it with browser-sync with live loading as well. I use this settings when using it with PHPStorm to live reload my dev site on pw.dev.
      // remember set cwd to /site/templates/ or call it from templates directory path/to/browser-sync.cmd start --proxy pw.dev --port 8080 --files "**/*.php" --files "assets/**/*.css" --files "assets/**/*.css"
      What other tools/utilities do you use for testing your responsive designs?
×
×
  • Create New...