View Full Version : Admins informations page
grog6
04-05-2003, 10:00 PM
This hack adds a specific page in your forum to display informations about administrators for other members.
Administrators have to complete a specific profile. Other members can so, see informations about their administrators ans I think this can be a good idea for some forums ...
We find in this profile's page a pic of the admin, informations about him (them) such as :
-First Name
-Job
-particularities
-hobbies
-favorite drinks ...
but too a 2nd part where forum's informations are listed :
-Age
-Style used
-Number of thread and posts created and their percentage in comparison with the total forum's posts
-...
Moreover, there is an automatic installator, so it's really fast to install this hack, and you don't have to add manually templates for each style ...
You can modify the appearence of this hack by modifying templates :
-admin_affich
-admin_info
-admin_titre
-admin_fin
-admin_modif
-redirect_adminview
:banana:
Ce hack permet d'ajouter sur votre forum une page ou les administrateurs sont list?s et ou vous remplissez votre profil.
Les autres membres du forum peuvent ainsi en savoir plus sur vous et les autres admins et je trouve que cela peut etre une bonne id?e pour certains forums ...
On trouve dans cette page de profil, une photo de l'admin, des informations que celui ci aura saisi au prealable : prenom, profession, particularites, hobbies, boisson favorite ... mais aussi une partie d'informations tirees des bases du forum deja existante ou on y retrouve par exemple son age, style utilis?, nombre de sujets et posts crees, pourcentage de ceux ci par rapport au nombre total du forum ...
De plus, ce hack beneficie d'un installeur automatique qui cree les tables automatiquement dans la base de donnee ainsi que les templates necessaires, il ne devrait donc y avoir aucun problement pour installer ce hack !
Tout l'aspect esthetique de ce hack est modifiable via les templates :
-admin_affich
-admin_info
-admin_titre
-admin_fin
-admin_modif
-redirect_adminview
et ce hack s'adapte automatiquement pour chaque style utilis? sur votre forum !
HERE IS THE ENGLISH VERSION
VOICI LA VERSION ANGLAISE
grog6
04-06-2003, 09:56 PM
HERE IS THE FRENCH VERSION
VOICI LA VERSION FRANCAISE
grog6
04-06-2003, 09:58 PM
Reception of the hack if there are more administrators, else you'll be redirected automatically to the admin's profile page
Accueil du hack si il y a plusieurs administrateurs, sinon vous serez redirig? automatiquement vers la page du profil admin
grog6
04-06-2003, 10:00 PM
Admin's profile page
SC du resultat
Have fun with it :smoke:
grog6
04-06-2003, 10:09 PM
Where you modify your admin'profile
Page pour modifiez les infos
ULTIMATESSJ
04-06-2003, 10:36 PM
heh nice idea, but kinda makes the normal profile for an admin useless
Zelda-King
04-06-2003, 11:33 PM
I get this error when the install files creates the templates;
mysql error: Duplicate entry '65535' for key 1.
If I manually add a template that'll work OK, but then I get that error when I add the next.
Dean C
04-07-2003, 08:24 AM
Nice idea :)
Zelda-King
04-07-2003, 11:17 AM
It's those template names. My board doesn't like them. I create admin_affich. Fine! I create admin_fin (or ANYTHING ELSE) and I get;
Database error in vBulletin Control Panel 2.3.0:
Invalid SQL: INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,'4','admin_fin','biscuit')
mysql error: Duplicate entry '65535' for key 1
mysql error number: 1062
Date: Monday 07th of April 2003 06:09:55 AM
Script: http://www.gamercrossfire.net/bb/bb/admin/template.php
Referer:
I'm using version 2.3.0, by the way. I'm starting to wonder though, if there's something wrong with my board. :/
ricoche
04-07-2003, 11:30 AM
Great Hack!! Works well. Thank you!!
Ricoche
nagasadow
04-07-2003, 12:11 PM
A nice hack, as always ;) Works fine on my board ;)
grog6
04-07-2003, 12:17 PM
Today at 01:17 PM Zelda-King said this in Post #9 (https://vborg.vbsupport.ru/showthread.php?postid=378689#post378689)
It's those template names. My board doesn't like them. I create admin_affich. Fine! I create admin_fin (or ANYTHING ELSE) and I get;
Database error in vBulletin Control Panel 2.3.0:
Invalid SQL: INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,'4','admin_fin','biscuit')
mysql error: Duplicate entry '65535' for key 1
mysql error number: 1062
Date: Monday 07th of April 2003 06:09:55 AM
Script: http://www.gamercrossfire.net/bb/bb/admin/template.php
Referer:
I'm using version 2.3.0, by the way. I'm starting to wonder though, if there's something wrong with my board. :/
heum ... don't see well your problem !
Where do you have this error ? Has the hack been installed correctly ?
Why do you insert in the template 'admin_fin' the value 'biscuit' ?! :pirate:
I'm sure I could help you but give me more informations ;)
Zelda-King
04-07-2003, 02:47 PM
The hack was installed correctly. It was something to do with my database. I brought this up on vbulletin.com telling them the exact error. They gave me a query to run and that fixed it.
The value 'biscuit' was just one of my tests to make sure there was nothing wrong with the 'actual' template code.
[Code deleted]
Mathiau
04-10-2003, 05:45 AM
hey m8, great hack - curious - i get this error @ the top of my admin_page.php:
Warning: Division by zero in E:\wwwroot\forum\admin_page.php on line 72
Warning: Division by zero in E:\wwwroot\forum\admin_page.php on line 79
i ran the query - the page shows everything okay but i just get that error
Also, my admin page.php is in french - but i used the english version?
Mathiau
04-10-2003, 06:01 AM
never mind got it - but still have above problem?
grog6
04-10-2003, 12:55 PM
For your problem of division by 0 mathiau,
I think it's cauz you used it on your local machine ?!
It shows this error because the admin has created 0 post and 0 thread ;)
This is quite impropable on a real forum ;)
In the admin_page.php, find
$userinfo[pthread] = round(($nbethreaduser / $nbethread) * 100,2);
and replace it with
if ($nbethread>0) {
$userinfo[pthread] = round(($nbethreaduser / $nbethread) * 100,2);}
else { $userinfo[pthread]=0;}
then replace
$userinfo[ppost] = round(($userinfo[posts] / $nbepost) * 100,2);
by
if ($nbepost>0) {
$userinfo[ppost] = round(($userinfo[posts] / $nbepost) * 100,2);}
else { $userinfo[ppost]=0;}
Don't have tried it but it should work perfectly ;)
grog6
04-10-2003, 05:22 PM
Thx for the modification Zelda-King ;)
I'll integrate this code in my file ;)
I'm doing some modifications and will try to post the update during the evening ;)
Zelda-King
04-10-2003, 06:34 PM
Yes, but I found out it's not a code I'm allowed to post. I've therefore deleted it. I hope you took it down. If not I'll have to send it privately.
Mathiau
04-10-2003, 07:53 PM
[i]Today at 08:49 AM grog6
I think it's cauz you used it on your local machine ?!
It shows this error because the admin has created 0 post and 0 thread ;)
[/B]
yep - did do it locally on my server, but that did the trick.
i have a habit of not posting anything @ all - installing all the hacks, then adding forums, and test posts :)
grog6
04-13-2003, 12:43 PM
So, I've made a RLZ of this hack to improve it a little ...
here are modifications :
Modifications between v1.0 & 1.1.0 :
- display a default image if the admin hasn't put one yet
- automatically resizing of the admin's pic if the width is more than 300 pix (you can modify it in the admin_page.php ;) ), the image is shown as a thunbmail and is a clicakble link to enlarge and view it in its real size (Thx to the-jedi for having given me the agreement to use his function)
- Use of nopermissions informations of your forum
- modification of the link in the memberlist to the user's profile. If the member is an admin, the link will be modified and will now guide you to the admin's profile page of my hack :)
For pepole who have already installed this hack, just make these modifiactions :
In memberlist.php find :
while ($userinfo=$DB_site->fetch_array($users) and $counter++<$perpage) {
and add under :
if ($userinfo[groupid]==6)
$lien="admin_page.php?action=affich&id=$userinfo[userid]"; else $lien="member.php?s=$session[sessionhash]&action=getinfo&userid=$userinfo[userid]";
replace the file admin_page.php by the new in the archive
and upload the image no_pic.gif in your style's directory
Then in the template admin_affich, replace
<img src="$info[photo].....> by $info[photo]
Alors voila la new version, au programme des modifs :
- Affichage d'une image par defaut si l'admin n'en a pas encore mis
- Redimensionnement automatique de la photo de l'admin si celle ci est superieure a une certaine dimension, l'image se transforme alors en lien qui pointe vers l'image dans sa taille reelle cette fois ;) (merci a the-jedi pour cette modif et m'avoir permis de l'utiliser :) )
- Utilise les infos nopermissions du forum
- Modification du lien dans le memberlist qui pointe vers le profil du membre, si le membre est un admin alors ce lien pointe vers son profil admin ;)
Je mets le zip a jour
Pour ceux qui ont deja installe la version precedente (darki ;) )
Fais ces modifs
dans le template memberlistbit, trouvez :
member.php?s=$session[sessionhash]&action=getinfo&userid=$userinfo[userid]
et remplacez par $lien
Dans memberlist.php trouvez :
while ($userinfo=$DB_site->fetch_array($users) and $counter++<$perpage) {
et ajoutez en dessous :
if ($userinfo[groupid]==6)
$lien="admin_page.php?action=affich&id=$userinfo[userid]"; else $lien="member.php?s=$session[sessionhash]&action=getinfo&userid=$userinfo[userid]";
et remplacer le admin_page.php par celui du nouveau zip
et apres mettre l'image no_pic.gif dans les differents repertoire images de vos styles
ah vi et aussi modifier dans le template admin_affich le
<img src="$info[photo].....> par $info[photo]
Azhrialilu
08-04-2003, 04:00 PM
Hi there...
I'm just in the middle of installing this hack onto my board before putting it public and I've ran into a slight problem ;)
Where it says to find "member.php?s=$session[sessionhash]&action=getinfo&userid=$userinfo[userid]" in the memberlist template.... my template doesn't have it LOL (I'm running 2.3)
Am I just going mad... or is it really not there and I should look for something else?
Sorry if this has already been asked and sorted out....... this is my first try at builing a vbulletin board ;)
I'd appreciate any help on this :
Azhrialilu
08-04-2003, 04:39 PM
Okay, ignore my last post... I figured it out ;) ... and clicked install LOL
Alan Ang
02-06-2004, 03:43 AM
can we have this hack for all members or certain usergroups to have this profile feature?
Sc0rp
08-19-2004, 08:36 PM
nice hack but err.. why restrict it to admins? why not offer all members this oppertunity?
think this would be a cool replacement for the normal user profile if you would just add the default user profile statistics to it and make it available for all members :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.