Pezza4u
Members
-
Joined
-
Last visited
Reputation Activity
-
Pezza4u got a reaction from fleur in New to CMS, what to use?Thanks for all the replies
I've been having a play with WP now and although it's a little confusing at first I'm learning my way around it. I think my friend might struggle with it though so I'm still not sure whether it's the right platform to use. It looks like I can change their user privileges to an editor rather than admin so hopefully there would be little chance of them making a mistake when adding posts.
Are there any good reliable guides for WP, I've been reading wpbeginner.com or is there something better I can use?
Definitely doesn't need an ecommerce site, it's just to show what will be for sale and the services they offer.
I like the look of that and some of the examples of websites made with it look really good. I've currently got the dazzling theme installed, which is responsive and I quite like that.
What's the best practise for editing the css and html, using the WP editor or download the files and edit on notepad etc?
It's doing mobile wheel repairs, one man in a van so it doesn't need to be a really advanced website. A static page saying what he does and a contact page probably with Google maps to show the area he covers. Then a portfolio to show recent jobs that have been done and another page to show what he has for sale, it's these that he wants to update himself. Most of the standard features of WP could be turned off,
Creating a post with several images on using WP does sound like an easy way to do this and he can delete/edit them at his leisure. I think the hard part will be him learning how to do it himself.
-
Pezza4u got a reaction from fleur in New to CMS, what to use?I've never used one of these before but installed WordPress yesterday and had a quick play around with it. It seems really good so far with plenty of options for themes and plugins. I'm not sure if it's right for the project I'm doing next so would like some advice.
A friend has asked me to make a website for his new business but he wants to update it himself. Basically it will be the gallery with descriptions and a for sale page (not selling online just listing them) but this can be in the same format. He just wants to add/remove from these two pages and the rest will stay the same.
He isn't great with computers though, going online and emails are his limit so it needs to be idiot proof. If I gave him admin access to WP I know it is going to overwhelm him. Is there a way to restrict admin access to certain areas so it only shows what he needs or a plugin that would allow him to do this, maybe directly from the website?
I've made gallery's before where photos could just be uploaded via ftp to the relevant folders but there were no descriptions with these so I don't think I can do it this way. A WYSIWYG editor would be better I think anyway.
-
Pezza4u reacted to Adam Bate in Photo gallery client can add to?Hey Pezza4u,
Yeah, my install was a little out dated. I had some time this morning to take a closer look on a fresh install. I have added a list of available sizes to the tutorial - thanks for the tip.
I have also put up a solution for displaying the description. Here is the code you'll need:
<div id="gallery">
<?php foreach ($ph_sets['photoset'] as $ph_set): ?>
<div class="photosets">
<p><h2><?php print $ph_set['title']; ?></h2></p>
<?php $photoset_id = $ph_set['id'];
$photos = $f->photosets_getPhotos($photoset_id);
foreach ($photos['photoset']['photo'] as $photo):
$d = $f->photos_getInfo($photo['id']); ?>
<div class="photos">
<a rel="lightbox[]"
href="<?= $f->buildPhotoURL($photo, 'medium') ?>"
title="<?= $d['photo']['description'] ?>">
<img src="<?= $f->buildPhotoURL($photo, 'square') ?>"
alt="<?= $photo['title'] ?>" title="<?= $photo['title'] ?>" />
</a>
</div>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>
The changes include the addition of the line, "$d = $f->photos_getInfo($photo['id']);" as well as changing the title attribute in the <a> tag to $d['photo']['description'].
As I mentioned on the tutorial, it's a little inefficient due to having to lookup the description for every photo (needs to be done in the loop) so it might slow down load time of your site. Unfortunately there does not seem to be a way to grab this info for the entire photoset outside of the loop. Once they implement this (or I figure out that there is a way) I'll make the necessary changes.
Hope this helps!
-
Pezza4u reacted to Adam Bate in Photo gallery client can add to?Just figured out the medium size issue. I didn't realize there were 2 "medium" sizes according to flickr, a 500 and a 640.
I noticed the 640 as you said is the one with _z on the end.
This is what you'll need to do:
Edit the phpFlickr.php file and find the following lines:
function buildPhotoURL ($photo, $size = "Medium")
{
//receives an array (can use the individual photo data returned
//from an API call) and returns a URL (doesn't mean that the
//file size exists)
$sizes = array(
"square" => "_s",
"thumbnail" => "_t",
"small" => "_m",
"medium" => "",
"large" => "_b",
"original" => "_o"
);
You have two options. If you want all 'medium' results to be the 640 instead of the 500, simply change this line:
"medium" => "",
to:
"medium" => "_z",
Alternatively, you can try to add another line altogether, such as this:
"med640" => "_z",
Not sure the the latter will work as I didn't check the rest of the file, but I'm assuming it will.
I didn't test this on a gallery, but I'm 99% sure it'll work.
Cheers.
Adam.
-
Pezza4u reacted to zed in Photo gallery client can add to?ignoring the above nonsense, a quick Google and there are quite a few Flickr tutorials out there and looking at the Flickr API site you can grab all sorts of info including image descriptions.
eg.
http://www.adambate.com/how-to-add-a-flickr-based-photo-gallery-to-your-website-phpflickr-lightbox/
-
Pezza4u reacted to daveb in two domains, one website - what should I do..No extension on the file, and the code above is all you need. This is based around the mod_rewrite Apache module, so it goes without saying that this is for Apache servers with mod_rewrite enabled only.