PDA

View Full Version : Styles page


grog6
03-20-2003, 10:00 PM
With this hack, you'll now be able to see a page where differents selectable styles are listed and a percentage gauge indicates which style is the most used (or the less) by your members.

Files to upload : 1
Templates to modify : 2
Files to modify : 1
Installation time : 3 min

You can choose to allow non-registered members to view or not this page by modifying the styles.php ;)



Avec ce hack vous allez maintenant pouvoir ajouter une nouvelle page a votre forum ou les listes selectionables seront listes et representer par une barre de pourcentage qui vous indiquera quelle est le style le plus (ou le moins) utilis? par vos membres.

Fichier a modifier : 1
Templates a modifier : 2
Fichiers a modifier : 1
Temps d'installation : 3 min

Vous pouvez choisir en modifiant le fichier styles.php de permettre aux membres non enregistres de voir cette page ou pas !!
Il y a juste une variable a modifier ;)


HERE IS THE FRENCH VERSION
VOICI LA VERSION FRANCAISE

grog6
03-21-2003, 04:40 PM
HERE IS THE ENGLISH VERSION
VOICI LA VERSION ANGLAISE

grog6
03-21-2003, 04:41 PM
AND THE SCREENSHOT
Voici la screenshot

filburt1
03-21-2003, 04:48 PM
This has already been done, only the bar graphs are instead numbers of users (which is much more useful).

grog6
03-21-2003, 04:49 PM
Arf :( Searched it quickly here but found nothing !

Have you the link ?

amykhar
03-21-2003, 04:56 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=34480&highlight=style%2A" target="_blank">https://vborg.vbsupport.ru/showt...light=style%2A</a>

filburt1
03-21-2003, 04:56 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=34480" target="_blank">https://vborg.vbsupport.ru/showt...threadid=34480</a>

grog6
03-21-2003, 05:28 PM
Hum .... just look at Lesane's hack
I don't find it's the same at all, His hack display all member's style ... I think my hack has an other interest ;)

filburt1
03-21-2003, 05:31 PM
Eh, sans the bars it seems identical to me.

grog6
03-21-2003, 06:58 PM
Lesane's hack indicate which style is used by which member whereas my shows wich styles are the most used .... :tired:

filburt1
03-21-2003, 07:03 PM
Look at the first attached screenshot. Both are shown.

grog6
03-21-2003, 07:09 PM
You're right filburt1 :ermm:

But perhaps my hack could be usefull for some others users ... I haven't wanted to make a copy of Lesane's hack

filburt1
03-21-2003, 07:20 PM
I'll leave it to the other mods to decide.

Jeremy W.
03-24-2003, 02:28 PM
Erm, my bars are massive... Like 1500 pixels wide or something...

Help?

http://www.tinyplanet.org/styles.php?s=

grog6
03-24-2003, 02:42 PM
In styles.php, find

$largeur_barre=($numberstyle/$nombretotal)*1500;

and replace 1500 by the value you want ;)

irn-bru
03-24-2003, 03:23 PM
This one looks not to bad *clicks install* thanks :)

irn-bru
03-24-2003, 03:42 PM
any ideas about the % problem ? maybe cut down a few numbers :cheeky:

http://www.l33tville.com/forums/styles.php

Jeremy W.
03-24-2003, 03:55 PM
Cool, thanks. I agree with the above (2-decimal point percentages would be nice)...

Also, it'd be a great addition to be able to just click on a link for the user to select taht style, ya know?

(make style name a link to select that style)

J

grog6
03-24-2003, 04:10 PM
For the pb of decimals ... I'll correct it ;)
And I'll add a link so that people would choose the style with a simple click ;)

Jeremy W.
03-24-2003, 04:10 PM
Danka, great hack btw :) I like it a lot :)

J

wolfe
04-28-2003, 12:25 PM
nice!

grog6
04-28-2003, 03:54 PM
It's now OK for the % problem , I've formated numbers, there are now integer ;)

Moreover I've modified the template style_liste, so now, you can click on a style name to select it :)

2 archives have been updated

If you have already installed this hack, just upload the new styles.php and mofify the template style_liste ;)

irn-bru
04-28-2003, 04:23 PM
thx for the update grog6