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 05-17-2007 08:30 PM

Quote:

Originally Posted by mschuyler (Post 1249704)
the PHP error deals with the groups.php page when you call a specific group. i.e. "groups.php?g=1"

tell me if this fixes the problem.

dpatel304 05-17-2007 10:15 PM

Sorry to bug you again, but I had another question:

I added a 'groups' link to the nav bar using this code:
Code:

<td class="vbmenu_control"><a href="http://www.afkay.com/forums/groups/" accesskey="5">Groups</a></td>
It works just fine. Something weird happens though. I also have Zoints installed, which shows up as a link saying "AFKAY Profile" to the left of it. For some reason, when I go to my groups home page, that "AFKAY Profile" link changes to "AFKAY Groups Profile". Everything seems to be functioning fine, it's just a small 'problem'.

Here is what I am talking about (the bottom picture is what it should look like. The top picture is what it changes to on the groups home page):
https://vborg.vbsupport.ru/

It still functions just fine, so no big deal if no one can help me. Just being a bit nit picky right now.

GREAT MOD by the way, my members and I love it. Keep up the good work.

mschuyler 05-18-2007 12:42 AM

Quote:

Originally Posted by sabret00the (Post 1249714)
tell me if this fixes the problem.

that worked great! thanks a lot for the help, i appreciate it!

sabret00the 05-19-2007 09:20 AM

Quote:

Originally Posted by dpatel304 (Post 1249789)
Sorry to bug you again, but I had another question:

I added a 'groups' link to the nav bar using this code:
Code:

<td class="vbmenu_control"><a href="http://www.afkay.com/forums/groups/" accesskey="5">Groups</a></td>
It works just fine. Something weird happens though. I also have Zoints installed, which shows up as a link saying "AFKAY Profile" to the left of it. For some reason, when I go to my groups home page, that "AFKAY Profile" link changes to "AFKAY Groups Profile". Everything seems to be functioning fine, it's just a small 'problem'.

Here is what I am talking about (the bottom picture is what it should look like. The top picture is what it changes to on the groups home page):
http://img522.imageshack.us/img522/5859/temphw2.png

It still functions just fine, so no big deal if no one can help me. Just being a bit nit picky right now.

GREAT MOD by the way, my members and I love it. Keep up the good work.

that is the result of a string replacement made for the breadcrumb. i'll find a more suitable method for it in 3.0.

sabret00the 05-19-2007 09:21 AM

I'm just waiting on feedback from Endurer before i release 2.0.11.

daloosaa 05-20-2007 01:21 AM

Hi,

first: sorry for my bad english, i hope you'll understand...

I want to build an community and GRPS was(?) is what im looking for. but i can't delete postings. when i delete one it's always on teh threadlist.

I have created an screencapture (flash format), so you can take a look on it: removed

I've looked for an solution to fix this in this thread but i found nothing useful. Im using GRPS 2.0.10

I hope anyone can help me to fix this. The community plattform should be finished next week. ;)

Greetings,
Florian

EDIT: I have noticed that the newsfeed has no contents after "deleting" the posts.

vgevolution 05-20-2007 05:06 AM

Quote:

Originally Posted by Merriweather (Post 1241001)
Another minor bug - when you are posting, the breadcrumb at the top for the topic link doesn't work. It's missing the group number in the URL.

I just noticed sabert00the has fixed it for 2.0.11, but in the meantime, here's the fix for that:

Find this line (line 250) in groups/newreply.php:
Code:

        $navbits['viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 't=' . $threadinfo['threadid']] = $threadinfo['title'];
and replace it with
Code:

        $navbits['viewthread.php?' . $vbulletin->session->vars['sessionurl'] . 't=' . $threadinfo['threadid'] . '&g=' . $foruminfo['groupid']] = $threadinfo['title'];

You are essentially pasting
Code:

. '&g=' . $foruminfo['groupid']
right after
Code:

$threadinfo['threadid']
on line 250 of groups/newreply.php

Nice catch, btw! :up:

Endurer 05-20-2007 05:41 PM

Quote:

Originally Posted by sabret00the (Post 1249552)
this is only happening in viewthread.php?

No, I do not have any products/modifications installed that have anything to do with custom styles, and yes, It's happening within viewthread.php only.

I'll PM you the URL to the group now.

PS: Group description parses img vbcode but viewthread.php doesn't and instead displays the direct link to the image.

vgevolution 05-20-2007 11:18 PM

I'm unable to use vBadvanced 3.0's integrate function on either browse.php or groups.php.

browse.php generates the following error:
Code:

PHP Fatal error:  Cannot redeclare fetch_avatar_url() (previously declared in /ideletedmypath/forums/includes/functions_user.php:259) in /ideletedmypath/forums/includes/functions_grps.php on line 32
It seems to be related to this line, specifically the "OR" part:

Code:

if (!function_exists('fetch_avatar_url') OR THIS_SCRIPT != 'groupshome')
I think it needs to use a different method to determine whether to pull the function without using the "OR" statement. By using vBa's integration code, the THIS_SCRIPT variable seems to allow the function to be called again. A nested if seems to work, but I'm not the expert on this code.

Now then, groups.php creates a blank page with no error related to the vBa integration.

This is all I see inside the generated html:

Code:

<!-- END TEMPLATE: navbar -->
<table class="page" align="center" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
</tr>
</tbody>
</table>
<!-- BEGIN TEMPLATE: footer -->

I assume that something in the groups.php is unique that clears out the variables used by vBa so it thinks there's no content to insert.

Here's is the adv_portal template, and you can that there are three if statements that display content in three columns. I think those variables are lost, which would cause the error:

Code:

<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
        <tr valign="top">
                <if condition="$show['left_column']">
                        <td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-right: $vba_style[portal_colspacing]px"</if>>
                                $home[leftblocks]
                        </td>
                </if>
                <if condition="$show['center_column']">
                        <td valign="top">
                                $home[centerblocks]
                        </td>
                </if>
                <if condition="$show['right_column']">
                        <td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-left: $vba_style[portal_colspacing]px"</if>>
                                $home[rightblocks]
                        </td>
                </if>
        </tr>
</table>


Whew! I do, however, get this error in my error.log file with groups.php all the time, whether I'm using vBa or not:

Code:

script '/ideletedmypath/groups/cron.php' not found or unable to stat
It looks like the path to /ideletedmypath/forums/cron.php gets lost somewhere.

Any ideas?

I feel like I'm close to wrapping up my initial development and this is holding me up, so any help would be appreciated.

EDIT:

invitation.php, membership.php and viewmembers.php have the same blank page output as groups.php when vBa 3.0 integration is used.


EDIT: Blank page fix for vBa 3.0 Integration

I was able to solve the problem with groups.php, invitation.php, membership.php and viewmembers.php and vBa 3.0 Integration by adding the following line into the "PRE-CACHE TEMPLATES and DATA" area near the top of each affected script:

Code:

// get special data templates from the datastore
$specialtemplates = array();

I also moved the "get special phrase groups" code to the top of that "section" so they would mirror the layout of the other working php files.

EDIT: Possible fix for PHP Fatal error: Cannot redeclare fetch_avatar_url()

I think the nested if statement is working as a fix for the php fatal error from the functions_grps.php file:

I changed this:

Code:

if (!function_exists('fetch_avatar_url') OR THIS_SCRIPT != 'groupshome')
{
... some code ...
}

to this:
Code:

if (!function_exists('fetch_avatar_url'))
{
if (THIS_SCRIPT != 'groupshome')
{
... some code ...
}
}

So far, everything seems to be working. I may have been able to change the OR to an AND to achieve a similar effect. I'm still rusty. :D

vgevolution 05-21-2007 01:13 AM

Rats! It was going well until I noticed my group leader avatar was missing.

The image is pointing to "Array":

Code:

<td align="center" valign="top">
        <strong>Group Leader</strong><br>
        <img title="Group Leader: Test Leader" src="Array" alt="Group Leader: Test Leader"><br>
        Test Leader
</td>

Very odd... Any ideas? :confused:

Endurer 05-21-2007 07:20 PM

A fix has already been posted here: https://vborg.vbsupport.ru/showpost....95&postcount=2

vgevolution 05-21-2007 08:45 PM

Quote:

Originally Posted by Endurer (Post 1252270)
A fix has already been posted here: https://vborg.vbsupport.ru/showpost....95&postcount=2

This is a different error. It's not the Leader Icon not showing up error. That's a path problem. The integration of vBadvanced wrapped around GRPS causes this error. I was just wondering if anyone else ran into it and had a fix. Essentially the function fetch_avatar_url() that generates the leader icon returns "Array" instead of the correct URL string when vBa is active. I've asked the same question in the vBa forums, looking for a solution. If I find one, I'll post it here as well.

EDIT: Oops, I quoted the wrong error (malformed avatar in postbit), but my error still isn't solved with post #2's suggestions. On a side note, I have another hack which has the same error, VB Image Host.

CHIPIT195 05-24-2007 03:58 AM

I have my forums on a subdomain (myforums.mysite.com)...
However, the forums are in a sub-directory (myforums.mysite.com/forums/)

The groups are installed at myforums.mysite.com/groups/

The links are showing the forums root... (ie: the create group link is myforums.mysite.com/forums/?do=creategroup, when it should be myforums.mysite.com/groups/?do=creategroup )

How do I fix this?

Merriweather 05-25-2007 11:39 PM

Sabre ~ Just checking in to see where you're at with the new version. Really hoping email notifications of group posts and checking user group permissions and removing them from groups if their permissions change is in the near future. :)

Yours Truly 05-27-2007 06:20 PM

Everything is going smooth except the navbar pointing to the wrong links but i can sort them.

Only thing that isn't working right is the group tools on the GRPS navbar dropdown isn't working. I click it then it just does nothing.

Any ideas?

Kimiko 05-30-2007 04:58 AM

FIXED! Thanks anyways!

WDZaphod 05-30-2007 08:58 AM

Hi!
Is there a wishlist existing already for Version3? :D

hambil 06-01-2007 02:13 AM

Help me understand how this has been installed 204 times. It doesn't create database tables. I've looked in the product.xml, and everywhere else, and nowhere does it create the tables that I can find.

This problem was pointed out 8 months ago by one of the first users in this post: https://vborg.vbsupport.ru/showpost....59&postcount=9

If you had a previous version of this installed, that created the tables, then perhaps that is why it is working. As far as I can tell it works as an upgrade only.

vgevolution 06-01-2007 03:46 AM

hambil: As far as I can tell, you didn't look very hard or read the instructions. By "I've looked in the product.xml, and everywhere else", you must surely mean, "I've looked in the product.xml, and didn't bother looking anywhere else". Try looking in the grps_installer.php file in the ROOT/groups/tools directory of the product's zip file. You know, the one you run to finish installing GRPS, as described in the install.txt file.

To make it clearer, here's an excerpt from install.txt (the bold text is a clue):

Quote:

now go to your "groups/include/config_grps.php" and edit it accordingly. if you are having problems using your relative path, then please try your full path.

================

Now upload the files. and you're good to go (after running adding the product ofcourse).

--------

I need to advise you to back up your database before attempting anyway sort of database manipulation.

--------

You will now need to run groups/tools/grps_installer.php.

Excerpt from grps_installer.php:

PHP Code:

$db->query_write("
    ALTER TABLE `" 
TABLE_PREFIX "usergroup` ADD `grpspermissions` INT(10)  UNSIGNED DEFAULT 0 NOT NULL
"
);

$db->query_write("
    ALTER TABLE `" 
TABLE_PREFIX "user` ADD `grps` MEDIUMTEXT NULL
"
);

$db->query_write("
    CREATE TABLE `grps` (
        `groupid` mediumint(9) NOT NULL auto_increment,
        `title` varchar(50)  NOT NULL default '',
        `description` varchar(250)  NOT NULL default '',
        `catid` smallint(2) NOT NULL default '0',
        `approved` enum('0','1')  default NULL,
        `create_date` int(10) unsigned NOT NULL default '0',
        `replycount` int(10) unsigned NOT NULL default '0',
        `lastpost` int(11) NOT NULL default '0',
        `membercount` int(10) unsigned NOT NULL default '0',
        `leaderid` int(10) default NULL,
        PRIMARY KEY  (`groupid`)
    )
"
);

$db->query_write("
    CREATE TABLE `grps_categories` (
        `catid` tinyint(3) unsigned NOT NULL auto_increment,
        `title` varchar(25)  NOT NULL default '',
        `description` varchar(250)  default NULL,
        PRIMARY KEY  (`catid`)
    )
"
);

$db->query_write("
    CREATE TABLE `grps_grouptext` (
        `groupid` mediumint(9) unsigned NOT NULL default '0',
        `pagetext` mediumtext  NOT NULL,
        `allowsmilie` enum('1','0')  default '1',
        `parseurl` enum('1','0')  default '1',
        `edit_reason` varchar(200)  default NULL,
        `edit_dateline` int(10) unsigned default NULL,
        `edit_userid` tinyint(4) default NULL,
        `edit_username` varchar(50)  default NULL,
        PRIMARY KEY  (`groupid`)
    )
"
);

$db->query_write("
    CREATE TABLE `grps_post` (
        `postid` int(10) unsigned NOT NULL auto_increment,
        `threadid` int(10) NOT NULL default '0',
        `groupid` mediumint(9) unsigned NOT NULL default '0',
        `parentid` int(10) unsigned default NULL,
        `username` varchar(50)  NOT NULL default '',
        `userid` int(10) unsigned NOT NULL default '0',
        `title` varchar(250)  NOT NULL default '',
        `dateline` int(10) unsigned NOT NULL default '0',
        `pagetext` mediumtext  NOT NULL,
        `ipaddress` varchar(16)  NOT NULL default '',
        `iconid` smallint(5) unsigned NOT NULL default '0',
        `visible` smallint(6) NOT NULL default '0',
        `attach` smallint(5) unsigned NOT NULL default '0',
        `allowsmilie` enum('1','0')  default NULL,
        `showsignature` enum('0','1')  NOT NULL default '0',
        `edit_username` varchar(50)  default NULL,
        `edit_userid` int(10) default NULL,
        `edit_reason` varchar(200)  default NULL,
        `edit_dateline` int(10) unsigned default NULL,
        `delete_username` varchar(50)  default NULL,
        `delete_userid` int(10) default NULL,
        `delete_reason` varchar(200)  default NULL,
        PRIMARY KEY  (`postid`),
        KEY `threadid` (`threadid`),
        FULLTEXT KEY `title` (`title`,`pagetext`)
    ) ENGINE=MyISAM
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (1, 'Automotive', 'For groups pertaining to cars, bikes or such')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (2, 'Computers', 'For groups referring to computers, whether hardware, software or modding')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (3, 'Education', 'For groups regarding learning, whether it be help studying or school activities')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (4, 'Entertainment', 'For groups surrounding anything entertaining, visual or audio')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (5, 'Games', 'For groups surrounding games you love, digital, card or board')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (6, 'Health & Fitness', 'For groups pertaining to well-being')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (7, 'Home & Families', 'For groups regarding the home life')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (8, 'Lifestyles', 'For groups surrounding lifestyles whether it be goths, hippies, etc')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (9, 'Places & Travel', 'For groups referring to towns, cities and holidays')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (10, 'Religion & Belief', 'For groups surrounding christianity, islam, buddism, etc')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (11, 'Sports & Recreation', 'For groups referring to sports, whether it be Football, Cricket or Baseball teams')
"
);

$db->query_write("
    INSERT INTO `grps_categories` VALUES (12, 'Others', 'For everything else')
"
);

$db->query_write("
    CREATE TABLE `grps_setting` (
        `groupid` mediumint(9) unsigned NOT NULL default '0',
        `image_name` varchar(50)  default NULL,
        `private_posts` enum('0','1')  default '0',
        `moderate_members` enum('0','1')  default '0',
        `hidden_group` enum('0','1')  default '0',
        `hide_image` enum('0','1')  default '0',
        `edit_details` enum('1','0')  default '1',
        `leaderonly_threads` enum('0','1')  NOT NULL default '0',
        PRIMARY KEY  (`groupid`)
    )
"
);

$db->query_write("
    CREATE TABLE `grps_user` (
        `recordid` mediumint(9) NOT NULL auto_increment,
        `groupid` mediumint(9) NOT NULL default '0',
        `userid` int(10) NOT NULL default '0',
        `in_mod_queue` enum('0','1')  NOT NULL default '0',
        `join_date` int(10) unsigned NOT NULL default '0',
        PRIMARY KEY  (`recordid`)
    )
"
);

$db->query_write("
    CREATE TABLE `grps_thread` (
        `threadid` int(10) unsigned NOT NULL auto_increment,
        `groupid` int(10) NOT NULL default '0',
        `userid` int(10) NOT NULL default '0',
        `username` varchar(250)  NOT NULL default '',
        `title` varchar(250)  NOT NULL default '',
        `dateline` varchar(15)  NOT NULL default '',
        `iconid` int(10) NOT NULL default '0',
        `lastposterid` varchar(250)  NOT NULL default '',
        `lastpostdateline` varchar(250)  NOT NULL default '',
        `replies` int(10) NOT NULL default '0',
        `firstpostid` int(10) default NULL,
        `closed` enum('0','1') NOT NULL default '0',
        `stuck` enum('0','1') NOT NULL default '0',
        PRIMARY KEY  (`threadid`),
        KEY `groupid` (`groupid`,`lastposterid`)
    )
"
); 


Those lines of code are called database table entries. If you don't see this, download the zip file again and start over.

Also, had you bothered to look, that database error you snidely referred to was fixed almost immediately by sabret00the, 13 minutes later, four posts below the original error report, on the same page, as noted here. That means it was fixed 7 months, 29 days, 23 hours, and 47 minutes ago (by your math).

So, in a nutshell, to install the database tables you're missing, run the grps_installer.php script, as described in the install.txt file.

Did that help you understand? :rolleyes:

hambil 06-01-2007 04:11 AM

vgevolution:

There's no reason to attack me personally. It's not even your hack, and the fact remains the install is rather confusing.

First, I looked for a separate installer, and didn't find it. It is buried three levels deep (root/groups/tools) and it's not named install.php. I'm not sure why it exists anyway, since all it does is create the database tables that should typically be done in the product.xml 'install' section. An external installer is usually reserved for multi-step installs that require user input.

Second, a big part of the reason I missed it is the instructions told me I was done:

"Now upload the files. and you're good to go (after running adding the product ofcourse)."

I took that to mean I needed to load the product.xml file, and that was it. To put another, critical line after that all but guarantees people will not see it. It's not like this is my first install. I write hacks.

So, back off, dude.

vgevolution 06-01-2007 05:36 AM

hambil: I agree that the install instructions aren't perfect, but I'm not the one who said,
"I've looked in the product.xml, and everywhere else".
I called you out on your blatant exaggeration, simple as that. It was obvious you didn't look in all the files. Instead, you came here complaining about "how this has been installed 204 times" (error and all) and "this problem was pointed out 8 months ago" (that was fixed 13 minutes later, wasn't even the problem anyway).

That was awfully troll-like, and I took a defensive stance for some reason. I think the fact that you're a coder made it worse, since I'm sure you wouldn't like it if someone went into your product threads and started tossing around innuendo.

Despite that, I do apologize for being abrasive. I'm normally calmer than that. I would prefer that we all contribute constructive criticism to our favorite hacks, not go around bashing each other. I should have taken the high road and just answered your veiled question. I can admit when I've let my emotions get the better of me. I must remember to let my inner-Vulcan out during times like this. My bad. Being human sucks sometimes. :D

I guess I still answered your question, however rudely. :p

At least during the course of this pointless argument you did point out a valid flaw in the install instruction's logic, so hopefully sabe will fix it soon. Some good came out of this after all.

I'm not holding a grudge. You were abrasive, I was abrasive in response. You had your say. I've had my say, and admitted I was rude and apologized for that. Thus, I have nothing further to add regarding this. No need to drag this thread down. My apologies to those reading this as well. Let's get back to making suggestions and improving this mod.

Peace, Out.

hambil 06-01-2007 05:42 AM

Quote:

Originally Posted by vgevolution (Post 1258806)
You were abrasive

I don't intend to be, but I'm told I come across that way in email or online at times. I think I was just frustrated. Again, I apologize also. Thanks for being a sport :)

vgevolution 06-01-2007 07:03 AM

I saw this request was posted a long time ago, but not since. I'm wondering if anyone is still having trouble with, or doesn't like the way breadcrumbs work with GRPS, and would like to know how to change it to work like vBulletin's standard (my preference for viewthread.php):
WebsiteHome --> GroupsHome --> CategoryName --> GroupName
|
-->Function, Thread, Post, Edit, Moderate, etc.
Instead of this (the GRPS default for viewthread.php):
GroupsHome --> CategoryName --> GroupName
|
-->Function, Thread, Post, Edit, Moderate, etc.

If so, please let me know. The first crumb method shown is vBulletin-style crumb. The second method is more of a stand-alone crumb, as GRPS is meant to run mostly outside of vBulletin forums other than sharing the user database.

To maintain consistency throughout my site and the other hacks I have running, I had to modify the crumbs in GRPS to work more like the standard bread crumbs of vBulletin. This involves some minor edits to the php files' navbits. If anyone's interested, I'll send you a step-by-step. Obviously the steps would need to be repeated after every patch of GRPS, so if there's no interest, I'll understand. I've been testing it for a week now with no strange behavior, so I'm pretty sure it'll work for anyone.

I don't know if sabret00the would want me to post how to do it here or as an "addon", since this isn't a fix to a bug, but a change to a function that works as he intended.

sabret00the: any objections to me posting instructions on how to change the breadcrumbs to work like vBulletin crumbs here? Any chance of making this an option in v3.0 for those of us who want an integrated breadcrumb? It doesn't look like it would be hard to code the conditional. ;)

Anyway, I'm too tired to write it up tonight (3am!!), so g'nite!

hambil: Yep, no problem. I'm an irritable ol' coot sometimes too, especially when I get sleepy. :o

sabret00the 06-04-2007 03:30 PM

Quote:

Originally Posted by WDZaphod (Post 1257448)
Hi!
Is there a wishlist existing already for Version3? :D

whatever you'd like to see in version three, just post in here and it'll be considered.

vgrevolution: go ahead:

sabret00the 06-05-2007 04:03 PM

Quote:

Originally Posted by Endurer (Post 1251562)
No, I do not have any products/modifications installed that have anything to do with custom styles, and yes, It's happening within viewthread.php only.

I'll PM you the URL to the group now.

PS: Group description parses img vbcode but viewthread.php doesn't and instead displays the direct link to the image.

can you tell me if this fixes your style overwrite problems please.

sabret00the 06-05-2007 05:47 PM

Quote:

Originally Posted by vgevolution (Post 1251753)
I'm unable to use vBadvanced 3.0's integrate function on either browse.php or groups.php.

browse.php generates the following error:
Code:

PHP Fatal error:  Cannot redeclare fetch_avatar_url() (previously declared in /ideletedmypath/forums/includes/functions_user.php:259) in /ideletedmypath/forums/includes/functions_grps.php on line 32
It seems to be related to this line, specifically the "OR" part:

Code:

if (!function_exists('fetch_avatar_url') OR THIS_SCRIPT != 'groupshome')
I think it needs to use a different method to determine whether to pull the function without using the "OR" statement. By using vBa's integration code, the THIS_SCRIPT variable seems to allow the function to be called again. A nested if seems to work, but I'm not the expert on this code.

Now then, groups.php creates a blank page with no error related to the vBa integration.

This is all I see inside the generated html:

Code:

<!-- END TEMPLATE: navbar -->
<table class="page" align="center" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
</tr>
</tbody>
</table>
<!-- BEGIN TEMPLATE: footer -->

I assume that something in the groups.php is unique that clears out the variables used by vBa so it thinks there's no content to insert.

Here's is the adv_portal template, and you can that there are three if statements that display content in three columns. I think those variables are lost, which would cause the error:

Code:

<table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
        <tr valign="top">
                <if condition="$show['left_column']">
                        <td width="$vba_style[portal_leftcolwidth]"<if condition="$show['center_column'] OR $show['right_column']"> style="padding-right: $vba_style[portal_colspacing]px"</if>>
                                $home[leftblocks]
                        </td>
                </if>
                <if condition="$show['center_column']">
                        <td valign="top">
                                $home[centerblocks]
                        </td>
                </if>
                <if condition="$show['right_column']">
                        <td valign="top" width="$vba_style[portal_rightcolwidth]"<if condition="$show['center_column'] OR $show['left_column']"> style="padding-left: $vba_style[portal_colspacing]px"</if>>
                                $home[rightblocks]
                        </td>
                </if>
        </tr>
</table>


Whew! I do, however, get this error in my error.log file with groups.php all the time, whether I'm using vBa or not:

Code:

script '/ideletedmypath/groups/cron.php' not found or unable to stat
It looks like the path to /ideletedmypath/forums/cron.php gets lost somewhere.

Any ideas?

I feel like I'm close to wrapping up my initial development and this is holding me up, so any help would be appreciated.

EDIT:

invitation.php, membership.php and viewmembers.php have the same blank page output as groups.php when vBa 3.0 integration is used.


EDIT: Blank page fix for vBa 3.0 Integration

I was able to solve the problem with groups.php, invitation.php, membership.php and viewmembers.php and vBa 3.0 Integration by adding the following line into the "PRE-CACHE TEMPLATES and DATA" area near the top of each affected script:

Code:

// get special data templates from the datastore
$specialtemplates = array();

I also moved the "get special phrase groups" code to the top of that "section" so they would mirror the layout of the other working php files.

EDIT: Possible fix for PHP Fatal error: Cannot redeclare fetch_avatar_url()

I think the nested if statement is working as a fix for the php fatal error from the functions_grps.php file:

I changed this:

Code:

if (!function_exists('fetch_avatar_url') OR THIS_SCRIPT != 'groupshome')
{
... some code ...
}

to this:
Code:

if (!function_exists('fetch_avatar_url'))
{
if (THIS_SCRIPT != 'groupshome')
{
... some code ...
}
}

So far, everything seems to be working. I may have been able to change the OR to an AND to achieve a similar effect. I'm still rusty. :D

i cut down the need for modification by renaming the function.

sabret00the 06-05-2007 05:47 PM

Quote:

Originally Posted by vgevolution (Post 1252321)
This is a different error. It's not the Leader Icon not showing up error. That's a path problem. The integration of vBadvanced wrapped around GRPS causes this error. I was just wondering if anyone else ran into it and had a fix. Essentially the function fetch_avatar_url() that generates the leader icon returns "Array" instead of the correct URL string when vBa is active. I've asked the same question in the vBa forums, looking for a solution. If I find one, I'll post it here as well.

EDIT: Oops, I quoted the wrong error (malformed avatar in postbit), but my error still isn't solved with post #2's suggestions. On a side note, I have another hack which has the same error, VB Image Host.

do you still have this error?

sabret00the 06-05-2007 05:48 PM

Quote:

Originally Posted by CHIPIT195 (Post 1253654)
I have my forums on a subdomain (myforums.mysite.com)...
However, the forums are in a sub-directory (myforums.mysite.com/forums/)

The groups are installed at myforums.mysite.com/groups/

The links are showing the forums root... (ie: the create group link is myforums.mysite.com/forums/?do=creategroup, when it should be myforums.mysite.com/groups/?do=creategroup )

How do I fix this?

are you running any seo mods?

sabret00the 06-05-2007 05:52 PM

Quote:

Originally Posted by Merriweather (Post 1254745)
Sabre ~ Just checking in to see where you're at with the new version. Really hoping email notifications of group posts and checking user group permissions and removing them from groups if their permissions change is in the near future. :)

working on the latter now and the former is in place in principal at the current moment in time.

sabret00the 06-05-2007 06:01 PM

Quote:

Originally Posted by Yours Truly (Post 1255681)
Everything is going smooth except the navbar pointing to the wrong links but i can sort them.

Only thing that isn't working right is the group tools on the GRPS navbar dropdown isn't working. I click it then it just does nothing.

Any ideas?

is it not working on any of the pages?

Endurer 06-05-2007 07:51 PM

Quote:

Originally Posted by sabret00the (Post 1261836)
can you tell me if this fixes your style overwrite problems please.

Absolutely does :) It works like a charm now :D

Thank you so much.

sabret00the 06-05-2007 08:04 PM

Quote:

Originally Posted by Endurer (Post 1261986)
Absolutely does :) It works like a charm now :D

Thank you so much.

Yosh! took a while but we got there in the end.

However i bet you still have bad news for me that your [img] problem still exists?

vgevolution 06-05-2007 09:30 PM

Quote:

Originally Posted by sabret00the (Post 1261916)
do you still have this error?

I never got it fixed, so yes I still see "Array" in place of the leader avatar url.

I'm just not using CMPS v3's integration feature for now. I probably have to add a global variable from GRPS to CMPS. I just haven't had to time to figure out which variable to add.

sabret00the 06-05-2007 09:33 PM

Quote:

Originally Posted by vgevolution (Post 1262045)
I never got it fixed, so yes I still see "Array" in place of the leader avatar url.

I'm just not using CMPS v3's integration feature for now. I probably have to add a global variable from GRPS to CMPS. I just haven't had to time to figure out which variable to add.

you still see array when vBa 3.0 integration is one or see it all the time?

vgevolution 06-05-2007 09:42 PM

Quote:

Originally Posted by sabret00the (Post 1262046)
you still see array when vBa 3.0 integration is one or see it all the time?

Only when it's on. It happens with one other hack too, so I was hoping someone had found a fix for it. The groups look nice with vba, and that's the last bug I ran into I didn't fix, so it's a shame really.

BTW, I fixed my old cron not found bug by installing the ajax cron plugin, located here:
https://vborg.vbsupport.ru/showthrea...highlight=cron

sabret00the 06-05-2007 09:57 PM

cool. i actually set up a string replacement for that on 3.0.x but it's still absent on 2.0.x i'll make a decision regarding that before i upload 2.0.11 which should be in the morning. i just want to give more people a chance to get their errors in.

Yours Truly 06-06-2007 08:18 AM

Quote:

Originally Posted by sabret00the (Post 1261928)
is it not working on any of the pages?

Yes unfortunately =[ It was working but now it isn't i even reverted the template but still no functionality.

Benj 06-06-2007 09:22 AM

could i suggest sub categories for the new version :D

cheers

sabret00the 06-06-2007 04:21 PM

UPDATED ZIP/RELEASE:
Groups v2.0.11.zip:
various bug fixes including security/privacy fixes.

For those interested in 3.0 please check this (i need a couple more people): https://vborg.vbsupport.ru/showpost....postcount=1625

Trana 06-08-2007 10:41 PM

Will there be any sort of search functionality or notifications in 3.x?


All times are GMT. The time now is 02:38 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.03487 seconds
  • Memory Usage 1,962KB
  • 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
  • (23)bbcode_code_printable
  • (1)bbcode_php_printable
  • (21)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