-
Posts
20 -
Joined
-
Last visited
Everything posted by kradzcalypse
-
I tried changing my PHP version from 5.6.10 to 5.3.29 and BAM! solved it ..
-
Categories not visible. Incorrect setup?
kradzcalypse replied to FrancisChung's topic in General Support
I'm new to php and processwire could you provide an example on how to do this Macrura ? Thank you -
Categories not visible. Incorrect setup?
kradzcalypse replied to FrancisChung's topic in General Support
Hello how do you add php into an unordered list like below ? <?php // Render the Category List categoriesList(); ?> <?php into <ul class="oi_smalldev_categories_list"> <li class="cat-item cat-item-7"> <a href="category/coding/index.html" title="This extended category features articles on client-side and server-side programming languages, tools, frameworks and libraries, as well as back-end issues. Experts and professionals reveal their coding tips, tricks and ideas.">Coding</a> </ul> Thank you. -
Got it! Forgive me masta !
-
Thanks justb3a, It works. I tried adding 3 more input fields into the form (Address, Telephone Number & Identification) and then created 3 new fields in the admin section but where can I define the input id ( e.g : Inputfield_Alamat ) for those 3 new form fields ? Here are things that I've done so far .. simple_contact_form.php <div class="form-group"> <label class="col-md-3 control-label" for='Inputfield_Alamat'>Alamat<i class='toggle-icon fa fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label> <div class="col-md-9"> <input id="Inputfield_Alamat" class="form-control" name="Address" value="<?= $input->Alamat; ?>" type="text" maxlength="2048" placeholder="" /> </div> </div> site/modules/SimpleContactForm/SimpleContactForm.module protected static $defaults = array( 'fullName' => '', 'Address' => '', 'Telephone Number' => '', 'Identification' => '', 'emailTo' => '', 'emailSubject' => 'New Web Contact Form Submission', 'successMessage' => 'Thank you, your submission has been sent.', 'errorMessage' => 'Please verify the data you have entered.', 'emailMessage' => '', 'emailServer' => 'noreply@server.com', 'allFields' => 'fullName,Alamat,Telefon,KadPengenalan,email,message', 'requiredFields' => 'fullName,Alamat,Telefon,KadPengenalan,email,message', 'emailField' => 'email', 'saveMessages' => true, 'antiSpamTimeMin' => '0', 'antiSpamTimeMax' => '90', 'antiSpamPerDay' => '3', 'antiSpamExcludeIps' => '127.0.0.1', 'antiSpamCountAdditionalInputs' => '5', 'useTwig' => false, 'cleanup' => 0 ); ..... ..... public static function getModuleConfigInputfields(array $data) { $fields = new InputfieldWrapper(); $modules = wire('modules'); // default config values $data = array_merge(self::$defaults, $data); ...... ....... 'Address' => array( 'type' => 'InputfieldText', 'description' => 'Fallback: Alamat', 'size' => 45, 'placeholder' => 'Alamat', 'columnWidth' => 50 ), 'Telephone Number' => array( 'type' => 'InputfieldText', 'description' => 'Fallback: Telefon', 'size' => 45, 'placeholder' => 'Telefon', 'columnWidth' => 50 ), 'Identification' => array( 'type' => 'InputfieldText', 'description' => 'Fallback: Kad Pengenalan', 'size' => 45, 'placeholder' => 'Kad pengenalan', 'columnWidth' => 50 ),
-
<section class="krown-latest-portfolio clearfix alt col-4"> <div class="portfolio-items clearfix"> <?php foreach($page->PortfolioRepeater1 as $c)?> <?php { ?> <div class="portfolio-item alt advertising website-design"> <a href=""> <img src=" <?php echo "{$c->Portfolio1->url}"; ?>" width="218" height="164" alt="1000 Jobs" /> <div class="alt-hover"> <div> <div class="caption"> <h3> <?php echo " <p>{$c->PortfolioCaption1}</p>"; ?> </h3> <span class="category"> <?php echo " <p>{$c->PortfolioUrl1}</p>"; ?> </span> <div class="folio like"> <span class="post-like"> <span>0</span> <i class="krown-icon-heart-1"></i> </span> </div> </div> </div> </div> </a> </div> <?php } ?> <?php ?> </div> </section> Hello, All repeater fields displayed correctly on my portfolio.php page but the problem is when I " Add Item", second item did not appear as second item on portfolio.php instead it replaced the first item. Currently the portfolio.php looks like http://pesisirbrand.com/portfolio/ , it suppose to look exactly like this : http://www.modernmarketingpartners.com/portfolio/ Can anybody help me fix the code above ? Thank you.
-
Hi, Thanks for your reply. Please have a look at my contact page : http://pesisirbrand.com/contact/ After filling up the contact form and press submit button the browser return the Home page but data never got submitted to inbox here : http://pesisirbrand.com/scf-messages/ Admin > Setup > Logs > simplecontactform-log returned : [FAILURE] Honeypot field was filled.
-
I have managed to call the contact form by adding echo <?php echo $modules->get('SimpleContactForm')->render(); ?> but there are 2 more issues : 1) How do you replace unordered list bullets which appear near the form label ? 2) When I submitted the form my browser got redirected to the Home page and found out the simple_contact_form.php don't have any value in action="./" . How to fix this ? Thank you
-
Hello, I just need to setup a simple contact form so, I installed SimpleContactForm. Then I went to Admin >> ModulesSimple >> Contact Form and followed the instruction. After I included below code into my contact.php and refresh the page, nothing came out @ blank page. <?php $modules->get('SimpleContactForm')->render(); ?> If I have the budget I could buy myself the FormBuilder but sadly not so much at the moment. Please tell me, is there any way to fix this issue or if there's something I overlooked ? Thank you.
-
<div class="krown-text-icon style-four"> <a href="social-media/index.html" target="_self"> <i class="krown-icon-bubble" style="color:#e64d36"></i> <h3>Some text</h3> </a> <div class="content"> <p>Some text.</p> </div> </div> The <i></i> tag got stripped away when I copy and paste them into text area field with CKEditor. I'm using this to display icons. Can anybody tell me how to allow the <i></i> tags in my fields ? Thank you.
-
How to assign pages to specific users ?
kradzcalypse replied to kradzcalypse's topic in General Support
Thank you. -
How to assign pages to specific users ?
kradzcalypse replied to kradzcalypse's topic in General Support
Yes, I want each user to be able to edit their personal pages. I can see the access-roles and permissions only provide option for assigning pages by user category, can I assign pages by user id ? for example : Username : Alex Pages belongs to Alex : - About my company - My products Username : Bob Pages belongs to Bob : - About my company - My products Thanks -
I would like create a small b2b like website which have 2 pages (about user's company & products) for each users. Can somebody show me how to do this ?
-
Yes, I may have overlooked the field naming but it is the same repeater child fields which I would like to call and both codes looks similar. I'm going to try it and see whether it work correctly or not.
-
Yes, I want to know how to call the repeater from within the template. Forget previous question. Let say I have a template called /blog and a repeater called Blogposts which have 3 fields nested under it (PostTitle, PostContent, PosImages), how do I call it ? This codes did not work correctly : <?php foreach($page->BlogPosts as $c) { ?> <?php echo $c->BlogTitle; ?> <?php echo $c->BlogContent; ?> <?php }?> Please show me how to call the repeater. Thank you.
-
Here are the html codes <section class="krown-latest-portfolio clearfix alt col-3 full-width-portfolio"> <div class="portfolio-items clearfix"> <div class="portfolio-item alt advertising website-design"> <a href="portfolio/1000-jobs/index.html"> <img src=" <?=$config->urls->templates;?>assets/wp-content/uploads/2015/07/1000-Jobs-218x164.png" width="218" height="164" alt="1000 Jobs" /> <div class="alt-hover"> <div> <div class="caption"> <h3>1000 Jobs</h3> <span class="category">Advertising, Website Design</span> <div class="folio like"> <span class="post-like"> <span>0</span> <i class="krown-icon-heart-1"></i> </span> </div> </div> </div> </div> </a> </div> <div class="portfolio-item alt branding content-marketing email-2 pr seo website-design"> <a href="portfolio/optimum-safety-management/index.html"> <img src=" <?=$config->urls->templates;?>assets/wp-content/uploads/2015/05/Optimum_Thumbnail-218x164.png" width="218" height="164" alt="Optimum Safety Management" /> <div class="alt-hover"> <div> <div class="caption"> <h3>Optimum Safety Management</h3> <span class="category">Branding, Content Marketing, Email Marketing, PR, SEO, Website Design</span> <div class="folio like"> <span class="post-like"> <span>0</span> <i class="krown-icon-heart-1"></i> </span> </div> </div> </div> </div> </a> </div> <div class="portfolio-item alt branding content-marketing ecommerce paid-search seo social-media startup website-design"> <a href="portfolio/iconic-shop/index.html"> <img src=" <?=$config->urls->templates;?>assets/wp-content/uploads/2014/10/Iconic-Shop-218x164.png" width="218" height="164" alt="Iconic Shop" /> <div class="alt-hover"> <div> <div class="caption"> <h3>Iconic Shop</h3> <span class="category">Branding, Content Marketing, Ecommerce, Paid Search, SEO, Social Media, Startup, Website Design</span> <div class="folio like"> <span class="post-like"> <span>0</span> <i class="krown-icon-heart-1"></i> </span> </div> </div> </div> </div> </a> </div> <div class="portfolio-item alt seo social-media website-design"> <a href="portfolio/brookside-veneers/index.html"> <img src=" <?=$config->urls->templates;?>assets/wp-content/uploads/2014/10/Brookside-Veneers-Marketing-218x164.png" width="218" height="164" alt="Brookside Veneers" /> <div class="alt-hover"> <div> <div class="caption"> <h3>Brookside Veneers</h3> <span class="category">SEO, Social Media, Website Design</span> <div class="folio like"> <span class="post-like"> <span>0</span> <i class="krown-icon-heart-1"></i> </span> </div> </div> </div> </div> </a> </div> <div class="portfolio-item alt advertising branding"> <a href="portfolio/fc-lighting/index.html"> <img src=" <?=$config->urls->templates;?>assets/wp-content/uploads/2014/10/FC-Lighting-Advertising-218x164.jpg" width="218" height="164" alt="FC Lighting" /> <div class="alt-hover"> <div> <div class="caption"> <h3>FC Lighting</h3> <span class="category">Advertising, Branding</span> <div class="folio like"> <span class="post-like"> <span>0</span> <i class="krown-icon-heart-1"></i> </span> </div> </div> </div> </div> </a> </div> </div> </section>
-
Hello, I tried to create something like below but have failed. Here's what I have done so far but it still didn't work even after following your step by step video tutorial ( ) : 1) Created 3 fields : - Title (text) - Description (textarea) - Thumbimage (image) 2) Created 1 repeater field : - Thumbs 3) Added field from (1) to the repeater field details 4) Went to template "basic-page" - added field Thumbs (repeater) 5) Created new page called main - add information into all fields 6) Save and preview the page at http://localhost:8888/processwire/main/ 7) ABSOLUTELY NOTHING appear ??
-
Problem solved by modifying code to : <ul> <!-- SLIDE --> <li data-transition="cube" data-slotamount="7" data-masterspeed="300" data-link="http://www.//portfolio/" data-saveperformance="off" > <!-- MAIN IMAGE --> <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="Modern-Marketing-Partners-Naperville2" data-lazyload="<?php echo $page->Slider1->url; ?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> </li> <!-- SLIDE --> <li data-transition="cube" data-slotamount="7" data-masterspeed="300" data-link="http://www.//marketing-services/" data-saveperformance="off" > <!-- MAIN IMAGE --> <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="MMP_Homepage_D_nirvana" data-lazyload="<?php echo $page->Slider2->url; ?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> </li> <!-- SLIDE --> <li data-transition="cube" data-slotamount="7" data-masterspeed="300" data-link="http://www.//resources/" data-saveperformance="off" > <!-- MAIN IMAGE --> <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="Marketing-Next-Practices" data-lazyload="<?php echo $page->Slider3->url; ?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> </li> </ul>
-
I'm sorry, I don't quite understand. Do you mean the should be like this ? <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="Marketing-Next-Practices" data-lazyload="<?=$page->image->eq(1);?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> what is eq ?
-
Hello, There are 3 image fields which I want to display in a slideshow on page called main.php. The problem is I could not find the correct query strings. Please help me. TQ main.php codes <ul> <!-- SLIDE --> <li data-transition="cube" data-slotamount="7" data-masterspeed="300" data-link="http://www.//portfolio/" data-saveperformance="off" > <!-- MAIN IMAGE --> <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="Modern-Marketing-Partners-Naperville2" data-lazyload="<?=$page->image->Slide1;?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> </li> <!-- SLIDE --> <li data-transition="cube" data-slotamount="7" data-masterspeed="300" data-link="http://www.//marketing-services/" data-saveperformance="off" > <!-- MAIN IMAGE --> <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="MMP_Homepage_D_nirvana" data-lazyload="<?=$image->url->Slide2;?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> </li> <!-- SLIDE --> <li data-transition="cube" data-slotamount="7" data-masterspeed="300" data-link="http://www.//resources/" data-saveperformance="off" > <!-- MAIN IMAGE --> <img src="<?=$config->urls->templates;?>assets/wp-content/plugins/revslider/images/dummy.png" alt="Marketing-Next-Practices" data-lazyload="<?=$image->url->Slide3;?>" data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat"> <!-- LAYERS --> </li> </ul>