How do I know what Mods are installed?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
Scott Ozzie
Registered User
Posts: 9
Joined: Sun May 27, 2007 2:49 am
Location: Brisbane

How do I know what Mods are installed?

Post by Scott Ozzie »

OK Im a total noob.
.. to administering anyway. Im familiar with the functionality.

I've been tasked to administer a site for someone, who paid someone else few dollars to whip up a quick and dirty board.
It looks good, - ie the colors are nice and that, however it just doesn't work as the business want it to.

I have two burning requests.
Hoping you can help me out.
1) The "Usergroups" link at the top of the page is missing - I think some pages have been edited. How do I get this back? I need to add users to groups as we need private forums.

2) How do I determine what mods have been added to this board?

Here is the template stuff - I hope you can help me.

Regards.
Scott
Your phpBB board URL: http://mastercoach.successandyou.com.au/secure/
Template(s) used: not sure
Any and all MODs:This is what I want to know!
Do you use a port of phpBB: no
Version of phpBB:2
Version of PHP:
Which database server and version: MySQL 4.1.22
Host:not sure
Did someone install this for you/who: Hes gone overseas
Is this an upgrade/from what to what: no
Is this a conversion/from what to what: no
Have you searched for your problem: yes
If so, what terms did you try: I tried many terms Im just getting frustrated.
State the nature of your problem: I think I should just start from scratch.
Do you have a test account for us: nope
If so, please have it ready in case a Support Team Member asks for it.
Last edited by Scott Ozzie on Sun May 27, 2007 4:14 am, edited 1 time in total.
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: How do I know what Mods are installed?

Post by ric323 »

The only way to know what mods are in use is to keep a record as you go.
If someone else set this up, and didn't note which mods are installed, then they are just lazy.

I think you would actually be better off starting from a clean install.
If you upload all the files from a clean install, except for config.php. It is important that you do not overwrite config.php. In fact, you should make a backup copy of that file on your opwn PC now, because it contains your database access information.

Itried to look at your forum to see how heavily modified it is, but it's not at the address you mentioned.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: How do I know what Mods are installed?

Post by dellsystem »

1) just go to groupcp.php, you can add that link back into overall_header.tpl if you wish to.

2) There's no absolute way to determine this - if you're lucky, the MODs installed will have come with useful tags, as in //Begin Profile Views MOD by Mod_author, or <!-- BEGIN banner_hack -->, which you'll be able to see by viewing the .php & .tpl files of your website. You can also find out the MODs simply by examining your website and comparing it to a fresh installation of phpBB (maybe download & install one onto your server for testing purposes) - you can figure out a lot of the MODs installed that way.
Former moderator and website team member | My MODs, and more (GitHub)
Scott Ozzie
Registered User
Posts: 9
Joined: Sun May 27, 2007 2:49 am
Location: Brisbane

Re: How do I know what Mods are installed?

Post by Scott Ozzie »

Thanks Ric,

I've updated the URL
I think I will take your advice and start it from scratch. - clean installs with Acyd Burns attachment mod.
Together with some clear documentation!
There isn't alot of content there at the moment anyway.

that is really all these guys need.

Cheers
Scott
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: How do I know what Mods are installed?

Post by ric323 »

Also note, your current theme has removed the phpBB copyright message.
The following text is still there as a comment:
<!--
We request you retain the full copyright notice below including the link to http://www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB line, with phpBB linked to http://www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.

The phpBB Group : 2002
// -->
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: How do I know what Mods are installed?

Post by karlsemple »

Sorry as pert he rules here, no visual copyright, no support :)

feel free to pm me when re-added and i will unlock the topic


Edit: Copyright added so topic unlocked :)
Image
Scott Ozzie
Registered User
Posts: 9
Joined: Sun May 27, 2007 2:49 am
Location: Brisbane

Re: How do I know what Mods are installed?

Post by Scott Ozzie »

Okay,
So far so good.
Appreciate your help so far.

I've managed to backup and restore the databse to another site where i've been tinkering with a fresh install of Phpbb.
Its all making sense right now.. sort of.. finding my way through the templates directory now.

My number one priority is to get the file upload components working.

Before I do that I need get the usergroups link back on the header for the admin so I can secure it properly.
Can anybody suggest what I need to do to get the usergroups link back?
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: How do I know what Mods are installed?

Post by ric323 »

Scott Ozzie wrote:...
Before I do that I need get the usergroups link back on the header for the admin so I can secure it properly.
Can anybody suggest what I need to do to get the usergroups link back?
Compare your overall_header.tpl with the standard subSilver one.
It looks like yours is hardly modified at all, so the differences should only be minor.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
Scott Ozzie
Registered User
Posts: 9
Joined: Sun May 27, 2007 2:49 am
Location: Brisbane

Re: How do I know what Mods are installed?

Post by Scott Ozzie »

Thanks again Ric,

I've figurd that out. There was a line commented out in that file.
What this has done however is make the Groups visible to everyone and not just the admin / moderators.

What I need to do is figure out how I can add the usergroup link in and only alllow admins / mods to access it. OR to remove the capability to browse the members in the groups.
I don't want the public being able to do this.

Regards,
Scott
User avatar
Lumpy Burgertushie
Registered User
Posts: 68120
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How do I know what Mods are installed?

Post by Lumpy Burgertushie »

here is a collection of tweaks to hide different parts/pages in different ways. take what you need:
#This is a collection of edits that will do what you asked.
#As with any MODs, be sure to work from copies, that way you
#can always recover with a couple of clicks.
#
# Hides memberlist and groups links in overall_header.tpl to admin only.
#-----[ OPEN ]------------------------------------------
#

includes/page_header.php

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

$template->assign_block_vars('switch_user_logged_in', array());

#
#-----[ AFTER, ADD ]------------------------------------------
#

// Admin Only View Mod
if ( $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars('switch_admin_view_only', array());
}
// Admin Only View Mod


#
#-----[ OPEN ]------------------------------------------
#

templates/yourstyle/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>
&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
&nbsp;

#
#-----[ REPLACE WITH ]------------------------------------------
#Make sure you place the switches on a line by themselves or they
#wont work.
#
<!-- BEGIN switch_admin_view_only -->
<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>
&nbsp; &nbsp;
<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
&nbsp;
<!-- END switch_admin_view_only -->




#
#This restricts the memberlist to members only.
#-----[ OPEN ]------------------------------------------
#

memberlist.php

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

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#

// Begin 'Restrict Access'
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.".$phpEx."?redirect=memberlist.".$phpEx, true));
exit;
}
// End 'Restrict Access'



#
#This restricts memberlist to admin only
#-----[ OPEN ]------------------------------------------
#

memberlist.php

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

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#


// Begin 'Restrict Access'
if( !$userdata['user_level'] == 1 )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}

// End 'Restrict Access'
#
#This restricts memberlist to certain groups only
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#
//Begin restrict guest access MOD
// Change this number to the ID # of the group you want to restrict access to
$page_group = 1;

$sql = "SELECT group_id FROM " . USER_GROUPS_TABLE . "
WHERE user_id = " . $userdata['user_id'] . "
AND group_id = " . $page_group;
if(!($result = $db->sql_query($sql)))
message_die(GENERAL_ERROR,'Could not select from usergroup table','',__LINE__,__FILE__,$sql);

$row = $db->sql_fetchrow($result);

if(empty($row))
redirect($phpbb_root_path . 'index.'.$phpEx);
//End restrict guest access MOD

#
#show the memberlist and user groups links to members only
#-----[ OPEN ]------------------------------------------
#

templates/yourstyle/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>
&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
&nbsp;

#
#-----[ REPLACE WITH ]------------------------------------------
#Make sure you place the switches on a line by themselves or they
#wont work.
#
<!-- BEGIN switch_user_logged_in -->
<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>
&nbsp; &nbsp;
<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
&nbsp;
<!-- END switch_user_logged_in -->

#
#This restricts the groups page to members only.
#-----[ OPEN ]------------------------------------------
#

groupcp.php

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

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#

// Begin 'Restrict Access'
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.".$phpEx."?redirect=groupcp.".$phpEx, true));
exit;
}
// End 'Restrict Access'

#This restricts the profile.php file to members only.
#-----[ OPEN ]---------------------------------------------
#
profile.php

#
#-----[ FIND ]---------------------------------------------
#
if ( $mode == 'viewprofile' )
{

#
#-----[ AFTER, ADD ]---------------------------------------------
#
if ($userdata['user_id'] == ANONYMOUS)
{
redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile&" . POST_USERS_URL . '=' . intval($HTTP_GET_VARS[POST_USERS_URL]), true));
}

#
#-----[ OPEN ]------------------------------------------
#

search.php

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

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#

if( !$userdata['session_logged_in'] || !isset($userdata))
{
redirect("login.$phpEx?redirect=search.$phpEx");
}

#This will show the poster's info only to members.
#-----[ OPEN ]------------------------------------------
#

templates/yourstyle/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN switch_user_logged_in -->
{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}
<!-- END switch_user_logged_in -->
#This will remove the poster's info from the viewtopic page.
#-----[ OPEN ]------------------------------------------
#

templates/yourstyle/viewtopic_body.tpl

#
#-----[ FIND AND DELETE]------------------------------------------
#
{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}
#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

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

if ( $poster_id != ANONYMOUS )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");

#
#-----[ REPLACE WITH ]------------------------------------
#

if ( $poster_id != ANONYMOUS && $userdata['session_logged_in'] )
{
$temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id");
#
#This will remove the whos online box from the page
#-----[ OPEN ]------------------------------------------
#

templates/yourstyle/index_body.tpl

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

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
#
#-----[ REPLACE WITH ]------------------------------------------
#
#
<!--this is commenting out the code
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
</td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
-->
#This will make the whos online file available to only members
#-----[ OPEN ]------------------------------------------
#

viewonline.php

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

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#

// Begin 'Restrict Access'
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.".$phpEx."?redirect=viewonline.".$phpEx, true));
exit;
}
// End 'Restrict Access'
#
#This will make the whos online file available to only admin
#-----[ OPEN ]------------------------------------------
#

viewonline.php

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

//
// End session management
//

#
#-----[ AFTER, ADD ]------------------------------------
#

// Begin 'Restrict Access'
if( !$userdata['user_level'] == 1 )
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}

// End 'Restrict Access'
#-----[ EOM ]------
#----[ CLOSE, SAVE and UPLOAD ALL FILES ]----
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
Locked

Return to “2.0.x Support Forum”