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)

sabret00the 06-27-2007 08:31 PM

Quote:

Originally Posted by bada_bing (Post 1277887)
How do I upgrade to the new version?

replace the files (functions_grps.php, viewthread.php, newreply.php and newthread.php) and reupload the .xml file as i've changed the viewthread template.

Endurer 06-28-2007 12:34 AM

Awesome.. will be upgrading tonight. Regarding the img problem, can you please upload the file again? :)

Thanks

sabret00the 06-28-2007 11:30 AM

Quote:

Originally Posted by Endurer (Post 1278118)
Awesome.. will be upgrading tonight. Regarding the img problem, can you please upload the file again? :)

Thanks

i've put the change in with 2.0.12, so you'll have it if you download.

bada_bing 06-28-2007 01:53 PM

This happens everytime I upgrade this.. Now that I upgraded my avatars are not showing up and when I look at where its pointing to its going
here
http://www.myforum.com/forums/images/misc/noavatar.gif

instead of here
http://www.myforum.com/forums/images...s/noavatar.gif


How do I dix this? screenshot attached

bada_bing 06-28-2007 02:11 PM

I also noticed that the post icons are not showing either. All this was working prior to the upgrade. I have also noticed that as an administrator I can no longer reply to a thread, tells me I dont have permissions when I do??? Help Please

I also tested trying to reply to my own thread and tells me I dont have permissions.. ERRRRRRRRRRRR

sabret00the 06-28-2007 04:58 PM

Quote:

Originally Posted by bada_bing (Post 1278445)
This happens everytime I upgrade this.. Now that I upgraded my avatars are not showing up and when I look at where its pointing to its going
here
http://www.myforum.com/forums/images/misc/noavatar.gif

instead of here
http://www.myforum.com/forums/images...s/noavatar.gif


How do I dix this? screenshot attached

everytime you upgrade? does that mean you get it working in between upgrades? when was the last time it was working and what was edited to get it working?

bada_bing 06-28-2007 05:47 PM

Quote:

Originally Posted by sabret00the (Post 1278564)
everytime you upgrade? does that mean you get it working in between upgrades? when was the last time it was working and what was edited to get it working?

Yes I get it working between upgrades, Not sure what was changes to get the icons path working you actually helped me on that one. But for the permissions which are broke now this has never happened until this last upgrade...

bada_bing 07-01-2007 02:36 AM

sabret00the.

Come on man any suggestions? Right now my groups are is broken since your last upgrade and my members dont have rights to post reply or start new threads even though they do, need a fix man

sabret00the 07-01-2007 06:15 AM

Sorry baba_bing, i'm not ignoring you, it's just time and access has been limited. I hoped that someone else would confirm your posting problem.

Basically what you're saying in regards to your avatar problem is that it was all working in a modified version and you overwrote the modified files and can't get the stock version to replicate the custom fixes?

If the above be the case, would you happen to have any of the custom modifications logged at all?

bada_bing 07-02-2007 01:51 AM

Quote:

Originally Posted by sabret00the (Post 1280378)
Sorry baba_bing, i'm not ignoring you, it's just time and access has been limited. I hoped that someone else would confirm your posting problem.

Basically what you're saying in regards to your avatar problem is that it was all working in a modified version and you overwrote the modified files and can't get the stock version to replicate the custom fixes?

If the above be the case, would you happen to have any of the custom modifications logged at all?

Im not sure what you mean by custom modification? The avatar is suppose to show up and its not, its pointing to the wrong area. It was working before the upgrade. You can see the attachments a couple post up showing my issue. I also have permission issues also please read ALL my replies. I am asking for your help please or I am forced to remove this hack from my community as upgrades are always a challange with this hack.

TeknoSounds 07-04-2007 05:15 AM

Just upgraded to the newest version. Not having any permissions errors, but I'm still receiving "Group not found" when attempting to edit any group. Any ideas?

djilou 07-05-2007 09:39 AM

Quote:

Originally Posted by Benj (Post 1262366)
could i suggest sub categories for the new version :D

cheers

Yes I would love to see this feature added :up:

sabret00the 07-05-2007 09:51 AM

Quote:

Originally Posted by TeknoSounds (Post 1282444)
Just upgraded to the newest version. Not having any permissions errors, but I'm still receiving "Group not found" when attempting to edit any group. Any ideas?

Are you entering the groupid*?


* numerical value.

sabret00the 07-05-2007 09:53 AM

Quote:

Originally Posted by bada_bing (Post 1280962)
Im not sure what you mean by custom modification? The avatar is suppose to show up and its not, its pointing to the wrong area. It was working before the upgrade. You can see the attachments a couple post up showing my issue. I also have permission issues also please read ALL my replies. I am asking for your help please or I am forced to remove this hack from my community as upgrades are always a challange with this hack.

Ok, while i understand your frustration, you're in the minority in regards to these problems which makes it harder to help you because rewiting logic majorly on a system in which i'm working diligently to replace is a bit much. but alas, what i'll try to do is help you to help yourself; let's go through this again. are you avatars stored in the database or the file system? above or below root?

djilou 07-05-2007 12:50 PM

the number of groups on the categories listing page is wrong (http://www.site.com/groups/browse.php?c=1).
It shows something like 1 2 3 4 5 >, when in actuality there is one page. This is happening on all groups.
this is happening when you have more than 2 pages on some categories

TeknoSounds 07-05-2007 09:04 PM

Quote:

Originally Posted by sabret00the (Post 1283327)
Are you entering the groupid*?


* numerical value.


Yup yup, entered several different ids. Went and got the ids from the UserGroup page in the admin cp. where its got like (id:XX)

sabret00the 07-05-2007 09:12 PM

Quote:

Originally Posted by djilou (Post 1283452)
the number of groups on the categories listing page is wrong (http://www.site.com/groups/browse.php?c=1).
It shows something like 1 2 3 4 5 >, when in actuality there is one page. This is happening on all groups.
this is happening when you have more than 2 pages on some categories

i'll look into it.

usergroup page? what would it be doing on there.

grab the id from the url www.youriste.com/groups/groups.php?g=XX

bada_bing 07-06-2007 01:41 AM

sabret00the

Did you get my PM????

Rickeo 07-06-2007 11:56 PM

<font color="DarkGreen">Thank you not sure how this will go down with my forum and it's members but we will see.

~Rick~
</font>

Rickeo 07-07-2007 03:36 AM

One issue here in my groups section it shows the defualt group photo that say there is no group photo how do I go about adding a group photo for a group I dont see the option ANYWEHRE.

If there isn't an option how do I remove that annoying photo coming up on the group discrption saying no group photo.

Thanks

~Rick~

quiklink 07-07-2007 04:15 AM

Found a bug when trying to view a member's groups from the postbit that throws an SQL error (only happens to people that are in groups). Here is the problem and the fix. In viewgroups.php find:

Code:

                SELECT grps.groupid, grps.title, grps.description, grps.approved, grps.leaderid, grps_setting.image_name
                FROM grps
                LEFT JOIN " . TABLE_PREFIX . "user ON (user.userid = grps.leaderid)
                LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
                WHERE grps.approved = '1' AND grps.groupid IN($grps_ids_imploded)
                ORDER BY grps.title ASC

And change it to:

Code:

                SELECT grps.groupid, grps.title, grps.description, grps.approved, grps.leaderid, grps_setting.image_name
                FROM grps
                LEFT JOIN " . TABLE_PREFIX . "user ON (" . TABLE_PREFIX . "user.userid = grps.leaderid)
                LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
                WHERE grps.approved = '1' AND grps.groupid IN($grps_ids_imploded)
                ORDER BY grps.title ASC


quiklink 07-07-2007 04:24 AM

Fantastic mod by the way. Haven't opened ours up yet, but will be doing so very soon.

sabret00the 07-08-2007 07:12 PM

Quote:

Originally Posted by bada_bing (Post 1284010)
sabret00the

Did you get my PM????

yes, i only had time to open it today though.

sabret00the 07-08-2007 07:13 PM

Quote:

Originally Posted by Rickeo (Post 1284910)
One issue here in my groups section it shows the defualt group photo that say there is no group photo how do I go about adding a group photo for a group I dont see the option ANYWEHRE.

If there isn't an option how do I remove that annoying photo coming up on the group discrption saying no group photo.

Thanks

~Rick~

it's been a long day after getting in from last night and not having a real sleep so bare with me, but i don't get what you mean. you'd like custom images per group?

sabret00the 07-08-2007 08:56 PM

Because i'm checking out a few things, here's a file that will go into 2.0.13 it fixes an issue in editpost.php

just replace your existing one with that.

also here's a fixed viewgroups.php

Rickeo 07-08-2007 09:42 PM

Got an issue no1 can reply to any of admins threads permissions are set right just wont post.

quiklink 07-08-2007 09:44 PM

Just as a note there is a similar issue in the feed.php I believe as there was in the viewgroups.php. I've also got groups showing in the user profiles as well now if you'd like the code.

djilou 07-09-2007 03:42 PM

Quote:

Originally Posted by sabret00the (Post 1286145)
Because i'm checking out a few things, here's a file that will go into 2.0.13 it fixes an issue in editpost.php

just replace your existing one with that.

also here's a fixed viewgroups.php

still have pagination problem with the new viewgroups.php

Quote:

Originally Posted by djilou (Post 1283452)
the number of groups on the categories listing page is wrong (http://www.site.com/groups/browse.php?c=1).
It shows something like 1 2 3 4 5 >, when in actuality there is one page. This is happening on all groups.
this is happening when you have more than 2 pages on some categories




Quote:

Originally Posted by quiklink (Post 1286195)
Just as a note there is a similar issue in the feed.php I believe as there was in the viewgroups.php. I've also got groups showing in the user profiles as well now if you'd like the code.

Would you share your code with us please?

quiklink 07-09-2007 04:11 PM

Quote:

Originally Posted by djilou (Post 1286800)
Would you share your code with us please?

Sure, but I need to ferret out a bug first that's causing problems for unregistered members to view the profile. Hopefully I can post it later today.

djilou 07-09-2007 09:19 PM

thank you

djilou 07-11-2007 11:39 PM

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'");
with
Code:

$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1' AND catid = $c");

quiklink 07-12-2007 06:30 AM

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;


}

And of course make the plugin active.

Now go edit your memberinfo template and add $grps_mygroupsprofilebits where you want them to appear on the user's public profile page.

nutnut 07-14-2007 08:20 AM

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!

quiklink 07-14-2007 08:24 AM

Quote:

Originally Posted by nutnut (Post 1290653)
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!

Make sure you have Groups turned on in your Admin CP or you will get that permission error no matter what other permissions you have set.

nutnut 07-14-2007 08:32 AM

GRPS set to active yes.

quiklink 07-14-2007 08:34 AM

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.

nutnut 07-14-2007 08:42 AM

Quote:

Originally Posted by quiklink (Post 1290658)
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.

Oh, geez, that was it. Dyslexic moment I guess I read it wrong the first time. Thanks!

And thanks to the coder of this!

Mum 07-15-2007 12:52 AM

When you hit New Posts, does it bring up the ones from the groups as well?

Mum 07-15-2007 12:55 AM

Can you move posts from the normal forums to a group?

quiklink 07-15-2007 02:45 AM

Quote:

Originally Posted by Mum (Post 1291419)
When you hit New Posts, does it bring up the ones from the groups as well?

No

Quote:

Originally Posted by Mum (Post 1291425)
Can you move posts from the normal forums to a group?

No


All times are GMT. The time now is 03:27 AM.

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.03203 seconds
  • Memory Usage 1,859KB
  • 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
  • (5)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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