Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Admins informations page Details »»
Admins informations page
Version: 1.00, by grog6 grog6 is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 04-05-2003 Last Update: Never Installs: 6
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-07-2003, 12:11 PM
nagasadow's Avatar
nagasadow nagasadow is offline
 
Join Date: Mar 2003
Location: France
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A nice hack, as always Works fine on my board
Reply With Quote
  #13  
Old 04-07-2003, 12:17 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:17 PM Zelda-King said this in Post #9
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' ?! irate:

I'm sure I could help you but give me more informations
Reply With Quote
  #14  
Old 04-07-2003, 02:47 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #15  
Old 04-10-2003, 05:45 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey m8, great hack - curious - i get this error @ the top of my admin_page.php:

Code:
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?
Reply With Quote
  #16  
Old 04-10-2003, 06:01 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind got it - but still have above problem?
Reply With Quote
  #17  
Old 04-10-2003, 12:55 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

PHP Code:
$userinfo[pthread] = round(($nbethreaduser $nbethread) * 100,2); 
and replace it with

PHP Code:
if ($nbethread>0) {
$userinfo[pthread] = round(($nbethreaduser $nbethread) * 100,2);}

else { 
$userinfo[pthread]=0;} 

then replace

PHP Code:
$userinfo[ppost] = round(($userinfo[posts] / $nbepost) * 100,2); 
by

PHP Code:
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
Reply With Quote
  #18  
Old 04-10-2003, 05:22 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 04-10-2003, 06:34 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 04-10-2003, 07:53 PM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
[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
Reply With Quote
  #21  
Old 04-13-2003, 12:43 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :
PHP Code:
while ($userinfo=$DB_site->fetch_array($users) and $counter++<$perpage) { 
and add under :
PHP Code:
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 :

PHP Code:
member.php?s=$session[sessionhash]&action=getinfo&userid=$userinfo[userid

et remplacez par $lien


Dans memberlist.php trouvez :
PHP Code:
while ($userinfo=$DB_site->fetch_array($users) and $counter++<$perpage) { 
et ajoutez en dessous :
PHP Code:
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]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04647 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (9)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete