Jump to content

mrkhan

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by mrkhan

  1. Hello, I have WireMailSmtp 0.3.0 I am trying to connect to Microsoft Hosted emails and doing bellow settings SMTP HostName: smtp.office365.com Port: 25 SMTP user: full email address SMTP password: email password But when i try to test connection I got the error ERROR: SMTP settings did not work. could not connect to the host "smtp.office365.com": Connection refused I am able to login to outlook online with the same user and password. I just want to send email through SMTP How to fix this issue? your help will be highly appreciated. Thanks
  2. Hello, I am trying to Import XML and then create pages from these XML feeds. Everything is working fine, the only issue is with Image in XML feed some images are with extension and its downloading and adding in page but some images are without extension its making issue, how can I import all images with or without extension and add to the page? If I load image URL without an extension in browser Image is loading fine. see attachment for XML feed. Thanks
  3. Hello, I am trying to create multi language site and i follow the all instructions here https://processwire.com/talk/topic/5518-multi-language-site/ http://processwire.com/api/multi-language-support/multi-language-urls/ i have installed all Modules under Language and also i change text to textlanguage and also textarea type. when i goto page url i see as attached. i dont see any /ar/ before my page, on home page and also on other pages (see attachment). does i am doing some thing wrong or how to do this ? Thanks
  4. Hello, The day i start using PW and i Love and its really great product and I always get great support here too. I run into issue and i want know how to solve it. I am using import from CSV module ( http://modules.processwire.com/modules/import-pages-csv/ ) and its working fine. I have one user group (webmaster) for and add/ edit pages, i want to give access to that group. Like when that group Login they can access the Module and import file to add pages. I tried many options like i create a new permission as (import-pages-csv) and give that permission to that group but not working. Thanks
  5. i have one website in PW working fine https://domain.com in .htaccess i have un commented bellow to work fine with my SSL RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] now i have one folder in this domain with images & i want to get the images with http not https. like when i type http://domain.com/images/image1.jpg it convert this into https://domain.com/images/image1.jpg how to make only imags in image foler load with http Thanks
  6. Thanks @Francesco Bortolussi it worked.
  7. Hello, i am trying to search page with multiple options like, i have one select box where i can select multiple items as <select id="tokenize" name="tokenize" multiple="multiple" class="tokenize-sample" /> i have GET form and when i submit the form i get values like search/?tokenize=abc&tokenize=xyz now in my search page $children = $pages->find("template=property, Ad_Type=".$ptype." ,Area=".$tokenize); as you can see i have passed multiple values of tokenize, how can i search page contains all values ? Thanks
  8. @adrian Thanks & it works
  9. Hi, I have one xml FEED and I want to create pages for each item in XML via API. First time i am trying to create page with API, every thing is working fine but the issue is 1. its creating duplicate pages every time i run that XML. i have one unique field in XML called item_id & i want to create page with item_id as page name, i want to check that if page exist with item_id name before creating page. how can i do that ? Thanks
  10. even i use bellow i code i am getting same random names with no extension, why extensions are missing ? $photo=$_FILES["photo"]; $resume=$_FILES["resume"];
  11. Hello @horst, Thanks for quick response, i am getting files from form , bellow is my form code <form id="contactForm" action="" method='post' enctype="multipart/form-data" accept-charset='UTF-8'> <input type='text' name='name' id='name' required="" value='' maxlength="50" /><br/> <input type='email' name='email' id='email' required="" value='' maxlength="50" /><br/> <input type="file" name='photo' id='photo' accept='image/jpg,image/jpeg,image/gif,image/png' /><br/> <input type="file" name='resume' required="" id='resume' accept="application/pdf,application/msword" /><br/> </form> and my php code is as i post above $photo=$_FILES["photo"]; $resume=$_FILES["resume"]; $mail = wireMail(); $mail->to($toEmail, $toName); $mail->from = $toEmail; $mail->subject($subject); /// these are attachemnts $mail->attachment($photo); $mail->attachment($resume); $mail->body($textBody); $numSent = $mail->send(); But when i got email i got two attachments with random names but no extension. Thanks
  12. Hello @horst i have posted the question in module page my issue now is with attachments, this send email with attachments but attached files are names (xbnvv , iuytt) random names without extension. Thanks
  13. Hello, I am building one form to send email with WireMailSmtp every thing is working fine, only thing attachments are sending with email without any extension. what i want to do is Send email with attachment, this script send attachment with email but files are names like bnvft & angth (random names without extensions). here is my code if (isset($input->post->submit)) { $form = array( 'name' => $input->post->name, 'email' => $input->post->email, 'message' => $input->post->message, 'email2' => $input->post->email2 ); $photo=$filetemp = $_FILES["photo"]; /// how to check that file is only image $resume=$filetemp = $_FILES["resume"]; /// how to check the file is only PDF or word file /// email12 is for spam boot if($form[email2] =="") { $toName='my website'; $toEmail=$page->email; $subject="CV EMail"; $textBody= "Full name: $form[name]\n" . "Email: $form[email]\n" . "Message: $form[message]"; $mail = wireMail(); $mail->to($toEmail, $toName); $mail->from = $toEmail; $mail->subject($subject); $mail->attachment($photo); $mail->attachment($resume); $mail->body($textBody); $numSent = $mail->send(); if($numSent) { $output="Message Send"; }else{ $output="Message Not Send"; } } }
  14. Hello, I am building one form to send email with WireMailSmtp every thing is working fine, only thing attachments are sending with email without any extension. what i want to do is 1. first check the attached file and only allow image/ pdf and word file to be attached 2. send email with attachment. here is my code if (isset($input->post->submit)) { $form = array( 'name' => $input->post->name, 'email' => $input->post->email, 'message' => $input->post->message, 'email2' => $input->post->email2 ); $photo=$filetemp = $_FILES["photo"]; /// how to check that file is only image $resume=$filetemp = $_FILES["resume"]; /// how to check the file is only PDF or word file /// email12 is for spam boot if($form[email2] =="") { $toName='my website'; $toEmail=$page->email; $subject="CV EMail"; $textBody= "Full name: $form[name]\n" . "Email: $form[email]\n" . "Message: $form[message]"; $mail = wireMail(); $mail->to($toEmail, $toName); $mail->from = $toEmail; $mail->subject($subject); $mail->attachment($photo); $mail->attachment($resume); $mail->body($textBody); $numSent = $mail->send(); if($numSent) { $output="Message Send"; }else{ $output="Message Not Send"; } } }
  15. Hello, i am trying to use PW 3 and its look great with option of online editing. but i am having issue with installing admin theme Modesta. when i try to install admin theme i got error Fatal error: Class 'InputfieldWrapper' not found in /Applications/XAMPP/xamppfiles/htdocs/ProcessWire/site/templates-admin/init.php on line 11 with few other files but i manage the issue by replacing the <?php to <?php namespace ProcessWire; in every file, i want to know does its necessary to change and if not how to fix that without manually changing all files. second now i am getting error which i could't solve admin load properly but when i goto pages i could't see any page and after changing $config->debug = true; in config.php file i got this error Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/ProcessWire/site/templates-admin/AdminThemeModestaHelpers.php on line 73 when i see bellow is code return $this->wire('adminTheme')->modestaSitename; and same error is in few other lines too. how to fix the issues and make theme working with PW 3 Thanks
  16. Hello, i saw blog post about new image option and wondering when this option is coming live to check and work with ? https://processwire.com/blog/posts/a-preview-of-coming-attractions-to-processwires-image-tools/ also how can i download PW ProcessWire 3.0 alpha-4 to check ? Thanks
  17. Hello @Macrura, really thanks for your code but unfortunately i am unable to do what i need, i think code is great but only i am unable to understand. like i have menus like that Home About us Products Product 1 sub product Product 2 sub product1 sub product2 Product 3 sub product Contact us i can't understand how i will add 2 sub level products in page? as i told you i am using repeater when i add item i can select the page and select the check box for group and set the url , but how i will add 2nd menus like under product -> Product 2 ->sub product1 could you please show me some pics of your page view & how you make repeater with fields? really appreciate all your help Thanks
  18. Hello @Macrura, thanks for your reply. your idea look similar to me what i am looking. could you please share with me your code for this purpose and checkbox for child. many thanks
  19. Hello, i saw that module but want to create my page for creating menu through page not through module. Thanks
  20. Hello LostKobrakai, thanks for reply but its not working. i think site/templates/ is not proper path. but if i change this line as bellow it start working document.write('<script src="localhost/site' + scriptUrl + '"></script>'); Thanks
  21. Hello, i am trying to build one Page in CMS for menu Building. i have created a field name "menu_page" Page type & one text filed name "depth" now i have crated a new repeater name "menus" with above both fields. menus (repeater) menu_page (page type, single page) depth (text) now i add it one page name "header" and added values as bellow menus1 menu_page "about us" depth (0) menus2 menu_page "About Company" depth (1) menus3 menu_page "Products" depth (3) menus4 menu_page "Contact Us" depth (0) in my template file i have code as bellow <ul> <?php $menus=$pages->get("/header/"); foreach($menus as $menu) { ?> <li><a href="<?php echo $menu->url;?>"><?php echo $menu->title;?></a></li> <?php } ?> </ul> This shows TOP menu Menu but how to get SUB menu according to Dept of each menu. Thanks
  22. Hello yes i saw this function which is loading javascript files function include(scriptUrl) { document.write('<script src="' + scriptUrl + '"></script>'); } and after in same JS file called files like this include('js/jquery.easing.1.3.js'); how to add assets path in JS file ? Thanks
×
×
  • Create New...