Jump to content

Ollie

Members
  • Posts

    13
  • Joined

  • Last visited

Ollie's Achievements

Jr. Member

Jr. Member (3/6)

13

Reputation

  1. Dammit! Completely didnt think of that! Thanks Soma
  2. Hi Guys, So I have run into a pretty odd problem, when PW resizes an image it also de-saturates it! Here is the image with the correct colour - And here it is after its been resized by PW - Thanks for your help! Ollie
  3. Pwired - The grid on the photographers site and in the artist pages is wookmark, and the image sliders are a mix of flex slider and fancybox but apart from that they are completely from scratch!
  4. Thanks guys! good spot diogo, thats all sorted now!
  5. Here are my first couple of sites using PW, critique appreciated! Artists agency Photographer Thanks!
  6. Thanks a bunch Soma! I knew it would be something small and silly like that I just couldn't think of what it was! thanks again!
  7. No luck guys! I am getting this error message but I have no idea what it means: Error: Exception: Unknown column 'field_image.imageTags' in 'on clause' (in myurl.com/html/wire/core/Database.php line 118) and for just using "imageTags": Error: Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='blue' JOIN field_imagetags AS field_imagetags ON field_imagetags.pages_id=pag' at line 3 (in in myurl.com/html/wire/core/Database.php line 118) Thanks for trying!!
  8. Hi there, I am struggling to work out something that i know should be really simple but its just not working out for me! I have set up images manager and i need to be able to search on the user side only through the image pages that get created with images manager, the thing is I need it to search by a page feild called imageTags. Here is the set up as I dont think i am explaining myself too well! images Category 1 Image 1 -> this has a page list multiple select that is selected from imageTags Image 2 " " " Image 3 " " " imageTags tag1 tag2 tag3 So when searching it needs to output an image page based on a search through that pages imageTags! Here is what I have But its probably far off! <?php $out = ''; if($q = $sanitizer->selectorValue($input->get->q)) { $input->whitelist('q', $q); $matches = $pages->find("image.imageTags%=$q, limit=20"); $count = count($matches); if($count) { $out .= "<h2>Found $count pages matching your query:</h2>" . } } else { $out .= "<h2>Sorry, no results were found.</h2>"; } } else { $out .= "<h2>Please enter a search term in the search box (upper right corner)</h2>"; } include("./head.inc"); echo $out; include("./foot.inc"); And the search form is this: <form class="search-form" id='search_form' action='<?php echo $config->urls->root?>search/' method='get'> <input type='text' name='q' id='search_query' placeholder="Search" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Search'" value='<?php echo htmlentities($input->whitelist('q'), ENT_QUOTES, 'UTF-8'); ?>' /> </form> Any help is greatly appreciated so a big thanks in advance! Ollie
  9. worked it out! thanks again for your help
  10. hi Adrian, thanks for your help it all seems very simple now! I am still having a small problem with it displaying the else echo on everything else 2 or 3 times depending on wether it has a parent or not, any ideas? Thanks again!
  11. <?php $item = $pages->find("template=item"); foreach($item as $item){ echo "<li><a href='{$item->url}'>"; if($item->parent = "cats"){ echo "<div id='redro'>";} if($item->parent = "dogs"){ echo "<div id='bluero'>";} if($item->parent = "hamsters"){ echo "<div id='greenro'>";} else echo "<div id='roy'>"; echo "<div id='ro-info'>1/{$item->images->count()}<br />{$item->title}<br />—<br />{$item->date}</div></div>"; $image = $item->images->first(); $image = $image->width(250); if($image) echo "<img src='$image->url'> </a></li>"; } ?> Hi there, I am pretty new to all of this so please forgive me if i am making any sily mistakes! I am trying to change that div id based on the items parent name, i.e if its a cat and its parent is a page called cats its a red rollover if its a dog its blue etc. I have proberly got it very wrong up there but I have been trial and erroring for a while now and i cant seem to work it out! Thanks in advance, Ollie
  12. Thanks a load guys! I did try this earlyer but i was putting in the wrong selector :s
  13. Hi Everyone, I have looked all over these forums for an answer to no avail! I am very new to all this so please bear with me, I have a portfolio page that is showing all of that pages children almost perfectly but it will not show the thumbnail. Here is the code, I know i need to specify the selector but i cant figure out how? <?php foreach($page->children as $child) echo "<li class='{$child->cat}'><a href='{$child->url}'><span>{$child->thumbnail_summary}</span><img src='{$child->url}'><div class='thumb-t'><h3>{$child->title}</h3></div></a></li>"; ?> Thanks!
×
×
  • Create New...