“Magazeen”: Free Magazine-Look WordPress Theme
We love our readers. We respect the hard work of designers and developers across the globe. And we do our best to make the web design community stronger and the Web a little bit prettier. Therefore we ask talented artists and creative professionals to showcase their skills and release something unique and beautiful as a gift to the community. And when designers agree, truly impressive works see the light of day.
Today we are glad to release Magazeen — a free advanced WordPress-theme in a magazine-llok created by the talented WeFunction Design Agency. This bold magazine 2-col-theme was designed with the main focus being on typography, grids and magazine-look. It was created especially for Smashing Magazine and its readers.
Download the theme for free!
The theme is released under GPL. You can use it for all your projects for free and without any restrictions. Please link to this article if you would like to spread the word. You may modify the theme as you wish.
- live demo
- large preview (.jpg, 1.7 Mb)
- download the theme (.zip, 0.3 Mb)
- download the PSD-sources (.zip, 4.5 Mb)
- release post on WeFunction.com
Inspiration behind the design
As usual, here are some insights from the designers themselves:
“We’ve created the Magazeen theme to try and pump as much style and functionality into a WordPress theme to give people something they might not expect from their standard WordPress theme. There really is very few limits to what WordPress handle, so we’ve built in a lot of custom features and options to give people a little taste of what is possible, and how some small functionality tweaks can make a huge difference to the overall experience of browsing a blog. On top of that we’ve wrapped all that functionality up in a really cool and modern theme, with nice big title fonts, and a stylish colour scheme.
The Magazeen theme is packed full of cool features to really encourage your readers to explore new posts and similar items. The first thing you might notice is the jQuery image showcase at the top, which is fully automated and will display the image from the latest post, and the title above it without you having to do anything other than define the image URL in the custom field we have created which will appear on in your admin post area.
Drop-Down Menu
The other cool and fully automated feature is the related posts drop down effect. It’s a simple idea, if you click the category of the full posts a drop down will appear with some related posts from that category. And if you don’t see a post you like you can always view the full category by clicking view more.
Sidebar
The sidebar area’s have been created to give you a lot of control over the featured posts, and recent posts. Once you’ve installed the theme, you need to go to your Widgets area, and simply activate the “Magazeen Latest Posts”, and “Magazeen Featured Posts” widgets. You can easily control how many posts each feature displays, and using this widget will ensure the area is styled correctly with the post image showing correctly.”
Footer
Thank you, guys. We appreciate your great work, your attention to details and the brilliance of the execution.
Related posts
You may be interested in the following free WordPress-themes as well:












Jimi
October 21st, 2009 12:28 pmEverybody talks about chmod, and thats good :-)
But I cant figure it out. Im inside , I can see the cache folder, I rightclick it.. but then it only shows : ” Open the links in this window ” etc.
Furthermore there are no files in my cache.
Can someone spell it out for all us , that doesnt know how to CHMOD 777 ?
I have spent hours on it now :-)
Thank you for your time
The site is is here. I ONLY need the damn pictures : http:www.aktiv3.org
dlv
October 22nd, 2009 4:02 am@Jimi: if you use CuteFTP Pro like your FTP software you can view this tutorial : http://www.stadtaus.com/en/tutorials/chmod-ftp-file-permissions.php
Also works with other FTP applications…
If with thats chances about CHMOD, try doing what i’ve explained in comment number #339
adeux, have luck!
Jimi
October 22nd, 2009 4:48 amI did it ! :)
Its working now. Thank you for the help
super
October 23rd, 2009 8:33 pmsuper theme Thank you
Ana Patrice
October 25th, 2009 3:26 amHi!
What a fantastic theme! Do you have tutorial a readme file? Thanks so much,,,
dlv
October 26th, 2009 12:19 pm@Ana: there isn’t README file… A lot of people asked about it, that’s why there are more than 400 comments in this post :D, many of them are related theme bugs and options…
Richard Cloutier
October 29th, 2009 12:26 pmMagazeen is an awesome theme !
Had some issues with the category drop down but I finally figured out how to fix it.
Here is what I did with the theme (lot of customization) : http://www.workstationsetups.com/
Wergittep
November 2nd, 2009 9:07 pmI wonder if anyone has come across this and can help me.
I have implemented this theme on a linux server, and have even reinstalled it completely, trying to make the images work. If I upload an image using WordPress, it will add the image to the cache folder.
But when I try to view the blog, timthumb.php (and imgsize.php as per other posts) always look to the uploads/year/month folder for the images for the post, and for the header.
For some reason, the images are not dynamically added to that folder, but they used to be…I believe that was on a Windows server… Is there something I need to do, or something I’ve missed that might make this not work?
The document root path is home/SharedServerUsername/public_html from the server, whereas in the past it would have been just under the domain name folder. But I can’t find anywhere in any of the code that places the images into the uploads… folder that I can change…
Can anyone help?
lee
November 13th, 2009 3:20 amHi all,
What is the custom field you have to use in order to generate the image thumbnails in the post page. For the Lastest articles dock at the top.
Cheers.
lee
November 13th, 2009 6:44 amI’ll answer my own question,
You use the custom tag,
image_value
I ripped out the timthumb.php script. not needed if you can resize your own thumbnails. seemed to create too many problems.
Geoff
November 19th, 2009 5:10 amThank you for making such a wonderful theme!
dexter
November 21st, 2009 8:28 amCan you help me…
How do you limit the number of posts displayed on the blog page. Tried limiting it in the Admin panel…BUT it doesn’t work.
Need your urgent help as I am facing a deadline…
Is there a workaround in the coding?
dlv
November 23rd, 2009 10:15 am@Wergittep: I have no idea… sorry
@lee: yes, the custom field where you have to paste image url is “image_value”. Anyway, you have a field called “Magazeen Post Option / Image” between Custom Fields area and Post Text area, there is supose to paste the main image url…
@Dexter: Open Index.php, then find “query_posts( ‘showposts=2′ );” in line 16. The number “2″ is the number of post displayed full on front page.
Then, find “query_posts( ‘showposts=4&offset=2′ );” in line 102. The number “4″ is the number of post displayed as thumbnails below full post. The number “2″ is the offset ( this number is gonna be the same as in line 16 that I’ve mencioned before).
cory
May 8th, 2010 8:33 amThis is perfect! Thank you.
Markus
November 24th, 2009 9:53 amNice Theme. :-)
I figured out the problem with the thumbnails on the first page. I think it depends on the uploaded image size. Images greater than (example) 3000×2000 doesn’t work. But pictures with the resolution of 1000×600 (example) work fine. Maybe there is a limit of maximun seizure. (perhaps 1024×768) ….
And now i have an other problem. If you want to click and read an article, the picture on the single page won’t fit into the layout, its too big. (Check: resenski. de)
potato
November 29th, 2009 8:39 pmok,why did i read all this?
fabsn
November 30th, 2009 11:20 amI really don´t get it.
Tried everything I read in the comments to solve the thumbnail problem.
Nothing worked.
Anyone who made a complete fix on that theme and wants to share???
o___O
Maybe I´m just trying to find another theme to work with…
krishten
November 30th, 2009 3:40 pmWHAT?
krishten
November 30th, 2009 3:29 pmok,so i was reading this and out of no-where i see my name on here was potato,so if my brain is messt-up someone pleas tell me!(”you shold not have read all this people,your cRaZY if you got all the way down to me.”)oh,strep throght is going arond.12%of you are spicopath’s i can tell.And tell me if im a spicopath too!Ho…I was ”potato”,”ok why did i read all of this?”
Luque
December 2nd, 2009 6:56 pmDoes anyone know whether you can publish an article without the big image displaying, but for the thumbnail to still generate for the top and side navs? I’d like to do this for selected articles only, for example… if I embed a video, I don’t want a big image and a big video player displaying. But I do want the thumbnail for the article to appear in the Featured News panel. Thanks.
Dan
December 9th, 2009 2:44 pmOkay,
For reasons best known to myself needed to reinstall this theme and now get others above keep getting the error message:
“Warning: file(/home/griffinm/public_html/antidote/wp-content/themes/magazeen-wordpress-theme/style.css) [function.file]: failed to open stream: No such file or directory in /home/griffinm/public_html/antidote/wp-includes/theme.php on line 180
Warning: implode() [function.implode]: Invalid arguments passed in /home/griffinm/public_html/antidote/wp-includes/theme.php on line 180″
I realise that I’m possibly putting the PSD documents as an image somewhere but after much toying about don’t seem to be able to correct the error.
Thanks in advance for any help with this newbie(?) error …
Ben Wood
December 14th, 2009 7:50 pmGreat theme.
But why can’t I use the custom field/ thumbnail maker on Pages? I’ve got content that needs to be on pages and I would like to reuse the same mechanism and styles to get my thumbs to show up right on the pages. (default adding images in the text in this theme does not give me any margins or styles – the images even push out of the white content box if the page text isn’t long enough)
I can grab the php from single.php and put it in the same place on page.php, but beyond that I don’t know enough PHP to customize the bit in functions.php where the custom write panel is defined so that it will apply to pages as well. Can someone walk me thru this? It seems like a little bit of effort that would make the theme that much more useful.
JACQUI JONES
December 18th, 2009 3:23 pmSolution to thumbnail problem is easy. Here are the steps:
Upload image – do this by going to dashboard – media – add new
Then – find the file url (at the bottom of screen) – and copy it. Click save.
Now go into your post and find the box MAGAZEEN POST OPTIONS. Paste the file url here.
Publish file and JOB DONE.
Easy peasy :)
Beko
December 19th, 2009 2:45 amI work the image option in the post, leaving nothing but the title of the image, sorry for my English
Vinícius
December 26th, 2009 5:26 amVery nice template. Congratulations.
But, the search form and tag cloud styles are poor.
Vinícius
January 6th, 2010 2:38 amI’m having another problem.
After translate manually, thumbnails under menu bar isn’t showing post title when “onMouseOver” event.
url: http://nf.awardspace.us/2010/
Vinícius
January 6th, 2010 5:06 am“To get the dynamic titles to work, move the javascripts in header.php below the wp_head entry”
Marta Spendowska
December 26th, 2009 6:04 pmGreat theme;-) — can’t believe it’s free!
I just started another blog — finally design one.
But I have a question : if I am adding my photos through media and they will appear as my thumbs as well, what should I do with the additional video image ?
Please, take a look at : http://martaspendowska.com/blog/
and the post : Drawing as a miraculous occurrence — Milton Glaser.
One can see an image of uploaded video and an image for thumbs as well.
Thank you for such a great theme — love it totally!
Marta
Magatopia
December 29th, 2009 11:36 pmTo anyone here who successfully installs this theme, and publishes an online magazine or blog; Let us know at Magatopia.com and we’ll link to you there. We are always on the lookout for new online magazines. Link: http://www.magatopia.com
jeremy
December 31st, 2009 10:58 amI cannot figure out how to get the thumbnails to work at all, please someone help ! ive tried everything that i can think of. please help thanks
Edds
January 6th, 2010 10:05 ami mean this
< img src=" /imgsize.php?w=69&h=54&img= ID, “image_value”, true ); ? >” alt=” ” / >
Luc
January 7th, 2010 5:22 pmDoes anyone know how to display only 1 post on the home page. ‘Blog pages show at most 1 posts’ is selected in the settings.
Victoria Harris
January 10th, 2010 10:24 pmLove this theme, but this is ridiculous. I cannot for the life of me get the stupid thumbnails to work. Ideas?? And is there a readme file that works??
Romful
January 11th, 2010 1:46 amAnybody did fix the problem about the titles ‘ articles on the top slideshow ?
For me it’s still static and it does not work, I tried to fix it but I still not found how to do it.
Someone could help me please
Handmake
January 17th, 2010 4:11 amTo anyone here who successfully installs this theme, and publishes an online magazine or blog; Let us know at Magatopia.com and we’ll link to you there. We are always on the lookout for new online magazines.
Juegaylee
January 17th, 2010 4:47 pmThis theme is excellent, but I can not add divs in this template.
I want to insert a div with a bakcground, but after writting in in the CSS and putting the in the sidebar or somewhere else, the image doesn’t appear. It seems that it is something about the cache. What must I do with the cache folder?
Marta Spendowska
January 18th, 2010 4:19 pmBelle!
You have emailed me and I am trying to respond, but something is wrong with your email…
Please, email me again , maybe check the email or send from a different one.
Thanks!
Adnan
January 19th, 2010 4:19 pmI need help with the thumbnails…
i tried to do what @dlv said in #340 but i don’t get it. Please help me in an easier way or explain this a bit more easily. I would extremely appreciate your help.
You may email me – adnan140@ymail.com
Matt
January 26th, 2010 8:58 pmDoes this theme work with template hierarchy? I want to adjust the single.php file for different categories, but it does not work. Any suggestions? Thanks!
Rafael Minuesa
January 27th, 2010 10:11 amYou can view my personal Blogger adaptation of the “Magazeen” Template at:
Blogger Template: “Social Magazeen”
Among other differences there is a row with Social Media Buttons on top, substituting the original jQuery image showcase, which displayed the image from the latest post, and the title above it.
amole
January 30th, 2010 1:33 amGreat Job!
Pietro Marafiga
February 1st, 2010 9:54 amWhere is the README file that explains theme instructions for use ????
VictoriaAnn Design
February 2nd, 2010 1:45 amHi I have a small problem with this theme. I’ve changed the permalinks having set a static homepage – they now read victoriaanndesign.net/postname. Since I have done this the images in the latest articles section don’t link. Where can I change this in the code? I thought it would be simple but each time I think I’ve got the correct area to change it doesn’t work.
Any help would be appreciated!
Vicki
William
February 4th, 2010 5:42 pmHey guys, love the theme, I am constantly trying to tweak it,
I am trying to work out a post rating plugin that wont effect the top preview flashplayer bar. Usually when you waver the mouse over these pictures in the bar it will show the name of the article, but when I install a post rating plugin, it seems to stop. Anyone recommend a compatible rating plugin?
William
Marin Todorov
February 6th, 2010 10:42 amJust set online a blog about iPhone programming using this great theme at touch-code-magazine.com/
No problems whatsoever with installing and customizing it, thanks a lot
Darc Vanilla Design
February 8th, 2010 3:05 pmHi,
First of all, thanks for such a great wordpress theme.
However, I have a problem with main page customisation on my website http://www.darcva.com.
Somehow, it doesn’t shorten the first 2 articles on the main page and displays them all (how to change it???).
Secondly, why the dock function of displaying article’s name doesn’t work?
thanks
william
February 10th, 2010 6:16 amDarc Vanillar;
to create a break in the post so it shows only a sample on your homepage, you need to click where you want the break and then click the icon above and add [Insert more tag]. Its located next to the quote icons.
will
Darc Vanilla Design
February 10th, 2010 6:57 amDone & works great :)
Thanks a lot William :)
Olga Sa
February 10th, 2010 1:00 pmHello, just want to say thank you very much for a great theme! i love how my portfolio looks now
Kim
February 11th, 2010 2:09 amCan anyone give me a few pointers?
I’d like to make my header to an click-able image and to push the h1 text off screen. I’ve looked at sites doing the same with Magazeen using the Mozilla firebug plugin but I’m a complete beginner and cant work out where to begin – in the style.css or the header php? Any help would be really appreciated.
Thank you so much for this theme. Installed easily and I’m sure it will work a treat when I know what I’m doing!
kim@vet.co.uk
William
February 11th, 2010 7:20 pmAuto site – what do you mean by limit? It currently limits it to two?
It be great if there was a Smashing magazine forum for all these questions.
Mathias
February 12th, 2010 4:51 amIf people still have problems with the thumbnail photos, there is a easy fix for it.
Download the new version of TimThumb PHP on this url:
http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/
And put it into your Magazeen folder.
Igor
October 28th, 2010 1:13 pmMathias, after hours of trying, your solution worked right away! Thanks!!
AccesInterzis
February 20th, 2010 9:16 amGreat job there!
youts
February 23rd, 2010 6:34 amIt finally work on my website.
What i did : replace all the code in timthumb.php with the following code :
sorry it is long but it s working
:D
cheeers
<?php
/*
TimThumb script created by Tim McDaniels and Darren Hoyt with tweaks by Ben Gillbanks
http://code.google.com/p/timthumb/
MIT License: http://www.opensource.org/licenses/mit-license.php
Paramters
———
w: width
h: height
zc: zoom crop (0 or 1)
q: quality (default is 75 and max is 100)
HTML example:
*/
/*
$sizeLimits = array(
“100×100″,
“150×150″,
);
error_reporting(E_ALL);
ini_set(“display_errors”, 1);
*/
// check to see if GD function exist
if(!function_exists(‘imagecreatetruecolor’)) {
displayError(‘GD Library Error: imagecreatetruecolor does not exist – please contact your webhost and ask them to install the GD library’);
}
define (‘CACHE_SIZE’, 250); // number of files to store before clearing cache
define (‘CACHE_CLEAR’, 5); // maximum number of files to delete on each cache clear
define (‘VERSION’, ’1.12′); // version number (to force a cache refresh
if (function_exists(‘imagefilter’) && defined(‘IMG_FILTER_NEGATE’)) {
$imageFilters = array(
“1″ => array(IMG_FILTER_NEGATE, 0),
“2″ => array(IMG_FILTER_GRAYSCALE, 0),
“3″ => array(IMG_FILTER_BRIGHTNESS, 1),
“4″ => array(IMG_FILTER_CONTRAST, 1),
“5″ => array(IMG_FILTER_COLORIZE, 4),
“6″ => array(IMG_FILTER_EDGEDETECT, 0),
“7″ => array(IMG_FILTER_EMBOSS, 0),
“8″ => array(IMG_FILTER_GAUSSIAN_BLUR, 0),
“9″ => array(IMG_FILTER_SELECTIVE_BLUR, 0),
“10″ => array(IMG_FILTER_MEAN_REMOVAL, 0),
“11″ => array(IMG_FILTER_SMOOTH, 0),
);
}
// sort out image source
$src = get_request(“src”, “”);
if($src == ” || strlen($src) $cmp_y ) {
$src_w = round( ( $width / $cmp_x * $cmp_y ) );
$src_x = round( ( $width – ( $width / $cmp_x * $cmp_y ) ) / 2 );
} elseif ( $cmp_y > $cmp_x ) {
$src_h = round( ( $height / $cmp_y * $cmp_x ) );
$src_y = round( ( $height – ( $height / $cmp_y * $cmp_x ) ) / 2 );
}
imagecopyresampled( $canvas, $image, 0, 0, $src_x, $src_y, $new_width, $new_height, $src_w, $src_h );
} else {
// copy and resize part of an image with resampling
imagecopyresampled( $canvas, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height );
}
if ($filters != ” && function_exists(‘imagefilter’) && defined(‘IMG_FILTER_NEGATE’)) {
// apply filters to image
$filterList = explode(“|”, $filters);
foreach($filterList as $fl) {
$filterSettings = explode(“,”, $fl);
if(isset($imageFilters[$filterSettings[0]])) {
for($i = 0; $i 0) {
$yesterday = time() – (24 * 60 * 60);
usort($files, ‘filemtime_compare’);
$i = 0;
if (count($files) > CACHE_SIZE) {
foreach ($files as $file) {
$i ++;
if ($i >= CACHE_CLEAR) {
return;
}
if (@filemtime($file) > $yesterday) {
return;
}
if (file_exists($file)) {
unlink($file);
}
}
}
}
}
/**
* compare the file time of two files
*/
function filemtime_compare($a, $b) {
return filemtime($a) – filemtime($b);
}
/**
* determine the file mime type
*/
function mime_type($file) {
if (stristr(PHP_OS, ‘WIN’)) {
$os = ‘WIN’;
} else {
$os = PHP_OS;
}
$mime_type = ”;
if (function_exists(‘mime_content_type’)) {
$mime_type = mime_content_type($file);
}
// use PECL fileinfo to determine mime type
if (!valid_src_mime_type($mime_type)) {
if (function_exists(‘finfo_open’)) {
$finfo = @finfo_open(FILEINFO_MIME);
if ($finfo != ”) {
$mime_type = finfo_file($finfo, $file);
finfo_close($finfo);
}
}
}
// try to determine mime type by using unix file command
// this should not be executed on windows
if (!valid_src_mime_type($mime_type) && $os != “WIN”) {
if (preg_match(“/FREEBSD|LINUX/”, $os)) {
$mime_type = trim(@shell_exec(‘file -bi ‘ . escapeshellarg($file)));
}
}
// use file’s extension to determine mime type
if (!valid_src_mime_type($mime_type)) {
// set defaults
$mime_type = ‘image/png’;
// file details
$fileDetails = pathinfo($file);
$ext = strtolower($fileDetails["extension"]);
// mime types
$types = array(
‘jpg’ => ‘image/jpeg’,
‘jpeg’ => ‘image/jpeg’,
‘png’ => ‘image/png’,
‘gif’ => ‘image/gif’
);
if (strlen($ext) && strlen($types[$ext])) {
$mime_type = $types[$ext];
}
}
return $mime_type;
}
/**
*
*/
function valid_src_mime_type($mime_type) {
if (preg_match(“/jpg|jpeg|gif|png/i”, $mime_type)) {
return true;
}
return false;
}
/**
*
*/
function check_cache ($cache_dir, $mime_type) {
// make sure cache dir exists
if (!file_exists($cache_dir)) {
// give 777 permissions so that developer can overwrite
// files created by web server user
mkdir($cache_dir);
chmod($cache_dir, 0777);
}
show_cache_file ($cache_dir, $mime_type);
}
/**
*
*/
function show_cache_file ($cache_dir, $mime_type) {
$cache_file = $cache_dir . ‘/’ . get_cache_file();
if (file_exists($cache_file)) {
$gmdate_mod = gmdate(“D, d M Y H:i:s”, filemtime($cache_file));
if(! strstr($gmdate_mod, “GMT”)) {
$gmdate_mod .= ” GMT”;
}
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
// check for updates
$if_modified_since = preg_replace (“/;.*$/”, “”, $_SERVER["HTTP_IF_MODIFIED_SINCE"]);
if ($if_modified_since == $gmdate_mod) {
header(“HTTP/1.1 304 Not Modified”);
die();
}
}
$fileSize = filesize ($cache_file);
// send headers then display image
header (‘Content-Type: ‘ . $mime_type);
header (‘Accept-Ranges: bytes’);
header (‘Last-Modified: ‘ . $gmdate_mod);
header (‘Content-Length: ‘ . $fileSize);
header (‘Cache-Control: max-age=9999, must-revalidate’);
header (‘Expires: ‘ . $gmdate_mod);
readfile ($cache_file);
die();
}
}
/**
*
*/
function get_cache_file() {
global $lastModified;
static $cache_file;
if (!$cache_file) {
$cachename = $_SERVER['QUERY_STRING'] . VERSION . $lastModified;
$cache_file = md5($cachename) . ‘.png’;
}
return $cache_file;
}
/**
* check to if the url is valid or not
*/
function valid_extension ($ext) {
if (preg_match(“/jpg|jpeg|png|gif/i”, $ext)) {
return TRUE;
} else {
return FALSE;
}
}
/**
*
*/
function checkExternal ($src) {
$allowedSites = array(
‘flickr.com’,
‘picasa.com’,
‘blogger.com’,
‘wordpress.com’,
‘img.youtube.com’,
);
if (ereg(‘http://', $src) == true) {
$url_info = parse_url ($src);
$isAllowedSite = false;
foreach ($allowedSites as $site) {
if (ereg($site, $url_info['host']) == true) {
$isAllowedSite = true;
}
}
if ($isAllowedSite) {
$fileDetails = pathinfo($src);
$ext = strtolower($fileDetails['extension']);
$filename = md5($src);
$local_filepath = ‘temp/’ . $filename . ‘.’ . $ext;
if (!file_exists($local_filepath)) {
if (function_exists(‘curl_init’)) {
$fh = fopen($local_filepath, ‘w’);
$ch = curl_init($src);
curl_setopt($ch, CURLOPT_URL, $src);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0′);
curl_setopt($ch, CURLOPT_FILE, $fh);
if (curl_exec($ch) === FALSE) {
if (file_exists($local_filepath)) {
unlink($local_filepath);
}
displayError(‘error reading file ‘ . $src . ‘ from remote host: ‘ . curl_error($ch));
}
curl_close($ch);
fclose($fh);
} else {
if (!$img = file_get_contents($src)) {
displayError(‘remote file for ‘ . $src . ‘ can not be accessed. It is likely that the file permissions are restricted’);
}
if (file_put_contents($local_filepath, $img) == FALSE) {
displayError(‘error writing temporary file’);
}
}
if (!file_exists($local_filepath)) {
displayError(‘local file for ‘ . $src . ‘ can not be created’);
}
}
$src = $local_filepath;
} else {
displayError(‘remote host “‘ . $url_info['host'] . ‘” not allowed’);
}
}
return $src;
}
/**
* tidy up the image source url
*/
function cleanSource($src) {
$host = str_replace(‘www.’, ”, $_SERVER['HTTP_HOST']);
$regex = “/^((ht|f)tp(s|):\/\/)(www\.|)” . $host . “/i”;
$src = preg_replace ($regex, ”, $src);
$src = htmlentities ($src);
$src = checkExternal ($src);
// remove slash from start of string
if (strpos($src, ‘/’) === 0) {
$src = substr ($src, -(strlen($src) – 1));
}
// don’t allow users the ability to use ‘../’
// in order to gain access to files below document root
$src = preg_replace(“/\.\.+\//”, “”, $src);
// get path to image on file system
$src = get_document_root($src) . ‘/’ . $src;
return $src;
}
/**
*
*/
function get_document_root ($src) {
// check for unix servers
if(file_exists($_SERVER['DOCUMENT_ROOT'] . ‘/’ . $src)) {
return $_SERVER['DOCUMENT_ROOT'];
}
// check from script filename (to get all directories to timthumb location)
$parts = array_diff(explode(‘/’, $_SERVER['SCRIPT_FILENAME']), explode(‘/’, $_SERVER['DOCUMENT_ROOT']));
$path = $_SERVER['DOCUMENT_ROOT'];
foreach ($parts as $part) {
$path .= ‘/’ . $part;
if (file_exists($path . ‘/’ . $src)) {
return $path;
}
}
// the relative paths below are useful if timthumb is moved outside of document root
// specifically if installed in wordpress themes like mimbo pro:
// /wp-content/themes/mimbopro/scripts/timthumb.php
$paths = array(
“.”,
“..”,
“../..”,
“../../..”,
“../../../..”,
“../../../../..”
);
foreach ($paths as $path) {
if(file_exists($path . ‘/’ . $src)) {
return $path;
}
}
// special check for microsoft servers
if (!isset($_SERVER['DOCUMENT_ROOT'])) {
$path = str_replace(“/”, “\\”, $_SERVER['ORIG_PATH_INFO']);
$path = str_replace($path, “”, $_SERVER['SCRIPT_FILENAME']);
if (file_exists($path . ‘/’ . $src)) {
return $path;
}
}
displayError(‘file not found ‘ . $src);
}
/**
* generic error message
*/
function displayError($errorString = ”) {
header(‘HTTP/1.1 400 Bad Request’);
die($errorString);
}
?>
Sanj
February 23rd, 2010 2:22 pmI want to replace the header with my own. I have a jpeg file ready to go on, how do I do this?
Julie N'Guyen
March 31st, 2010 7:59 amHi Sanj
Just wondered if anyone has gotten back to Sanj regarding his question about creating your own header image? I’d like to do the same and put in an image and my own logo..Thanks!
Sanj
February 23rd, 2010 2:22 pm
I want to replace the header with my own. I have a jpeg file ready to go on, how do I do this?
Rebekah
June 5th, 2010 8:06 amDo two things:
In header.php, delete everything between
the division tags for the logo.
That clears out the auto text with your blog name and tagline. You MUST leave the division tags there though.
Now upload your new header to the “images” folder in the magazeen theme, via FTP.
In style.css, scroll down to section 3, “Header.”
In the section called #logo, you’ll see a line that says background:url(images/header-shade.gif) and just replace the header-shade.gif with the name of your header.
TIP: If you are working on a black background like the original header, the JPEG is probably fine. A transparent background is best, especially if you are changing your background color on the header, and for that I recommend a PNG.
http://therealrebekah.com
autumn
February 24th, 2010 2:07 amFor me the thumbnail problem has been solved. Took me a while, but in the end all i needed to do was delete the cache directory, recreate it and chmod it to 777. Works like a charm now.
http://www.autumnrain.nl
Franco Rojas
February 25th, 2010 1:31 pmhay que tener algun plugin para usarlo, porque lo instale pero no se ven las imagen :s
muy buen theme
safak saracoglu
March 4th, 2010 11:28 amteşekkür ederim
joanna
March 5th, 2010 11:42 pmwhere are the images right below the main navigation bar located? i cannot find them… and how do i link them to new pages? (i need to create pages with content that these would be linked to, not posts)
Benja
March 9th, 2010 8:21 amWhen i’m trying to install, it won’t work
WordPress says it failed because the stylesheet is missing?
Someone knows how to fix this?
tnx!
Bruce Aisher
June 3rd, 2010 5:13 amI’m getting the same problem
Anyone know how to fix this?
Benjavd
March 9th, 2010 8:21 amWordPress says it failed because the stylesheet is missing?
Someone knows how to fix this?
tnx!
Jal
March 10th, 2010 7:21 pmI want to use an Aside posts plugin with this theme. I am using Asideshop plugin for that. But the aside posts are getting displayed twice. There seems to be no problem with the plugin template.
Any way to properly go about using Asides???????
Which Aside posts plugin would work flawlessly with Magazeen???
Thanks in advance!
Sushie
March 24th, 2010 8:38 amThanks a lot!
I have download it for my next wordpress!
Julie N
March 29th, 2010 8:58 amHello
Great theme, check out what I’ve done with it (www.citygeisha.com). However I have a question that I think most have asked themselves but have not posted on here (I have searched!!). When one clicks on a certain category, all the titles are then listed on the next page. I was wondering if there was a way whereby ALL of the posts, images etc, relating to the category are listed in one go, in scroll format? As opposed to just titles that users have to click on individually.
Any ideas?? Thanks in advance, much appreciated.
Julie
nsane
March 29th, 2010 8:40 pmMight there be any updates (i.e extra features for this theme)? This was definitely one of the best and I am still using it.
Mbase
April 17th, 2010 1:33 pmFor all the people with the ‘thumbnail’ errors: try this.
Change the “cache”-directory to 777 (with CHMOD). It worked for me! (www.dutchbritneyfans.nl)
Billy
April 28th, 2010 9:50 pmHey Mbase,
How do you Change the “cache”-directory to 777 with CHMOD?
And also, Can we use this theme with the latest wordpress?
Julie N
April 21st, 2010 7:18 amHi
Just wondered if my query has been looked into and whether there is a solution to it? Surely I am not the only one that has wondered about the following??
When one clicks on a certain category, all the titles are then listed on the next page. I was wondering if there was a way whereby ALL of the posts, images etc, relating to the category are listed in one go, in scroll format? As opposed to just titles that users have to click on individually.
Any ideas?? Thanks in advance, much appreciated.
Julie
Nick
April 27th, 2010 8:54 amI love this theme but would like to display more than just two results on the category/archive/search pages. Only the two most recent entries are displayed then you have to click ‘older entries’ to view more.
Thanks
sanjeev
April 29th, 2010 7:38 ama very professional theme. i like it very much. good work man. carry on
thanks for theme
Violet
May 1st, 2010 10:12 amHi guys!! Look, me and my boyfriend have the solution for the *thumbs* :D
You just have to put the CHMOD permissions to 755 to:
/cache
/timthumb.php
/uploads/
And TA-DA!!!
Thank you for this awesome theme, it really works!
Sim
May 7th, 2010 2:15 pmWhat version on WordPress did you get this theme working on ?? The latest version ??
soussnews.com
May 25th, 2010 9:40 ammerci bcp
shahab
May 28th, 2010 3:37 amnot working some files are missing……
Theme Install Failed.
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
Name Description
magazeen-wordpress-theme Stylesheet is missing.
yana
May 29th, 2010 2:37 pmOhh! autumn, thank u very much. U helped me with thumbnail problem. It’s really works.
Delete the cache directory, recreate it and chmod it to 777. Now it works excellent.
tipito
May 29th, 2010 4:48 pmHi, i’m trying to customize the homepage by adding a specific page (page_id=2) before the posts. I’m using a new loop to do this. The problem is that the page and the posts are not breaking… i mean… it shows me the full content instead of the text that is before the break line. Any ideas how to fix this?
CB
June 2nd, 2010 11:37 amUgh! I’m getting an error when I try to install it (Clean WordPress install, latest version which is 2.9.2) .. which really is too bad because this looks pretty and easy enough to adjust to my needs.
Is there a fix? Or can I just activate it and use it ‘broken’?
Warning: fopen(C:\xampp\htdocs\website/wp-content/themes/magazeen-wordpress-theme/style.css) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\website\wp-includes\functions.php on line 3598
Warning: fread() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website\wp-includes\functions.php on line 3601
Warning: fclose() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\website\wp-includes\functions.php on line 3604
chanchan
June 3rd, 2010 12:30 pmHow i do change the language of ‘Check out the latest articles’? I try editing header.php code but this doesnt change. please help…
Sarah
June 15th, 2010 6:55 pmWhat exactly did you edit in the header? I just scrolled through to find the “check out the latest articles” and changed the text (before ultimately deleting it) and it worked fine for me.
Rebekah
June 5th, 2010 7:55 amPart of the jquery function in my blog has just stopped working. It did work before. I’d made a few edits to the APPEARANCE of the dock (just background colors), so to check if I’d screwed something up, I scrapped the Dock section from both stylesheet.css and header.php and just replaced them with the original downloaded files.
Still doesn’t fix it.
When I mouse over the images, the link name comes up in the pop-up but it does NOT come up at the top of the dock like it used to. It just always says “Latest Posts.”
I tested it previously in Firefox, IE8 and Safari and it DID work. The funny thing is that it STILL works on my subdomain of the same blog.
Working: http://therealrebekah.com/reviews
NOT Working: http://therealrebekah.com
Help!
Pete
August 18th, 2010 3:53 amHey Rebekah!
How did you get it working again?!
I haven’t managed to get it working at all…
Franc3s
June 10th, 2010 2:23 amHi everyone, I have a problem with the last posts dock.
It works fine, but if browse posts by tag, the dock shows also my pages and i don’t want this to happen.
Any sugg.?
Vin
June 10th, 2010 10:55 amThis theme looks nice and all but I hate when they make the font size in em.
HELDENTHEATER
June 10th, 2010 3:43 pmmerci for this great stuff. i’m still working on it but seems to be great. a lot of fun.
Cristal Guth
June 13th, 2010 10:57 pmThis was a Fantastic post, I will be sure to save this in my Newsvine account. Have a great day.
Sarah
June 15th, 2010 6:49 pmAnyone know how to make photo captions show up? I have text in the “caption” field in wordpress, but I can’t see it anywhere and I’m not sure where to edit the code. I only need it for the post itself (and not the thumbnails in the sidebar).
Jimmy
June 23rd, 2010 12:25 pmhi i am using this fascinating template for my blog.. however,, i cannot fix the thumb and i do not really understand what to change in the timthumb.php as described by many..
I would very delighted to have some helpe with this.. have a look at the site: http://www.visionarytraveller.com and you wil spot the problem..
I have understood according to the other comments that something in this code structure should be modifed:
// make sure cache dir exists
if (!file_exists($cache_dir)) {
// give 777 permissions so that developer can overwrite
// files created by web server user
mkdir($cache_dir);
chmod($cache_dir, 0777);
}
show_cache_file ($cache_dir, $mime_type);
but what is the question i am asking myself..
Jimmy
June 24th, 2010 1:25 ami did succeed to overcome the problem.. i used this file..
http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/
and copied the codes from the below link to my timtthumb.php ..
http://timthumb.googlecode.com/svn/trunk/timthumb.php
finally working smootly
Ceci
June 26th, 2010 9:30 amthumbnail on dock problem again, I followed everything but cannot get it fixed
–> downloaded timthumb.php
–> re-edit the code
–> change cache folder permission to 777
but nothing change on my website…>.<
Is there anyone could help me on this? I'll be very appreciate and thanks x 1000000 times!
Here's my site: http://cecichan.com
If no, anyone could tell me how to add image on the dock manually?
Ceci
June 26th, 2010 10:48 amI read again the TimThumb post, which says it requires the GD library, my PHP is 5.0 which means it’s already available, right? Sigh… I really have no idea is there any steps I missed.
mse
June 27th, 2010 2:46 amContributed in great offer my thanks to
fırcasiz oto yikama
June 27th, 2010 4:54 amThanks for a great theme. Fircasiz oto yikama
Steven
July 1st, 2010 5:26 amGreat theme! I’m having trouble with the comments going to wp-comments-post.php when I click “Submit comment” and there is no such page, but I’m sure it’s something I’ve screwed up while tinkering.
ehsan
July 5th, 2010 1:50 amsalam
man farsi migam vase kesaei ke mifahman
chejori bayad download konam kasi hast bem bege?
Aldo
July 14th, 2010 2:11 amhello, i’m trying lose the dock function with lastest post on the header.See my website
( http://www.aldofiliberto.com)
I found the dock in the style sheet but i stil have the text over the header …how do i delete the dock function ?
heeelllpppp
yash
July 24th, 2010 10:51 pmDear Friend!
I want to use this theme, but i don’t have any domain, how can i install this theme to my site.
Blog Development
August 2nd, 2010 7:44 pmVery nice theme. Thanks to the author and creator of this theme. and thanks a lot for making it free :)
Best of luck…
Marc von Brockdorff
August 6th, 2010 10:06 amHey guys,
I have finally figured out how to add page navigation to the Magazeen theme. Unfortunately pagination plug-ins don’t seem to work immediately so there’s a bit of code editing to do!
You can find the instructions here: http://www.marcvonbrockdorff.com/general/page-navigation-in-the-magazeen-wp-theme/
Thanks :)
Marc
piratx
August 12th, 2010 12:02 pmHi guys I have a problem with that theme… my site is greek-iphone.com and I have changed some things in style.css plus I removed or installed some plugins and now my theme have some problems… I can see the hover on the featured news bar at the top nothing happens when the mouse is on them.
The Categories drop down menu doesnt work on posts and a last one I need to enable somehow dropdown menus on navigation.!
Any idea what should I do!
Thanks!
Wendigo
August 23rd, 2010 11:32 pmHi all,
Thanks for this great theme, I’m using it on gepsegszalon.hu (a Hungarian language magazine on gadgets, mobiles and geek stuff).
I have changed the logo text to an image (thanks to Rebekah for the solution) but I’d like to make the logo clickable (so it could redirect to the main page).
Where and how should I include the a href code?
Also, there is another question. There are 6 post categories, and I’d like to put them into the header (just like they were pages). Is there any method to do this? (All that came into my mind is to link category search queries, like http://gepsegszalon.hu/?cat=369 – but they do look ugly)
Thanks in advance!
W
soccerisrealfutbol
September 6th, 2010 10:47 pmYou guys always deliver useful content. Awesome post. Keep posting more articles. Thanks for sharing useful info.
Subhomoy
September 11th, 2010 3:37 amHi the templates are not working. I’ve uploaded the whole file to the server after extracting but when ever I am trying to open my site, it shows nothing except a blank page with white background.
Guys plz help.
U can reply me at (subhomoyswebsite@gmail.com)
Andrew Macpherson
September 11th, 2010 9:33 pmCan you please clarify which version of the GPL the Magazeen theme is licensed under? The style.css file merely says that it licensed under the GPL, but does not say which version.
WordPress itself uses GPL v2, but this doesn’t necessarily apply to the Magazeen theme. Can I modify and distribute this under the terms of GPL version 2 ?
Paew
September 13th, 2010 6:37 amThanks for great theme. Anyway, I have some problem while installing the theme but I can fix it now in index.php.
John G.
September 28th, 2010 5:15 amHey guys, the demo site is being reported as suspected malware in Safari 4.1.1. Someone should check it out. Peace!
Sumon
October 22nd, 2010 10:56 amThis is really a great templates for WordPress. Many many thanks for share this !
Vicki - VictoriaAnn Design
November 1st, 2010 2:27 pmTO REMOVE DOCK FROM PAGE
———————————————-
Open header.php in editor from your wp Appearance menu
Remove whole section from (and including)
to
Save and that should see the end of the dock!
Hope that helps.
Vicki
John
November 11th, 2010 9:16 amThank you for this theme – I am especially touched that you have given us the PSD files to download as well – really cool. Keep up the great work. :)
ene13
November 16th, 2010 6:19 amEy
Thx for the theme! I only need to solve two problems to get an amazing blog.
1) How can I change the search box to the sidebar?
2) Hoy can I make my logo.gif clickable to go to the home?
paul wallin
November 18th, 2010 5:21 pmHello! Love the theme and as a novice as guy, i’m finding it pretty easy to figure out.
Here’s my challenge;
I tried to copy the entire theme to another website I’m creating, and then modify it there (for the most part it will remain the same, just with a bit more detailed info). So I copied everything over via filezilla, then exported/imported pages, etc…
But… I my home.php won’t change. And… I can’t find anything still directing it to the old site? It’s must be hidden somewhere… just can’t find it.
Also, when I copied it I had a small results of blogs in the side bar;
This file created an error and I can’t figure it out.
Thanks for any help!!