Jump to content

dev_panther

Members
  • Posts

    24
  • Joined

  • Last visited

dev_panther's Achievements

Jr. Member

Jr. Member (3/6)

0

Reputation

  1. No help here, So I'll try doing it more simple: Can someone please point to all of the places I need to modify in order to add a new field?
  2. Ok. Thanks for the clarification. My changes where on the DB, so that's why the refresh didn't work for me. But the future changes should be more simple.
  3. I modified the module for my needs, So I now have 5 fields, date, timeofday, location, showname, and link. The table is presented correctly on the admin page, but there are a few problems: the "location" and "showname" fields are being saved and can be accessed, but are not being displayed on the table. the "timeofday" and "link" fields are not being saved to the DB. Here are the modified files: Event.php Can anyone see what the problem is?
  4. Ok, so I'm working on a module (Modifying the excellent "FieldTypeEvents"). So I changed what I wanted, installed it, and it's all working good. My question is - What should I do if I want to modify the module? I saw that just changing the code is not enough. Do I need to uninstall it and re-install it for every change I make? It seems like a long process, especially if it's for developing, and I want to change thins and see how they work out on the site frequently.
  5. I've built a site, and uploaded it to folder "myFolder" on a server. The site is being accessed thorugh "MyOtherSite.com", so now processwire is looking for all of it's resources in "MyOtherSite.com/site/assets" instead of "myFolder/site/assets". Is it possible to change the root dir of the site? Note - the server doesn't use .htaccess file, but a web.config Thank you!
  6. I've built a website on my laptop, and I'm viewing it using MAMP, and it's all working fine. I've uploaded the project to a new server. After configuring the new DB and everything, I can view the main page of the site, but nothing more than that. I can't go to child-pages of the main page, and I can't go to the processwire control panel (by going to mysite/processwire in the browser). When I try any of those, I get 404 page not found error. For obvious reasons I suspect that the problem is in the server. How can I check if the server is suitable for running processwire? I didn't deal a lot with servers in the past, so the more specific you get (instead of "check if you have this", also say "check it by doing this and that"), the more grateful I'll be Thanks.
  7. thanks! can you maybe that also for the case of images array? Because in that case each image doesn't have a field (or does it?) right now i use foreach($images as image){ $imagesrc = "{$image->url}{$image}"; } to get the whole image src, but it seems kind of redundant. Is there a better way?
  8. When I'm using wireArray, both with repeater and image field with more than one image, I have a problem getting the content of the array. For example, I have the following code where info_tabs is a repeater of textarea fields. $texts = $page->info_tabs; foreach ($texts as $tab){ echo "<div>; echo $tab; echo "</div>; } Instead of echoing the text, the page is echoing numbers, it is echoing the numbers 1029-1032. why is that?
  9. Hopefully someone will still read this Can someone please explain why it is better to use pages for events solution? The main advantage I see here is that this solution is much more user-friendly. If I want that the site will be maintained (data-wise) by a non-developer , I think it is much easier for a non-developer to add events using this plug-in and not open and delete new pages every time he has new events. Any thoughts on the advantages of pages?
  10. I tried re-writing both of the pages so that both of the only contains one line, same result. I only see the basic-page.php.
  11. LostKobrakai: I don't know, it is possible. How do I check that. cstevensjr: code of basic-page.php <?php include("./inc/header.inc"); ?> <body> It's the Basic Page NOT Home!!! <!-- plugin from facebook. produced with this page: https://developers.facebook.com/docs/plugins/page-plugin --> <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.4"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <?php include("./inc/upper_part.inc"); ?> <div class="container"> <div class="row"> <!--facebook app box--> <div class="col-sm-4" style="background-color:pink;"> <div class="fb-page" data-href="https://www.facebook.com/BambolaPuppetShow" data-small-header="false" data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="false" data-show-posts="true"> <div class="fb-xfbml-parse-ignore"> <blockquote cite="https://www.facebook.com/BambolaPuppetShow"> <a href="https://www.facebook.com/BambolaPuppetShow">‎באמבולה - תיאטרון בובות לילדים‎</a> </blockquote> </div> </div> </div> <div class="col-sm-8"> <div class="row"> <!--schadual box--> <div class="col-sm-6" style="background-color:red;"> shows </div> <!--general info box--> <div class="col-sm-6" style="background-color:blue;"> <div style='margin:auto;'> <?php echo "<img class='centered_images' src='{$page->page_image->url}' alt='{$homepage->title}' width='100%'>"; ?> </div> <div id='main_page_text' class='hebrew_text'> <?php echo "{$page->show_description}"; ?> </div> </div> </div> <div class="row"> <div class="col-sm-12" style="background-color:green;"> banner </div> </div> </div> </div> </div> <?php include("./inc/footer.inc");?> </body> </html> code of home.php <?php include("./inc/header.inc"); ?> <body> <?php include("./inc/upper_part.inc"); ?> <div class="container"> <div class="row"> <!--facebook app box--> <div class="col-sm-4" style="background-color:pink;"> facebook<br> but <br> its <br> a <br> long<br> thing<br> </div> <div class="col-sm-8"> <div class="row"> <!--schadual box--> <div class="col-sm-6" style="background-color:red;"> shows </div> <!--general info box--> <div class="col-sm-6" style="background-color:blue;"> <div> <image src='{$page->page_image->url}' alt='{$homepage->title}' height='60' width='60'> </div> <div id='main_page_text'> <?php echo "{$page->show_description}"; ?> </div> </div> </div> <div class="row"> <div class="col-sm-12" style="background-color:green;"> banner </div> </div> </div> </div> </div> <?php include("./inc/footer.inc");?> </body> </html> obviously they are pretty similar, since I coded home, and than I wanted to see what it looks like, so I copied it to basic-page. (They are not identical and the page that I see is basic-page.php)
  12. As I said, I made sure the template is set to be 'home' and not 'basic-page', so sadly this is not the case.
  13. Yes. The editing of "home.php" has no effect while the editing of "basic-page.php" changes the first page I land in.
  14. I know. but I re-coded the home.php file to include other code. but it doesn't seem to take any effect. Is there a different page to code? It looks like it doesn't open home.php, but basic-page.php.
×
×
  • Create New...