Jump to content

bowenac

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by bowenac

  1. Thank you, a little early I guess. For some reason thought or would work... if page is this or that etc.
  2. In my footer, I'm checking if the page id equals a couple specific pages etc. I can only get this to work if I only check for one id... Not sure why this or statement is not working. if($page->id != 1021 || $page->id != 1105) if($page->id != 1021|1105) if( ($page->id != 1021) or ($page->id != 1105) ) I can't get any combination to work for some reason, but if I just check for one page id, what I'm trying to do works. But not when I check for multiple page id's...
  3. I answered 2 entries in this week http://t.co/lbMJw079V5

  4. RT @Xbox: Our Witcher console needs a home. RT for a chance to make it yours. RULES: http://t.co/xAC1mx5ahQ #WitcherXboxOne http://t.co/Hd…

  5. Well for now I just decided to use it as an actual template and create an actual field for the 50/50 split updating. Seems to be working fine. I guess I can keep this hidden and unpublished.
  6. So I am setting up a file to be used to process data. The url to this template will have post data that I need to do a 50/50 split on what to do with the data. Think of it as a cron job... Before adding a custom db table which is one way I thought about determining what to do with the data based on if a field is true or false, and after processing the data, update that value to true or false... Is there a way I can create a custom field and update the value of that field for a custom file that is not used as a template in PW? My thought would be to dynamically create the field if the field does not exist... that way I won't need to create the custom field in the dashboard. If the value does not exist create it. This is because I will be using this same template file on 5 different websites which are just different locations for the same website. So template is cron.php in /site/templates/cron.php I would like to create a field called cron with a value of true or false. After processing the data update the field to true or false.
  7. Working on a site and for some reason show root, adds the homepage to the end of the nav? I thought this was prepended so not sure why it is ending up at the end of the nav. Not seeing any options for root position. Any ideas?
  8. RT @JonRyan9: If anyone out there wants to talk crap about our kicker who is one of the best in the game u can meet me at the swing set at …

  9. Ok so I went into the site\modules\FormBuilder\form-builder.php and copied that template and replaced the code in site\templates\form-builder.php and now the form displays and works as I tested it and can see the entries in the Forms in the admin. But it also shows the good ole Hello World haha under the form. Whats the deal with that? I could hide this for the time being via css but not sure why this is being spit out.
  10. Yes there are a bunch of files in that folder I dont understand why there are two though. .FormBuilder and FormBuilder Looking for the formbuilder forum right now thanks.
  11. Moved some sites to a new server which use Form Builder and they are no longer working. The pages that should display the form are using the easy embed option form-builder/basic-contact Apparently the client was told by the author that they needed Swift Mailer because the forms were responding very slow. Then they installed form builder 2.5 via ftp and now the forms do not display. Anyone familiar with the below expception method? Or can point me in the right direction. When viewing the page while not logged in it displays internal server error where the embed should be. While logged in as a super user it shows the following exception: Error: Exception: Method FormBuilder::setTemplateVersion does not exist or is not callable in this context (in /var/www/example/wire/core/Wire.php line 349) #0 /var/www/example/site/templates/form-builder.php(26): Wire->__call('setTemplateVers...', Array) #1 /var/www/example/site/templates/form-builder.php(26): FormBuilder->setTemplateVersion(2) #2 /var/www/example/wire/core/TemplateFile.php(169): require('/var/www/garage...') #3 [internal function]: TemplateFile->___render() #4 /var/www/example/wire/core/Wire.php(389): call_user_func_array(Array, Array) #5 /var/www/example/wire/core/Wire.php(344): Wire->runHooks('render', Array) #6 /var/www/example/wire/modules/PageRender.module(356): Wire->__call('render', Array) #7 /var/www/example/wire/modules/PageRender.module(356): TemplateFile->render() #8 [internal function]: PageRender->___renderPage(Object(HookEvent)) #9 /var/www/example/wire/core/Wire.php(389): call_user_func_array( This error message was shown because you are logged in as a Superuser. Error has been logged. Like I mentioned above, they attempted to install a new version of form builder via ftp I guess, I can see two different directorys for form builder which seems odd. site\modules\.FormBuilder\FormBuilder.module site\modules\FormBuilder\FormBuilder.module So one with a period before FormBuilder and one without, all of which seem to have the same files and code. I checked FormBuilder.module of both and they both say they are version 22 which I assume 2.2 so not sure what they meant by version 2.5 as apparently the latest version is 2.4. Maybe they got versions mixed up and were talking about PW being version 2.5 as they are running 2.5.3 The form-builder.php template is using this which is what is throwing the error <?php $forms->setTemplateVersion(2); $form = $forms->getFromURL(true); echo $form->styles; echo $form->scripts; ?>
  12. NM figured it out typo... Delete if you want. Hello all, started playing with processwire last night, been developing for wp for years and so far I am liking some things with PW. Currently I edited the users template and added some profile fields etc. I am able to get all the fileds except the image field. This is what I am currently trying. $page->createdUser->images->first(); This is not working for me. Is this not the correct way to get a user profile image?
  13. There has to be a better editor than the default editor but I'm not finding anything. Going to be working on a few processwire sites, and moving a site to processwire but already seems challenging compared to other cms. For what ever reason if I use source mode and enter html it strips html and ends up replacing everything with p tags. I can't seem to use an h1 tag. Can someone point me to a better text editor?
  14. RT @fxcki7: Official Xbox One Advanced Warfare - AW - Console Giveaway!!! http://t.co/ub6cDf86Q5 (RT)

×
×
  • Create New...