Latest Images on Home page
I’m currently working on a WordPress theme for ThemeForest that’s based around the Buddypress plugin. I’m wanting it to be an online community like DeviantArt but just for website design. So I would like to have thumbnail images on the home page featuring the latest uploaded images. These images will then link to the full size image where members can comment on it. My home page is a custom one so it’s not the usual blog listing.
I’ve been trying to figure this out for a while now and it’s one of the last things I need to do before uploading the theme to ThemeForest.
Any help would be awesome. Thanks.
The next version of BP Album+ will let you essentially clone the media functionality of sites like DeviantArt, Flickr, and Facebook with a minimum amount of effort. It includes a “widget” that displays the latest uploaded media items, which you can position anywhere in your templates.
When is the next release of Buddypress Album + going to be released? I was hoping to upload this in the next couple of weeks to Theme Forest. I tried to use the templates that were included but I don’t think I’m quite that adapt with php yet to know where to start!
We’ll probably have the next beta out within a week or so, and it should be stable enough for template development. The version we’re working on is a huge improvement over the 0.1.7 release.
OK awesome. Might have to wait for the beta then and start work on something else in the meantime. Buddypress themes haven’t been touched on ThemeForest so I would like to be the first
Funny enough you mention DeviantArt. I’ve been rather busy with this little puppy that’s powered by BuddyPress and BP Album+
Its called Artrift: http://mypixelbox.co.uk/wp-content/gallery/web-site-designs/website_artrift1.jpg
Oh that is *NICE* …Good work mate!
So you extended the plugin to get those effects?
Let me know if you need anything “tweaked” in the BPA code.
@foxly Thanks alot. Yeah, I have extended the plugin slightly. I’m more of a UI designer, my development skills are limited but I do know my way around.
I’m waiting for BPA 0.1.9 so I can apply what I’ve done to that version. You’ll be the first to see a live working version of Artrift, thanks to you and the team behind BPA.
I have got a few things I’d be keen to discuss with you regarding the BPA template, just a brief exchange of ideas and opinions but I’ll let you know. Thanks for the making BPA what it is so far. The only limit to what BPA can do is one’s imagination!
Well I’m coding the 0.1.9 templates *right now* so let’s hear some of that feedback…
@foxly As I mentioned, I’m waiting for 0.1.9. I’m patient so no worries. Currently, I’ve implemented loads of jquery into the UI for image browsing. If the templates for 0.1.9 haven’t been changed too drastically then I’ll mod the 0.1.9 templates according to what I have done ASAP.
The bad news is that the 0.1.9 template API will have substantial changes from the 0.1.7 API, because it now allows developer-defined image sizes and behaviors.
The good news is, in either 0.1.9 or 0.2.0, we will be including a full scale AJAX API …so you can execute queries, upload media, and pull images directly from the core. If you’re skilled with jQuery, you should be able to build templates that do practically anything.
Sorry to bump this thread, but I’m curious how to add images to the home page. I created a static page and this is the front of the site. How can I get images from BP Album + into the page?
@LPH2005 – In version 0.1.7 the easiest way is to set the activity stream query for your homepage template to show *only* posts from BP Album, then add the activity stream widget to the home page.
I can’t quote you the code off the top of my head, but @Rainman has it working.
In version 0.1.9 (updated test versions being posted every few days), we have two dedicated widgets *just* for this task. But, version 0.1.9 is not ready to use on production systems yet.
@foxly – reads as if I must wait. My front page is static with the sidebar.php set to show activity stream. Widgets won’t do me much good but maybe there is some code I could copy and place in the index.php file …
Actually, I believe that page.php would be the file to edit.
1. Create a wordpress page called (for example album.php)
2. Now copy/paste THIS code into your newly created file album.php
3. Upload the file album.php into your theme folder
4. Now go to Pages, and create a new wordpress page, name it for example Album (watch for you pages permalink) and (this one is important!!!) from the right side you’ll see a dropdown menu called Templates. Klick on it and use the file you just uploaded. In our case, the templates name will be called album (because we specifically named it so in our album.php)
5. Save it and point your browser to your newly created page, and once again this is very important !!! after your link add this: ?afilter=album
e.g. I created a page with above named template and called album … my link for displaying only bp-album activity would be http://www.mywebsite.com/album?afilter=album
hope this helps
p.s. I’m certain there are other ways to do it, but I did it like this and it works (at least for me) like a charm
you can see my live previe here : http://fotografija.ba/slike?afilter=album
Thank you. I’m looking more of a way to integrate the albums just below the page set as front. I’ve modified the sidebar.php to give the activity stream and now want to modify the page so that the album shows.
Site URL: http://www.thechembook.com
In looking at the template you linked (THIS code), that code is activity code. My interest is an actual album code. I’ve tried different album template codes but they all fail. I’ll keep mucking around with it.
Again – thank you.
Actually you could include an iframe just below the page set which links to custom activity code and solve your problem. but of course, the actual album code is the best solution.
Now, when it comes to output activity in your sidebar, you don’t have to modify the sidebar. Just use the “Buddypress Sitewide Activity Widget” found here: http://buddydev.com/buddypress/buddypress-sitewide-activity-widget-for-buddypress-1-2-and-above/
it a sweet little piece of code
p.s. If you find a way to include actual album code in frontpage, please let me know I also need this badly.
I’ve actually tried that widget but decided it was easier to modify my sidebar.php file (child theme) greatly in order to get the look I wanted. It was very easy to insert in the activity code. In fact, the modification of the sidebar only took a few minutes and adjusting the css. This also helped me learn more about BuddyPress. I did the same for my page.php file. I guess I was hoping to be able to just insert album code and be able to get the albums.
I’ll keep mucking about
Sorry for bumping an old topic but I have a few questions if that’s OK…
I currently run a wordpress blog at the minute and have had some experience with templates and PHP etc before…
I’ve been wanting to start an image bookmarking site for a while to run alongside my blog and was wondering how easy this would be to run through buddypress? Or whether there’d be a better option. I wouldn’t need any other features… Just so that users could sign up and bookmark images to their account on the site. It would in effect be a number of image blogs on one site with the newest images displayed on the homepage. The design would only be simple and the bookmarked images would be the main focus for visitors. Some example sites would be ffffound.com and svpply.com.
I know there are other CMS downloads available etc but if I could run something like this easily through buddypress plus a few plugins that’d be great.
Anyone? Got the chance at a free domain and hosting so would love to get started if it’s possible
See the features list:
See the tutorial on our codex:
- The topic ‘Latest Images on Home page’ is closed to new replies.