Groups Page Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

i always forget to ask...

can you please add premission for this mod? i dont want to display group page for guests... like normal memberlist/profile did...
vonhazey
Registered User
Posts: 89
Joined: Wed Dec 02, 2009 2:43 pm

Re: Groups Page Mod

Post by vonhazey »

CMA wrote:i always forget to ask...

can you please add premission for this mod? i dont want to display group page for guests... like normal memberlist/profile did...
easily done,

open overall_footer.html

FIND
<a href="{U_GROUPS}">{L_GROUPS}</a> &bull;

Before add
<!-- IF S_USER_LOGGED_IN -->
After add
<!-- ENDIF -->

The link will then only appear for users that are logged in.
Image
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

ok but... i still would like it to be displaying to all user...

well i will use that for temporary solution... thanks...
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Groups Page Mod

Post by RMcGirr83 »

CMA wrote:ok but... i still would like it to be displaying to all user...

well i will use that for temporary solution... thanks...
That's exactly what the code does. If they are guest they won't see the link, if they aren't a guest then they will.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

but what if... someone mention that link... guest will able to view the page...

i would like group page to ask guest to log in... or register...
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Groups Page Mod

Post by RMcGirr83 »

OPEN

groups_page.php

FIND

Code: Select all

$user->setup('groups');
AFTER ADD

Code: Select all

if (!$user->data['is_registered'])
{
	if ($user->data['is_bot'])
	{
		redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
	}

	login_box('', $user->lang['LOGIN_EXPLAIN_GROUP']);
}
finis
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

prefect... thank you...
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

very bad news...

your "prefect" code is not work for register user only...

guest will the login page properly but register cannot see the page properly...

the error is
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2199: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2199: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2199: strtr() [function.strtr]: The second argument is not an array
template->_tpl_load_file(): File /groups_page_body.html does not exist or is empty

that error is not helpful... i tried to track... until i finally found the source...

can you do please fix the code? thanks...
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Groups Page Mod

Post by RMcGirr83 »

_tpl_load_file(): File /groups_page_body.html does not exist or is empty
You may want to upload the html file into the style that is causing that issue.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

well the html is already there...

have you test that new coder? :?


i mean... i replaced it with original group_page.php and it works... therefore your code is not working for register only...
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Groups Page Mod

Post by RMcGirr83 »

CMA wrote:well the html is already there...
If it was there you wouldn't be getting that error.
have you test that new coder? :?
be my guest

Code is fine and does work perfectly.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
CMA
Registered User
Posts: 330
Joined: Mon Jun 02, 2003 4:15 pm
Location: Vancouver BC Canada
Contact:

Re: Groups Page Mod

Post by CMA »

ok its working... but can you visit it and see properly?


no errors?


EDIT: now it works... i really dont know why... maybe i alternative code... :\
vonhazey
Registered User
Posts: 89
Joined: Wed Dec 02, 2009 2:43 pm

Re: Groups Page Mod

Post by vonhazey »

Quick question is there away to stop the page displaying the newly registered users group, as I don't use it?
Image
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Groups Page Mod

Post by RMcGirr83 »

Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
vonhazey
Registered User
Posts: 89
Joined: Wed Dec 02, 2009 2:43 pm

Re: Groups Page Mod

Post by vonhazey »

Thanks for the quick reply.

EDIT: I added this :$sql_where = " WHERE group_name != 'GUESTS' AND group_type != " . GROUP_SPECIAL;

but that removes all the special groups, do I just need to trype in the the correct group name instead of GROUP_SPECIAL?
Image
Locked

Return to “[3.0.x] MOD Database Releases”