vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - GRPS: Groups Commune 2.0.x (https://vborg.vbsupport.ru/showthread.php?t=127303)

2bad4dad 12-10-2007 08:02 AM

Elenna, I'd be interested in your hack. In exchange I could offer a completey rewritten admincp module to manage most aspects of the groups in your system from one central place ;) Also, I might be able to hack the GPRS code to incorporate your code so that New Posts will show up in GRPS, too - depending on how your hack works, that is.

Elenna 12-10-2007 11:38 AM

It's not really my hack - I just modified the Plugin that came with it to show "New Posts" under the group names in UserCP. I think it was supposed to show the number of new posts, but (for whatever reason) it wasn't doing that.

Here is my modified "GRPS: Group Activity In User CP (15 Newest)" plugin - I made changes near the bottom, where it deals with the New Posts section. You'll need to enter Plugin Manager and paste this over the existing text.

I have tried to get this to display in a VBACMPS page, but with no luck.

Code:

// ###################### extracts my groups groups for main grps page
//require_once("./includes/functions_grps.php");
$grps_ids = explode(' ', trim($vbulletin->userinfo['grps']));
$baselocation = ($vbulletin->options['grps_locationswitch'] == TRUE) ? $vbulletin->options['homeurl'] : $vbulletin->options['bburl'];
if (!empty($vbulletin->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 user ON (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
 ");
 while ($grps_mygroupsinfo = $db->fetch_array($grps_mygroups))
 // foreach($grps_ids AS $grps_key_id => $grps_mygroups)
 {
  if ($grps_mygroupsinfo['leaderid'] == $vbulletin->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;
  }
  if ($grps_mygroupsinfo['dateline'] > $vbulletin->userinfo['lastvisit'])
  {
  $grps_mygroupsinfo['newposts'] = "<span class=\"highlight smallfont\">New Posts</span>";
  }
  else
  {
  $grps_mygroupsinfo['newposts'] = "<span class=\"smallfont\">No New Posts</span>";
  }
  $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'], 20) . "</b></a><br />
<!--    " . $grps_mygroupsinfo['leader'] . " -->
    " . $grps_mygroupsinfo['newposts'] . "
  </li>
  ";
 }
 eval('$grps_mygroupsbits .= "' . fetch_template("groups_usercp_groupsbits") . '";');
}

PS - as you can see, I've commented out the Groups Leader image. If you want that back in, simply uncomment that line.

SLP LS1 12-20-2007 07:48 PM

Any word on GRPS 3.0 or is it getting discontinued because of 3.7 Groups extension?

sabret00the 12-20-2007 08:53 PM

Quote:

Originally Posted by SLP LS1 (Post 1405702)
Any word on GRPS 3.0 or is it getting discontinued because of 3.7 Groups extension?

right now i have no idea. there's a lot of innovations regarding the way that the forums work and i feel that 3.0 can do a lot of work in taking forums forward especially in terms of usability but who wants to continue development on such a large hack which hardly anyone will use given that the alternative is a stock option?

irishblue 12-27-2007 12:20 PM

problem resolved with the new version! thanks!

nike.stars 01-03-2008 02:53 PM

i've been trying this on my local server using freshly installed vbulletin:
- the forum is in www.domain.com/vbulletin/
- the groups is in www.domain.com/vbulletin/groups
- i edited the grps_config.php to "../"
- the instalation is success with "Done" message
- i've already activated the GRPS via admin CP

still i need further advice, i've everything in the install.txt correctly but i have still have some problem:
- after finishing the instalation, is there any changes on the forum home?
- how do i access the groups beside entering www.domain.com/vbulletin/groups ?
- if i access that URL, i have an error that identify me doesn't have permissions to access that page, what permissions is this?

Thanks

Acido 01-05-2008 06:43 PM

Quote:

Originally Posted by sabret00the (Post 1405751)
right now i have no idea. there's a lot of innovations regarding the way that the forums work and i feel that 3.0 can do a lot of work in taking forums forward especially in terms of usability but who wants to continue development on such a large hack which hardly anyone will use given that the alternative is a stock option?

Actually your mod is more useful than the vb 3.7 build in social groups. In 3.7 the users can't create threads on their groups and that is a strong feature to give long life to the users groups. Do you think that vb 3.7 will add that feature?

Aur-Phala.Com 01-07-2008 04:03 PM

I installed this and now my admin panel doesn't work!!

How can i uninstall this without an admin panel!! this is how my admin panel looks:

https://vborg.vbsupport.ru/external/2008/02/37.jpg

SOMEONE HELP! ASAP

Elenna 01-08-2008 02:18 AM

Aur - it doesn't look like the phrases were loaded in correctly, based on the screenshot. the *[]* usually happens when a phrase wasn't loaded, or a file wasn't copied to the correct place.

Is there something else that isn't working in the ACP? It looks normal to me, from the screenshot you gave.

yakuza35 01-08-2008 11:41 PM

hi I have 2 errors pls help me and
screenshots

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/


All times are GMT. The time now is 02:09 PM.

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.02869 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete