Jump to content

L. Leopold

Members
  • Posts

    23
  • Joined

  • Last visited

About L. Leopold

  • Birthday 07/31/1990

Profile Information

  • Gender
    Male

Recent Profile Visitors

2,007 profile views

L. Leopold's Achievements

Jr. Member

Jr. Member (3/6)

6

Reputation

1

Community Answers

  1. Can you post exactly how you got fancybox to work with BlueVR?  What you put in ._done.php and what you put in your template  file.

  2. A suggestion someone posted in the original thread regarding this topic solved. The problem was in the database, I just had to delete it and start a new one. https://processwire.com/talk/topic/7207-can´t-install-languagesupport/?p=106245 Thank you very much for you help! Leo
  3. Thanks a lot manuel! That was the solution, it was easier than I thought. (sorry that I didn't write earlier. I hurry with some projects and forgot about it.)
  4. Oh my god, thank you Ivan! I can't believe I was only one dot away from my solution XD like I said I tried many of the $content = variations... what would I just do without this forum!
  5. Hi everyone, I know the answer is right in front of me, but I've searched it for days already. I guess I'm still a beginner... please help me! I'm using the multi-language site profile, suggested in the installation of processwire, if that helps. I want to apply the fancybox only to the images of one template. Fancybox is already running, I put the necessary code in the _main.php file. <link rel="stylesheet" href="<?php echo $config->urls->templates?>scripts/fancybox/source/jquery.fancybox.css" type="text/css" media="screen" /> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="<?php echo $config->urls->templates?>scripts/fancybox/source/jquery.fancybox.pack.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".gallery").fancybox({ }); });</script> Therefore I created a new template php called "gallery.php" and put that code inside. foreach($page->images as $image) { $thumbnail = $image->size(150,100); echo "<a class='gallery' rel='gallery-1' href='{$image->url}' title ='{$thumbnail->description}'><img src='{$thumbnail->url}' style=' padding: 5px;' ></a>"; } Now it shows the kind of gallery I want to have, but at the wrong possition of the site. I just don't know what I have to write in there to change the position. perhaps it is something like $content =... , but I already tried every combination I could think of and I've looked at all the tutorials I could find. I'm thankfull for any help, Leo
  6. Hi everyone, I got a serious problem with the LanguageSupport module. I already found a forum thread regarding the topic, but it doesn't work in my case. https://processwire.com/talk/topic/7207-can%C2%B4t-install-languagesupport/ My problem is, that "ProcessLanguage" can get installed but "LanguageSupport" doesn't. I can uninstall ProcessLanguage via the Module configuration, but that doesn't change anything. I always get this Error: I've found a "Languages" Page under Admin/Setup and deleted it with this code https://processwire.com/talk/topic/7207-can´t-install-languagesupport/?p=69520 I also deleted the LanguageSupport module via FTP from the server and uploaded the newest version of it. The error still occurs. I'm still a beginner and don't know how to deal with it. Please help me! I'm using the Blue-VR Site Profile made by Gayan Virajith, if that information helps. Thanks a lot in advance, Leo
  7. I've deleted this Languages Page with this code from that forum post https://processwire.com/talk/topic/7207-can´t-install-languagesupport/?p=69520 I also deleted the LanguageSupport module via FTP from the server and uploaded the newest version of it. The error has changed a bit but is still there I don't have any idea how to fix it, do you? Do you guys think there is a way to build an easy multilingual website without the LanguagesSupport Modules?
  8. Hi horst, I checked everything and found the page "Languages" in the Setup folder. But I don't think it causes problems
  9. Sorry that I'm asking so many things recently. I got a serious problem with the Muli-Language-Support. I already found a solution in the forum, but I don't know how to apply it... https://processwire.com/talk/topic/7207-can%C2%B4t-install-languagesupport/ My problem is, that "ProcessLanguage" seems to be installed and that without "LanguageSupport" running. I always get the Error I can uninstall ProcessLanguage through the Module configuration, but it doesn't help. If I then try to install LanguageSupport it installs ProcessLanguage first, but doesn't install LanguageSupport... thanks for your help!
  10. Because I needed an answer pretty fast, I asked at another place in this forum too. With help of adrian I figured it out https://processwire.com/talk/topic/11296-how-to-include-home-into-the-navigation-blue-vr-site-profile/?p=105392
  11. Hi adrian, that's awesome, it worked! Thanks a million times! http://watanabe-yakushima.com/ I always thought I've got to work in the navigation.inc file...
  12. I have tried that way already in different ways. I didn't find the right terms or the right place for it. This is the current code for my navigation: /** * Render a <ul> navigation list * */ function renderNav(PageArray $items, array $options = array()) { if(!count($items)) return ''; $defaults = array( 'class' => '', // class for the <ul> 'active' => 'active', // class for active item 'tree' => false, // render tree to reach current $page? ); $options = array_merge($defaults, $options); $page = wire('page'); $out = "<ul class='$options[class]'>"; foreach($items as $item) { // if this item is the current page, give it an 'active' class $class = $item->id == $page->id ? " class='$options[active]'" : ""; // render linked item title $out .= "<li$class><a href='$item->url'>$item->title</a> "; // optionally render a tree recursively to current $page if($options['tree']) { if($page->parents->has($item) || $item->id == $page->id) { $out .= renderNav($item->children("limit=50"), array( 'fields' => $options['fields'], 'tree' => true, )); } } $out .= "</li>"; } $out .= "</ul>"; return $out; } /** * Render a <ul> navigation list * */ function renderTopNav(PageArray $items, array $options = array(), $level = 0) { $defaults = array( 'tree' => false, // number of levels it should recurse into the tree 'dividers' => false, 'repeat' => true, // whether to repeat items with children as first item in their children nav ); $options = array_merge($defaults, $options); $divider = $options['dividers'] ? "<li class='divider'></li>" : ""; $page = wire('page'); $out = ''; foreach($items as $item) { $numChildren = $item->numChildren(true); if($level+1 > $options['tree'] || $item->id == 1) $numChildren = 0; $class = ''; $anchorProperties = ""; $anchorClass = ''; $dropdownCaret = ''; $title = $item->title; if($numChildren) { $class .= "dropdown "; $anchorProperties = "data-toggle='dropdown'"; $anchorClass = 'dropdown-toggle'; $dropdownCaret = '<b class="caret"></b>'; } if($page->id == $item->id) $class .= "current "; if(($item->id > 1 && $page->parents->has($item)) || $page->id == $item->id) $class .= "active "; if($class) $class = " class='" . trim($class) . "'"; $out .= "$divider<li$class><a class='{$anchorClass}' href='$item->url' {$anchorProperties} title='{$title}'>$title $dropdownCaret</a>"; if($numChildren) { $out .= "<ul class='dropdown-menu'>"; if($options['repeat']) $out .= "$divider<li><a href='$item->url'>$item->title</a></li>"; $out .= renderTopNav($item->children, $options, $level+1); $out .= "</ul>"; } $out .= "</li>"; } return $out; }
  13. Hi alejandro, hi WillyC, I've got the same problem. It says: I can uninstall ProcessLanguage through the Module configuration, but it doesn't help. If I then try to install LanguageSupport it installs ProcessLanguage first, but doesn't install LanguageSupport... I already deleted Languages Page I found in the Setup, but it didn't change anything. I'm using the Blue-VR Site Profile made by Gayan Virajith, if that information helps. I know you solved the problem already, but I'm still a beginner and don't really understand the solution mentioned. How exactly can I use this uninstall function? Where do I have to put the code in to run it? Thanks a lot already, Leo
  14. Hi guys, I got a problem that drives me crazy. I just want to have the root of my page shown in the top navigation, together with its children. I've been searching for days by now, please help me. in the navigation.inc file it says Credits: * I have used some same navigation methods used by Ryan Cramer. * So full credit to Ryan Cramer */ so I compared Ryan Cramers navigation with the one used in the Blue VR Site. Cause in Ryans Foundation Site navigation the root (or Home) is already part of the navigation. It didn't help me much, I still can't figure out what to change. https://github.com/ryancramerdesign/FoundationSiteProfile/blob/master/site-foundation/templates/_nav.php https://github.com/gayanvirajith/BlueVrSiteProfile/blob/master/templates/_navigation.inc I tried a lot of different things, that either didn't show any effect, or broke the complete site. If you have a suggestion what could work, I'm gratefull for any hint! Thanks in advance!
  15. Hi guys, I got another problem that drives me crazy. I just want to have the root of my page shown in the navigation. I've been searching for days by now. please help me. in the navigation.inc file it says Credits: * I have used some same navigation methods used by Ryan Cramer. * So full credit to Ryan Cramer */ so I compared Ryan Cramers navigation with the one used in the Blue VR Site. Cause in the Foundation Site navigation the root (or Home) is already part of the navigation. It didn't help me sadly. https://github.com/ryancramerdesign/FoundationSiteProfile/blob/master/site-foundation/templates/_nav.php https://github.com/gayanvirajith/BlueVrSiteProfile/blob/master/templates/_navigation.inc I tried a lot of different things, that either didn't show any effect, or broke the complete site. If you have a suggestion what could work, I'm gratefull for any hint! Thanks in advance!
×
×
  • Create New...