-
Posts
283 -
Joined
-
Last visited
Everything posted by davo
-
And it's listed here... https://openexchangerates.org/currencies
-
Hmmmm, looks like I'll have to hard code the value with a warning. I'll have a closer look at the other example. Cheers Adrian.
-
Ryan, this module is working really well for me on everything but one currency; mexian peso MXN. When parsing it reports this error: Error: Exception: Can't find target currency. (in /var/www/clients/client2/web37/web/site/modules/ServiceCurrencyConversion/ServiceCurrencyConversion.module line 295) #0 /var/www/clients/client2/web37/web/site/modules/ServiceCurrencyConversion/ServiceCurrencyConversion.module(310): ServiceCurrencyConversion->convertAdvanced('GBP', 'MXN', 250, 0, -1) #1 /var/www/clients/client2/web37/web/site/templates/currency.php(16): ServiceCurrencyConversion->convert('GBP', 'MXN', 250) #2 /var/www/clients/client2/web37/web/wire/core/TemplateFile.php(140): require('/var/www/client...') #3 [internal function]: TemplateFile->___render() #4 /var/www/clients/client2/web37/web/wire/core/Wire.php(359): call_user_func_array(Array, Array) #5 /var/www/clients/client2/web37/web/wire/core/Wire.php(317): Wire->runHooks('render', Array) #6 /var/www/clients/client2/web37/web/wire/modules/PageRender.module(337): Wire->__call('render', Array) #7 /var/www/clients/client2/web37/web/wire/modules/PageRender.module(337): TemplateFile->render() #8 [in I'm using this to code: $cc = $modules->get('ServiceCurrencyConversion'); $dollars = 250; // this is what we're going to convert -- ignore dollar naming convention $currency = $page->symbol; // $symbol = $cc->getSymbol("$currency"); $euros = $cc->convert('GBP', "$currency", $dollars); //again, please ignore dodgy naming convention $simple = $cc->convert('GBP', "$currency", '1'); ?> <div class="container"> <div class="row"> <div class="col-md-6"> <?php echo "<h2> £1 = $symbol$simple .</h2>"; ?> </div> <div class="col-md-6"> <?php echo "<h3>That means £$dollars is going to buy you {$symbol}{$euros} .</3>"; ?> </div> </div> </div> please ignore my dodgy variable names. Any idea why it has a problem with MXN please?
-
Have you tried sending the email to an email on the same domain as the site?
-
must be down to my tutors lol. $x = "any"; $y = 1; $z = "you"; echo "$x" . "$y"; $y = $y+$y; echo "even" . $z . $y;
- 206 replies
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
Sometimes reverse DNS is used by mail servers to authenticate that the sending IP address actually matches the domain it proclaims to come from. The issue you may have is you're using shared hosting one IP address may be used to host multiple domains making reverse DNS difficult. You can look to see if it is set up on a site like this: http://mxtoolbox.com/ReverseLookup.aspx but for shared hosting this may not be the answer. I've not seen it but I can probably assume horst's module uses a separate mailing provider to send the mail rather than the site's own php. Not sure I've really helped much but it does as least give another avenue to explore.
-
Have you tried creating reverse DNS records for the domain you're sending from? This will probably have to be done by the ISP if this is your issue. ip 193.405.123.123 -> yourdomain.com
-
Just to add my two pennies worth... I'm not a coder by trade, but used to make many joomla sites for hobby money. But, by virtue of not being a coder I was restricted to what modules and components other more competent people created. This only caused me more problems when the core upgraded etc leaving me with out of date components and a vulnerable site. (and some egg on my face) I switched to PW after recommendation by a friend which turned out to be the best thing I could have done. With practically personal tutoring by members here (Adrian, Ryan, Joss, Pete, sinnut etc (sorry for missing out so many)), I've become competent in using the api and basic php. I now don't need a component to make a blog, photo gallery, complex database, I make my own. The biggest advantage of this is I know exactly how they work, I know how to adapt it and I most of all it won't become obsolete when the core gets upgraded. What makes a coder? $x = "any"; $y = 1; $z = "you"; echo "$x" . "$y"; $y = $y+$y; echo "$z" . $y; Would that even work? lol WP/Joomla and drupal all have a targeted audience... but I belong here lol.
- 206 replies
-
- 8
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
Thanks Pete That makes a lot of sense. Ajax and json isn't something I'm proficient in yet. I suppose I could make a slimmed down version of the site, and then use something like httrack to clone the site to html and then package that using phone gap. Of course, as data gets updated, the app wouldn't, unless of course the static app had regular updates. Doesn't sound viable yet. Thank you. I'll have a look at those links. I do also agree, seems little point turning a dynamic site into an app... But sometimes I'm driven by a clients whim.
-
Success on playground site - Deleted module Upgraded pw to dev branch installed new user email module installed import pages from CSV edited the module to include additional protected fields successfully imported user from CSV and welcome email sent! Thank you. When I do the live site I'll try and video the process for others. Cheers!
-
I know very little about creating iOS and android apps, but I was wondering is it possible to convert a wp based site to one of these? I've heard of phone gap but never used it.
-
I could upgrade my playground site early to test it all and then wait for the 2.5 stable release for the live site. Sound most sensible?
-
That's odd, on my playground site the module installed, but on the live site i got this error when installing it: Error: Class EmailNewUser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Module::getModuleInfo) (line 215 of /var/www/clients/client2/web37/web/site/modules/EmailNewUser/EmailNewUser.module) The site still functions but won't let me into the modules section without that message. actually, happens on both upon install...
-
Thanks so much. I don't need to pre populate the passwords so I'm happy to have them generated by your module. Yes, I did get the roles to import in the end. It looks like this for me: protected $fieldtypes = array( 'FieldtypePageTitle', 'FieldtypeText', 'FieldtypeTextarea', 'FieldtypeInteger', 'FieldtypeFloat', 'FieldtypeEmail', 'FieldtypeURL', 'FieldtypeCheckbox', 'FieldtypeFile', 'FieldtypePassword', // add this line for passwords 'FieldtypePage', // add this line for the roles ); I had to call the columns in the roles 'roles' and reference the role by ID rather than name
-
Ok, it's there! Used Ryan's import users from CSV module. Added title to the users template which seems to duplicate in to the name field.My test csv looks like this: title,pass,email,roles,,,,, james,james,james@james.com,2107,,,,, What's next?
-
Thank you. It looks like renobird has got it to create new users by adding the title field to the user template https://processwire.com/talk/topic/383-module-import-pages-from-csv-file/page-4 I'll have a go at this later and get back to you.
-
Adrian, i think this may be what I'm after through I've not had a chance yet to try it. I need to bulk import a number of users to become registered users. Could I import these users with csv to page and have this module email them their details? Thanks David
-
RESULT! Cheers This is only a temporary solution until all content from the old site have been migrated.
-
Thank you MF; that does look good for future use but I don't think it will achieve what I'm trying to do today.
-
In previous posts I've dealt with redirecting individual pages from an old site location to a new one. But this is slightly different. On the old non pw site there were a fair number of PDFs with a link to other PDFs all stored in a FTP share. I can't easily move all the files across because the links are hard coded into other PDFs. Long term I will move the files across and slowly change the PDFs. What I need to do is redirect any traffic to http://www.dudmc.com/newsletter/****** to the old site http://www.dudmc.co.uk/newsletter/******* This is an example http://www.dudmc.com/newsletter/Prague_Hotels.pdf Unless anyone can think of a better or different way I think the only answer could be is to use apache rewrite in the htaccess file..... But I'm fairly useless with that. Could anyone help please? This is only a short term solution.
-
Probably a similar number to that of the number of posts I have made!
-
I think i'm going to make a page not of 'FAQs', but 'My Most Common Errors'
-
Can't work out why my thumbnail resizing here doesn't work. It's probably something very obvious (as usual) <?php /** * Page template * */ include("./head.inc"); echo $page->body; $contestantarray = $pages->find("template=user"); //get all the users $contestants = $contestantarray->findRandom(2); //grab two contestants foreach ($contestants as $contestant) { $lineup = $contestant->profile_image; //create the contestant $thumb_contest = $lineup->size(50, 50); //create a thumbnail echo "<img src='{$thumb_contest->url}{$thumb_contest}'><br /> " ; //output the thumbnail } include("./foot.inc"); errror: Error: Exception: Method Pageimages::size does not exist or is not callable in this context (in /var/www/clients/client15/web43/web/wire/core/Wire.php line 320) #0 /var/www/clients/client15/web43/web/site/templates/contest.php(19): Wire->__call('size', Array) #1 /var/www/clients/client15/web43/web/site/templates/contest.php(19): Pageimages->size(50, 50) #2 /var/www/clients/client15/web43/web/wire/core/TemplateFile.php(140): require('/var/www/client...') #3 [internal function]: TemplateFile->___render() #4 /var/www/clients/client15/web43/web/wire/core/Wire.php(359): call_user_func_array(Array, Array) #5 /var/www/clients/client15/web43/web/wire/core/Wire.php(317): Wire->runHooks('render', Array) #6 /var/www/clients/client15/web43/web/wire/modules/PageRender.module(337): Wire->__call('render', Array) #7 /var/www/clients/client15/web43/web/wire/modules/PageRender.module(337): TemplateFile->render() #8 [internal function]: PageRender->___renderPage(Object(HookEvent)) #9 /var/www/clients/client15/web43/web/wire/core/Wire This error message was shown because you are logged in as a Superuser. Error has been logged.
-
Thank you. Unfortunately I only have a small laptop i understand the banner images also only expand to their native resolution, so unless I used very large images I'm not sure how I'd get around this.
-
Thank you. I'm not a great designer so bootstrap 3 serves me very well. Applying bootstrap 3 styles to the form builder forms is something I'd also like to achieve. I believe this can be done but will require slow more learning and reading for me. Changing the styles to one of the pre mades is easy. It also looks easy to create new ones from theme roller, but a little more complicated to use bootstrap; but possible I understand.