[BETA] Site Roster

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

[BETA] Site Roster

Post by Xiph3r »

Awhile ago i had this custom made for my clan site, however im hoping someone will pick this mod up and expand it. I am releasing it to the public, it is a simple mod and works on user ranks. I do have it running on my clan site www.dvclan.net

the mod can be d/l from here

http://xti.dyndns.org/roster.zip
what i hope to look for is to have acp features on the roster , is to add fields like postion, connection, ect ect.

Code: Select all

################################################################# 
## Mod Title: Site Roster
## Mod Version: 1.0.0
## Author: James Gay <[email protected]> http://www.palgn.com
## Made For: Xiph3r <[email protected]>
## Description: Adds a roster to the site based on user's ranks
##              
## 
## Installation Level: easy
## Installation Time: 2 Minutes 
## Included files: 5
## Files to edit: 2
## 
################################################################# 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
##
## This mod was custom made for Xiph3r ([email protected])
## 
## Installation notes:
## 1) Upload all the files to your site.
## 2) Run install_roster.php
## 3) Delete install_roster.php
## 4) Edit files as per below
## 5) Open admin palgnand go to General Admin -> Roster Settings to set which ranks to display
##
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
/phpBB2/language/lang_english/lang_main.php


# 
#-----[ FIND ]------------------------------------------ 
# 

//
// That's all Folks!
// -------------------------------------------------

# 
#-----[ BEFORE, ADD ]------------------------------------ 
# 

// ROSTER MOD START
$lang['Roster'] = "Site Roster";
$lang['Noone_found'] = "No Members Found";
$lang['Select_roster_sort_method'] = "Sort members in ranks by";
// ROSTER MOD END

# 
#-----[ OPEN ]------------------------------------------ 
# 
/phpBB2/language/lang_english/lang_admin.php

# 
#-----[ FIND ]------------------------------------------ 
# 

//
// That's all Folks!
// -------------------------------------------------

# 
#-----[ BEFORE, ADD ]------------------------------------ 
# 

// ROSTER MOD START
$lang['admin_roster'] = "Change Roster Settings";
$lang['admin_roster_explain'] = "This page can be used to select the ranks you want to be displayed in the roster page. You can add new ranks and assign them to users from the User Admin section of the admin panel. Special ranks are those which are not given any minimum post limit to obtain - they must be assigned by an administrator.";
$lang['admin_roster_ranks'] = "Select Ranks";
$lang['admin_roster_success'] = "Roster Ranks Successfully Updated!";
$lang['admin_roster_rank_special'] = "Special";
$lang['admin_roster_rank_min_posts'] = "Minimum Posts = ";
// ROSTER MOD END

# 
#-----[ SAVE/CLOSE FILES ]------------------------------------------ 
# 
# EoM 
Last edited by Xiph3r on Mon Mar 28, 2005 1:21 am, edited 3 times in total.
LegendKnight
Registered User
Posts: 94
Joined: Sun Jun 15, 2003 3:49 am
Location: Tarn-Vedra
Contact:

Post by LegendKnight »

cool
this is a must have for any clan forums...
~MK
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

yup thats what i had it made for, i posted it up in here praying that a nice mod auther would pick it up and expand the functions of it. like adding new fields in it through the acp.
A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT »

Heres the code for it to work on easy mod. May not work cuz i did it a bit to fast lol but u can try lol

Code: Select all

#################################################################  
 ## Mod Title: Site Roster 
 ## Mod Version: 1.0.0 
 ## Author: James Gay <[email protected]> http://www.palgn.com 
 ## Made For: Xiph3r <[email protected]> 
 ## Description: Adds a roster to the site based on user's ranks 
 ##               
 ##  
 ## Installation Level: easy 
 ## Installation Time: 2 Minutes (1min on EasyMod)
 ## Included files: install_roster.php
 ##                           roster.php
 ##                           admin/admin_roster.php
 ##                           templates/subSilver/roster_body.tpl
 ##                           templates/subSilver/admin/roster_body.tpl
 ## Files to edit: language/lang_english/lang_main.php 
 ##                    language/lang_english/lang_admin.php 
 ## 
 ##  
#################################################################  
 ## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites  
 #################################################################  
 ## 
 ## This mod was custom made for Xiph3r ([email protected]) 
 ##  
 ## Installation notes: 
 ## 1) Upload all the files to your site. 
 ## 2) Run install_roster.php 
 ## 3) Delete install_roster.php 
 ## 4) Edit files as per below 
 ## 5) Open admin palgnand go to General Admin -> Roster Settings to set which ranks to display 
 ## 
#################################################################  
 ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD  
 #################################################################  
 #  
 #-----[ COPY ]------------------------------------------  
 #  
install_roster.php to install_roster.php
admin/admin_roster.php to admin/admin_roster.php
templates/subSilver/roster_body.tpl to templates/subSilver/roster_body.tpl
templates/subSilver/admin/roster_body.tpl to templates/subSilver/admin/roster_body.tpl
 #  
 #-----[ OPEN ]------------------------------------------  
 #  
 language/lang_english/lang_main.php 

#  
 #-----[ FIND ]------------------------------------------  
 #  
  
 // 
 // That's all Folks! 
 // ------------------------------------------------- 
  
 #  
 #-----[ BEFORE, ADD ]------------------------------------  
 #  
  
 // ROSTER MOD START 
 $lang['Roster'] = "Site Roster"; 
 $lang['Noone_found'] = "No Members Found"; 
 $lang['Select_roster_sort_method'] = "Sort members in ranks by"; 
 // ROSTER MOD END 
  
 #  
 #-----[ OPEN ]------------------------------------------  
 #  
language/lang_english/lang_admin.php 
  
 #  
 #-----[ FIND ]------------------------------------------  
 #  
  
 // 
 // That's all Folks! 
 // ------------------------------------------------- 
  
 #  
 #-----[ BEFORE, ADD ]------------------------------------  
 #  
  
 // ROSTER MOD START 
 $lang['admin_roster'] = "Change Roster Settings"; 
 $lang['admin_roster_explain'] = "This page can be used to select the ranks you want to be displayed in the roster page. You can add new ranks and assign them to users from the User Admin section of the admin panel. Special ranks are those which are not given any minimum post limit to obtain - they must be assigned by an administrator."; 
 $lang['admin_roster_ranks'] = "Select Ranks"; 
 $lang['admin_roster_success'] = "Roster Ranks Successfully Updated!"; 
 $lang['admin_roster_rank_special'] = "Special"; 
 $lang['admin_roster_rank_min_posts'] = "Minimum Posts = "; 
 // ROSTER MOD END 
  
 #  
 #-----[ EoM ]------------------------------------------  
 #  
 # EoM 
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

thnx A.I Bot
A.I. BOT
Registered User
Posts: 1848
Joined: Thu Apr 17, 2003 11:43 pm
Location: Newfoundland, Canada
Contact:

Post by A.I. BOT »

ur welcome
zerokewlz
Registered User
Posts: 385
Joined: Tue Apr 23, 2002 1:02 am
Contact:

Post by zerokewlz »

Is there a working demo of this to see what exactly it will do toa forum?
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

yes sir its on my website www.dvclan.net click Roster in the nav menu on the left

hopefuly a mod author will pick this up *pls*
i said this way to many times i should slap myself a couple times
zerokewlz
Registered User
Posts: 385
Joined: Tue Apr 23, 2002 1:02 am
Contact:

Post by zerokewlz »

Where you have inactive, members, retired, and council members, can we edit those to anything we like? If so, how hard is that?
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

its based on ranks, u create a rank. anyone in that rank that u have will be listed. in the acp you choose witch rank you want displayed.
so if u have 4 people under the admin rank 4 people will be displayed if u list that rank
zerokewlz
Registered User
Posts: 385
Joined: Tue Apr 23, 2002 1:02 am
Contact:

Post by zerokewlz »

Okay error:

I ran the file from http://www.clanuc.org/Roster/install_roster.php - as stated in the instructions. I came up with:
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/clanucor/public_html/Roster/install_roster.php on line 24

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/clanucor/public_html/Roster/install_roster.php on line 24

Warning: main(./common.): failed to open stream: No such file or directory in /home/clanucor/public_html/Roster/install_roster.php on line 25

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/clanucor/public_html/Roster/install_roster.php on line 25

Fatal error: Call to undefined function: session_pagestart() in /home/clanucor/public_html/Roster/install_roster.php on line 30


Now my forum is modded to hell, but I don't think it would affect this particular page. Any ideas? Sorry I could look at the code but Im on my way out as it is.
dagobert02
Registered User
Posts: 7
Joined: Mon Jun 30, 2003 7:52 pm

Post by dagobert02 »

great mod ! thats what i was looking for !

but could you change one thing for me?

i have installed more than one rank and i want to display every rank.
when a user obtains 2 ranks, i want him to appear in 2 boxes at the roster.

is it possible ?
can you help me ?

the fields are called user_rank, user_rank2.....user_rank12 (yes its a lot....but necessary)

yours
dagobert
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

zerokewlz wrote: Okay error:

I ran the file from http://www.clanuc.org/Roster/install_roster.php - as stated in the instructions. I came up with:
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/clanucor/public_html/Roster/install_roster.php on line 24

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/clanucor/public_html/Roster/install_roster.php on line 24

Warning: main(./common.): failed to open stream: No such file or directory in /home/clanucor/public_html/Roster/install_roster.php on line 25

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/clanucor/public_html/Roster/install_roster.php on line 25

Fatal error: Call to undefined function: session_pagestart() in /home/clanucor/public_html/Roster/install_roster.php on line 30


Now my forum is modded to hell, but I don't think it would affect this particular page. Any ideas? Sorry I could look at the code but Im on my way out as it is.


im not a mod author and i realy dont know much about phpbb, but i can say this, the install_roster.php needs to be in the root folder of phpbb
I.E. http://www.clanuc.org/forum/
Last edited by Xiph3r on Wed Feb 18, 2004 3:14 am, edited 1 time in total.
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

dagobert02 wrote: great mod ! thats what i was looking for !

but could you change one thing for me?

i have installed more than one rank and i want to display every rank.
when a user obtains 2 ranks, i want him to appear in 2 boxes at the roster.

is it possible ?
can you help me ?

the fields are called user_rank, user_rank2.....user_rank12 (yes its a lot....but necessary)

yours
dagobert

i wish i could, im not a mod author, i relased this mod that i had custom made for my clan, and hoping a mod author could possible pick it up and expand it as it is realy realy basic right nowat the time i didnt need the features i need now.
just pray that a nice mod author will pick this up. or add to it and help us lil ppl out
zerokewlz
Registered User
Posts: 385
Joined: Tue Apr 23, 2002 1:02 am
Contact:

Post by zerokewlz »

Mmm..

install_roster.php > Root Forum Directory
Roster (folder) > Forum Directory or Site Folder??? I put both, neither work.

I ran the install and
BEGIN ROSTER MYSQL TABLE EDITING

Running :: INSERT INTO work_config VALUES ('roster_titles', '1') -> FAILED ---> Duplicate entry 'roster_titles' for key 1

ROSTER MYSQL TABLE EDITING COMPLETE!

So that worked, Just done twice 8)

The problem is when I view roster.php -
Warning: main(./extension.inc): failed to open stream: No such file or directory in /home/clanucor/public_html/forum/roster/roster.php on line 47

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/clanucor/public_html/forum/roster/roster.php on line 47

Warning: main(./common.): failed to open stream: No such file or directory in /home/clanucor/public_html/forum/roster/roster.php on line 48

Warning: main(): Failed opening './common.' for inclusion (include_path='.:/usr/local/lib/php:/usr/lib/php') in /home/clanucor/public_html/forum/roster/roster.php on line 48

Fatal error: Call to undefined function: session_pagestart() in /home/clanucor/public_html/forum/roster/roster.php on line 53


I know you said your not an author but..
Post Reply

Return to “[2.0.x] MODs in Development”