Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on October 03, 2011, 01:39:32 PM

Title: Categories Smfsimple Style V1
Post by: vbgamer45 on October 03, 2011, 01:39:32 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3174)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fbit.ly%2FkZVDB6&hash=7836fdef4323714489209ed06cd4e4f88c199aea)
Categories Smfsimple.com Style V1
Developed by Lean (http://www.smfsimple.com/index.php?action=profile;u=1) for SMFSimple.com (http://www.smfsimple.com/)
SMF 2.0



Description:
With this mod you can put a touch of personality to your style Smfsimple.com forum! You can put pictures in your category, giving your board a unique look and elegant!

Descripcion:
Con este mod podras ponerle un toque de personalidad a tu foro al estilo Smfsimple.com! Podras poner imagenes en tus categorias, dandole a tu foro un aspecto unico y elegante!




Features:
Caracteristicas:

Screenshots | Imagenes
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FPQ8t4.png&hash=c0cd5abc4f93ac4e39bb888dcd2332d0ae4aedb9)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fkgtwp.png&hash=85dacbfa765921d916464fafff3bb6debfabeaf2)


Note: You upload the images that you use for each category to the folder categories in Themes/default/categories.
Each image must put the name of the ID number of the category.
Images must be in png extention. You can change the png to gif or other file extention boardIndex.template.php need to edit the line:
<img src="', $settings['images_url'],'/categories/', $category['id']." png"Where .Png be changed at will.

Nota: Debes subir las imagenes que vas a utilizar para cada categoria a la carpeta categories en Themes/default/categories.
A cada imagen debes ponerle de nombre el numero de id de la categoria.
Las imagenes deben ser con extencion png. Si quieres cambiar de png a gif u otra extencion deberas editar el archivo boardIndex.template.php en la linea:
<img src="', $settings['images_url'],'/categories/', $category['id'], '.png"Donde .png sera cambiado por el que quieras.



Language Support | Lenguajes Soportados
- English
- Spanish_latin
- Spanish_latin-utf8
- Spanish_es
- Spanish_es-utf8


Categories Smfsimple.com Style V1
Copyright 2011 | SMFSimple.com (http://www.smfsimple.com/)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F88x31.png&hash=be27368905a4a8052533722bf679594f2501899d) (http://creativecommons.org/licenses/by-nc-sa/3.0/)
Title: Re: Categories Smfsimple Style V1
Post by: 4Kstore on October 03, 2011, 01:58:52 PM
Nice mod!!! Thanks!
Title: Re: Categories Smfsimple Style V1
Post by: kingkingston on October 06, 2011, 03:19:16 PM
Do you have a demo we can look at ?
Title: Re: Categories Smfsimple Style V1
Post by: 4Kstore on October 06, 2011, 04:35:53 PM
Quote from: kingkingston on October 06, 2011, 03:19:16 PM
Do you have a demo we can look at ?
Hi kingkingston...
No, the screenshot is the only demo...
Sorry
Title: Re: Categories Smfsimple Style V1
Post by: SSimple Team on October 06, 2011, 04:52:57 PM
Here's how it is. It is a matter of giving creative and can do many nice things! :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fkgtwp.png&hash=85dacbfa765921d916464fafff3bb6debfabeaf2)
Title: Re: Categories Smfsimple Style V1
Post by: kat on October 06, 2011, 05:00:58 PM
Just to clarify (And I HATE doing this, coz this topic will appear in "Replies" forever), the image for category 1 will be named 1.png? Or 1.0.png?

I tried both and, well...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.readthesmiths.com%2Farticles%2FImages%2FHumor%2FFail%2Ffbksxv.jpg&hash=f752f7467ed08e8554ec1822d8cb86e9523fc0c6)
Title: Re: Categories Smfsimple Style V1
Post by: kat on October 06, 2011, 05:08:27 PM
Can I also point out that the English:

<img src="', $settings['images_url'],'/categories/', $category['id']." png"

is subtly different from the Spanish:

<img src="', $settings['images_url'],'/categories/', $category['id'], '.png"

Note, in the Spanish, the comma, after ['id] and the full-stop (period) before png, which are different from the English.
Title: Re: Categories Smfsimple Style V1
Post by: SSimple Team on October 06, 2011, 05:09:02 PM
jaja good clarification. The number of the category without the .0
Example:
YESSS!!! 1.png
BADDDD!!! 1.0.png

:)
Title: Re: Categories Smfsimple Style V1
Post by: kat on October 06, 2011, 05:24:37 PM
Bugger.

Neither's working, for me.

/me goes for a fiddle-around...
Title: Re: Categories Smfsimple Style V1
Post by: SSimple Team on October 06, 2011, 05:33:18 PM
Sorry, my mistake was editing
<img src="', $settings['images_url'],'/categories/', $category['id'], '.png"
Title: Re: Categories Smfsimple Style V1
Post by: kat on October 07, 2011, 09:23:08 AM
Yep. That's how I took it. :)

Best to put that right, though, coz some people know less about php than even I do, believe it, or not! ;)
Title: Re: Categories Smfsimple Style V1
Post by: kat on October 07, 2011, 10:20:56 AM
Just in case anyone else runs into this, the install didn't add the "categories" directory and contents to my custom themes.

If you can't get images to show, on custom themes, check that out. :)
Title: Re: Categories Smfsimple Style V1
Post by: crustybum on December 12, 2011, 07:30:54 AM
Hi, looking for something similar but with the banners actually after the description of each section like the attached image (for 2.0 RC5 ) Thanks. :)
Title: Re: Categories Smfsimple Style V1
Post by: Inti31 on February 14, 2012, 12:01:25 AM
i tried that - and it works fine (I just did it left-aligned instead of centered) - but... - what about the "Unread messages" is located in normal next to the category name - is it possible to set a link around that pic ( eg. 1.png) which opens

http://forums-url.de/index.php?action=unread;c=[1 (ID_of_category]

cheers inti31

Addition:
that one is needed to link that image with unread messages

<a href="/index.php?action=unread;c=', $category['id'],'"><img style="color:red;font-weight:bold;font-size:18px;" src="', $settings['images_url'],'/categories/', $category['id'], '.jpg" alt="', $category['name'],'" /></a>

Title: Re: Categories Smfsimple Style V1
Post by: Inti31 on February 15, 2012, 11:19:58 PM
this mod works fine - for members - guests can't see categories - how to fix that?
Title: Re: Categories Smfsimple Style V1
Post by: hadesword on March 26, 2012, 01:51:26 PM
Quote from: Inti31 on February 15, 2012, 11:19:58 PM
this mod works fine - for members - guests can't see categories - how to fix that?

Yes I got the same problem for guest don't work please any help about that?

thanks
Title: Re: Categories Smfsimple Style V1
Post by: 4Kstore on March 26, 2012, 07:46:23 PM
Try searching for:

if (!$context['user']['is_guest'] && !empty($category['show_unread']))


and replace for:

if (!empty($category['show_unread']))
Title: Re: Categories Smfsimple Style V1
Post by: hadesword on March 27, 2012, 04:04:56 PM
Hi!

Sorry where search this line? i'm a noob  ::)
Title: Re: Categories Smfsimple Style V1
Post by: hadesword on March 27, 2012, 05:06:04 PM
Ey!

I tried and don't work I modified BoardIndex.template.php

Thanks!
Title: Re: Categories Smfsimple Style V1
Post by: Dave J on June 16, 2012, 07:53:40 AM
Did anyone find out why guests can't see the image? as I have the same problem and the edit above doesn't make any difference.