The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
GRPS: Groups Commune 2.0.x Details »» | |||||||||||||||||||||||||
Welcome ladies and gentleman, this is the release thread for GRPS, an interactive groups commune. I hope you enjoy this release and i sincerely hope it provides everything to your community in which you're looking for.
What is it? It's a groups commune. The original idea is that forums with lots and lots of forums on the front-page suck, as a result i thought most of the conversation was rather obscure in regards to what the forums were trying to achieve, so it'd be nice to have that all going on elsewhere, not detracting away from the content and stopping your front-page from looking like a car crash. Features?
Special Thanks to harry1951, without his help testing and his recommendations, this would've never ended up the way it did. Honestly, i can't think of anything else, if you appreciate the work gone into this mod, please donate (in GBP) (right click open in new window) Hopefully you all appreciate that i just relaunched my site and rather than soak up the atmosphere there or go out drinking i came to release this tonight. Screens below, rest to your right Please note this mod does work with 3.5.x PLEASE DO NOT JOIN MY SITE IN A BID TO PLAY WITH IT OR HAVE A LOOK AT IT FURTHER, MY SITE IS SOMETHING I VALUE FOR BEING SOMEWHERE I CAN CHILL AT, IT'S NOT A TEST SUITE OR DEMO! Bug Fixes
Show Your Support
|
Comments |
#1752
|
|||
|
|||
Hi
to fix the pagination problem On browse.php Replace Code:
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'"); Code:
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1' AND catid = $c"); |
#1753
|
|||
|
|||
Try this to add Groups to a user's public profile. It works for me:
Create a new plug in: Product: GRPS: Groups Commune Hook Location: member_complete Title: GRPS: List Groups In User Profile Execution Order: 5 Plugin PHP Code: Code:
// ###################### extracts my groups groups for main grps page //require_once("./includes/functions_grps.php"); $grps_ids = explode(' ', trim($userinfo['grps'])); $baselocation = ($vbulletin->options['grps_locationswitch'] == TRUE) ? $vbulletin->options['homeurl'] : $vbulletin->options['bburl']; if (!empty($userinfo['grps'])) { $grps_ids_imploded = implode(",", $grps_ids); $grps_mygroups = $db->query(" SELECT grps.groupid, grps.title, grps.description, grps.approved, grps.leaderid, grps_setting.image_name, MAX(grps_thread.lastpostdateline) AS dateline FROM grps LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid) LEFT JOIN grps_thread ON (grps_thread.groupid = grps.groupid) LEFT JOIN " . TABLE_PREFIX . "user AS " . TABLE_PREFIX . "user ON (" . TABLE_PREFIX . "user.userid = grps.leaderid) WHERE grps.approved = '1' AND grps.groupid IN($grps_ids_imploded) GROUP BY grps.groupid ORDER BY dateline DESC LIMIT 15 "); $mygroups = "<ul>"; while ($grps_mygroupsinfo = $db->fetch_array($grps_mygroups)) // foreach($grps_ids AS $grps_key_id => $grps_mygroups) { if(!$grps_mygroupsinfo['image_name']) { $grps_mygroupsinfo['image_name'] = "<img src=\"" . $vbulletin->options['bburl'] . "/" . $stylevar['imgdir_grps'] . "/grps_mygroups_noimage.gif\" alt=\"" . $grps_mygroupsinfo[title] . "\" border=\"0\" /><br />"; } else { $grps_mygroupsinfo['image_name'] = "<img src=\"../groups/grps_imgs/defaults/" . $grps_mygroupsinfo['image_name'] . "\" width=\"100\" alt=\"" . $grps_mygroupsinfo[title] . "\" border=\"0\" /><br />"; } if ($grps_mygroupsinfo['leaderid'] == $userinfo['userid']) { $grps_mygroupsinfo['leader'] = "<img src=\"" . $vbulletin->options['bburl'] . "/" . $stylevar['imgdir_grps'] . "/grps_leader.gif\" alt=\"" . $grps_mygroupsinfo['title'] . " Leader\" border=\"0\" /><br />"; } else { $grps_mygroupsinfo['leader'] = FALSE; } $mygroups .= " <li id=\"grpsgroupsbullets\"> <a href=\"" . $baselocation . "/groups/groups.php?" . $vbulletin->session->vars['sessionurl'] . "g=" . $grps_mygroupsinfo['groupid'] . "\" title=\"" . $grps_mygroupsinfo['title'] . "\"><b>" . fetch_trimmed_title($grps_mygroupsinfo['title'], 15) . "</b></a><br /> " . $grps_mygroupsinfo['image_name'] . " " . $grps_mygroupsinfo['leader'] . " </li> "; } $mygroups .= "</ul>"; //eval('$grps_mygroupsprofilebits .= "' . fetch_template("groups_usercp_groupsbits") . '";'); $grps_mygroupsprofilebits = $mygroups; } Now go edit your memberinfo template and add $grps_mygroupsprofilebits where you want them to appear on the user's public profile page. |
#1754
|
|||
|
|||
Hi,
I'm having problems with permissions and I am using the latest download with the fix. My forums are installed under public_html/forum and this is my config: chdir("../forum"); When I go to http://www.site.com/forum/groups/ I immediately get the permissions error message when i'm logged in as admin or regular user, and I changed permissions for both user groups to access the grps (you do not have permission to access this page. This could be due to one of several reasons Thoughts? Thanks! |
#1755
|
|||
|
|||
Quote:
|
#1756
|
|||
|
|||
GRPS set to active yes.
|
#1757
|
|||
|
|||
Make sure you have 'Is The GRPS directory parallel to your forums directory' set to 'No' since you are running it under the forum directory.
|
#1758
|
|||
|
|||
Quote:
And thanks to the coder of this! |
#1759
|
|||
|
|||
When you hit New Posts, does it bring up the ones from the groups as well?
|
#1760
|
|||
|
|||
Can you move posts from the normal forums to a group?
|
#1761
|
|||
|
|||
Quote:
No |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|