Version: 2.0.13, by sabret00the
Developer Last Online: Apr 2010
Category: Major Additions -
Version: 3.6.4
Rating:
Released: 09-22-2006
Last Update: 09-28-2007
Installs: 233
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
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?
Groups Home
Groups Activity List
Newest Groups
Most Popular Groups
Largest Groups
Category List
Group Search by Title
Group Sort by Alphabetical Title, Categories, Member Count
Users can create groups
Admin switch to moderate groups or not
Admin CP access to moderation panel
Groups Page
Posts since last visit notification
Group Info
Group Leader shown with avatar
Category
Type
Groups can be listed as public, private or hidden
Start Date
Member count
Post count
Group Desciption
Shows group title
Shows random image
Shows group information set by group leader
Groups Thread List (Forum)
Status Icon
Title
Threads use postbit as per the forums
Thread Author with avatar and time that the thread was started
Last reply with avatar, username and time that the last reply was posted
Post New Thread Button
Groups Members can create threads
Newest Members
Shows five newest members
Link to view all members
Shows all members of the group
Group Options
Users can join/leave groups
PM Notification for group leaders upon join requests (when moderation enabled).
PM Notification for of acceptance or refusal.
Users can send invites to other users via PM
Groups Thread
Groups Info Box (see above for more info)
Group Description box (see above for more info)
Newest Members List (see above for more info)
List of groups posts using forums postbit
Pagination using native vBulletin pagination
Group Leader/Moderation Options
Open/Close Thread
Stick Thread
Delete Thread
Users have the ability to report posts
Moderators have the ability to view IP and host.
Group Leader Options
Groups Management
WYSIWYG Editor
Reason for editing box
Group Options
Private Posts
Only group leader can make threads
Moderate Members
Show group text edit details
Hide group image on group pages
Hidden Group
This option is only available to admins
Group Members Moderation
Ability to accept or deny new members
Postbit Integration
View Users Groups
User Control Panel (Integration)
List of groups appears in usercp in order of the last post
Administrator Options
vBulletin Options
Turn groups on or off
Groups Limit Per User
Posts Per Page (threads)
Check Forum Activity Posts
Check Forum Activity Time
Number of Random Images
Turn email notification of new groups on/off
Usergroup Options
Can view groups
Can create groups
Can join groups
Can post messages in groups
Can edit messages in groups
Can delete messages posted in groups
Numbers of groups usergroup can join limited
Can moderate groups
See above for more info
Can view IP Addresses
Category Editor
Edit
Edit cat id (please not this can ef up your show)
Edit cat title
Edit cat description
Add
New Cat Title And Description
Groups Editor
Search for group by id
Edit
Title
Desciption
Categoryid
Group leader id
Private Posts
Moderate Members
Hidden group
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
Groups v2.0.0 RC1b.zip: fix regarding incorrect table prefixes in index.php and editpost.php
Groups v2.0.0 RC2.zip: fix regarding incorrect table prefixes in functions_grps.php and class_grps.php. also fix regarding installation instructions.
Groups v2.0.0 RC3.zip: fix regarding inability to get to create groups page. updated simplified instructions, sadly still not cool html ones and also added ability to delete groups, delete categories and of course the menu options to get to these.
Groups v2.0.0 RC3c.zip: fix regarding edit being stated as 70's on group stages, requires re-installtion of the plugin only.
Groups v2.0.0 RC4.zip: various bug fixes and new general setting, please reupload all files and then reinstall the product.
Groups v2.0.0 RC5.zip: bug fixes regarding fixing links to forums being broken and forcing redirects for create group outcomes.
Groups v2.0.0 RC6.zip: various bug fixes including table prefixes in admincp, invitations system now features in-line erroneous username fall-back and clean up regarding broken images in viewthread.php
Groups v2.0.0 RC7.zip: bug fixes including missing phrases and missing 'noavatar.gif for group leader on groups info.
Groups v2.0.0 RC8.zip: various bug fixes including missing phrases, smilies not working. new function to turn of new group moderation. form now working on print_no_permission page (thanks Adrian) and something else i forgot.
Groups v2.0.0 RC9.zip: fixes two spelling mistakes, moves viewthread.php string_replacements to admincp and simplifies the installer experience. (yeah i thought there'd be more to it too).
Groups v2.0.0 RC9b.zip: re-fixes two spelling mistakes, fixes a viewthread.php string_replacement via the admincp and turns the default random image count down to that of which is provided.
Groups v2.0.0 RC10.zip: optimises some of the code, cuts down on queries in exchange for additional joins and now forces compatibility in groups/viewthread.php with vBulletin options. also adds new option in admincp in order to make usercp listing work better out of the box.
Groups v2.0.0 RC11.zip: fixes a problem with avatars not displaying correctly in thread listing and also optimises the code in membership.php
Groups v2.0.0.zip: adds and array_merge to the code and smilie popup fixed. now features hooks for plug-in 'easability'. uCS integration moved to external plugin too.
Groups v2.0.1.zip: removes one hook, fixes problem with membership.php, fixes problem editgroup.php not remembering options and fixes avatar problem.
Groups v2.0.2.zip: various bug fixes (like missing pagenavs, more elegant removal of reputation button and infraction button and php notices), one or two new features (like intuitive page titles) and now fully phrased.
Groups v2.0.3.zip: bug fix regarding now being able to select categories. includes a new feature which is basically pagination for the thread listings.
Groups v2.0.4.zip: bug fix regarding not being able to moderate group memberships.
Groups v2.0.5.zip: bug fix regarding those introduced via 2.0.4, new features such as double post prevention disable, admins can override privacy settings, usergroup permission text more intuitive and end-user usability increased with modification to threadbit on groups.php. group leaders can now kick users from there groups.
Groups v2.0.6.zip: bug fix including report, missing edit button and other misc small bugs, new features such as disable hidden groups, allow mods to see private groups, and resign from group handing off to another user.
Groups v2.0.7.zip: bug fix including fixing post counts, thread goto's and fatal php errors.
Groups v2.0.8.zip: bug fix regarding inability to delete posts, problem with editing posts and other misc errors.
Groups v2.0.9.zip: various bug fixes including wywiwyg error, admin cp error and redirect/goto errors.
Groups v2.0.9b.zip: fixes problem with upgrade4.php
Groups v2.0.10.zip: various bug fixes including acknowledging renamed modcp and admincp dir's also adds option regarding removing of posts at group exit/kick.
Groups v2.0.11.zip: various bug fixes including security/privacy fixes.
Groups v2.0.12.zip: permission bug fixed.
Groups v2.0.13.zip: various bug fixes including ability to ignore members in groups and newreply bug.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Every single thread has this problem. Maybe its another template issue?
viewthread.php
Code:
<?php
/*****************************\
* Name: GRPS: Groups Commune
* Written By: Paul "sabret00the" Walker-Daley
* Concept: 30 October 2003
* Spawned: 26 March 2005
* Copyright Since: 23 April 2004
* Gold: 19 October 2006
* Modified: 07 November 2006
* Contact: sabe@ebslive.com
\*****************************/
// ################ SET SCRIPT LOCATION ENVIRONMENT ######################
require_once('./includes/config_grps.php');
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'groupsdiscussion');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
$globaltemplates = array(
'GROUPS',
'groups_display',
'groups_display_main',
'groups_display_member',
'groups_display_memberbit',
'groups_display_post',
'groups_display_viewthread',
'groups_navbar',
'groups_viewthread_postbit',
'groups_viewthread_quickreply',
'bbcode_code',
'bbcode_html',
'bbcode_php',
'bbcode_quote',
'editor_clientscript',
'editor_jsoptions_font',
'editor_jsoptions_size',
'im_aim',
'im_icq',
'im_msn',
'im_yahoo',
'navbar',
'postbit',
'postbit_deleted',
'postbit_legacy',
'postbit_ip',
'postbit_onlinestatus',
'postbit_reputation',
'postbit_wrapper',
'showthread_quickreply',
);
// get special phrase groups
$phrasegroups = array('grps', 'postbit', 'posting', 'showthread');
// ######################### REQUIRE BACK-END ############################
require_once("./global.php");
require_once(DIR . '/includes/functions_grps.php');
require_once(DIR . '/includes/functions_bigthree.php');
require_once(DIR . '/includes/class_postbit.php');
require_once(DIR . '/includes/class_grps.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
($hook = vBulletinHook::fetch_hook('grps_global_start')) ? eval($hook) : false;
$navbits = array();
$navbits[''] = $vbphrase['grps_groups'];
$navbits = construct_navbits($navbits);
// pre-cache templates used by all actions
$globaltemplates = array();
// globalize variables
$vbulletin->input->clean_array_gpc('r', array(
'page' => TYPE_INT,
'perpage' => TYPE_INT,
'pagenumber' => TYPE_INT,
'do' => TYPE_STR,
'view' => TYPE_STR,
'g' => TYPE_INT,
't' => TYPE_INT,
'goto' => TYPE_STR,
));
if (!$vbulletin->GPC['g'])
{ // make sure theirs a groupid
eval(standard_error(fetch_error('invalidid', $vbphrase['grps_group'], $vbulletin->options['contactuslink'])));
}
if (!intval($vbulletin->GPC['g']))
{ // make sure it's a number
eval(standard_error(fetch_error('invalidid', $vbphrase['grps_group'], $vbulletin->options['contactuslink'])));
}
if (!$vbulletin->GPC['t'])
{ // make sure theirs a groupid
eval(standard_error(fetch_error('invalidid', $vbphrase['grps_thread'], $vbulletin->options['contactuslink'])));
}
if (!intval($vbulletin->GPC['t']))
{ // make sure it's a number
eval(standard_error(fetch_error('invalidid', $vbphrase['grps_thread'], $vbulletin->options['contactuslink'])));
}
$threadid = intval($vbulletin->GPC['t']);
$groupid = intval($vbulletin->GPC['g']);
$grps_ids = explode(' ', trim($vbulletin->userinfo['grps']));
$show['grps_wordjoin'] = (in_array($groupid, $grps_ids)) ? TRUE : FALSE;
$show['grps_is_member'] = $show['grps_wordjoin'];
$pagenav = FALSE;
// ##############################################################################
// ####################### HANDLE HEADER() CALLS ################################
// ##############################################################################
// let's define the page number
if ($vbulletin->GPC['goto'])
{
$grps_numberofposts = $db->query_first("
SELECT COUNT(*) AS posttotal
FROM grps_post
WHERE visible != 0 AND groupid = $groupid AND threadid = " . intval($vbulletin->GPC['t']) . "
");
$whatpage = floor($grps_numberofposts['posttotal'] / $vbulletin->options['grpspostsperpage']);
if ($whatpage > 1)
{
$gotopage = "&page=" . $whatpage;
}
else
{
$gotopage = FALSE;
}
}
switch($vbulletin->GPC['goto'])
{
case 'lastpost':
$getlastpost = $db->query_first("
SELECT MAX(postid) AS postid
FROM grps_post AS post
WHERE groupid = " . intval($groupid) . " AND threadid = " . intval($vbulletin->GPC['t']) . "
LIMIT 1
");
if ($getlastpost['postid'])
{
exec_header_redirect('viewthread.php?' . $vbulletin->session->vars['sessionurl'] . "g=" . $groupid . '&t=' . $vbulletin->GPC['t'] . $gotopage . '#post' . $getlastpost['postid']);
}
break;
case 'newpost':
$newpost = $db->query_first("
SELECT MIN(postid) AS postid
FROM grps_post
WHERE groupid = $groupid AND threadid = " . intval($vbulletin->GPC['t']) . " AND dateline > " . $vbulletin->userinfo['lastvisit'] . "
LIMIT 1
");
if ($newpost['postid'])
{
exec_header_redirect('viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 'g=' . $groupid . '&t=' . $vbulletin->GPC['t'] . $gotopage . '#post' . $newpost['postid']);
}
else
{
exec_header_redirect('viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 'g=' . $groupid . '&t=' . $vbulletin->GPC['t'] . '&goto=lastpost');
}
break;
case 'mylastreply':
$getmylastreply = $db->query_first("
SELECT MAX(postid) AS postid
FROM grps_post AS post
WHERE groupid = " . intval($groupid) . " AND threadid = " . intval($vbulletin->GPC['t']) . " AND userid = " . intval($vbulletin->userinfo['userid']) . "
LIMIT 1
");
if ($getmylastreply['postid'])
{
exec_header_redirect('viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 'g=' . $groupid . '&t=' . $vbulletin->GPC['t'] . $gotopage . '#post' . $getmylastreply['postid']);
}
else
{
exec_header_redirect('viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 'g=' . $groupid . '&t=' . $vbulletin->GPC['t'] . '&goto=lastpost');
}
break;
}
// end switch($goto)
// ###################### extracts info for grps groups page
// ###################### query for group info
$grps_showgroup = $db->query_first("
SELECT grps.groupid, grps.title, grps.description, grps.approved, grps.create_date, grps.leaderid, user.username AS leadername, grps_categories.catid, grps_categories.title AS catname, grps_setting.image_name, grps_setting.private_posts, grps_setting.moderate_members, grps_setting.hidden_group, grps_setting.hide_image, grps_setting.edit_details, grps_setting.leaderonly_threads, grps_grouptext.pagetext AS spew, grps_grouptext.edit_reason, grps_grouptext.edit_dateline, grps_grouptext.edit_username
FROM grps_post
LEFT JOIN grps_setting ON (grps_setting.groupid = grps_post.groupid)
LEFT JOIN grps ON (grps.groupid = grps_setting.groupid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = grps.leaderid)
LEFT JOIN grps_grouptext ON (grps_grouptext.groupid = grps.groupid)
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
WHERE grps.groupid = $groupid
GROUP BY grps.groupid
ORDER BY grps.groupid DESC
");
$totalposts = $db->query_first("SELECT COUNT(*) AS totalposts FROM grps_post WHERE groupid = " . intval($groupid) . " AND threadid = " . intval($vbulletin->GPC['t']));
$grps_showgroup = array_merge($grps_showgroup, $totalposts);
$grps_pagetitle = construct_phrase($vbphrase['grps_x_discussion'], $grps_showgroup['title']);
$grps_html_title = construct_phrase($vbphrase['grps_x_discussion'], $grps_showgroup['title']) . ' - ' . $grps_showgroup['catname'] . ' - ';
$grps_showgroup = grps_getgroupsettings($grps_showgroup);
$show['leaderoptions'] = ($grps_showgroup['leaderid'] == $vbulletin->userinfo['userid']) ? TRUE : FALSE;
// ###################### query for newest members
$grps_newestmembers = grps_getmembers($groupid, 0, 5);
$grps_memberbits = grps_getmemberbits($grps_newestmembers, 5);
$grps_members = '';
$page = FALSE;
eval("\$grps_members .= \"".fetch_template("groups_display_member")."\";");
// ###################### no permission if not a member
$privacy_override = (!empty($vbulletin->options['grps_admins_see_private_content']) AND ($vbulletin->userinfo['permissions']['grpspermissions'] & $vbulletin->bf_ugp_grpspermissions['groupsmoderator'])) ? TRUE : FALSE;
if($grps_showgroup['private_posts'] AND !in_array($grps_showgroup['groupid'], $grps_ids) AND !$privacy_override)
{
print_no_permission();
}
// ###################### pagenav
$page = ($page < 1) ? 1 : intval($page);
$totalposts = $grps_showgroup['totalposts'];
$currentlocation = "viewthread.php?" . $vbulletin->session->vars['sessionurl'] . "g=" . $groupid;
$perpage = intval($vbulletin->options['grpspostsperpage']); //lower limit
$pagenumber = $page;
$upperlimit = ($page * $perpage);
$final_calculations = ($upperlimit - $perpage);
// ###################### query for latest posts
$grps_thread = $db->query_first("
SELECT grps_thread.threadid, grps_thread.groupid, grps_thread.userid, grps_thread.username, grps_thread.title, grps_thread.dateline, grps_thread.iconid, grps_thread.lastposterid, user.username AS lastposterusername, grps_thread.lastpostdateline, grps_thread.replies, grps_thread.firstpostid, grps_thread.closed, grps_thread.stuck
FROM grps_thread
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = grps_thread.lastposterid)
WHERE grps_thread.threadid = $threadid
LIMIT 1
");
$grps_pagetitle = stripslashes($grps_thread['title']);
$grps_pageextras = ($grps_thread['stuck']) ? "<div style=\"text-align: center; font-weight: bold;\">" . $vbphrase['grps_pinned_thread'] . " <img class=\"inlineimg\" src=\"" . $stylevar['imgdir_misc'] . "/sticky.gif\" alt=\"" . $vbphrase['sticky_thread'] . "\" /></div>" : FALSE;
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalposts = $db->query_first("SELECT COUNT(postid) AS total FROM grps_post WHERE threadid = $threadid");
$totalposts = $totalposts['total'];
$currentlocation = "viewthread.php?" . $vbulletin->session->vars['sessionurl'] . "g=" . $groupid . "&t=" . $threadid;
$perpage = 25;
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);
$grps_html_title = stripslashes($grps_thread['title']) . (($vbulletin->GPC['page'] < 1) ? '' : ' (' . $page . ')') . ' - ' . $grps_html_title;
// ###################### query for posts
$posts = $db->query_read("
SELECT grps_post.postid, grps_post.groupid, grps_post.username AS postusername, grps_post.ipaddress AS ip, grps_post.title AS posttitle, grps_post.dateline, grps_post.pagetext, grps_post.iconid, i.title AS icontitle, i.iconpath, grps_post.visible, grps_post.allowsmilie, grps_post.showsignature, grps_post.edit_username, grps_post.edit_userid, grps_post.edit_reason, grps_post.edit_dateline, grps_post.delete_username, grps_post.delete_userid, grps_post.delete_reason, grps.leaderid, u.*, uf.*, utf.*, a.avatarid, a.avatarpath, NOT ISNULL(ca.userid) AS hascustomavatar, ca.dateline AS avatardateline, ca.width AS avwidth, ca.height AS avheight
FROM grps_post
LEFT JOIN grps ON (grps.groupid = grps_post.groupid)
LEFT JOIN " . TABLE_PREFIX . "user u ON (u.userid = grps_post.userid)
LEFT JOIN " . TABLE_PREFIX . "userfield uf ON (uf.userid = u.userid)
LEFT JOIN " . TABLE_PREFIX . "usertextfield utf ON (utf.userid = u.userid)
LEFT JOIN " . TABLE_PREFIX . "icon i ON (i.iconid = grps_post.iconid) > 0
LEFT JOIN " . TABLE_PREFIX . "avatar a ON (a.avatarid = u.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar ca ON (ca.userid = u.userid)
WHERE grps_post.groupid = $groupid and grps_post.threadid = $threadid
ORDER BY grps_post.dateline ASC
LIMIT $query_lowerlimit, $perpage
");
$grps_showgroup['allowposting'] = ($vbulletin->userinfo['userid'] AND in_array($grps_showgroup['groupid'], $grps_ids) AND !$grps_thread['closed']) ? TRUE : FALSE;
$grps_thread['open'] = ($vbulletin->userinfo['userid'] AND in_array($grps_showgroup['groupid'], $grps_ids) AND !$grps_thread['closed']) ? TRUE : FALSE;
$postbits = '';
$show['spacer'] = FALSE;
$show['warning'] = FALSE;
//$vbulletin->options['legacypostbit'] = (empty($vbulletin->options['grps_legacypostbit'])) ? 0 : 1;
$ignore = explode(' ', $vbulletin->userinfo['ignorelist']);
$postbit = '';
$postbit_factory =& new vB_Postbit_Factory();
$postbit_factory->registry =& $vbulletin;
$postbit_factory->forum =& $grps_showgroup;
$postbit_factory->thread =& $grps_thread;
$postbit_factory->cache = array();
$postbit_factory->bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$cell = 0;
while ($post = $db->fetch_array($posts))
{
if ($tachyuser = in_coventry($post['userid']))
{
$fetchtype = 'post_global_ignore';
}
else if (isset($ignore[$post['userid']]))
{
$fetchtype = 'post_ignore';
}
else if ($post['visible'] == 2)# OR ($thread['visible'] == 2 AND $postcount == 1))
{
$fetchtype = 'post_deleted';
}
else
{
$fetchtype = 'post';
}
$postbit_obj =& $postbit_factory->fetch_postbit($fetchtype);
$postbit .= $postbit_obj->construct_postbit($post);
$cell++;
} //got all that info
// let's rewrite the postbit links and make the images work
$vbulletin->options['grps_viewthreadfind'] = str_replace(
array(
'$stylevar[\'imgdir_button\']',
'$vbulletin->options[\'bburl\']',
'$vbulletin->options[\'homeurl\']',
'{\n\n}'
),
array(
$stylevar['imgdir_button'],
$vbulletin->options['bburl'],
$vbulletin->options['homeurl'],
'' . "\n\n" . ''
),
$vbulletin->options['grps_viewthreadfind']);
$vbulletin->options['grps_viewthreadreplace'] = str_replace(
array(
'$stylevar[\'imgdir_button\']',
'$vbulletin->options[\'bburl\']',
'$vbulletin->options[\'homeurl\']',
'{\n\n}'
),
array(
$stylevar['imgdir_button'],
$vbulletin->options['bburl'],
$vbulletin->options['homeurl'],
'' . "\n\n" . ''
),
$vbulletin->options['grps_viewthreadreplace']);
$viewthread = array(
'find' => explode(', ', $vbulletin->options['grps_viewthreadfind']),
'replace' => explode(', ', $vbulletin->options['grps_viewthreadreplace'])
);
$postbit = str_replace($viewthread['find'], $viewthread['replace'], $postbit);
// *********************************************************************************
$show['quickreply'] = ($vbulletin->userinfo['userid'] AND in_array($grps_showgroup['groupid'], $grps_ids) AND !$grps_thread['closed'] AND $vbulletin->options['quickreply']) ? TRUE : FALSE;
// *********************************************************************************
// build quick reply if appropriate
if ($show['quickreply'])
{
require_once(DIR . '/includes/functions_editor.php');
$forum = array();
$show['wysiwyg'] = ($forum['allowbbcode'] = TRUE) ? is_wysiwyg_compatible() : 0;
$istyles_js = construct_editor_styles_js();
// set show signature hidden field
$showsig = ($vbulletin->userinfo['signature']) ? 1 : 0;
$vbulletin->options['quickreply'] = 1;
$threadedmode = FALSE;
$qrpostid = 'who cares';
$effective_lastpost = FALSE;
$show['qr_require_click'] = 0;
$show['threadedmode'] = 0;
// temporarily?
$threadedmode = 0;
$show['allow_ajax_qr'] = 0;
// end temp
$editorid = construct_edit_toolbar('', 0, $foruminfo['forumid'], ($foruminfo['allowsmilies'] ? 1 : 0), 1, false, 'qr');
$messagearea = "
<script type=\"text/javascript\">
<!--
var threaded_mode = $threadedmode;
var require_click = $show[qr_require_click];
var is_last_page = $show[allow_ajax_qr]; // leave for people with cached JS files
var allow_ajax_qr = $show[allow_ajax_qr];
var ajax_last_post = " . intval($effective_lastpost) . ";
// -->
</script>
$messagearea
";
if (is_browser('mozilla') AND $show['wysiwyg'] == 2)
{
// Mozilla WYSIWYG can't have the QR collapse button,
// so remove that and force QR to be expanded
$show['quickreply_collapse'] = false;
unset(
$vbcollapse["collapseobj_quickreply"],
$vbcollapse["collapseimg_quickreply"],
$vbcollapse["collapsecel_quickreply"]
);
}
else
{
$show['quickreply_collapse'] = true;
}
}
else if ($show['ajax_js'])
{
require_once(DIR . '/includes/functions_editor.php');
$vBeditJs = construct_editor_js_arrays();
eval('$vBeditTemplate[\'clientscript\'] = "' . fetch_template('editor_clientscript') . '";');
}
$show['quickedit'] = ($vbulletin->options['quickedit'] AND !$show['threadedmode']);
$vBeditTemplate['clientscript'] = str_replace('="clientscript', '="' . $vbulletin->options['bburl'] . '/clientscript', $vBeditTemplate['clientscript']);
// ###################### query for number of new posts
$grps_newpoststext = grps_newgroupposts($groupid);
$grps_moderation = display_mod_options($grps_thread, $grps_showgroup);
eval("\$grps_mainspace = \"".fetch_template("groups_display_viewthread")."\";");
eval("\$grps_main = \"".fetch_template("groups_display_main")."\";");
$pagenav = construct_page_nav($pagenumber, $perpage, $totalposts, 'viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 'g=' . $groupid . '&t=' . $threadid, '' . (!empty($vbulletin->GPC['perpage']) ? '&pp=' . $perpage : '') . '');
// draw nav bar
$navbits = array();
$navbits['browse.php?' . $vbulletin->session->vars['sessionurl'] . 'c=' . $grps_showgroup['catid']] = $grps_showgroup['catname'];
$navbits['groups.php?' . $vbulletin->session->vars['sessionurl'] . 'g=' . $grps_showgroup['groupid']] = $grps_showgroup['title'];
$navbits[''] = stripslashes($grps_thread['title']);
$navbits = construct_navbits($navbits);
//handles the rest of the page and layout.
eval('$grps_navbar = "' . fetch_template('groups_navbar') . '";');
eval('$headinclude = "' . fetch_template('headinclude') . '";');
$headinclude = grps_rewrite_links($headinclude);
eval('$navbar = "' . fetch_template('navbar') . '";');
$navbar = grps_rewrite_links($navbar);
eval('$footer = "' . fetch_template('footer') . '";');
$footer = grps_rewrite_links($footer);
($hook = vBulletinHook::fetch_hook('grps_global_complete')) ? eval($hook) : false;
$final_template= 'groups_display';
eval("print_output(\"".fetch_template($final_template)."\");");
?>
PMing you the source as it has links to my board in it.
ok, can you do me a favour and just go to your postbit template, and then click save and reload then recheck a thread and let me know is the problem still exists.
Also just found out that a member who joins a group and then gets moved to a usergroup WITHOUT group permissions can still see the group and post to it. Seems like a future bug fix, unless it's just me again.