-
Posts
1,147 -
Joined
-
Last visited
-
Days Won
4
Everything posted by onjegolders
-
Why do I get the feeling Roderigo and WillyC are one and the same person?
-
We've just launched a new company, early days and we needed to get a site out quickly. http://www.milktop.co.uk Still plenty of fiddling to be done and we're pretty busy on other work, just didn't want to be one of those web companies without their own site
-
Hi Ollie, you tend to count arrays in PHP. With a textarea field, you're just checking whether it was populated or not so a simple if($page->sidebar_ad) will do it.
-
Just installed it on our new site http://www.milktop.co.uk and seems very snappy. Don't know if it's the same for everyone? I probably haven't tweaked it very well and the site itself hasn't been completely optimised but so far seems like a good purchase!
-
Hi aso, can you post the code you are using in here? Chances are it's a very simple character out of place.
-
Unique Private Photo Gallery With User Login
onjegolders replied to NooseLadder's topic in Getting Started
Hi Andrew, If I understand what you want correctly, you'd do something like this: if ($user->isLoggedin()) { ?> <a href="<?php echo $config->urls->root; ?>members/<?php echo $user->name; ?>">Profile</a> <?php } That will depend on there being a members page which links up to the user page. Alternatively if you want the URL to be /members (without the name) then just make each member use the members template. And just check at the top of the members template that the current logged-in user's name matches the page->name if ($user->name == $page->name) { echo "Welcome back" . $page->title; } else { echo "Please login"; } If it does, then you can safely output all the user/member's information. -
Thanks mate! So it just remove all the formatting buttons until clicked on? Looks nice and clean.
-
I'm still not that sure how this inline thing will work in the backend? Can anyone take a screenshot for me?
-
Sublime Text 2 and CSS autocomplete (cheeky use of PW forum!)
onjegolders replied to alan's topic in Dev Talk
for me tdu outputs text-decoration underline but I think that may be coming from Zen? -
Stick at it Mark, a lot of us here were complete PHP beginners when we started. It won't take more than a couple of online video tutorials or reading some chapters in a book to get the hang of the basics
-
That's what I always use too when it comes to wireframing but when you want actual images, the other two are pretty good.
-
I know what you mean Matthew! I'm just going through the sad process of removing the auto-generated ones from hhhhold (very cool images) with company ones and it's depressing as the site looks worse for it!
-
Thought I'd point out a fantastic resource for placeholder images. Rather than the usual grey boxes or kittens... http://www.hhhhold.com The usual /300x400 urls apply. Also if you want to avoid seeing the same images crop up again and again, you can use a tiny js file https://github.com/ThisIsJohnBrown/hhhhold-js You won't go back!
-
OK, so you're already a legend so I can't give you much more praise than that
-
Am sure this has cropped up loads but as it's been a while since I used categories I'm struggling to remember how it all fits together. I'm trying to list all categories that have been linked to by at least one project. My page field links a project to a category and not the other way around so I'm struggling to come up with the right code. Home About Projects -- Project 1 (green, red) -- Project 2 (blue) Contact Categories -- green -- red -- blue -- black -- yellow In this example on my work page, I'd only want to output filter links to green, red and blue. Am I missing something very simple? Probably
-
Legendary Diogo. Legendary.
-
Ideally I'd like a random order. With the text boxes mixed up in a grid with the images. I was thinking it would be a matter of making one array and then sorting random. But as the contents of the two initial arrays are different... Attached is a screenshot of the grid but as you can see I just have the boxes coming after the images
-
Where has my brain gone?
-
Probably a simple thing to do but how would I go about having lowercase letters in the output? Was thinking of using strtolower in the item_tpl but not sure how to approach it. Thanks Soma.
-
Hi Ryan, thanks for the reply. Actually, they'd both belong to the project.php template. The grid would be made of $page->images and $page->project_boxes So I'd need each iteration to output a <li class="grid_item"></li> but within that would either be an <img> or another <div> depending on whether it was from the images or the repeater boxes.
-
Hi guys, come a little unstuck. For a particular project on my new site, I'm creating a grid of images but inside that grid, I'd also like to include some extra text boxes (for which I'm using repeater fields). I think I can use $var->add($new_array) to add one array to another but as the two types of boxes will have different fields I'm a bit unsure of the output. I could also just loop through all the images, then all the boxes after within the same grid but then I wouldn't be able to mix the boxes up. Does anyone have any idea how this could be accomplished? Thanks guys.
-
Git? Whatever next Joss?
-
You can take a look at Ryan's ProCache module.
-
finding/deleting/reducing in size unused images
onjegolders replied to onjegolders's topic in General Support
Thanks Jeff will check that out and thanks for the tips. -
Thanks Diogo, the irony is I'm a massive book lover in the general sense but always imagined books for code quite old fashioned. Do you not want to test things as you're reading them, though suppose you could do that too.