PDA

View Full Version : Major Additions - GRPS: Groups Commune 2.0.x


Pages : [1] 2 3 4 5 6 7 8 9

sabret00the
23 Sep 2006, 00:05
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) https://www.vbulletin.org/forum/external/2007/09/3.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sabret00the%40yahoo%2eco%2euk&item_name=GRPS%20Appreciation&item_number=GRPS%2d00001&no_shipping=2&no_note=1&tax=0&currency_code=GBP&bn=PP%2dDonationsBF&charset=UTF%2d8) (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 RC3b.zip: fix regarding joining and leaving group depreciated function error added uninstaller to the zip at www.yoursite.com/groups/tools/grps_installer.php?do=uninstall
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.

sabret00the
23 Sep 2006, 00:08
Reserved.

MISC PIECE OF INFO:
The code has spanned an awful lot of time and i've learned alot since the core of this was developed, i'm hoping to recode it around PHP5 and using classes and all that lark soon. It's simply a matter of time and how many resources i can dedicate to this, sadly i'm not Jelsoft, i'm just one man on my tod.

PROBLEMS:
Please note that although the general perception is one of plenty of problems. any genuine problems have been fixed and will continue be. most problems are down to PLBCAK (http://acronyms.tfd.com/PLBCAK). Seriously. In the most respectful of ways ofcourse. Mostly because it's my fault and my instructions, i sometimes forget that i have to KISS (http://acronyms.tfd.com/KISS).

GROUP LEADER ICON NOT SHOWING UP:
Only do this, if it is an isolated problem, in forums/includes/function_grps.php find:
$raw_groupinfo['leaderavatar'] = "<img src=\"" . $vbulletin->options['bburl'] . "/" . fetch_avatar_url($raw_groupinfo['leaderid']) . "\" alt=\"Group Leader: " . $raw_groupinfo['leadername'] . "\" />";

and replace with
$raw_groupinfo['leaderavatar'] = "<img src=\"" . fetch_avatar_url($raw_groupinfo['leaderid']) . "\" alt=\"Group Leader: " . $raw_groupinfo['leadername'] . "\" />";

FORUMS IN SUBDOMAIN?
I had a play with getting this to work and i couldn't, thus i'd suggest throwing it into your subdomain http//yourforums.yoursite.com/groups.

MALFORMED AVATAR IN POSTBITS?
Go to your vBulletin options and replace the contents of Strings To Find In "viewthread.php" with:
image.php, src="customavatars/, src="images/smilies/, member.php, private.php, search.php, sendmessage.php, profile.php, <!-- / post #, imwindow,400,200); return false;">, images/avatars/

and the contents of Strings To Replace In "viewthread.php" with:
$vbulletin->options['bburl']/image.php, src="$vbulletin->options['bburl']/customavatars/, src="$vbulletin->options['bburl']/images/smilies/, $vbulletin->options['bburl']/member.php, $vbulletin->options['bburl']/private.php, $vbulletin->options['bburl']/search.php, $vbulletin->options['bburl']/sendmessage.php, $vbulletin->options['bburl']/profile.php, <hr style="visibility: hidden; padding: 0.25em 0 0 0; margin: 0; line-height: 0em" />{\n\n}<!-- / post #, grps_imwindow,400,200,'$vbulletin->options['bburl']'); return false;">, $vbulletin->options['bburl']/images/avatars/save and that's you sorted :)

Roxie
23 Sep 2006, 00:11
Installing now.

sabret00the
23 Sep 2006, 00:14
Sweet, someone cares already ;)

Jei
23 Sep 2006, 00:18
Long Awaited! Installing Now
Thanks a ton Saber :D

Luke Beale
23 Sep 2006, 00:36
Installing now

toolblast
23 Sep 2006, 00:59
YAYYYYYY! Thanks man! Finally this is released and it looks AMAZING.

*drools*

Roxie
23 Sep 2006, 01:00
I'm having issues w/ the config file. Are we to edit anything?

Luke Beale
23 Sep 2006, 01:18
i have got an error when i try creating a group and i have looked at the "vbgrps" doesnt exist and i see that in the install file it does not tell the database to make that table.

Database error in vBulletin 3.6.0:

Invalid SQL:
INSERT INTO vbgrps(title, description, catid, approved, leaderid, membercount)
VALUES ('test', 'test', 1, '0', 3, 1);

MySQL Error : Table 'vb.vbgrps' doesn't exist
Error Number : 1146
Date : Saturday, September 23rd 2006 @ 01:11:23 AM
Script : url
Referrer : url
IP Address : ip
Username : Luke Beale
Classname : vB_Database

Reef
23 Sep 2006, 01:18
This looks amazing

It's not something that I can use with my site but I appreciate the effort you put into it sabret00the,, Great job

Jei
23 Sep 2006, 01:19
i have got an error when i try creating a group and i have looked at the "vbgrps" doesnt exist and i see that in the install file it does not tell the database to make that table.

Import the Product File called "product-groupscommune" in ROOT to install the database/tables.

Luke Beale
23 Sep 2006, 01:25
Import the Product File called "product-groupscommune" in ROOT to install the database/tables.

I have all ready done that and all that does is add some stuff to the admin panel

sabret00the
23 Sep 2006, 01:31
Luke, my mouse batteries are dead, so i can't really sort this out properly but here you go, this will fix the problem in the meanwhile.

Replace this with your groups/index.php and it should fix the problem. sadly i won't be able to do a full check for similar problems until the morning when my mouse has finished charging.

Roxie
23 Sep 2006, 01:34
I get errors when I run the installer. I am thinking it's the way I have the config file set. My forums are in a subdomain. Any ideas how to set it?

tazB.ca
23 Sep 2006, 01:41
This Is Real Nyce

DementedMindz
23 Sep 2006, 01:44
sabret00the very nice work. This will be a Mod o.t. Month

sabret00the
23 Sep 2006, 01:54
Roxie, if i'm not mistaken (or atleast out of touch, your subdomain should be set up as a directory elsewhere on your server, if that's correct, then you just need to find it and then it should all config ok.

on one of my servers i had the subdomains set up in /home/sitename/public_html/~subs/SUBNAME

on one of my current servers i have /home/sitename/public_html/subs/SUBNAME

not sure if that helps or not.

Jei
23 Sep 2006, 02:03
A minor bug saber, there's a missing phrase when you change the category values in the admin panel

"Could not find phrase 'grps_cats_successful_editing'."

Snake
23 Sep 2006, 02:05
Cool! I've been waiting for this. Thanks! :)

Roxie
23 Sep 2006, 02:15
Roxie, if i'm not mistaken (or atleast out of touch, your subdomain should be set up as a directory elsewhere on your server, if that's correct, then you just need to find it and then it should all config ok.

on one of my servers i had the subdomains set up in /home/sitename/public_html/~subs/SUBNAME

on one of my current servers i have /home/sitename/public_html/subs/SUBNAME

not sure if that helps or not.


Yes my subdomain is also a directory.

I set my config as
../daboard/

and

/daboard/

and I get these errors


Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/dizzam/public_html/daboard/groups/tools/grps_installer.php on line 45

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/dizzam/public_html/daboard/groups/tools/grps_installer.php on line 65

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dizzam/public_html/daboard/groups/tools/grps_installer.php on line 65

sabret00the
23 Sep 2006, 02:25
if you access your board via the folder do you still get the error roxie?

i.e. www.yoursite.com/daboard/

Roxie
23 Sep 2006, 02:27
Yes. You think that error is related to how I have the config set up?

kg4mxz
23 Sep 2006, 02:27
very nice... as for the subdomain thing... my groups folder is inside my forums folder

sabret00the
23 Sep 2006, 03:16
@ Roxie: most definately so.

you should have something like this
http://www.dizzam.com/daboard/
http://www.dizzam.com/groups/

and your config should read
<?php

// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("../daboard/");

// ## Set's the base root directory back to the forums for all images ##
$img_forums = "/daboard/";

// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

?>

then it should work even on your subdomain.

sabret00the
23 Sep 2006, 03:23
NEW ZIP
Groups c2.0.0 RC1b.zip: fix regarding incorrect table prefixes in index.php and editpost.php

bada_bing
23 Sep 2006, 04:09
How do we upgrade?

bada_bing
23 Sep 2006, 04:15
Getting an error when trying to view a group
Fatal error: Call to undefined function: globalize() in /mounted-storage/home7/sub002/sc14192-UTSO/www/groups/browse.php on line 85


Also when I click create group it doent do anything?

.Tim
23 Sep 2006, 04:36
When I run the installer I just get a blank page. How do I configure the config file if my forum is in the site root?

Roxie
23 Sep 2006, 04:55
I had to click uninstall until I can figure out that dang config. :(

bada_bing
23 Sep 2006, 05:55
Getting an error when trying to view a group
Fatal error: Call to undefined function: globalize() in /mounted-storage/home7/sub002/sc14192-UTSO/www/groups/browse.php on line 85


Also when I click create group it doent do anything?
errrrrrrrrrrrrrrrrrrr help please ready to click uninstall.... Directions are not very clear either

DivisionByZero
23 Sep 2006, 06:11
i had the same errors trying to install it (gotta keep up with the competition)

sabret00the
23 Sep 2006, 10:05
How do we upgrade?
from what? 3.0.x or RC1 to RC1b?

sabret00the
23 Sep 2006, 10:06
Getting an error when trying to view a group
Fatal error: Call to undefined function: globalize() in /mounted-storage/home7/sub002/sc14192-UTSO/www/groups/browse.php on line 85


Also when I click create group it doent do anything?
globalize(); does not exist in any of the files. not even commented out. reupload all of the files.

sabret00the
23 Sep 2006, 10:10
When I run the installer I just get a blank page. How do I configure the config file if my forum is in the site root?
if your forums are in the site root then your config should have something likechdir('../');

blank pages are down to configuration mismatches or templates not being installed.

sabret00the
23 Sep 2006, 10:12
errrrrrrrrrrrrrrrrrrr help please ready to click uninstall.... Directions are not very clear either
if you wanna click uninstall go ahead, but at 5am in the morning when i'm firmly in bed making silly threats i won't see for atleast another five hours anyway is rather pointless.

sabret00the
23 Sep 2006, 10:13
i had the same errors trying to install it (gotta keep up with the competition)
the same errors as what? who? bada_bing?

Luke Beale
23 Sep 2006, 10:17
Luke, my mouse batteries are dead, so i can't really sort this out properly but here you go, this will fix the problem in the meanwhile.

Replace this with your groups/index.php and it should fix the problem. sadly i won't be able to do a full check for similar problems until the morning when my mouse has finished charging.

Well now when i try to create a group it takes me from /forum/groups/index.php to /groups/index.php, so it removes the /forum/ bit in the URL

sabret00the
23 Sep 2006, 10:26
Well now when i try to create a group it takes me from /forum/groups/index.php to /groups/index.php, so it removes the /forum/ bit in the URL
yup sadly it wasn't designed for use in the forums directory, you may have to edit your templates to reflect the location.

what do you mean when you try and create a group? do you mean when you click "create group"? is that from the group tools menu or from the groups/index.php ?

DivisionByZero
23 Sep 2006, 10:40
the same errors as what? who? bada_bing?no. bada_bing just likes to complain :)

The installer is SO not mySQL 5.x friendly. I went through the installer code and ran the queries and setup the tables on my own.... rebuilt my bitfields and all was good.

Great product! I think we should work together on a souped-up commercial version :) Your design and theory + my NNTP and SMTP gateway can make one good product.

Milad
23 Sep 2006, 11:38
your ad-on need some improving
For example:
you ask us to edit the file ROOT/forums/includes/xml/cpnav_vbulletin.xml
but you can add a file and call it for ex: cpnav_groupscommune.xml

and it contains the following
<?xml version="1.0" encoding="ISO-8859-1"?>

<navgroups product="groupscommune">

<navgroup phrase="moderation" displayorder="70">
<navoption displayorder="70">
<phrase>moderate_groups</phrase>
<link>grps_moderate.php?do=groups</link>
</navoption>
</navgroup>

</navgroups>

then add it in the directory: ROOT/forums/includes/xml/

and you can include your installation and unistallation script in the product xml file.

and you have to use the table prefix in the whole script mysql queries.

I advise you to use the Advanced Product Manager, you can find it in this forum, it will help you very much.

I will click install to track your product, but won't install it untill it follows the vbulletin ad-ons standards.

Regards

Lionel
23 Sep 2006, 12:07
Looks good. You forgot to include the function grps_rewrite_links

sabret00the
23 Sep 2006, 12:24
your ad-on need some improving
For example:
you ask us to edit the file ROOT/forums/includes/xml/cpnav_vbulletin.xml
but you can add a file and call it for ex: cpnav_groupscommune.xml

and it contains the following
<?xml version="1.0" encoding="ISO-8859-1"?>

<navgroups product="groupscommune">

<navgroup phrase="moderation" displayorder="70">
<navoption displayorder="70">
<phrase>moderate_groups</phrase>
<link>grps_moderate.php?do=groups</link>
</navoption>
</navgroup>

</navgroups>

then add it in the directory: ROOT/forums/includes/xml/Thank you, i've learned something new.

and you can include your installation and unistallation script in the product xml file.i had the option too, i chose not too.

and you have to use the table prefix in the whole script mysql queries.why? it's a major addition, in short, i don't want to.

I advise you to use the Advanced Product Manager, you can find it in this forum, it will help you very much.why?

I will click install to track your product, but won't install it untill it follows the vbulletin ad-ons standards.that's your decision.

Regardsaye.

sabret00the
23 Sep 2006, 12:25
Looks good. You forgot to include the function grps_rewrite_links
lines 324-378 in the forums/includes/functions_grps.php.

Neal-UK
23 Sep 2006, 12:34
if your forums are in the site root then your config should have something likechdir('../');



done that, can't get it to install on here www.meeting4fun.com

sabret00the
23 Sep 2006, 12:42
done that, can't get it to install on here www.meeting4fun.com
try chdir('public_html'); and let me know the result please Neal.

Neal-UK
23 Sep 2006, 12:54
try chdir('public_html'); and let me know the result please Neal.

No, same errors. No such file or directory.....


// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("public_html");
// ## Set's the base root directory back to the forums for all images ##
$img_forums = "public_html";
// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

Lionel
23 Sep 2006, 13:00
The index page throws an error and says that function does not exists. It does though.

Also in admin_cateditor (i believe) you forgot to add "as icon" in the table join, so that throws a table does not exists error.

sabret00the
23 Sep 2006, 13:02
No, same errors. No such file or directory.....


// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("public_html");
// ## Set's the base root directory back to the forums for all images ##
$img_forums = "public_html";
// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

one more quick off the cuff try at something


// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("/home/radscan/public_html/");
// ## Set's the base root directory back to the forums for all images ##
$img_forums = "../";
// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

Neal-UK
23 Sep 2006, 13:38
No, same errors. The install file is located in /groups/tools folder by the way, different according to your instructions.

Thanks for the help though and good mod!

sabret00the
23 Sep 2006, 13:38
The index page throws an error and says that function does not exists. It does though.

Also in admin_cateditor (i believe) you forgot to add "as icon" in the table join, so that throws a table does not exists error.
what's the exact error message?

sabret00the
23 Sep 2006, 13:47
No, same errors. The install file is located in /groups/tools folder by the way, different according to your instructions.

Thanks for the help though and good mod!
i thought we were talking about the normal groups files, ok if it's an install file problem, go to your groups/tools/grps_installer.php and manually enter the chdir stated above. i'll update the instructions after the football.

leave your config as is, having just checked, it's found your global.php

Neal-UK
23 Sep 2006, 14:02
ok, installed now and will play around later with it.

ecansel
23 Sep 2006, 14:15
Warning: chdir(): No such file or directory (errno 2) in /home2/ecansel/public_html/groups/tools/grps_installer.php on line 45

Warning: main(./global.php): failed to open stream: No such file or directory in /home2/ecansel/public_html/groups/tools/grps_installer.php on line 65

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/ecansel/public_html/groups/tools/grps_installer.php on line 65


i cant fix... can you help me please?

Neal-UK
23 Sep 2006, 14:51
i cant fix... can you help me please?

Here:

i'll update the instructions after the football.

Lionel
23 Sep 2006, 15:03
what's the exact error message?

table icon does not exists. I fixed by adding AS icon in the left join statement

ericgtr
23 Sep 2006, 15:38
one more quick off the cuff try at something


// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("/home/radscan/public_html/");
// ## Set's the base root directory back to the forums for all images ##
$img_forums = "../";
// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;
Try it like this (no trailing slash)

chdir("/home/radscan/public_html");


This worked for me.

bada_bing
23 Sep 2006, 17:13
from what? 3.0.x or RC1 to RC1b?
No My question was for upgrading from RC1 to RC1b but what I did was reuploaded all the files and installed the plugin with override to yes

bada_bing
23 Sep 2006, 17:15
globalize(); does not exist in any of the files. not even commented out. reupload all of the files.
sabret00the

I have uploaded all the files again and uninstalled the plugin and re-installed the plugin and same thing? I also tried to run the install file but I got an error because the tables exist already in the database..

Any other ideas

bada_bing
23 Sep 2006, 17:17
if you wanna click uninstall go ahead, but at 5am in the morning when i'm firmly in bed making silly threats i won't see for atleast another five hours anyway is rather pointless.
Hehe sorry man I just was up late trying to get this to work... Was a bit axious..

DivisionByZero
23 Sep 2006, 19:00
for everyone still having problems, just run the queries by hand... thats what I did and it works fine for me.

sabret00the
23 Sep 2006, 19:48
New Zip:
RC2 Released.

This release fixes some problems regarding table prefixes and also clarifies the installation instructions.

In order to upgrade working installations, just replace the files, no need to reinstall the plugin at all.

Anybody having problems with the config and it's failure to find your forums, please try using the full path.

Oddjob
23 Sep 2006, 20:01
Got this working correctly. Sweet mod.

Only problem is that im using a custom style and all my images dont work. Where and how do i fix this?

sabret00the
23 Sep 2006, 20:06
Got this working correctly. Sweet mod.

Only problem is that im using a custom style and all my images dont work. Where and how do i fix this?
Your images in your css or your stylevars?

tako
23 Sep 2006, 20:10
i have my forum at root .com/ and your groups at .com/groups/
I installed css prefix plugin.

Now I have two problems

1. post icons and smilies (I thought you mention something in install.txt but couldn't get it work.)

2. Group reader avatar shows up but newest members avatar doesn't.

Thanks

Oddjob
23 Sep 2006, 21:02
Your images in your css or your stylevars?

Yea...stylevars, i got it fixed....all perfect now.......except for my avatars. Cant seem to get them working on there.

sabret00the
23 Sep 2006, 21:04
i have my forum at root .com/ and your groups at .com/groups/
I installed css prefix plugin.

Now I have two problems

1. post icons and smilies (I thought you mention something in install.txt but couldn't get it work.)

2. Group reader avatar shows up but newest members avatar doesn't.

Thanks
1. you definately have the full url to images set up via your full style options?

2. what's the url shown to the dead avatar images?

Milad
23 Sep 2006, 23:25
i had the option too, i chose not too.
You can skip some steps if you choose to.

why? it's a major addition, in short, i don't want to.

These are the standards

why?

It makes your product managing easist rather than the default vbulletin manager, try it.

Thank you.

Hornstar
24 Sep 2006, 00:37
This seems very popular ^^ I will have to try this out later. Nice work.

hippsta
24 Sep 2006, 01:36
ok i'm a retard, i got this installed, but i can't figure out how to access it lol...

i go to http://mysite.com/groups/*index.php,*groups.php... i only get a blank page...

i am totally noobing this one, any ideas?

sabret00the
24 Sep 2006, 01:52
ok i'm a retard, i got this installed, but i can't figure out how to access it lol...

i go to http://mysite.com/groups/*index.php,*groups.php... i only get a blank page...

i am totally noobing this one, any ideas?
did you install the plugin?

cd1986
24 Sep 2006, 01:57
Just installed RC2, but when i go to the groups index page (i have the groups folder in my forum directory - the root directory) all the links have /groups/ missing. Any ideas what the problem could be? I don't much fancy having to edit all the templates to include /groups/ in the urls. :p

For example, instead of mysite.com/groups/browse.php?c=2 i get mysite.com/browse.php?c=2

hippsta
24 Sep 2006, 02:15
did you install the plugin?

yeppers, sure did...

.Tim
24 Sep 2006, 02:24
yeppers, sure did...

I'm having the same problem.

hippsta
24 Sep 2006, 02:30
could the fact that i have VB 3.6.0 have any bearing?

sabret00the
24 Sep 2006, 10:35
Just installed RC2, but when i go to the groups index page (i have the groups folder in my forum directory - the root directory) all the links have /groups/ missing. Any ideas what the problem could be? I don't much fancy having to edit all the templates to include /groups/ in the urls. :p

For example, instead of mysite.com/groups/browse.php?c=2 i get mysite.com/browse.php?c=2
sadly people installing this in their forums directory or root wasn't something i forsaw, thus sadly you're going to have to edit the templates, i apologise for that. a quick method would be to make all the changes in the products xml file using find and replaces of the file names and then just overwriting the existing installation.

sabret00the
24 Sep 2006, 10:36
yeppers, sure did...
please check that the templates are present.

sabret00the
24 Sep 2006, 10:37
I'm having the same problem.
please check to make sure the templates are present.

sabret00the
24 Sep 2006, 10:37
could the fact that i have VB 3.6.0 have any bearing?nope, this even works on 3.5.x

soletrader
24 Sep 2006, 11:05
Anyone have a live demo that I can see? Thank you

hippsta
24 Sep 2006, 11:47
please check to make sure the templates are present.

They are, "groups_browse" through "groups_usercp_groupsbit"

sabret00the
24 Sep 2006, 12:28
They are, "groups_browse" through "groups_usercp_groupsbit"
two questions:
the templates definately cascaded to your default style?

and

what is the styleid or your default style?

Neal-UK
24 Sep 2006, 13:12
Since the update, the links now point to the wrong place so I can't access the group listings.

Oddjob
24 Sep 2006, 13:15
Anyone have a live demo that I can see? Thank you


You must register first.....

www.oneforums.com/groups

Elpie
24 Sep 2006, 13:21
Running with the 3.6.1 forum in the root of my site - couldn't get the installer to work so I populated the database manually.
Hardcoded with the full paths, checked that the templates had updated my default (just using the standard default, at this stage as its a clean install), double-checked that everything in the installation instructions had been followed, checked every post here... and now I am getting these errors...

Fatal error: Call to undefined function: print_no_permission() in <domain>\htdocs\forum\includes\functions_grps.php on line 387

Fatal error: Call to a member function clean_array_gpc() on a non-object in <domain>\htdocs\forum\groups\index.php on line 82

Any clues?

Benj
24 Sep 2006, 14:12
WOOOOOOO installs

sabret00the
24 Sep 2006, 14:19
Since the update, the links now point to the wrong place so I can't access the group listings.
what links?

sabret00the
24 Sep 2006, 14:24
Running with the 3.6.1 forum in the root of my site - couldn't get the installer to work so I populated the database manually.
Hardcoded with the full paths, checked that the templates had updated my default (just using the standard default, at this stage as its a clean install), double-checked that everything in the installation instructions had been followed, checked every post here... and now I am getting these errors...

Fatal error: Call to undefined function: print_no_permission() in <domain>\htdocs\forum\includes\functions_grps.php on line 387

Fatal error: Call to a member function clean_array_gpc() on a non-object in <domain>\htdocs\forum\groups\index.php on line 82

Any clues?
it appears to be looking for your files in a forum directory where as if you're running your forums in the root, then your errors should look like this

Fatal error: Call to undefined function: print_no_permission() in <domain>\htdocs\includes\functions_grps.php on line 387

Fatal error: Call to a member function clean_array_gpc() on a non-object in <domain>\htdocs\groups\index.php on line 82

But i'm pretty sure that's a config issue (server) and thus i'm incorrect.

are you not getting any errors regarding problems finding the global.php?

Neal-UK
24 Sep 2006, 14:37
what links?

The category listings, etc...

Benj
24 Sep 2006, 14:51
ive got it working one question. in the config file ive specified the img url as "../" but my images still come up with groups/images/misc etc etc any ideas ?

might also be an idea to link to the template varible admincp instead of actualy linking to admincp for thouse of us who have renamed our admincp :D

cheers

soletrader
24 Sep 2006, 14:54
You must register first.....

www.oneforums.com/groups

Just to let you know... the registeration link from that link is not working. You should look into it. I had to go to the forum home to register.

sabret00the
24 Sep 2006, 15:00
The category listings, etc...
where are they pointing to?

sabret00the
24 Sep 2006, 15:00
ive got it working one question. in the config file ive specified the img url as "../" but my images still come up with groups/images/misc etc etc any ideas ?
Please set your images as per your style options in the admincp.

Neal-UK
24 Sep 2006, 15:10
where are they pointing to?

website/?do=creategroup

website/browse.php?c=1

Not pointing in the group folder, just the root

Benj
24 Sep 2006, 15:14
Just to let you know... the registeration link from that link is not working. You should look into it. I had to go to the forum home to register.

all my navbar links link to groups/search.php etc etc is that happening to everyone else ?

Benj
24 Sep 2006, 15:20
Please set your images as per your style options in the admincp.
what ? thats a very confusing answer

soletrader
24 Sep 2006, 15:38
I would like to receive some help running the installer.

Is this the line I need to edit?

chdir('../../forums/');

Also if my forum is located in /home/sole/public_html/forums, do I need to fix the coding to

chdir('/home/sole/public_html/forums'); ??


Also how do I edit config_grps.php? Sorry for these newbie questions. I am not familiar with coding. Any help would be appreciated.

Thank you.

Benj
24 Sep 2006, 15:47
I would like to receive some help running the installer.

Is this the line I need to edit?

chdir('../../forums/');

Also if my forum is located in /home/sole/public_html/forums, do I need to fix the coding to

chdir('/home/sole/public_html/forums'); ??


Also how do I edit config_grps.php? Sorry for these newbie questions. I am not familiar with coding. Any help would be appreciated.

Thank you.

yeah that looks right. just open the file with wordpad on your harddrive and upload it

soletrader
24 Sep 2006, 15:49
How do I delete a group?

Also, when I leave a group I get the following error:

print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))


Any suggestions?

sabret00the
24 Sep 2006, 17:04
website/?do=creategroup

website/browse.php?c=1

Not pointing in the group folder, just the root
i have no idea why that's happening, i'm looking into it, please bare with me.

sabret00the
24 Sep 2006, 17:04
all my navbar links link to groups/search.php etc etc is that happening to everyone else ?
can you confirm the last ten lines of a file in which you have these problems.

sabret00the
24 Sep 2006, 17:10
How do I delete a group?

Also, when I leave a group I get the following error:

print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))


Any suggestions?
Having just checked, i appear to have completely forgot that option, despite confirming it was present a couple weeks back, give me a couple hours and i'll add that ability in RC3. I'm going to take a nap first.

soletrader
24 Sep 2006, 17:16
Thank you sabret00the. If you could look into the error message as well, I would appreciate it. I love this hack :)

sabret00the
24 Sep 2006, 17:19
good thing you told me about that again, i would've missed that. ok that'll be fixed with RC3, anything else that anyone finds or any issues that people have, nows the time to post them. i'm not looking to make two releases today.

sabret00the
24 Sep 2006, 17:21
also folks, please note that the instant email notification is being cooky and thus if i'm late to return to this thread it's because it's not told me about there being anything to return too, however i'm checking the thread every now and again anyway.

Neal-UK
24 Sep 2006, 17:21
i have no idea why that's happening, i'm looking into it, please bare with me.

IT'S NOT THIS HACK, IT'S ZOINTS SEO!

Sorry about that, your hack is fine it's just zoints seo making a mess of links on added forum features.

Benj
24 Sep 2006, 18:39
can you confirm the last ten lines of a file in which you have these problems.

what the navbar template or the groups php file ?

sabret00the
24 Sep 2006, 19:41
what the navbar template or the groups php file ?
nope, if you're having problems with the groups/browse.php then please open groups/browse.php in your editor come in here and post the contents between [php] tags.

hippsta
24 Sep 2006, 20:22
two questions:
the templates definately cascaded to your default style?

and

what is the styleid or your default style?

Ok I'm using 'Default Style' styleid:1, the templates are present, and presumably cascaded, however i'm also using Zoints i noticed Neal said his problem was with that.... Thanks for all the help btw

sabret00the
24 Sep 2006, 20:35
Ok I'm using 'Default Style' styleid:1, the templates are present, and presumably cascaded, however i'm also using Zoints i noticed Neal said his problem was with that.... Thanks for all the help btw
Sorry to make you do this but could you try disabling all the plugins you have running and letting me know if you still have the problem please.

hippsta
24 Sep 2006, 20:56
i disabled all the other products/plugins.. navigated to /groups/, /groups/index.php, /groups/groups.php, /groups/viewgroups.php and its still a blank-page with Done. at the bottom... Are those the right things to nav to?

sabret00the
24 Sep 2006, 21:12
i disabled all the other products/plugins.. navigated to /groups/, /groups/index.php, /groups/groups.php, /groups/viewgroups.php and its still a blank-page with Done. at the bottom... Are those the right things to nav to?
yup yup, that's fine, please reupload all of the files (not including the product xml file) and then try again.

ronoxQ
24 Sep 2006, 21:28
Two things:

1) My directory for groups is blank. http://oasisforums.omegaseye.com/groups/

2) It really could use integration with vbPlaza.

ericgtr
24 Sep 2006, 21:29
Please set your images as per your style options in the admincp.
In RC3 are you going to resolve the path issue? No matter what I set it to in the config file all of my forum image paths still have /groups in it.

FleaBag
24 Sep 2006, 21:41
Fantastic hack! Looks like I'm going to have some trouble with the image paths too. Installing now...

EDIT: Yup. :(


Warning: chdir(): No such file or directory (errno 2) in /home/dninja/public_html/groups/includes/config_grps.php on line 45

Warning: main(./global.php): failed to open stream: No such file or directory in /home/dninja/public_html/groups/index.php on line 75

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dninja/public_html/groups/index.php on line 75

sabret00the
24 Sep 2006, 21:49
Fantastic hack! Looks like I'm going to have some trouble with the image paths too. Installing now...

EDIT: Yup. :(
fleabag, have you tried using the full path to your forums in the config?

ericgtr
24 Sep 2006, 21:53
I have personally changed it to every variation I can think of, I got it to work fine for the child directory but can't get it to work at all for images.

So instead of the default which would be this for example:

http://www.guitarblast.com/images/kirsch/misc/navbits_start.gif


It still ends up like ths:

http://www.guitarblast.com/groups/images/kirsch/misc/navbits_start.gif

FleaBag
24 Sep 2006, 21:56
That worked! I'd already read about that earlier today... D'oH!

sabret00the
24 Sep 2006, 22:00
In RC3 are you going to resolve the path issue? No matter what I set it to in the config file all of my forum image paths still have /groups in it.
not being sure what the issue is, i think it's it's an end-user thing, but i'll find out for sure. please upload this file to your groups directory, load the page in your browswer (www.yoursite.com/groups/test_stylevars.php) and then copy and paste the whole thing here.

sabret00the
24 Sep 2006, 22:04
Two things:

1) My directory for groups is blank. http://oasisforums.omegaseye.com/groups/

2) It really could use integration with vbPlaza.
1. the no permission page is showing for guests, you're however getting blank pages?

2. the queries are in place for uCS it wouldn't be hard for someone to release a vBplaza hack for it, it's just a matter of tweaking the queries.

hippsta
24 Sep 2006, 22:05
Ok that problem is solved.. ^.^ /cheer.. i AM a total 'tard lol!
it works for me like this in the config:

// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("/");

// ## Set's the base root directory back to the forums for all images ##
$img_forums = "http://www.mysite.com/";

except! every other time literally that i hit refresh on /groups/index.php.. the group image doesn't load... and just like most others, my style images; (gradients, table, alt-table) don't load at all.

Thank You for Your Time and Effort!

edit: i take back the 'literally' it just loaded 2 in a row ^.~

ronoxQ
24 Sep 2006, 22:09
1. the no permission page is showing for guests, you're however getting blank pages?

2. the queries are in place for uCS it wouldn't be hard for someone to release a vBplaza hack for it, it's just a matter of tweaking the queries.

1) Whoops. Fixed that.

2) I hope somebody does...

ericgtr
24 Sep 2006, 22:12
Sure, these are all correct but I cannot get the $img_forums right no matter what, I've tried the actual URL as well as /home/public_html/mysite/images regardless of what I try it puts a /group before the images.

Array
(
[codeblockwidth] => 480px
[imgdir_attach] => images/kirsch/attach
[imgdir_button] => images/kirsch/buttons
[imgdir_editor] => images/kirsch/editor
[imgdir_misc] => images/kirsch/misc
[imgdir_poll] => images/kirsch/polls
[imgdir_rating] => images/kirsch/rating
[imgdir_reputation] => images/kirsch/reputation
[imgdir_statusicon] => images/kirsch/statusicon
[outertablewidth] => 95%
[spacersize] => 20
[titleimage] => images/kirsch/misc/banner.jpg
[cellpadding] => 6
[cellspacing] => 1
[closedthreadimage] => images2/buttons/threadclosed.gif
[contenttype] => text/html; charset=ISO-8859-1
[formspacer] => 3
[formwidth] => 640px
[formwidth_usercp] => 480px
[htmldoctype] =>
[htmlextrasfolder] => htmlextras
[imagesfolder] => images
[messagewidth] => 540px
[messagewidth_usercp] => 380px
[newreplyimage] => images2/buttons/reply.gif
[newthreadimage] => images2/buttons/newthread.gif
[outerborderwidth] => 20
[tablewidth] => 100%
[textareacols_ie4] => 70
[textareacols_ns4] => 50
[textareacols_ns6] => 65
[textdirection] => ltr
[left] => left
[right] => right
[languagecode] => en
[charset] => ISO-8859-1
[body_bgcolor] => #FFFFFF
[body_fgcolor] => #000000
[page_bgcolor] => #FFFFFF
[page_fgcolor] => #000000
[tborder_bgcolor] => #FFFFFF
[tborder_fgcolor] => #000000
[tcat_bgcolor] => #869BBF
[tcat_fgcolor] => #000000
[thead_bgcolor] => #5C7099
[thead_fgcolor] => #000000
[tfoot_bgcolor] => #31688E
[tfoot_fgcolor] => #FFFFFF
[alt1_bgcolor] => #F5F7F9
[alt1_fgcolor] => #000000
[alt2_bgcolor] => #EEF0F2
[alt2_fgcolor] => #000000
[td.inlinemod_bgcolor] => #FFFFCC
[td.inlinemod_fgcolor] => #000000
[wysiwyg_bgcolor] => #FFFFFF
[wysiwyg_fgcolor] => #000000
[time_fgcolor] => #999999
[highlight_fgcolor] => #FF0000
[fjsel_bgcolor] => #3E5C92
[fjsel_fgcolor] => #E0E0F6
[fjdpth0_bgcolor] => #F7F7F7
[fjdpth0_fgcolor] => #000000
[panel_bgcolor] => #E4E7F5
[panel_fgcolor] => #000000
[panelsurround_bgcolor] => #D5D8E5
[panelsurround_fgcolor] => #000000
[legend_fgcolor] => #22229C
[vbmenu_control_bgcolor] => #31688E
[vbmenu_control_fgcolor] => #FFFFFF
[vbmenu_popup_bgcolor] => #FFFFFF
[vbmenu_popup_fgcolor] => #000000
[vbmenu_option_bgcolor] => #F5F7F9
[vbmenu_option_fgcolor] => #000000
[vbmenu_hilite_bgcolor] => #EEF0F2
[vbmenu_hilite_fgcolor] => #000000
[outerdivwidth] => 95%
[divwidth] => auto
[imgdir_grps] => images/grps
)

sabret00the
24 Sep 2006, 22:28
Sure, these are all correct but I cannot get the $img_forums right no matter what, I've tried the actual URL as well as /home/public_html/mysite/images regardless of what I try it puts a /group before the images.

Array
(
[codeblockwidth] => 480px
[imgdir_attach] => images/kirsch/attach
[imgdir_button] => images/kirsch/buttons
[imgdir_editor] => images/kirsch/editor
[imgdir_misc] => images/kirsch/misc
[imgdir_poll] => images/kirsch/polls
[imgdir_rating] => images/kirsch/rating
[imgdir_reputation] => images/kirsch/reputation
[imgdir_statusicon] => images/kirsch/statusicon
[outertablewidth] => 95%
[spacersize] => 20
[titleimage] => images/kirsch/misc/banner.jpg
[cellpadding] => 6
[cellspacing] => 1
[closedthreadimage] => images2/buttons/threadclosed.gif
[contenttype] => text/html; charset=ISO-8859-1
[formspacer] => 3
[formwidth] => 640px
[formwidth_usercp] => 480px
[htmldoctype] =>
[htmlextrasfolder] => htmlextras
[imagesfolder] => images
[messagewidth] => 540px
[messagewidth_usercp] => 380px
[newreplyimage] => images2/buttons/reply.gif
[newthreadimage] => images2/buttons/newthread.gif
[outerborderwidth] => 20
[tablewidth] => 100%
[textareacols_ie4] => 70
[textareacols_ns4] => 50
[textareacols_ns6] => 65
[textdirection] => ltr
[left] => left
[right] => right
[languagecode] => en
[charset] => ISO-8859-1
[body_bgcolor] => #FFFFFF
[body_fgcolor] => #000000
[page_bgcolor] => #FFFFFF
[page_fgcolor] => #000000
[tborder_bgcolor] => #FFFFFF
[tborder_fgcolor] => #000000
[tcat_bgcolor] => #869BBF
[tcat_fgcolor] => #000000
[thead_bgcolor] => #5C7099
[thead_fgcolor] => #000000
[tfoot_bgcolor] => #31688E
[tfoot_fgcolor] => #FFFFFF
[alt1_bgcolor] => #F5F7F9
[alt1_fgcolor] => #000000
[alt2_bgcolor] => #EEF0F2
[alt2_fgcolor] => #000000
[td.inlinemod_bgcolor] => #FFFFCC
[td.inlinemod_fgcolor] => #000000
[wysiwyg_bgcolor] => #FFFFFF
[wysiwyg_fgcolor] => #000000
[time_fgcolor] => #999999
[highlight_fgcolor] => #FF0000
[fjsel_bgcolor] => #3E5C92
[fjsel_fgcolor] => #E0E0F6
[fjdpth0_bgcolor] => #F7F7F7
[fjdpth0_fgcolor] => #000000
[panel_bgcolor] => #E4E7F5
[panel_fgcolor] => #000000
[panelsurround_bgcolor] => #D5D8E5
[panelsurround_fgcolor] => #000000
[legend_fgcolor] => #22229C
[vbmenu_control_bgcolor] => #31688E
[vbmenu_control_fgcolor] => #FFFFFF
[vbmenu_popup_bgcolor] => #FFFFFF
[vbmenu_popup_fgcolor] => #000000
[vbmenu_option_bgcolor] => #F5F7F9
[vbmenu_option_fgcolor] => #000000
[vbmenu_hilite_bgcolor] => #EEF0F2
[vbmenu_hilite_fgcolor] => #000000
[outerdivwidth] => 95%
[divwidth] => auto
[imgdir_grps] => images/grps
)


ok, the problem isn't down to the whole img_forums thing, in fact that's not even in RC3 at all.

you need to set your images in your admincp, in your style settings, change images/kirsch/attach => www.yoursite.com/forums/images/kirsch/attach

sabret00the
24 Sep 2006, 22:30
Ok that problem is solved.. ^.^ /cheer.. i AM a total 'tard lol!
it works for me like this in the config:

// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("/");

// ## Set's the base root directory back to the forums for all images ##
$img_forums = "http://www.mysite.com/";

except! every other time literally that i hit refresh on /groups/index.php.. the group image doesn't load... and just like most others, my style images; (gradients, table, alt-table) don't load at all.

Thank You for Your Time and Effort!

edit: i take back the 'literally' it just loaded 2 in a row ^.~
in your GRPS options, change the random image count down to three and as for your images, please see my previous post directed at ericgtr

Azhrialilu
24 Sep 2006, 22:44
sweet goddess, Sabe have I told you I love you at all lately? :D

hippsta
24 Sep 2006, 22:44
in your GRPS options, change the random image count down to three
Sweet! that worked for that thank you (b^.^)b

as for your images, please see my previous post directed at ericgtr

no, no, my fori are in root.. plus my style images work on every or page but the groups set.. this will make no images work anywhere, won't it?

sabret00the
24 Sep 2006, 22:51
sweet goddess, Sabe have I told you I love you at all lately? :D
nope, but you know i'm always listening ;)

Azhrialilu
24 Sep 2006, 22:52
:D.. well consider yourself told! I've been waiting for this for a loooooong time! And where's those tattoo pics?

sabret00the
24 Sep 2006, 22:53
Sweet! that worked for that thank you (b^.^)b



no, no, my fori are in root.. plus my style images work on every or page but the groups set.. this will make no images work anywhere, won't it?
if you change them to www.yoursite.com/images/buttons/ (that's an example) everything will work fine. i can give you the exact text if you run this file 53877

ericgtr
24 Sep 2006, 22:55
Okay, I put the full URL in the paths under the style options and the forum images are now working, thanks. I have a custom header and have to work out the paths to the images as they are not set in the style options. Also, my forum root is forum.php not index.php so my the link back to my forum says http://www.guitarblast.com/groups/forum.php, again we don't want groups in there.

Here is how my cofig is set:

chdir("/home/guitar/public_html");

sabret00the
24 Sep 2006, 22:58
:D.. well consider yourself told! I've been waiting for this for a loooooong time! And where's those tattoo pics?
ooh i've been told ;) As for the tatt pics, they're are on the way, sadly i was too busy sorting all this out to get on the job earlier :(

sabret00the
24 Sep 2006, 23:04
Okay, I put the full URL in the paths under the style options and the forum images are now working, thanks. I have a custom header and have to work out the paths to the images as they are not set in the style options. Also, my forum root is forum.php not index.php so my the link back to my forum says http://www.guitarblast.com/groups/forum.php, again we don't want groups in there.

Here is how my cofig is set:

chdir("/home/guitar/public_html");

sadly the forum thing in the navbar is not something i forsaw, in fact if it was upto me, the navbar would have the groups at the root and not the forums, however jelsoft :( :ermmm: ;) anyhoo to fix that you're gonna have to do a file edit.

in your ROOT/includes/functions_grps.php find

array(
// navbar replacements
'usercp.php',
and replace with

array(
// navbar replacements
'usercp.php',
'forum.php',

now find in the same file

array(
// navbar links
$vbulletin->options['bburl'] . '/usercp.php',


and replace that with

array(
// navbar links
$vbulletin->options['bburl'] . '/usercp.php',
$vbulletin->options['bburl'] . '/forum.php',


now save the file and upload it and you're sorted.

ronoxQ
24 Sep 2006, 23:06
Never mind! Fixed!

Heh, it was the specialized JavaScript navbar I was using. Not your problem at all. ^_^

hippsta
24 Sep 2006, 23:13
if you change them to www.yoursite.com/images/buttons/ (that's an example) everything will work fine.

Thats what they are currently (can't have trailing slash) .. i tried /images/buttons which had the same effect..
http://www.mysite.com/images/xxxx returned even less images... like even the dropdown arrows and buttons were missing..
still no style or css on the pages tho..

i can give you the exact text if you run this file Attachment 53877
=


Array
(
[cellpadding] => 6
[cellspacing] => 1
[closedthreadimage] => images2/buttons/threadclosed.gif
[codeblockwidth] => 640px
[contenttype] => text/html; charset=ISO-8859-1
[formspacer] => 3
[formwidth] => 640px
[formwidth_usercp] => 480px
[htmldoctype] =>
[htmlextrasfolder] => htmlextras
[imagesfolder] => images
[messagewidth] => 540px
[messagewidth_usercp] => 380px
[newreplyimage] => images2/buttons/reply.gif
[newthreadimage] => images2/buttons/newthread.gif
[outerborderwidth] => 20
[outertablewidth] => 100%
[spacersize] => 25
[tablewidth] => 100%
[textareacols_ie4] => 70
[textareacols_ns4] => 50
[textareacols_ns6] => 65
[imgdir_attach] => /images/attach
[imgdir_button] => /images/buttons
[imgdir_editor] => /images/editor
[imgdir_misc] => /images/misc
[imgdir_poll] => /images/polls
[imgdir_rating] => /images/rating
[imgdir_reputation] => /images/reputation
[imgdir_statusicon] => /images/statusicon
[titleimage] => /images/Hiplogo3.jpg
[textdirection] => ltr
[left] => left
[right] => right
[languagecode] => en
[charset] => ISO-8859-1
[body_bgcolor] => #FFFFFF
[body_fgcolor] => #000066
[page_bgcolor] => #FFFFFF
[page_fgcolor] => #000022
[tborder_bgcolor] => #EFEFFF
[tborder_fgcolor] => #000022
[tcat_bgcolor] => #869BBF
[tcat_fgcolor] => #FFFFFF
[thead_bgcolor] => #5C7099
[thead_fgcolor] => #FFFFFF
[tfoot_bgcolor] => #E1E1FF
[tfoot_fgcolor] => #000022
[alt1_bgcolor] => #EFFFEF
[alt1_fgcolor] => #000022
[alt2_bgcolor] => #E1E1FF
[alt2_fgcolor] => #000022
[td.inlinemod_bgcolor] => #FFC8C8
[td.inlinemod_fgcolor] => #000000
[wysiwyg_bgcolor] => #F5F5FF
[wysiwyg_fgcolor] => #000000
[time_fgcolor] => #660099
[highlight_fgcolor] => #FF0000
[fjsel_bgcolor] => #FFFFFF
[fjsel_fgcolor] => #000022
[fjdpth0_bgcolor] => #F7F7F7
[fjdpth0_fgcolor] => #000000
[panel_bgcolor] => #E4E7F5
[panel_fgcolor] => #000000
[panelsurround_bgcolor] => #FFFFFF
[panelsurround_fgcolor] => #000022
[legend_fgcolor] => #000022
[vbmenu_control_bgcolor] => #E1E1FF
[vbmenu_control_fgcolor] => #000022
[vbmenu_popup_bgcolor] => #FFFFFF
[vbmenu_popup_fgcolor] => #000022
[vbmenu_option_bgcolor] => #EFFFEF
[vbmenu_option_fgcolor] => #000022
[vbmenu_hilite_bgcolor] => #E1E1FF
[vbmenu_hilite_fgcolor] => #000022
[outerdivwidth] => 100%
[divwidth] => auto
[imgdir_grps] => images/grps
)

sabret00the
24 Sep 2006, 23:24
Thats what they are currently (can't have trailing slash) .. i tried /images/buttons which had the same effect..
http://www.mysite.com/images/xxxx returned even less images... like even the dropdown arrows and buttons were missing..
still no style or css on the pages tho..


=


Array
(
[cellpadding] => 6
[cellspacing] => 1
[closedthreadimage] => images2/buttons/threadclosed.gif
[codeblockwidth] => 640px
[contenttype] => text/html; charset=ISO-8859-1
[formspacer] => 3
[formwidth] => 640px
[formwidth_usercp] => 480px
[htmldoctype] =>
[htmlextrasfolder] => htmlextras
[imagesfolder] => images
[messagewidth] => 540px
[messagewidth_usercp] => 380px
[newreplyimage] => images2/buttons/reply.gif
[newthreadimage] => images2/buttons/newthread.gif
[outerborderwidth] => 20
[outertablewidth] => 100%
[spacersize] => 25
[tablewidth] => 100%
[textareacols_ie4] => 70
[textareacols_ns4] => 50
[textareacols_ns6] => 65
[imgdir_attach] => /images/attach
[imgdir_button] => /images/buttons
[imgdir_editor] => /images/editor
[imgdir_misc] => /images/misc
[imgdir_poll] => /images/polls
[imgdir_rating] => /images/rating
[imgdir_reputation] => /images/reputation
[imgdir_statusicon] => /images/statusicon
[titleimage] => /images/Hiplogo3.jpg
[textdirection] => ltr
[left] => left
[right] => right
[languagecode] => en
[charset] => ISO-8859-1
[body_bgcolor] => #FFFFFF
[body_fgcolor] => #000066
[page_bgcolor] => #FFFFFF
[page_fgcolor] => #000022
[tborder_bgcolor] => #EFEFFF
[tborder_fgcolor] => #000022
[tcat_bgcolor] => #869BBF
[tcat_fgcolor] => #FFFFFF
[thead_bgcolor] => #5C7099
[thead_fgcolor] => #FFFFFF
[tfoot_bgcolor] => #E1E1FF
[tfoot_fgcolor] => #000022
[alt1_bgcolor] => #EFFFEF
[alt1_fgcolor] => #000022
[alt2_bgcolor] => #E1E1FF
[alt2_fgcolor] => #000022
[td.inlinemod_bgcolor] => #FFC8C8
[td.inlinemod_fgcolor] => #000000
[wysiwyg_bgcolor] => #F5F5FF
[wysiwyg_fgcolor] => #000000
[time_fgcolor] => #660099
[highlight_fgcolor] => #FF0000
[fjsel_bgcolor] => #FFFFFF
[fjsel_fgcolor] => #000022
[fjdpth0_bgcolor] => #F7F7F7
[fjdpth0_fgcolor] => #000000
[panel_bgcolor] => #E4E7F5
[panel_fgcolor] => #000000
[panelsurround_bgcolor] => #FFFFFF
[panelsurround_fgcolor] => #000022
[legend_fgcolor] => #000022
[vbmenu_control_bgcolor] => #E1E1FF
[vbmenu_control_fgcolor] => #000022
[vbmenu_popup_bgcolor] => #FFFFFF
[vbmenu_popup_fgcolor] => #000022
[vbmenu_option_bgcolor] => #EFFFEF
[vbmenu_option_fgcolor] => #000022
[vbmenu_hilite_bgcolor] => #E1E1FF
[vbmenu_hilite_fgcolor] => #000022
[outerdivwidth] => 100%
[divwidth] => auto
[imgdir_grps] => images/grps
)


Click this link here (http://www.hippsta.com/admincp/css.php?s=&do=edit&dowhat=all&group=&dostyleid=1)

now starting from Buttom Images Folder, going right down to Reputation Images Folder

click input box, click home and then paste this 'http://www.hippsta.com'

i.e. when you're done, the file should show these

[closedthreadimage] => http://www.hippsta.com/images2/buttons/threadclosed.gif
[newreplyimage] => http://www.hippsta.com/images2/buttons/reply.gif
[newthreadimage] => http://www.hippsta.com/images2/buttons/newthread.gif
[imgdir_attach] => http://www.hippsta.com/images/attach
[imgdir_button] => http://www.hippsta.com/images/buttons
[imgdir_editor] => http://www.hippsta.com/images/editor
[imgdir_misc] => http://www.hippsta.com/images/misc
[imgdir_poll] => http://www.hippsta.com/images/polls
[imgdir_rating] => http://www.hippsta.com/images/rating
[imgdir_reputation] => http://www.hippsta.com/images/reputation
[imgdir_statusicon] => http://www.hippsta.com/images/statusicon


that will fix your image issue.

Benj
24 Sep 2006, 23:37
here you go the contents of my groups/browse.php

<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXXXiXMZXXS22XX8M0 rXXXXX7r20@MMMW8;;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXX7.M8XXXr :0MMMMZ:XXXX72W8S7rrXS8MB;;7XXXXXXXXXXSXXXSXXXXXXSXXXXXXXXXXXSXXXXXXXSXXXXXX
//77777X7777X77XXiSMSXrWMMMBi ,@M XX7rZ8;,,,,i;;;7aMSi777XX77XXX7XX77XXXXX77X7XXX7XX77XX7XXX7XX7XXXXXX
//XXX7777XX777777:BMMMZr i;ZM 777SZi,:::ii;r;r7S@a:777777777777777X7XX777X7X7XXXXXXX7777XX7XX77X77
//XXXXXXXXXXXXXXX:ZM. .,:;rZM 77:8,,::.. .:iXMr;XXXXXXXXXXXXX7X7XXXX7X7X77X7XX77XXXXXXXXXXXXXX
//777777777777777iiMX:,,,,::irXMa.7riM, .;0MMMM8iXM.r777777777777777777777777777777777r777777777r7
//777777777777777r.@MX.,:iiiir2@ ;;7MMMMMMMM@ar:.iX8SMi;777777777777777777777777777777777777777777777
//7777777777777777i MM@r::iir8MMWX Mi .ii;;rS@Xi777777777777777777777777777777777777777777777
//rrrrrrrrrrrrrrrrri iMMMMMMM070MM7 ;Z.,.....,:i;rraZ8X:rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//r77777777rrrrrrrrr rMaW77i :::i;ZMM a;,,,,::i;r77rZ@0:irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rr;rr;r;i. ,. MX:7 BSX7r7aMM.2;iii;;;rX772MMM ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rrrrr;, ;B@@8: 28;72@ MSXXrrXWMMaMXii;;r7X7SM, ,rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//;rr;i XMMMMMMMMMMM:iXX@ M2X2X;SB@M .M0X;;;7a@MM7. ,;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr;r;rrrrr;
//;;ii MMM@WWWWWWMMM8.XXZM MS::arX@Mr 2ZMMMMMMMM7iSMM :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//;;; MM@WWWWWWWWWBM0 7XSM MSa Z00B; MMBr2SZ8r :rSSSZM2 .i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;r;;;;;;;;
//ii. MM@WWWWMMMM@WMM22XS2BW M0MBa0. 7MM@8SrS2aZ8Z22MM :iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
//;; ,MMMM@W@@. MMM, Za2aZ0.Si;: MMaWMMMMMMMMMMMZ i;;;;iiiii;;;;;;;iiiiiiiii;;;iiiiiiiiiiii
//i: MM8 8@WWWaMMMX .rZ ,r7 ;MMMMMMMW MMX .MMS27;;rrr;iiiiiiiiir777r;iiiiiiiiiiiiiiiii
//ii MM WMWMMMM ,:iM .i;S, :MMMMMMMMMMM :MMMMMZ ZX;;rSaS7;ii;X2r. ;SX;iiiiiiiiiiiiiii
//i: MMaZM@MM0 ,,::iM; ;X MMMMMM MMM rMMMMMMMMMMMMMMM XSXS X;iiiiiiiiiiiiii
//:: MMM@@MMi .:,::i;;M; 7 MMMM; MM MMMMMMMMMMMMMMMMMMM.MMMMMS MMMMM 7i:::i:::::::::
//:: MM@WMM :i;ii;;rrM . MMMM XMMM MM MMMM MMM WMMMMMMMMMMMMW MMMMMMMM i;iiiiiiiiiiiii
//:: MM@MM i;77rrrrr2MX8 MMMM WM2 MMM MMMMMBMMM:MMMMMMMMMM0 MMM r,,,,,:,,,,,,:
//::: MMMM ir;rXrrr78MMMM :MMM ,7ZMM@a::S 8MM. MMMMMMM MM :MMMMMM MMM 7:::::::::::::
//,,, MMM2rX77X7X0MMZ7M MMM0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMM 7 MMMM :, MMM r,,,,,,,,,,,,,
//,,,, MMMMMMMMMMMW aM MMM2MMMMMMMMMMMMMMMMMMMMMMMMMMMMB MMM .r MMMMM ; MMM Xrr;i:,,,,,,,,
//,,,,,. SX.;aM7 M MMM :88i MMMr MMMMMMMMM :i MMX 7MMMM :i,,,,,.,
//,..,.,. B7i:..2M , ;i @MMM @MMMM MMMMM MMMM MMX @MMMMMMMMMMMMMMMMMMMMB .:......
//..,... MWSX7772WM2 M MMMMMMMMMMMMMMMa , MMM MMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :,,,,,,
//...... M2 S7XSr ,BM M MMMMMMMMMMMMZ ::i. 8MMM MMMMMMMMMMMMMM2 ;20MMMMMMMMMMMZ .......
//...... MMZ7Z22aBS82@M, @M MMMMMMMM :,.,. MMM .MMMMMWMMM . MMMB ,.....
//.,,,,. MMMMMMMMMMMMMMMM: MMM ::,,,,,, MMM , 0MMMMMMM :::. MMM .:::: MMMM ,,,,,,.
// :MM@ ;MMMMMMM MMM MMMMZ
// MMMMM 0MMM SMMMMM
// GRPS: Commune For Groups ,MMMa MMMMX MMMMMM
// vBulletin Add-On Software MMMM MMMMMMMMMMM
// by sabret00the MMM MMMMMMa
// Copyright 2005 M

// ################ 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', 'browse');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

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

// pre-cache templates used by all actions
$globaltemplates = array(
'GROUPS',
'groups_browse',
'groups_browse_cathead',
'groups_browse_catbit',
'groups_browse_catfoot',
'groups_groupshome_popularbits',
'groups_groupshome_largestbits',
'groups_groupshome_mygroups',
'groups_groupshome_mygroupsbits',
'groups_navbar',
);

// ######################### REQUIRE BACK-END ############################
require_once("./global.php");
require_once("./includes/functions_grps.php");



// 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,
'c' => TYPE_INT,
));

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// temp admin options
// url of the grps
$groupurl = "$vbulletin->options[homeurl]/groups/?groupid=$groupid";

if ($vbulletin->options['grps_status']=="0") {
eval(print_standard_error('grps_statusoff'));
}

// this switch handles the right column
$grps_pagetitle = "Browse Groups";

// ###################### pagenav
$pagenavcount = $db->query_first("
SELECT COUNT(*) AS totalgroups
FROM grps
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
WHERE grps.approved = '1'
ORDER BY grps.title
");

switch ($vbulletin->GPC['view'])
{
case "alphabetical":
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1' ");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'] ."view=alphabetical";
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

// add's page title
$grps_pagetitle .= " Alphabetically";

$grps_alphabetical = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
ORDER BY grps.title
LIMIT $query_lowerlimit, $perpage
");

$grps_categoryinfo['catname'] = "All " . $vbulletin->options[hometitle] . " Groups In Alphabetical Order";
$hideviewall = 1;

eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
if (!$db->num_rows($grps_alphabetical))
{ // no groups, this becomes obselete after the first group gets created
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups currently found in the database</td></tr>";
}
else
{ // display the information
while ($grps_categoryinfo = $db->fetch_array($grps_alphabetical))
{
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");
} //now echo the date into the template
}
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
break;
case "bymembers":
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'] ."view=bymembers";
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

// add's page title
$grps_pagetitle .= " By Number Of Members";

$grps_members = $db->query_read("
SELECT COUNT(*) AS totalmembers, grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps_user
LEFT JOIN grps ON (grps.groupid = grps_user.groupid)
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
GROUP BY grps.groupid
ORDER BY totalmembers DESC, grps.title
LIMIT $query_lowerlimit, $perpage
");

$grps_categoryinfo['catname'] = $vbulletin->options[hometitle] . " Groups Ordered By Size";
$hideviewall = 1;

eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
if (!$db->num_rows($grps_members))
{ // no groups, this becomes obselete after the first group gets created
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups currently found in the database</td></tr>";
}
else
{ // display the information
while ($grps_categoryinfo = $db->fetch_array($grps_members))
{
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");
} //now echo the date into the template
}
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
break;
default:
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'];
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

// page title for grouphome.
$grps_pagetitle .= " By Categories";

// selects the number of validated groups for group home
$total = $db->query_read("
SELECT groupid
FROM grps
WHERE approved = 1
");

$num = number_format($db->num_rows($total));

$grps_limit=10;

if ($vbulletin->options[grps_moderation]=="1")
{
$grps_moderation="WHERE grps.visible=1";
}

$grps_categories = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps_categories
INNER JOIN grps ON grps_categories.catid = grps.catid AND grps.approved = '1'
INNER JOIN grps AS G2 ON grps_categories.catid = G2.catid AND G2.approved = '1' AND grps.title >= G2.title
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps_setting.hidden_group != '1'
GROUP BY grps_categories.title, grps.title, grps.description, grps.leaderid
HAVING COUNT(*) <= 10
ORDER BY grps.catid, grps.title
LIMIT $query_lowerlimit, $perpage
");

if (!$db->num_rows($grps_categories))
{ // no groups, this becomes obselete after the first group gets created
eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found in this catergory at this time</td></tr>";
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
}
else
{ // display the information
$row = "0";
while ($grps_categoryinfo = $db->fetch_array($grps_categories))
{
if ($row == 0)
{

eval("\$grps_catbits .= \"" . fetch_template("groups_browse_cathead") . "\";");

// reset catname store
$grps_catidstore = $grps_categoryinfo['catid'];
$seperator = TRUE;
}

if ($grps_catidstore != $grps_categoryinfo[catid] AND $row != 0)
{
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_cathead") . "\";");
}

$grps_categoryinfo['catid'] = intval($grps_categoryinfo['catid']);
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));
$grps_categoryinfo['catname'] = stripslashes($grps_categoryinfo['catname']);

eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");

if ($grps_categoryinfo[catid] != $grps_catidstore)
{
// reset catname store
$grps_catidstore = $grps_categoryinfo['catid'];
}
$row++;
} //now echo the date into the template
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
}

if ($vbulletin->GPC['c'] != "")
{
$c = intval($vbulletin->GPC['c']);

// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'] . "c=$c";
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

$groupsforcat = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps.catid = $c AND grps_setting.hidden_group != '1'
ORDER BY grps.title
LIMIT $query_lowerlimit, $perpage
");

$catname = $db->query_first("
SELECT title AS catname, catid
FROM grps_categories
WHERE catid = $c
");

$grps_categoryinfo2['catid'] = stripslashes($catname['catid']);
$grps_categoryinfo2['catname'] = stripslashes($catname['catname']);
$grps_categoryinfo['catid'] = stripslashes($catname['catid']);
$grps_categoryinfo['catname'] = stripslashes($catname['catname']);

eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
if (!$db->num_rows($groupsforcat))
{ // no groups, this becomes obselete after the first group gets created
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found in this catergory at this time</td></tr>";
}
else
{ // display the information
while ($grps_categoryinfo = $db->fetch_array($groupsforcat))
{
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));

eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");
} //now echo the date into the template
}
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
}
}


$pagenav = construct_page_nav($pagenumber, $perpage, $totalgroups, "browse.php?" . $vbulletin->session->vars['sessionurl'], "" . (!empty($vbulletin->GPC['perpage']) ? "&amp;pp=$perpage" : "") . "");

$navbits = array();
$navbits["browse.php?" . $vbulletin->session->vars['sessionurl'] . "c=" . $grps_categoryinfo2['catid']] = $grps_categoryinfo2['catname'];
$navbits[''] = 'Browse Groups';

$navbits = construct_navbits($navbits);

//handles the rest of the page and layout.
eval("\$grps_main .= \"".fetch_template("groups_browse")."\";");
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);
eval("print_output(\"".fetch_template("GROUPS")."\");");

?>

hippsta
24 Sep 2006, 23:44
Sorry lol i meesed up and didn't refresh the test_stylevar.php after changing it around..

[imgdir_attach] => http://www.hippsta.com/images/attach
[imgdir_button] => http://www.hippsta.com/images/buttons
[imgdir_editor] => http://www.hippsta.com/images/editor
[imgdir_misc] => http://www.hippsta.com/images/misc
[imgdir_poll] => http://www.hippsta.com/images/polls
[imgdir_rating] => http://www.hippsta.com/images/rating
[imgdir_reputation] => http://www.hippsta.com/images/reputation
[imgdir_statusicon] => http://www.hippsta.com/images/statusicon
[titleimage] => http://www.hippsta.com/images/Hiplogo3.jpg
that was how it was...

it does put in some style.. check here (http://www.hippsta.com/groups/), on the right where it says "Unity," and it puts in the dropdown menu arrows, and folder images...

but, the dropdowns have transparent backgrounds, and other obvious style strangeities are present..

sabret00the
24 Sep 2006, 23:45
here you go the contents of my groups/browse.php

<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXXXiXMZXXS22XX8M0 rXXXXX7r20@MMMW8;;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXX7.M8XXXr :0MMMMZ:XXXX72W8S7rrXS8MB;;7XXXXXXXXXXSXXXSXXXXXXSXXXXXXXXXXXSXXXXXXXSXXXXXX
//77777X7777X77XXiSMSXrWMMMBi ,@M XX7rZ8;,,,,i;;;7aMSi777XX77XXX7XX77XXXXX77X7XXX7XX77XX7XXX7XX7XXXXXX
//XXX7777XX777777:BMMMZr i;ZM 777SZi,:::ii;r;r7S@a:777777777777777X7XX777X7X7XXXXXXX7777XX7XX77X77
//XXXXXXXXXXXXXXX:ZM. .,:;rZM 77:8,,::.. .:iXMr;XXXXXXXXXXXXX7X7XXXX7X7X77X7XX77XXXXXXXXXXXXXX
//777777777777777iiMX:,,,,::irXMa.7riM, .;0MMMM8iXM.r777777777777777777777777777777777r777777777r7
//777777777777777r.@MX.,:iiiir2@ ;;7MMMMMMMM@ar:.iX8SMi;777777777777777777777777777777777777777777777
//7777777777777777i MM@r::iir8MMWX Mi .ii;;rS@Xi777777777777777777777777777777777777777777777
//rrrrrrrrrrrrrrrrri iMMMMMMM070MM7 ;Z.,.....,:i;rraZ8X:rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//r77777777rrrrrrrrr rMaW77i :::i;ZMM a;,,,,::i;r77rZ@0:irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rr;rr;r;i. ,. MX:7 BSX7r7aMM.2;iii;;;rX772MMM ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rrrrr;, ;B@@8: 28;72@ MSXXrrXWMMaMXii;;r7X7SM, ,rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//;rr;i XMMMMMMMMMMM:iXX@ M2X2X;SB@M .M0X;;;7a@MM7. ,;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr;r;rrrrr;
//;;ii MMM@WWWWWWMMM8.XXZM MS::arX@Mr 2ZMMMMMMMM7iSMM :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//;;; MM@WWWWWWWWWBM0 7XSM MSa Z00B; MMBr2SZ8r :rSSSZM2 .i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;r;;;;;;;;
//ii. MM@WWWWMMMM@WMM22XS2BW M0MBa0. 7MM@8SrS2aZ8Z22MM :iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
//;; ,MMMM@W@@. MMM, Za2aZ0.Si;: MMaWMMMMMMMMMMMZ i;;;;iiiii;;;;;;;iiiiiiiii;;;iiiiiiiiiiii
//i: MM8 8@WWWaMMMX .rZ ,r7 ;MMMMMMMW MMX .MMS27;;rrr;iiiiiiiiir777r;iiiiiiiiiiiiiiiii
//ii MM WMWMMMM ,:iM .i;S, :MMMMMMMMMMM :MMMMMZ ZX;;rSaS7;ii;X2r. ;SX;iiiiiiiiiiiiiii
//i: MMaZM@MM0 ,,::iM; ;X MMMMMM MMM rMMMMMMMMMMMMMMM XSXS X;iiiiiiiiiiiiii
//:: MMM@@MMi .:,::i;;M; 7 MMMM; MM MMMMMMMMMMMMMMMMMMM.MMMMMS MMMMM 7i:::i:::::::::
//:: MM@WMM :i;ii;;rrM . MMMM XMMM MM MMMM MMM WMMMMMMMMMMMMW MMMMMMMM i;iiiiiiiiiiiii
//:: MM@MM i;77rrrrr2MX8 MMMM WM2 MMM MMMMMBMMM:MMMMMMMMMM0 MMM r,,,,,:,,,,,,:
//::: MMMM ir;rXrrr78MMMM :MMM ,7ZMM@a::S 8MM. MMMMMMM MM :MMMMMM MMM 7:::::::::::::
//,,, MMM2rX77X7X0MMZ7M MMM0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMM 7 MMMM :, MMM r,,,,,,,,,,,,,
//,,,, MMMMMMMMMMMW aM MMM2MMMMMMMMMMMMMMMMMMMMMMMMMMMMB MMM .r MMMMM ; MMM Xrr;i:,,,,,,,,
//,,,,,. SX.;aM7 M MMM :88i MMMr MMMMMMMMM :i MMX 7MMMM :i,,,,,.,
//,..,.,. B7i:..2M , ;i @MMM @MMMM MMMMM MMMM MMX @MMMMMMMMMMMMMMMMMMMMB .:......
//..,... MWSX7772WM2 M MMMMMMMMMMMMMMMa , MMM MMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :,,,,,,
//...... M2 S7XSr ,BM M MMMMMMMMMMMMZ ::i. 8MMM MMMMMMMMMMMMMM2 ;20MMMMMMMMMMMZ .......
//...... MMZ7Z22aBS82@M, @M MMMMMMMM :,.,. MMM .MMMMMWMMM . MMMB ,.....
//.,,,,. MMMMMMMMMMMMMMMM: MMM ::,,,,,, MMM , 0MMMMMMM :::. MMM .:::: MMMM ,,,,,,.
// :MM@ ;MMMMMMM MMM MMMMZ
// MMMMM 0MMM SMMMMM
// GRPS: Commune For Groups ,MMMa MMMMX MMMMMM
// vBulletin Add-On Software MMMM MMMMMMMMMMM
// by sabret00the MMM MMMMMMa
// Copyright 2005 M

// ################ 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', 'browse');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

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

// pre-cache templates used by all actions
$globaltemplates = array(
'GROUPS',
'groups_browse',
'groups_browse_cathead',
'groups_browse_catbit',
'groups_browse_catfoot',
'groups_groupshome_popularbits',
'groups_groupshome_largestbits',
'groups_groupshome_mygroups',
'groups_groupshome_mygroupsbits',
'groups_navbar',
);

// ######################### REQUIRE BACK-END ############################
require_once("./global.php");
require_once("./includes/functions_grps.php");



// 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,
'c' => TYPE_INT,
));

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// temp admin options
// url of the grps
$groupurl = "$vbulletin->options[homeurl]/groups/?groupid=$groupid";

if ($vbulletin->options['grps_status']=="0") {
eval(print_standard_error('grps_statusoff'));
}

// this switch handles the right column
$grps_pagetitle = "Browse Groups";

// ###################### pagenav
$pagenavcount = $db->query_first("
SELECT COUNT(*) AS totalgroups
FROM grps
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
WHERE grps.approved = '1'
ORDER BY grps.title
");

switch ($vbulletin->GPC['view'])
{
case "alphabetical":
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1' ");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'] ."view=alphabetical";
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

// add's page title
$grps_pagetitle .= " Alphabetically";

$grps_alphabetical = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
ORDER BY grps.title
LIMIT $query_lowerlimit, $perpage
");

$grps_categoryinfo['catname'] = "All " . $vbulletin->options[hometitle] . " Groups In Alphabetical Order";
$hideviewall = 1;

eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
if (!$db->num_rows($grps_alphabetical))
{ // no groups, this becomes obselete after the first group gets created
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups currently found in the database</td></tr>";
}
else
{ // display the information
while ($grps_categoryinfo = $db->fetch_array($grps_alphabetical))
{
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");
} //now echo the date into the template
}
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
break;
case "bymembers":
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'] ."view=bymembers";
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

// add's page title
$grps_pagetitle .= " By Number Of Members";

$grps_members = $db->query_read("
SELECT COUNT(*) AS totalmembers, grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps_user
LEFT JOIN grps ON (grps.groupid = grps_user.groupid)
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
GROUP BY grps.groupid
ORDER BY totalmembers DESC, grps.title
LIMIT $query_lowerlimit, $perpage
");

$grps_categoryinfo['catname'] = $vbulletin->options[hometitle] . " Groups Ordered By Size";
$hideviewall = 1;

eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
if (!$db->num_rows($grps_members))
{ // no groups, this becomes obselete after the first group gets created
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups currently found in the database</td></tr>";
}
else
{ // display the information
while ($grps_categoryinfo = $db->fetch_array($grps_members))
{
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");
} //now echo the date into the template
}
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
break;
default:
// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'];
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

// page title for grouphome.
$grps_pagetitle .= " By Categories";

// selects the number of validated groups for group home
$total = $db->query_read("
SELECT groupid
FROM grps
WHERE approved = 1
");

$num = number_format($db->num_rows($total));

$grps_limit=10;

if ($vbulletin->options[grps_moderation]=="1")
{
$grps_moderation="WHERE grps.visible=1";
}

$grps_categories = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps_categories
INNER JOIN grps ON grps_categories.catid = grps.catid AND grps.approved = '1'
INNER JOIN grps AS G2 ON grps_categories.catid = G2.catid AND G2.approved = '1' AND grps.title >= G2.title
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps_setting.hidden_group != '1'
GROUP BY grps_categories.title, grps.title, grps.description, grps.leaderid
HAVING COUNT(*) <= 10
ORDER BY grps.catid, grps.title
LIMIT $query_lowerlimit, $perpage
");

if (!$db->num_rows($grps_categories))
{ // no groups, this becomes obselete after the first group gets created
eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found in this catergory at this time</td></tr>";
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
}
else
{ // display the information
$row = "0";
while ($grps_categoryinfo = $db->fetch_array($grps_categories))
{
if ($row == 0)
{

eval("\$grps_catbits .= \"" . fetch_template("groups_browse_cathead") . "\";");

// reset catname store
$grps_catidstore = $grps_categoryinfo['catid'];
$seperator = TRUE;
}

if ($grps_catidstore != $grps_categoryinfo[catid] AND $row != 0)
{
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_cathead") . "\";");
}

$grps_categoryinfo['catid'] = intval($grps_categoryinfo['catid']);
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));
$grps_categoryinfo['catname'] = stripslashes($grps_categoryinfo['catname']);

eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");

if ($grps_categoryinfo[catid] != $grps_catidstore)
{
// reset catname store
$grps_catidstore = $grps_categoryinfo['catid'];
}
$row++;
} //now echo the date into the template
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
}

if ($vbulletin->GPC['c'] != "")
{
$c = intval($vbulletin->GPC['c']);

// creates the pagenav
$page = ($vbulletin->GPC['page'] < 1) ? "1" : intval($vbulletin->GPC['page']);
$totalgroups = $db->query_first("SELECT COUNT(groupid) AS total FROM grps WHERE approved = '1'");
$totalgroups = $totalgroups['total'];
$currentlocation = "browse.php?" . $vbulletin->session->vars['sessionurl'] . "c=$c";
$perpage = "25";
$pagenumber = $page;
$lowerlimit = ($page * $perpage);
$query_lowerlimit = ($lowerlimit - $perpage);

$groupsforcat = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.catid, grps_categories.title AS catname, grps.approved, grps.leaderid, grps_setting.hidden_group
FROM grps
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps.catid = $c AND grps_setting.hidden_group != '1'
ORDER BY grps.title
LIMIT $query_lowerlimit, $perpage
");

$catname = $db->query_first("
SELECT title AS catname, catid
FROM grps_categories
WHERE catid = $c
");

$grps_categoryinfo2['catid'] = stripslashes($catname['catid']);
$grps_categoryinfo2['catname'] = stripslashes($catname['catname']);
$grps_categoryinfo['catid'] = stripslashes($catname['catid']);
$grps_categoryinfo['catname'] = stripslashes($catname['catname']);

eval("\$grps_catbits = \"" . fetch_template("groups_browse_cathead") . "\";");
if (!$db->num_rows($groupsforcat))
{ // no groups, this becomes obselete after the first group gets created
$grps_catbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found in this catergory at this time</td></tr>";
}
else
{ // display the information
while ($grps_categoryinfo = $db->fetch_array($groupsforcat))
{
$grps_categoryinfo['title'] = stripslashes($grps_categoryinfo['title']);
$grps_categoryinfo['description'] = nl2br(stripslashes($grps_categoryinfo['description']));

eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catbit") . "\";");
} //now echo the date into the template
}
eval("\$grps_catbits .= \"" . fetch_template("groups_browse_catfoot") . "\";");
}
}


$pagenav = construct_page_nav($pagenumber, $perpage, $totalgroups, "browse.php?" . $vbulletin->session->vars['sessionurl'], "" . (!empty($vbulletin->GPC['perpage']) ? "&amp;pp=$perpage" : "") . "");

$navbits = array();
$navbits["browse.php?" . $vbulletin->session->vars['sessionurl'] . "c=" . $grps_categoryinfo2['catid']] = $grps_categoryinfo2['catname'];
$navbits[''] = 'Browse Groups';

$navbits = construct_navbits($navbits);

//handles the rest of the page and layout.
eval("\$grps_main .= \"".fetch_template("groups_browse")."\";");
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);
eval("print_output(\"".fetch_template("GROUPS")."\");");

?>

BenJ it seems you're simply suffering the same problems as ericgtr and hippsta, please refer the help i provided for both of them.

sabret00the
24 Sep 2006, 23:46
Sorry lol i meesed up and didn't refresh the test_stylevar.php after changing it around..


that was how it was...

it does put in some style.. check here (http://www.hippsta.com/groups/), on the right where it says "Unity," and it puts in the dropdown menu arrows, and folder images...

but, the dropdowns have transparent backgrounds, and other obvious style strangeities are present..
Please refer to the last line or so of the install.txt, you'll have to install the plugin to fix your css.

Benj
25 Sep 2006, 00:00
BenJ it seems you're simply suffering the same problems as ericgtr and hippsta, please refer the help i provided for both of them.

im on about fixing my navbar links now you know that right ?

hippsta
25 Sep 2006, 00:02
Please refer to the last line or so of the install.txt, you'll have to install the plugin to fix your css.

SICK!
Thank You for all your Hard Work & Support, that did it lol..

I'm voting this MOD for MotM simply because, besides its complete usefulness, and almost necessity in any Fori on the Web.. The Author has worked tirelessly updating, debugging, and supporting it.

CHEERS to You!!

sabret00the
25 Sep 2006, 00:10
im on about fixing my navbar links now you know that right ?
heh, ok i've caught up with your problem, please reupload the files, all except the product xml and the config and then let me know if the problem still exists.

sabret00the
25 Sep 2006, 00:25
SICK!
Thank You for all your Hard Work & Support, that did it lol..

I'm voting this MOD for MotM simply because, besides its complete usefulness, and almost necessity in any Fori on the Web.. The Author has worked tirelessly updating, debugging, and supporting it.

CHEERS to You!!
glad you got it all working :)

Elpie
25 Sep 2006, 00:47
it appears to be looking for your files in a forum directory where as if you're running your forums in the root, then your errors should look like this

Fatal error: Call to undefined function: print_no_permission() in <domain>\htdocs\includes\functions_grps.php on line 387

Fatal error: Call to a member function clean_array_gpc() on a non-object in <domain>\htdocs\groups\index.php on line 82

But i'm pretty sure that's a config issue (server) and thus i'm incorrect.

are you not getting any errors regarding problems finding the global.php?

No, I was getting errors with finding the global.php but these were resolved when I hardcoded the full URL into config.

I still can't get it working, but I am not giving up! ;)

sabret00the
25 Sep 2006, 00:55
No, I was getting errors with finding the global.php but these were resolved when I hardcoded the full URL into config.

I still can't get it working, but I am not giving up! ;)
reupload all the files please elpie and then let me know if you're still getting this error.

make sure that your config features your full path and not your url.

i.e. /home/yoursite/public_html/forums/

as opposed to

http://www.yoursite.com/forums/

ronoxQ
25 Sep 2006, 02:13
Dang, I'm running into a problem.

Now the page works: http://oasisforums.omegaseye.com/groups/. However, when I try to make a group, I get linked to http://oasisforums.omegaseye.com/?do=creategroup, not http://oasisforums.omegaseye.com/groups/?do=creategroup. How do I change this?

whitetigergrowl
25 Sep 2006, 02:40
I'm using SQL and PHP versions 5x. I click on the moderate groups option and get a nice sql error saying it can't find the members database. Also, when I create a group...or try...it gives me a 404. The forums are in a subdirectory like this: www.website.com/forums

Elpie
25 Sep 2006, 02:45
Ok, I have clearly messed something up. I uploaded again, as suggested, checked paths, and now I can load the index.php without errors EXCEPT I am getting the blasted permissions denied message.
I am logged in as admin so what have I missed?

This is an improvement as I didn't get past errors before, so I am getting there. ;)

bada_bing
25 Sep 2006, 04:17
Awesome thanks sabret00the GRPS Groups working on my site
Site : www.seekingadultfriends.com
Groups: www.seekingadultfriends.com/groups/

A couple bugs still to be worked out but getting there.

soletrader
25 Sep 2006, 04:25
Hello sabret00the,

In your RC3, do you think you can enable guests to view groups as well?

bada_bing
25 Sep 2006, 04:28
Anyone figure out how to post the Newest Groups, MOst Popular Groups, Largest Groups on vbadvance as a new block ?

toolblast
25 Sep 2006, 07:13
Hi Bada_bing!

Your site is looking GREAT! I'll see if I can help you out with the vbadvance blocks as I'm interested as well in that.

sabret00the
25 Sep 2006, 07:23
Dang, I'm running into a problem.

Now the page works: http://oasisforums.omegaseye.com/groups/. However, when I try to make a group, I get linked to http://oasisforums.omegaseye.com/?do=creategroup, not http://oasisforums.omegaseye.com/groups/?do=creategroup. How do I change this?
I am not sure why your problem exists, is it literally just that link?

sabret00the
25 Sep 2006, 07:25
I'm using SQL and PHP versions 5x. I click on the moderate groups option and get a nice sql error saying it can't find the members database. Also, when I create a group...or try...it gives me a 404. The forums are in a subdirectory like this: www.website.com/forums
what's the exact database error? and what's the url or the 404?

sabret00the
25 Sep 2006, 07:26
Hello sabret00the,

In your RC3, do you think you can enable guests to view groups as well?
that's a usergroup permission problem, not a bug. please set your usergroup permissions to allow guests to view groups.

JayJay
25 Sep 2006, 09:18
Ok, I have clearly messed something up. I uploaded again, as suggested, checked paths, and now I can load the index.php without errors EXCEPT I am getting the blasted permissions denied message.
I am logged in as admin so what have I missed?

This is an improvement as I didn't get past errors before, so I am getting there. ;)

Go to your AdminCP -> Usergroup Manager

Once there, you can choose usergroups to give GPRS permissions to by clicking Edit Usergroup and scrolling down to the bottom :)

sabret00the
25 Sep 2006, 11:54
i'm just waiting on RonoxQ's feedback before i release RC3, this release will update one file (index.php), add a new file (grps_deleter.php) and fix the missing phrases from the admincp.

x

I also had a PM from someone wanting to translate the hack, and i'll reply here so as that all hack communities world-wide know the deal. if you'd like to translate the hack, i'm against it. however if you'd like to phrase the hack. that's a different story. if you're like to take the hard coded text, convert them to phrases (literally a copy and past job of which i'm bound to get round to sooner or later), you're allowed to do that, however i'll still only allow you to redistribute the phrases and not the full hack.

Ara-ara-ara, that sounds confusing :ermm:

Benj
25 Sep 2006, 12:25
sorted my links out im having a problem with one of my gradients now heres my test var thing

sabe these are my image paths:

Array
(
[imgdir_attach] => http://web.plugged.co.uk/images/bluesaint/attach
[imgdir_button] => http://web.plugged.co.uk/images/bluesaint/buttons
[imgdir_editor] => http://web.plugged.co.uk/images/bluesaint/editor
[imgdir_misc] => http://web.plugged.co.uk/images/bluesaint/misc
[imgdir_poll] => http://web.plugged.co.uk/images/bluesaint/polls
[imgdir_rating] => http://web.plugged.co.uk/images/bluesaint/rating
[imgdir_reputation] => http://web.plugged.co.uk/images/bluesaint/reputation
[imgdir_statusicon] => http://web.plugged.co.uk/images/bluesaint/statusicon
[outertablewidth] => 850
[spacersize] => 15
[titleimage] => http://web.plugged.co.uk/images/bluesaint/misc/logo.jpg
[formwidth_usercp] => 480px
[htmldoctype] =>
[htmlextrasfolder] => htmlextras
[imagesfolder] => images
[messagewidth] => 540px
[messagewidth_usercp] => 380px
[newreplyimage] => images2/buttons/reply.gif
[newthreadimage] => images2/buttons/newthread.gif
[outerborderwidth] => 20
[tablewidth] => 100%
[textareacols_ie4] => 70
[textareacols_ns4] => 50
[textareacols_ns6] => 65
[cellpadding] => 6
[cellspacing] => 1
[closedthreadimage] => images2/buttons/threadclosed.gif
[codeblockwidth] => 640px
[contenttype] => text/html; charset=ISO-8859-1
[formspacer] => 3
[formwidth] => 640px
[textdirection] => ltr
[left] => left
[right] => right
[languagecode] => en
[charset] => ISO-8859-1
[body_bgcolor] => #EEEEEE
[body_fgcolor] => #333333
[page_bgcolor] => #FFFFFF
[page_fgcolor] => #000000
[tborder_bgcolor] => #FFFFFF
[tborder_fgcolor] => #000000
[tcat_bgcolor] => #4E72A2
[tcat_fgcolor] => #FFFFFF
[thead_bgcolor] => #E0E0E0
[thead_fgcolor] => #666666
[tfoot_bgcolor] => #4E72A2
[tfoot_fgcolor] => #FFFFFF
[alt1_bgcolor] => #F6F6F6
[alt1_fgcolor] => #333333
[alt2_bgcolor] => #f4f4f4
[alt2_fgcolor] => #333333
[td.inlinemod_bgcolor] => #FFFFCC
[td.inlinemod_fgcolor] => #000000
[wysiwyg_bgcolor] => #F6F6F6
[wysiwyg_fgcolor] => #000000
[time_fgcolor] => #000000
[navbar_bgcolor] => #4E72A2
[navbar_fgcolor] => #FFFFFF
[highlight_fgcolor] => #FF0000
[fjsel_bgcolor] => #3E5C92
[fjsel_fgcolor] => #E0E0F6
[fjdpth0_bgcolor] => #F7F7F7
[fjdpth0_fgcolor] => #000000
[fjdpth3_bgcolor] => #3366FF
[panel_bgcolor] => #F6F6F6
[panel_fgcolor] => #000000
[panelsurround_bgcolor] => #738FB5
[panelsurround_fgcolor] => #000000
[legend_fgcolor] => #22229C
[vbmenu_control_bgcolor] => #4E72A2
[vbmenu_control_fgcolor] => #FFFFFF
[vbmenu_popup_bgcolor] => #F6F6F6
[vbmenu_popup_fgcolor] => #000000
[vbmenu_option_bgcolor] => #F6F6F6
[vbmenu_option_fgcolor] => #000000
[vbmenu_hilite_bgcolor] => #4E72A2
[vbmenu_hilite_fgcolor] => #FFFFFF
[outerdivwidth] => 850px
[divwidth] => auto
[imgdir_grps] => images/grps
)


but one image still appears like this
http://web.domain.co.uk/groups/images/bluesaint/gradients/catbg.gif

sabret00the
25 Sep 2006, 12:47
sorted my links out im having a problem with one of my gradients now heres my test var thing


but one image still appears like this
http://web.domain.co.uk/groups/images/bluesaint/gradients/catbg.gif
that pic doesn't work, but would i be right to assume that the problem is in regards to something like thead?

Elpie
25 Sep 2006, 13:15
Go to your AdminCP -> Usergroup Manager

Once there, you can choose usergroups to give GPRS permissions to by clicking Edit Usergroup and scrolling down to the bottom :)

Aha! I guess one should never assume admins have full permissions! Thanks JayJay.

It's working, although I have some links going to the wrong places (no biggie, I will get that sorted).

This is going to be just great on my forum. Thanks sabret00the.

sabret00the
25 Sep 2006, 13:19
Aha! I guess one should never assume admins have full permissions! Thanks JayJay.

It's working, although I have some links going to the wrong places (no biggie, I will get that sorted).

This is going to be just great on my forum. Thanks sabret00the.
Glad you got it all sorted :)

Benj
25 Sep 2006, 14:26
that pic doesn't work, but would i be right to assume that the problem is in regards to something like thead?

:( nope no gradients work anywhere within groups

http://web.plugged.co.uk/groups/

also what template controls the box in my usercp. theres 2 if im not mistaken. the link to the groups in my usercp are wrong a simple template edit should fix this i think...

sabret00the
25 Sep 2006, 14:33
:( nope no gradients work anywhere within groups

http://web.plugged.co.uk/groups/

also what template controls the box in my usercp. theres 2 if im not mistaken. the link to the groups in my usercp are wrong a simple template edit should fix this i think...you have well and truly baffled me with this question, come again?

Benj
25 Sep 2006, 14:54
you have well and truly baffled me with this question, come again?


firstly my gradients dont work ! as you can see


secondly what templates control the box your hack places in usercp

bada_bing
25 Sep 2006, 14:57
Hi Bada_bing!

Your site is looking GREAT! I'll see if I can help you out with the vbadvance blocks as I'm interested as well in that.
Thank you toolblast.. a vbadvance hack would be nice

sabret00the
25 Sep 2006, 15:12
firstly my gradients dont work ! as you can see


secondly what templates control the box your hack places in usercp
ahhh now i get ya :)

the links are wrong? how (as in what are they pointing too? they're controlled via the plugin named "GRPS: Group Activity In User CP (15 Newest)". So sadly not a template at all.

Apologies for not understanding the problem the first time you asked.

As for your gradients, i never picked up on that due to how subtle they are and being locked out as a guest, having checked your forums, i think i know what you mean now.

In your admincp, find the gradients and then simply prefix with "/" and they should all start to work.

bada_bing
25 Sep 2006, 15:24
Couple of questions.

When I create a new group and its been moderated and the system throws all your subscribed groups in your memberinfo area what template do I go to fix the width size because since im using a custom style the table size is to big

bada_bing
25 Sep 2006, 16:00
Here is a snap shot of my question.

ronoxQ
25 Sep 2006, 16:06
I am not sure why your problem exists, is it literally just that link?

No, it's not. Sorry, that was just the only one I saw. It seems like every link is going to "\" instead of "\groups\". However, if I change it to "\groups\" in the config, I get an error on the \groups page.

Thanks for helping out! Sorry I'm causing this trouble.... :(

sabret00the
25 Sep 2006, 16:09
Here is a snap shot of my question.
the template is "groups_usercp_groupsbits"

sabret00the
25 Sep 2006, 16:10
No, it's not. Sorry, that was just the only one I saw. It seems like every link is going to "\" instead of "\groups\". However, if I change it to "\groups\" in the config, I get an error on the \groups page.

Thanks for helping out! Sorry I'm causing this trouble.... :(
can you post the contents of your config please?

ronoxQ
25 Sep 2006, 16:13
Here ya go!

<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXXXiXMZXXS22XX8M0 rXXXXX7r20@MMMW8;;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXX7.M8XXXr :0MMMMZ:XXXX72W8S7rrXS8MB;;7XXXXXXXXXXSXXXSXXXXXXSXXXXXXXXXXXSXXXXXXXSXXXXXX
//77777X7777X77XXiSMSXrWMMMBi ,@M XX7rZ8;,,,,i;;;7aMSi777XX77XXX7XX77XXXXX77X7XXX7XX77XX7XXX7XX7XXXXXX
//XXX7777XX777777:BMMMZr i;ZM 777SZi,:::ii;r;r7S@a:777777777777777X7XX777X7X7XXXXXXX7777XX7XX77X77
//XXXXXXXXXXXXXXX:ZM. .,:;rZM 77:8,,::.. .:iXMr;XXXXXXXXXXXXX7X7XXXX7X7X77X7XX77XXXXXXXXXXXXXX
//777777777777777iiMX:,,,,::irXMa.7riM, .;0MMMM8iXM.r777777777777777777777777777777777r777777777r7
//777777777777777r.@MX.,:iiiir2@ ;;7MMMMMMMM@ar:.iX8SMi;777777777777777777777777777777777777777777777
//7777777777777777i MM@r::iir8MMWX Mi .ii;;rS@Xi777777777777777777777777777777777777777777777
//rrrrrrrrrrrrrrrrri iMMMMMMM070MM7 ;Z.,.....,:i;rraZ8X:rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//r77777777rrrrrrrrr rMaW77i :::i;ZMM a;,,,,::i;r77rZ@0:irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rr;rr;r;i. ,. MX:7 BSX7r7aMM.2;iii;;;rX772MMM ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rrrrr;, ;B@@8: 28;72@ MSXXrrXWMMaMXii;;r7X7SM, ,rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//;rr;i XMMMMMMMMMMM:iXX@ M2X2X;SB@M .M0X;;;7a@MM7. ,;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr;r;rrrrr;
//;;ii MMM@WWWWWWMMM8.XXZM MS::arX@Mr 2ZMMMMMMMM7iSMM :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//;;; MM@WWWWWWWWWBM0 7XSM MSa Z00B; MMBr2SZ8r :rSSSZM2 .i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;r;;;;;;;;
//ii. MM@WWWWMMMM@WMM22XS2BW M0MBa0. 7MM@8SrS2aZ8Z22MM :iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
//;; ,MMMM@W@@. MMM, Za2aZ0.Si;: MMaWMMMMMMMMMMMZ i;;;;iiiii;;;;;;;iiiiiiiii;;;iiiiiiiiiiii
//i: MM8 8@WWWaMMMX .rZ ,r7 ;MMMMMMMW MMX .MMS27;;rrr;iiiiiiiiir777r;iiiiiiiiiiiiiiiii
//ii MM WMWMMMM ,:iM .i;S, :MMMMMMMMMMM :MMMMMZ ZX;;rSaS7;ii;X2r. ;SX;iiiiiiiiiiiiiii
//i: MMaZM@MM0 ,,::iM; ;X MMMMMM MMM rMMMMMMMMMMMMMMM XSXS X;iiiiiiiiiiiiii
//:: MMM@@MMi .:,::i;;M; 7 MMMM; MM MMMMMMMMMMMMMMMMMMM.MMMMMS MMMMM 7i:::i:::::::::
//:: MM@WMM :i;ii;;rrM . MMMM XMMM MM MMMM MMM WMMMMMMMMMMMMW MMMMMMMM i;iiiiiiiiiiiii
//:: MM@MM i;77rrrrr2MX8 MMMM WM2 MMM MMMMMBMMM:MMMMMMMMMM0 MMM r,,,,,:,,,,,,:
//::: MMMM ir;rXrrr78MMMM :MMM ,7ZMM@a::S 8MM. MMMMMMM MM :MMMMMM MMM 7:::::::::::::
//,,, MMM2rX77X7X0MMZ7M MMM0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMM 7 MMMM :, MMM r,,,,,,,,,,,,,
//,,,, MMMMMMMMMMMW aM MMM2MMMMMMMMMMMMMMMMMMMMMMMMMMMMB MMM .r MMMMM ; MMM Xrr;i:,,,,,,,,
//,,,,,. SX.;aM7 M MMM :88i MMMr MMMMMMMMM :i MMX 7MMMM :i,,,,,.,
//,..,.,. B7i:..2M , ;i @MMM @MMMM MMMMM MMMM MMX @MMMMMMMMMMMMMMMMMMMMB .:......
//..,... MWSX7772WM2 M MMMMMMMMMMMMMMMa , MMM MMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :,,,,,,
//...... M2 S7XSr ,BM M MMMMMMMMMMMMZ ::i. 8MMM MMMMMMMMMMMMMM2 ;20MMMMMMMMMMMZ .......
//...... MMZ7Z22aBS82@M, @M MMMMMMMM :,.,. MMM .MMMMMWMMM . MMMB ,.....
//.,,,,. MMMMMMMMMMMMMMMM: MMM ::,,,,,, MMM , 0MMMMMMM :::. MMM .:::: MMMM ,,,,,,.
// :MM@ ;MMMMMMM MMM MMMMZ
// MMMMM 0MMM SMMMMM
// GRPS: Commune For Groups ,MMMa MMMMX MMMMMM
// vBulletin Add-On Software MMMM MMMMMMMMMMM
// by sabret00the MMM MMMMMMa
// Copyright 2005 M

// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("../");

// ## Set's the base root directory back to the forums for all images ##
$img_forums = "/";

// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

?>

Hope this helps. Thanks as always for the quick response time.

sabret00the
25 Sep 2006, 16:24
Here ya go!

<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXXXiXMZXXS22XX8M0 rXXXXX7r20@MMMW8;;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXX7.M8XXXr :0MMMMZ:XXXX72W8S7rrXS8MB;;7XXXXXXXXXXSXXXSXXXXXXSXXXXXXXXXXXSXXXXXXXSXXXXXX
//77777X7777X77XXiSMSXrWMMMBi ,@M XX7rZ8;,,,,i;;;7aMSi777XX77XXX7XX77XXXXX77X7XXX7XX77XX7XXX7XX7XXXXXX
//XXX7777XX777777:BMMMZr i;ZM 777SZi,:::ii;r;r7S@a:777777777777777X7XX777X7X7XXXXXXX7777XX7XX77X77
//XXXXXXXXXXXXXXX:ZM. .,:;rZM 77:8,,::.. .:iXMr;XXXXXXXXXXXXX7X7XXXX7X7X77X7XX77XXXXXXXXXXXXXX
//777777777777777iiMX:,,,,::irXMa.7riM, .;0MMMM8iXM.r777777777777777777777777777777777r777777777r7
//777777777777777r.@MX.,:iiiir2@ ;;7MMMMMMMM@ar:.iX8SMi;777777777777777777777777777777777777777777777
//7777777777777777i MM@r::iir8MMWX Mi .ii;;rS@Xi777777777777777777777777777777777777777777777
//rrrrrrrrrrrrrrrrri iMMMMMMM070MM7 ;Z.,.....,:i;rraZ8X:rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//r77777777rrrrrrrrr rMaW77i :::i;ZMM a;,,,,::i;r77rZ@0:irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rr;rr;r;i. ,. MX:7 BSX7r7aMM.2;iii;;;rX772MMM ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rrrrr;, ;B@@8: 28;72@ MSXXrrXWMMaMXii;;r7X7SM, ,rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//;rr;i XMMMMMMMMMMM:iXX@ M2X2X;SB@M .M0X;;;7a@MM7. ,;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr;r;rrrrr;
//;;ii MMM@WWWWWWMMM8.XXZM MS::arX@Mr 2ZMMMMMMMM7iSMM :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//;;; MM@WWWWWWWWWBM0 7XSM MSa Z00B; MMBr2SZ8r :rSSSZM2 .i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;r;;;;;;;;
//ii. MM@WWWWMMMM@WMM22XS2BW M0MBa0. 7MM@8SrS2aZ8Z22MM :iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
//;; ,MMMM@W@@. MMM, Za2aZ0.Si;: MMaWMMMMMMMMMMMZ i;;;;iiiii;;;;;;;iiiiiiiii;;;iiiiiiiiiiii
//i: MM8 8@WWWaMMMX .rZ ,r7 ;MMMMMMMW MMX .MMS27;;rrr;iiiiiiiiir777r;iiiiiiiiiiiiiiiii
//ii MM WMWMMMM ,:iM .i;S, :MMMMMMMMMMM :MMMMMZ ZX;;rSaS7;ii;X2r. ;SX;iiiiiiiiiiiiiii
//i: MMaZM@MM0 ,,::iM; ;X MMMMMM MMM rMMMMMMMMMMMMMMM XSXS X;iiiiiiiiiiiiii
//:: MMM@@MMi .:,::i;;M; 7 MMMM; MM MMMMMMMMMMMMMMMMMMM.MMMMMS MMMMM 7i:::i:::::::::
//:: MM@WMM :i;ii;;rrM . MMMM XMMM MM MMMM MMM WMMMMMMMMMMMMW MMMMMMMM i;iiiiiiiiiiiii
//:: MM@MM i;77rrrrr2MX8 MMMM WM2 MMM MMMMMBMMM:MMMMMMMMMM0 MMM r,,,,,:,,,,,,:
//::: MMMM ir;rXrrr78MMMM :MMM ,7ZMM@a::S 8MM. MMMMMMM MM :MMMMMM MMM 7:::::::::::::
//,,, MMM2rX77X7X0MMZ7M MMM0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMM 7 MMMM :, MMM r,,,,,,,,,,,,,
//,,,, MMMMMMMMMMMW aM MMM2MMMMMMMMMMMMMMMMMMMMMMMMMMMMB MMM .r MMMMM ; MMM Xrr;i:,,,,,,,,
//,,,,,. SX.;aM7 M MMM :88i MMMr MMMMMMMMM :i MMX 7MMMM :i,,,,,.,
//,..,.,. B7i:..2M , ;i @MMM @MMMM MMMMM MMMM MMX @MMMMMMMMMMMMMMMMMMMMB .:......
//..,... MWSX7772WM2 M MMMMMMMMMMMMMMMa , MMM MMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :,,,,,,
//...... M2 S7XSr ,BM M MMMMMMMMMMMMZ ::i. 8MMM MMMMMMMMMMMMMM2 ;20MMMMMMMMMMMZ .......
//...... MMZ7Z22aBS82@M, @M MMMMMMMM :,.,. MMM .MMMMMWMMM . MMMB ,.....
//.,,,,. MMMMMMMMMMMMMMMM: MMM ::,,,,,, MMM , 0MMMMMMM :::. MMM .:::: MMMM ,,,,,,.
// :MM@ ;MMMMMMM MMM MMMMZ
// MMMMM 0MMM SMMMMM
// GRPS: Commune For Groups ,MMMa MMMMX MMMMMM
// vBulletin Add-On Software MMMM MMMMMMMMMMM
// by sabret00the MMM MMMMMMa
// Copyright 2005 M

// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("../");

// ## Set's the base root directory back to the forums for all images ##
$img_forums = "/";

// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

?>

Hope this helps. Thanks as always for the quick response time.
can you try changing that to your forums path (site path if your forums are in your site root) and let me know if the problem persists please.

sabret00the
25 Sep 2006, 16:28
NEW ZIP
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.

To upgrade simply replace all files except the config.

soletrader
25 Sep 2006, 17:49
Do I need to run the upgrade? Thanks

sabret00the
25 Sep 2006, 17:54
Do I need to run the upgrade? Thanks
no you don't. just replace the files execpt the ones stated and you're upto date.

soletrader
25 Sep 2006, 17:57
Okay... I noticed one problem. I still get the the line:

Last edited by : 01-01-1970 at 08:00 AM

In the category -> groups description. Anyway to eliminate this?

Neal-UK
25 Sep 2006, 19:29
Get this when I try to leave a group after upgrade:

print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))

How do I go about uninstalling this, as in the changes it made when I ran the isntaller?

Think i'll leave this one a while as my head aches, lol

Lionel
25 Sep 2006, 19:37
In group management, the state of Hide Group Image checkbox is not remembered

daystorm
25 Sep 2006, 20:06
Hello... I am having a couple of problems..

First the phrases are not being added in the admin panel. Is there a file I can go to see the phrases and add them manually?

Second, on the test group I made the group leader image is not showing up and when I click on my test thread, the image again is not showing up... Which files do I edit to change whatever links?

Thank you,
Ella

sabret00the
25 Sep 2006, 20:07
Get this when I try to leave a group after upgrade:



How do I go about uninstalling this, as in the changes it made when I ran the isntaller?

Think i'll leave this one a while as my head aches, lol
Groups v2.0.0 RC3b.zip: fix regarding joining and leaving group depreciated function error added uninstaller to the zip at www.yoursite.com/groups/tools/grps_installer.php?do=uninstall

sabret00the
25 Sep 2006, 20:08
In group management, the state of Hide Group Image checkbox is not remembered
it is on my test board and my live board.

sabret00the
25 Sep 2006, 20:17
Hello... I am having a couple of problems..

First the phrases are not being added in the admin panel. Is there a file I can go to see the phrases and add them manually?

Second, on the test group I made the group leader image is not showing up and when I click on my test thread, the image again is not showing up... Which files do I edit to change whatever links?

Thank you,
Ella
Try reinstalling the .xml file, i forgot that i updated with RC3. if the phrases are still missing report them here, but you can see them all in the xml file, you can open that in any browser or text file.

As for your group leader image, check the url of the image and report back here i'll tell you what action to take. sadly it's working on both my test site and live site so i have no idea how to fix this.

Groups v2.0.0 RC3c.zip: fix regarding showing an edit dateline of the 70's on group page, requires reinstalling the plugin.

daystorm
25 Sep 2006, 20:58
It states that it could not find grps_successful_modding.


As for the image not showing up when I click on properties I get this:
http://www.bostonerotic.net/board/http://www.bostonerotic.net/board/image.php?u=2&dateline=

Thank you,
Ella

daystorm
25 Sep 2006, 20:58
It states that it could not find grps_successful_modding.


As for the image not showing up when I click on properties I get this:
http://www.bostonerotic.net/board/http://www.bostonerotic.net/board/image.php?u=2&dateline=

Thank you,
Ella

bada_bing
25 Sep 2006, 21:37
if you're upgrading from 2.0.0 RC2 to 2.0.0 RC3 after overriding all files except the config file do I have to reinstall the plugin provided on the 2.0.0 RC3 folder?

You mention re-installing the xml file do you mean the plugin?

Benj
25 Sep 2006, 21:38
ahhh now i get ya :)

the links are wrong? how (as in what are they pointing too? they're controlled via the plugin named "GRPS: Group Activity In User CP (15 Newest)". So sadly not a template at all.

Apologies for not understanding the problem the first time you asked.

As for your gradients, i never picked up on that due to how subtle they are and being locked out as a guest, having checked your forums, i think i know what you mean now.

In your admincp, find the gradients and then simply prefix with "/" and they should all start to work.

sweet thats sorted. one last problem for me now. As i said in the usercp box thingy boby is linking to the wrong place.

instead of linking to

http://web.plugged.co.uk/groups/groups.php?g=10

it links to

http://www.plugged.co.uk/groups/groups.php?g=10

any ideas how i could change this ? maybe by editing the plugin...

BTW i nominated you for hack of the month ;)

Lionel
25 Sep 2006, 22:01
it is on my test board and my live board.

Weird. I just reinstalled and same thing still.

Also I can't find template groups_display_mainbit

Lionel
25 Sep 2006, 22:11
How can I get the proper links for the postbits icons, reputation.php, report.php, postings.php etc... to point to the forums folder?

Lionel
25 Sep 2006, 22:57
OK, I disabled those with conditionals in postbits.

Lionel
25 Sep 2006, 23:05
Suggestion: since groups has its own posts table, about a quick plugin for postbit to display groups postcount instead of forums, which is a little misleading?

Lionel
26 Sep 2006, 00:10
couple of questions:

where does category description display?
can you make it so that in group management option group owner can also edit group name and category?

sabret00the
26 Sep 2006, 00:18
apologies for going awol on you all this evening, i've read the posts and due to nothing being critical and me being knackered, i'll continue support in the morning.

Neal-UK
26 Sep 2006, 07:36
grps_noimage_4.gif image is missing, as it shows a red x

When validating a group it works but I get unable to find phrase "grps_successful_modding"

I get a red x box this when in a group under my username and it points to: http://www.gbpride.co.uk/http://www.gbpride.co.uk/image.php?u=1&dateline=

When in groups, the little nav bar that shows GB Pride > Sports > England clicking on GB Pride takes me to http://www.gbpride.co.uk/groups/forum.php and not http://www.gbpride.co.uk/forum.php or Group home page.

sabret00the
26 Sep 2006, 10:42
It states that it could not find grps_successful_modding.


As for the image not showing up when I click on properties I get this:
http://www.bostonerotic.net/board/http://www.bostonerotic.net/board/image.php?u=2&dateline=

Thank you,
Ella
sorry where exactly is this happening?

sabret00the
26 Sep 2006, 10:42
if you're upgrading from 2.0.0 RC2 to 2.0.0 RC3 after overriding all files except the config file do I have to reinstall the plugin provided on the 2.0.0 RC3 folder?

You mention re-installing the xml file do you mean the plugin?
yup i mean the plugin.

Benj
26 Sep 2006, 10:42
just a heads up when inviting someone that doesnt exist it comes up with a fatal error? maybe an error page is needed who knows anyway

Fatal error:

* The following users were not found:
1. icey

Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 763

also any ideas with this mate http://www.vbulletin.org/forum/showpost.php?p=1083387&postcount=187

sabret00the
26 Sep 2006, 10:46
sweet thats sorted. one last problem for me now. As i said in the usercp box thingy boby is linking to the wrong place.

instead of linking to



it links to



any ideas how i could change this ? maybe by editing the plugin...

BTW i nominated you for hack of the month ;)
in the plugin "GRPS: Group Activity In User CP (15 Newest)"

find:
<a href=\"" . $vbulletin->options['homeurl'] . "/groups/groups.php?" . $session[sessionhash] . "g=" . $grps_mygroupsinfo[groupid] . "\"><b>" . $grps_mygroupsinfo[title] . "</b></a><br />

and replace with <a href=\"" . $vbulletin->options['bburl'] . "/groups/groups.php?" . $session[sessionhash] . "g=" . $grps_mygroupsinfo[groupid] . "\"><b>" . $grps_mygroupsinfo[title] . "</b></a><br />

sabret00the
26 Sep 2006, 11:04
Weird. I just reinstalled and same thing still.

Also I can't find template groups_display_mainbit
that template doesn't exist, i've removed all reference to that for the next zip as well as cacheing the groups_display_viewmembers template.

Benj
26 Sep 2006, 11:06
works a treat :D works perfectly for me now! (apart from invite error)


thanks alot :D

sabret00the
26 Sep 2006, 11:37
How can I get the proper links for the postbits icons, reputation.php, report.php, postings.php etc... to point to the forums folder?
all images need to be prefixed in the admincp, please see the instructions as to how.

as for reputation and infraction for that matter, they were an oversight, fixed in RC4, which will be release shortly.

report and postings are supposed to point to the groups directory as users have the ability to report posts, both things have been fixed as they featured errors.

sabret00the
26 Sep 2006, 11:53
Suggestion: since groups has its own posts table, about a quick plugin for postbit to display groups postcount instead of forums, which is a little misleading?
i'll consider it, for the meanwhile, i've prefixed "Posts:" with the word forum in the postbit for groups threads to alleviate confusion.

sabret00the
26 Sep 2006, 11:55
couple of questions:

where does category description display?
can you make it so that in group management option group owner can also edit group name and category?
1. To my suprise, currently; no where.
2. I thought that was something best left to administrators.

sabret00the
26 Sep 2006, 11:58
grps_noimage_4.gif image is missing, as it shows a red x

When validating a group it works but I get unable to find phrase "grps_successful_modding"

I get a red x box this when in a group under my username and it points to: http://www.gbpride.co.uk/http://www.gbpride.co.uk/image.php?u=1&dateline=

When in groups, the little nav bar that shows GB Pride > Sports > England clicking on GB Pride takes me to http://www.gbpride.co.uk/groups/forum.php and not http://www.gbpride.co.uk/forum.php or Group home page.
i'll address this in the zip, i was under the hope that users would actually configure their options and add their own images, however it seems my hope was misplaced, change the option for random images in the admincp general settings for groups down to 3 (the number of images which is provided).

i've fixed that one more time, hopefully it should be the last time.

on what page, can you provide more information, a screenshot, url.

Please see 1082618

sabret00the
26 Sep 2006, 12:01
I'll release RC4 after i hear about this http://avatarlocation/http://avatarlocation/avatar.gif problem a little more.

Lionel
26 Sep 2006, 12:59
I'll release RC4 after i hear about this http://avatarlocation/http://avatarlocation/avatar.gif problem a little more.

I had that problem with some other link. It turned out to be that I had /forums/image.gif in the file, instead of just image.gif.

you correctly do your thing by putting the $vb url so when we alter original file with a '/' in front it becomes double http

Neal-UK
26 Sep 2006, 12:59
Will it also be able to send PM's or e-mails to mods, etc to validate new groups created by members and have the link on the page rather than having it link to admin cp?

Lionel
26 Sep 2006, 13:08
to be more specific, the new post hack by Paul M was not linking properly in vbadvanced, so I changed the phrase to reflect /forums/search.php and that started displaying in groups as http://site.conm/forums/search.php/ http://site.conm/forums/search.php

I finally solved it by removing the link from the phrase and link it straight in navbar around the $rcount

sabret00the
26 Sep 2006, 13:40
I had that problem with some other link. It turned out to be that I had /forums/image.gif in the file, instead of just image.gif.

you correctly do your thing by putting the $vb url so when we alter original file with a '/' in front it becomes double http
thanks for the heads up.

sabret00the
26 Sep 2006, 13:42
Will it also be able to send PM's or e-mails to mods, etc to validate new groups created by members and have the link on the page rather than having it link to admin cp?
hmmm, email to the admin, not a bad idea. consider that added for RC4 :)

sabret00the
26 Sep 2006, 13:43
to be more specific, the new post hack by Paul M was not linking properly in vbadvanced, so I changed the phrase to reflect /forums/search.php and that started displaying in groups as http://site.conm/forums/search.php/ http://site.conm/forums/search.php

I finally solved it by removing the link from the phrase and link it straight in navbar around the $rcount
glad you got it sorted.

sabret00the
26 Sep 2006, 16:38
New Zip:
Groups v2.0.0 RC4.zip: various bug fixes and new general setting, please reupload all files and then reinstall the product.

Neutral Singh
26 Sep 2006, 17:13
MasterStroke!! Easily Mod of The Month. :)

ericgtr
26 Sep 2006, 17:34
Okay, thanks for the update. Please have a look here http://www.guitarblast.com/groups/groups.php?g=1 I understand the custom header won't work (as of yet) so I expect it to be broken, however the paths are still not right for the rest of it. See the links within the groups to see what I mean. Also, try this same link in Firefox and it's quite different from IE.

Lionel
26 Sep 2006, 17:40
When you create a new group it redirects you to groups home (btw i removed /groups in url) but does not tell you the group was successfully created.

if you don't put a description, the error does not get printed, it just kicks you back in the page.

sabret00the
26 Sep 2006, 17:47
GROUP LEADER ICON NOT SHOWING UP:
Only do this, if it is an isolated problem, in forums/includes/function_grps.php find:
$raw_groupinfo['leaderavatar'] = "<img src=\"" . $vbulletin->options['bburl'] . "/" . fetch_avatar_url($raw_groupinfo['leaderid']) . "\" alt=\"Group Leader: " . $raw_groupinfo['leadername'] . "\" />";

and replace with
$raw_groupinfo['leaderavatar'] = "<img src=\"" . fetch_avatar_url($raw_groupinfo['leaderid']) . "\" alt=\"Group Leader: " . $raw_groupinfo['leadername'] . "\" />";

Lionel
26 Sep 2006, 17:48
suggestion: in navbar replacements, since the forum name points to groups home (which is fine) can you replace forum name with vbphrase groupname? I do it now, but hve to do it at every upgrade.

Also in postbit <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
is throwing a javascript error. I had to disable it with a conditional, although this might not be related to groups since i had to do same conditional for PM

sabret00the
26 Sep 2006, 17:53
Okay, thanks for the update. Please have a look here http://www.guitarblast.com/groups/groups.php?g=1 I understand the custom header won't work (as of yet) so I expect it to be broken, however the paths are still not right for the rest of it. See the links within the groups to see what I mean. Also, try this same link in Firefox and it's quite different from IE.
i'm confused, the only links i can see not working at
register.php
arcade.php
profile.php
member.php

everything else seems to be working perfectly, can i just confirm that these are the erroneous links you're referring to?

sabret00the
26 Sep 2006, 17:57
When you create a new group it redirects you to groups home (btw i removed /groups in url) but does not tell you the group was successfully created.

if you don't put a description, the error does not get printed, it just kicks you back in the page.
upon both instances, i've now forced the showing of the redirect message.

Lionel
26 Sep 2006, 18:00
upon both instances, i've now forced the showing of the redirect message.

not in the upgrade that you put up 15 minutes ago

sabret00the
26 Sep 2006, 18:22
not in the upgrade that you put up 15 minutes ago
sorry should've clarified, for RC5, i'll release it after the Arsenal Match, that gives people enough time to get in any last minute bugs.

Lionel
26 Sep 2006, 18:23
cool, thanks. I nominated you for best mod of the month :-)

sabret00the
26 Sep 2006, 18:44
Okay, thanks for the update. Please have a look here http://www.guitarblast.com/groups/groups.php?g=1 I understand the custom header won't work (as of yet) so I expect it to be broken, however the paths are still not right for the rest of it. See the links within the groups to see what I mean. Also, try this same link in Firefox and it's quite different from IE.
in regards to your gradients and getting them to work, prefix each image in your css with a forward-slash.

i.e.
#FFFFFF url(images/kirsch/gradients/background.jpg) repeat

become
#FFFFFF url(/images/kirsch/gradients/background.jpg) repeat

ronoxQ
26 Sep 2006, 20:06
can you try changing that to your forums path (site path if your forums are in your site root) and let me know if the problem persists please.


Warning: chdir() [function.chdir (http://oasisforums.omegaseye.com/groups/function.chdir)]: No such file or directory (errno 2) in /home/oadmin/public_html/oasisforums/groups/includes/config_grps.php on line 45

Warning: main(./global.php) [function.main (http://oasisforums.omegaseye.com/groups/function.main)]: failed to open stream: No such file or directory in /home/oadmin/public_html/oasisforums/groups/index.php on line 75

Fatal error: main() [function.require (http://oasisforums.omegaseye.com/groups/function.require)]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/oadmin/public_html/oasisforums/groups/index.php on line 75

bada_bing
26 Sep 2006, 20:10
sabret00the ,

I have an issue that may of already been discussed or brought up by someone else.

When I click on a created group and I am viewing the post within that group some of my features and links dont show up or are not linked correctly, example is my avatars, I use the warning system and the warning meter does not show I also user vbpager and the pager button on the botton points to the wrong url? Why does this all change in the groups area? This is a major fix for me.

Screen shot provided

sabret00the
27 Sep 2006, 10:36
Warning: chdir() [function.chdir (http://oasisforums.omegaseye.com/groups/function.chdir)]: No such file or directory (errno 2) in /home/oadmin/public_html/oasisforums/groups/includes/config_grps.php on line 45

Warning: main(./global.php) [function.main (http://oasisforums.omegaseye.com/groups/function.main)]: failed to open stream: No such file or directory in /home/oadmin/public_html/oasisforums/groups/index.php on line 75

Fatal error: main() [function.require (http://oasisforums.omegaseye.com/groups/function.require)]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/oadmin/public_html/oasisforums/groups/index.php on line 75
can you try again without the final backslash and let me know the result please.

sabret00the
27 Sep 2006, 10:51
sabret00the ,

I have an issue that may of already been discussed or brought up by someone else.

When I click on a created group and I am viewing the post within that group some of my features and links dont show up or are not linked correctly, example is my avatars, I use the warning system and the warning meter does not show I also user vbpager and the pager button on the botton points to the wrong url? Why does this all change in the groups area? This is a major fix for me.

Screen shot provided
i'm looking into your issue now.

Lionel
27 Sep 2006, 10:53
sorry should've clarified, for RC5, i'll release it after the Arsenal Match, that gives people enough time to get in any last minute bugs.

so how was the game?

sabret00the
27 Sep 2006, 11:02
so how was the game?
the scoreline was flattering considering the performance. don't get me wrong, we didn't play badly, but there's a difference between playing well and just doing what needs to be done so secure a victory, we done the latter. hopefully this just means we'll peak later in the season and secure trophies.

x

RC5 update. it seems the only real issues are the redirects and the missing string replacements. i hoped for a bit more feedback before another release, but it doesn't seem to have come. hopefully it just means that RC5 is the last RC, but who knows. just when i think that 50 million things are reported. anyway i just wanna take a look into the whole avatar issue before i release RC5.

ronoxQ
27 Sep 2006, 12:28
can you try again without the final backslash and let me know the result please.

Slightly different error:


Warning: main(./global.php) [function.main (http://oasisforums.omegaseye.com/groups/function.main)]: failed to open stream: No such file or directory in /home/oadmin/public_html/oasisforums/groups/index.php on line 75

Fatal error: main() [function.require (http://oasisforums.omegaseye.com/groups/function.require)]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/oadmin/public_html/oasisforums/groups/index.php on line 75

sabret00the
27 Sep 2006, 13:01
Slightly different error:

[/B]
could you pm me the contents of your groups/index.php and your groups/include/config.php in [php] tags please.

Elpie
27 Sep 2006, 13:09
I am not sure if this helps much sabret00the, but I had those exact same errors until I remembered I was testing on PHP5. As soon as I rolled back my test server to PHP4.x those errors disappeared.

Are you running PHP5.x ronoxQ?

sabret00the
27 Sep 2006, 14:35
i'm running PHP5 and without those error, though any info does indeed help Elpie, thanks for the heads up.

sabret00the
27 Sep 2006, 17:56
New Zip:
Groups v2.0.0 RC5.zip: bug fixes regarding fixing links to forums being broken and forcing redirects for create group outcomes.

Sorry for the delay, was holding out for some more feedback.

sabret00the
27 Sep 2006, 17:58
sabret00the ,

I have an issue that may of already been discussed or brought up by someone else.

When I click on a created group and I am viewing the post within that group some of my features and links dont show up or are not linked correctly, example is my avatars, I use the warning system and the warning meter does not show I also user vbpager and the pager button on the botton points to the wrong url? Why does this all change in the groups area? This is a major fix for me.

Screen shot provided
would you like me to take a look at your installation as i can't figure it out?

bada_bing
27 Sep 2006, 18:24
sabret00the

Just upgraded to the new release v2.0.0 RC5.zip by uploading all the files except the config file and reinstalling the plugin. Now when I go to view my /groups/ I get this

I am totally broke now

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /mounted-storage/home7/sub002/sc14192-UTSO/www/forums/includes/functions_grps.php on line 359

sabret00the
27 Sep 2006, 18:53
sabret00the

Just upgraded to the new release v2.0.0 RC5.zip by uploading all the files except the config file and reinstalling the plugin. Now when I go to view my /groups/ I get this

I am totally broke now

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /mounted-storage/home7/sub002/sc14192-UTSO/www/forums/includes/functions_grps.php on line 359
redownload the zip, this time you'll only have to replace the forums/includes/functions_grps.php

sorry about that.

bada_bing
27 Sep 2006, 19:51
redownload the zip, this time you'll only have to replace the forums/includes/functions_grps.php

sorry about that.
Ok that fixed it.

bada_bing
27 Sep 2006, 19:52
would you like me to take a look at your installation as i can't figure it out?
Can you please... You have my info still?

soletrader
27 Sep 2006, 19:59
I just need to overwrite the functions_grps.php only when upgrading from rc4?

bada_bing
27 Sep 2006, 20:03
would you like me to take a look at your installation as i can't figure it out?
sabret00the

Basically what is happening is the some of the images while within groups point to /groups/imagelocation rather then /forums/imagelocation

serg472
27 Sep 2006, 21:53
The mod fails during the installation with a DB error. Reason - you are trying to use a fulltext index without making sure that the default db engine is MyISAM, not InnoDB as it is on my PC.

It would be a good idea to change this:

$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`)
)
");

to this:

$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
");

in grps_installer.php for future versions.

serg472
27 Sep 2006, 23:02
Another bugs in grps_moderate.php

This piece of code:

$groups = $db->query("
SELECT grps.groupid, grps.title, grps.description, grps.leaderid, user.username, grps_categories.catid, grps_categories.title AS catname
FROM grps
LEFT JOIN user ON (user.userid = grps.leaderid)
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
WHERE approved != '1'
");


should be replaced with:

$groups = $db->query("
SELECT grps.groupid, grps.title, grps.description, grps.leaderid, " . TABLE_PREFIX . "user.username, grps_categories.catid, grps_categories.title AS catname
FROM grps
LEFT JOIN " . TABLE_PREFIX . "user ON (" . TABLE_PREFIX . "user.userid = grps.leaderid)
LEFT JOIN grps_categories ON (grps_categories.catid = grps.catid)
WHERE approved != '1'
");



And this one:

$adddata = $db->query_first("
SELECT *
FROM grps
LEFT JOIN " . TABLE_PREFIX . "user ON (user.userid = grps.leaderid)
WHERE groupid = $groupid
LIMIT 1
");

Should be replaced with:

$adddata = $db->query_first("
SELECT *
FROM grps
LEFT JOIN " . TABLE_PREFIX . "user ON (" . TABLE_PREFIX . "user.userid = grps.leaderid)
WHERE groupid = $groupid
LIMIT 1
");

.Tim
28 Sep 2006, 00:32
The install seems to go fine and I get a "done" message but the groups page still shows up blank. Am I not doing something right?

:Judge:
28 Sep 2006, 02:14
Awesome Add On!!

I have a few minor issues that I cannot find to fix:

1. Group Leader Avatar - Not showing up, the image path is obviously wrong http://www.mysite.com/forums/http://www.mysite.com/forums/image.php?u=1&dateline=

2. Invite PM - The link in the PM to accept an invite is going to mysite.com/groups (it should be) mysite.com/forums/groups

3. Should there be an option to upload a groups photos or random is all it gets?

4. How could I go in to edit my navbits? Would like Forums - Groups - Group Name.

5. No Group Info in Member Profile. I am using a bit of the MySpace profile re-write, is this why I am not getting any group info?

Thanks, other then the above it works great for me so far. Im sure these are simple fixes I just am not finding the correct places to make the edits.

ronoxQ
28 Sep 2006, 02:32
Sorry I'm being a pain. X_x

Index:

<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXXXiXMZXXS22XX8M0 rXXXXX7r20@MMMW8;;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXX7.M8XXXr :0MMMMZ:XXXX72W8S7rrXS8MB;;7XXXXXXXXXXSXXXSXXXXXXSXXXXXXXXXXXSXXXXXXXSXXXXXX
//77777X7777X77XXiSMSXrWMMMBi ,@M XX7rZ8;,,,,i;;;7aMSi777XX77XXX7XX77XXXXX77X7XXX7XX77XX7XXX7XX7XXXXXX
//XXX7777XX777777:BMMMZr i;ZM 777SZi,:::ii;r;r7S@a:777777777777777X7XX777X7X7XXXXXXX7777XX7XX77X77
//XXXXXXXXXXXXXXX:ZM. .,:;rZM 77:8,,::.. .:iXMr;XXXXXXXXXXXXX7X7XXXX7X7X77X7XX77XXXXXXXXXXXXXX
//777777777777777iiMX:,,,,::irXMa.7riM, .;0MMMM8iXM.r777777777777777777777777777777777r777777777r7
//777777777777777r.@MX.,:iiiir2@ ;;7MMMMMMMM@ar:.iX8SMi;777777777777777777777777777777777777777777777
//7777777777777777i MM@r::iir8MMWX Mi .ii;;rS@Xi777777777777777777777777777777777777777777777
//rrrrrrrrrrrrrrrrri iMMMMMMM070MM7 ;Z.,.....,:i;rraZ8X:rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//r77777777rrrrrrrrr rMaW77i :::i;ZMM a;,,,,::i;r77rZ@0:irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rr;rr;r;i. ,. MX:7 BSX7r7aMM.2;iii;;;rX772MMM ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rrrrr;, ;B@@8: 28;72@ MSXXrrXWMMaMXii;;r7X7SM, ,rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//;rr;i XMMMMMMMMMMM:iXX@ M2X2X;SB@M .M0X;;;7a@MM7. ,;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr;r;rrrrr;
//;;ii MMM@WWWWWWMMM8.XXZM MS::arX@Mr 2ZMMMMMMMM7iSMM :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//;;; MM@WWWWWWWWWBM0 7XSM MSa Z00B; MMBr2SZ8r :rSSSZM2 .i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;r;;;;;;;;
//ii. MM@WWWWMMMM@WMM22XS2BW M0MBa0. 7MM@8SrS2aZ8Z22MM :iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
//;; ,MMMM@W@@. MMM, Za2aZ0.Si;: MMaWMMMMMMMMMMMZ i;;;;iiiii;;;;;;;iiiiiiiii;;;iiiiiiiiiiii
//i: MM8 8@WWWaMMMX .rZ ,r7 ;MMMMMMMW MMX .MMS27;;rrr;iiiiiiiiir777r;iiiiiiiiiiiiiiiii
//ii MM WMWMMMM ,:iM .i;S, :MMMMMMMMMMM :MMMMMZ ZX;;rSaS7;ii;X2r. ;SX;iiiiiiiiiiiiiii
//i: MMaZM@MM0 ,,::iM; ;X MMMMMM MMM rMMMMMMMMMMMMMMM XSXS X;iiiiiiiiiiiiii
//:: MMM@@MMi .:,::i;;M; 7 MMMM; MM MMMMMMMMMMMMMMMMMMM.MMMMMS MMMMM 7i:::i:::::::::
//:: MM@WMM :i;ii;;rrM . MMMM XMMM MM MMMM MMM WMMMMMMMMMMMMW MMMMMMMM i;iiiiiiiiiiiii
//:: MM@MM i;77rrrrr2MX8 MMMM WM2 MMM MMMMMBMMM:MMMMMMMMMM0 MMM r,,,,,:,,,,,,:
//::: MMMM ir;rXrrr78MMMM :MMM ,7ZMM@a::S 8MM. MMMMMMM MM :MMMMMM MMM 7:::::::::::::
//,,, MMM2rX77X7X0MMZ7M MMM0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMM 7 MMMM :, MMM r,,,,,,,,,,,,,
//,,,, MMMMMMMMMMMW aM MMM2MMMMMMMMMMMMMMMMMMMMMMMMMMMMB MMM .r MMMMM ; MMM Xrr;i:,,,,,,,,
//,,,,,. SX.;aM7 M MMM :88i MMMr MMMMMMMMM :i MMX 7MMMM :i,,,,,.,
//,..,.,. B7i:..2M , ;i @MMM @MMMM MMMMM MMMM MMX @MMMMMMMMMMMMMMMMMMMMB .:......
//..,... MWSX7772WM2 M MMMMMMMMMMMMMMMa , MMM MMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :,,,,,,
//...... M2 S7XSr ,BM M MMMMMMMMMMMMZ ::i. 8MMM MMMMMMMMMMMMMM2 ;20MMMMMMMMMMMZ .......
//...... MMZ7Z22aBS82@M, @M MMMMMMMM :,.,. MMM .MMMMMWMMM . MMMB ,.....
//.,,,,. MMMMMMMMMMMMMMMM: MMM ::,,,,,, MMM , 0MMMMMMM :::. MMM .:::: MMMM ,,,,,,.
// :MM@ ;MMMMMMM MMM MMMMZ
// MMMMM 0MMM SMMMMM
// GRPS: Commune For Groups ,MMMa MMMMX MMMMMM
// vBulletin Add-On Software MMMM MMMMMMMMMMM
// by sabret00the MMM MMMMMMa
// Copyright 2005 M


// ################ 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', 'groupshome');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

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

// pre-cache templates used by all actions
$globaltemplates = array(
'GROUPS',
'groups_groupshome',
'groups_groupshome_newestbits',
'groups_groupshome_popularbits',
'groups_groupshome_largestbits',
'groups_groupshome_mygroups',
'groups_groupshome_mygroupsbits',
'groups_navbar',
);

// ######################### REQUIRE BACK-END ############################
require_once("./global.php");
require_once("./includes/functions_grps.php");

// pre-cache templates used by all actions
$globaltemplates = array();

// globalize variables
$vbulletin->input->clean_array_gpc('r', array(
'perpage' => TYPE_INT,
'pagenumber' => TYPE_INT,
'do' => TYPE_STR,
'goto' => TYPE_STR,

));

// globalize variables
$vbulletin->input->clean_array_gpc('p', array(
'action' => TYPE_STR,
'do' => TYPE_STR,
'grps_submit' => TYPE_STR,
'grps_title' => TYPE_STR,
'grps_description' => TYPE_STR,
'grps_leader' => TYPE_INT,
'grps_cat' => TYPE_INT,
));

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// temp admin options
// url of the grps
$groupurl = $vbulletin->options['homeurl'] . "/groups/?groupid=$groupid";

$grps_rin = rand(1,$vbulletin->options['grpsnumrandimages']); //random image to provide some variation

// this switch handles the right column
switch ($_GET['do'])
{
case "creategroup":
// ###################### lets lock out non-members and make em log-in
if (!$vbulletin->userinfo['userid'])
{
//print_no_permission();
}

// ###################### lets make sure they have permission to make groups
if (!($vbulletin->userinfo['permissions']['grpspermissions'] & $vbulletin->bf_ugp_grpspermissions['groupscreate']))
{
print_no_permission();
}

// ###################### lets make sure they can afford it
if ($vbulletin->options['grpsstoreintegration'])
{
if ($vbulletin->userinfo[$vbulletin->options[uttpoints_pointsfield]] < $vbulletin->options['grpsmakegroupcost'])
{
eval(print_standard_error("grps_notenoughpoints"));
}
}

// add's page title
$grps_pagetitle = "Create A Group";

// creates category drop down box
$grps_cats = $db->query("
SELECT *
FROM grps_categories
ORDER BY catid ASC
");

if ($db->num_rows($grps_cats))
{
while ($grps_catsoptions = $db->fetch_array($grps_cats))
{
$dropoption .= "<option value=\"$grps_catsoptions[catid]\">$grps_catsoptions[title]</option>\n";
}
}

$cat_drop = "<select name=\"grps_cat\">\n" . $dropoption . "</select>";

// calls the template for creating groups.
eval("\$grps_main .= \"".fetch_template("groups_creategroup")."\";");

break;
default:
// page title for grouphome.
//$grps_pagetitle = "Groups @ " . $vbulletin->options['hometitle'];

// selects the number of validated groups for group home
$total = $db->query_read("
SELECT groupid
FROM grps
WHERE approved = '1'
");

$num = $db->num_rows($total);

$grps_limit = 10;

$grps_getcats = $db->query_read("
SELECT catid, title
FROM grps_categories
");

while ($grps_makecats = $db->fetch_array($grps_getcats))
{
$grps_makecats['title'] = trim(stripslashes($grps_makecats['title']));

$grps_cats .= "<li id=\"catbullets\"><strong><a href=\"browse.php?c=" . $grps_makecats['catid'] . "\">" . $grps_makecats['title'] . "</a></strong></li>\n";
}

if ($vbulletin->options['grps_moderation'] == "1")
{
$grps_moderation="WHERE grps.visible = '1'";
}

// ###################### extracts newest groups for main grps page
$grps_newest = $db->query_read("
SELECT grps.groupid, grps.title, grps.description, grps.approved, grps.leaderid, grps_setting.hidden_group, user.username
FROM grps
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = grps.leaderid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
GROUP BY grps.groupid
ORDER BY grps.groupid DESC
LIMIT 5
");

if (!$db->num_rows($grps_newest))
{ // no groups, this becomes obselete after the first group gets created
$grps_newestbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found at this time</td></tr>";
}
else
{ // display the information
while ($grps_newestinfo = $db->fetch_array($grps_newest))
{
$grps_newestinfo['title'] = stripslashes($grps_newestinfo['title']);
$grps_newestinfo['description'] = nl2br(stripslashes($grps_newestinfo['description']));
extract($grps_newestinfo);

eval('$grps_newestbits .= "' . fetch_template("groups_groupshome_newestbits") . '";');

} //now echo the date into the template
}

// ###################### extracts largest (most members) groups for main grps page
$grps_largest = $db->query_read("
SELECT COUNT(*) AS totalmembers, grps.groupid, grps.title, grps.description, grps.approved, grps_setting.hidden_group, user.username, grps_user.join_date
FROM grps_user
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = grps_user.userid)
LEFT JOIN grps ON (grps.groupid = grps_user.groupid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
GROUP BY grps.groupid
ORDER BY totalmembers DESC, grps.groupid DESC, grps_user.join_date DESC
LIMIT 5
");

if (!$db->num_rows($grps_largest))
{ // no groups, this becomes obselete after the first group gets created
$grps_largestbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found at this time</td></tr>";
}
else
{ // display the information
$totalmembers = $grps_largestinfo['totalmembers'];
while ($grps_largestinfo = $db->fetch_array($grps_largest))
{
$grps_largestinfo['title'] = nl2br(stripslashes($grps_largestinfo['title']));
$grps_largestinfo['description'] = nl2br(stripslashes($grps_largestinfo['description']));
$grps_largestinfo['membercount'] = number_format($grps_largestinfo['membercount']);
extract($grps_largestinfo);

eval('$grps_largestbits .= "' . fetch_template("groups_groupshome_largestbits") . '";');
}
}


// ###################### extracts popular (most messages) groups for main grps page
$grps_popular = $db->query_read("
SELECT COUNT(*) AS totalposts, grps.groupid, grps.title, grps.description, grps.approved, grps_setting.hidden_group, user.username
FROM grps_post
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = grps_post.userid)
LEFT JOIN grps ON (grps.groupid = grps_post.groupid)
LEFT JOIN grps_setting ON (grps_setting.groupid = grps.groupid)
WHERE grps.approved = '1' AND grps_setting.hidden_group != '1'
GROUP BY grps.groupid
ORDER BY totalposts DESC, grps.groupid DESC
LIMIT 5
");

if (!$db->num_rows($grps_popular))
{ // no groups, this becomes obselete after the first group gets created
$grps_popularbits .= "<tr><td class=\"alt1\" align=\"center\">no groups found at this time</td></tr>";
}
else
{ // display the information
$totalposts = $grps_popularinfo['totalposts'];
while ($grps_popularinfo = $db->fetch_array($grps_popular))
{
$grps_popularinfo['title'] = nl2br(stripslashes($grps_popularinfo['title']));
$grps_popularinfo['description'] = nl2br(stripslashes($grps_popularinfo['description']));
$grps_popularinfo['postcount'] = number_format($grps_popularinfo['postcount']);
extract($grps_popularinfo);

eval('$grps_popularbits .= "' . fetch_template("groups_groupshome_popularbits") . '";');
}
}
eval("\$grps_main = \"".fetch_template("groups_groupshome")."\";");
}

// ###################### processing action actions
if ($_POST['action'] == "docreategroup")
{ // start process for creating a group
if ($vbulletin->GPC['grps_submit'] && trim($vbulletin->GPC['grps_title']) != "" && trim($vbulletin->GPC['grps_description']) != "" && !empty($vbulletin->userinfo['userid']))
{ //make sure theirs everything you need to submit a form

// lets enter it into the database
$db->query_read("
INSERT INTO grps(title, description, catid, approved, leaderid, membercount)
VALUES ('" . addslashes($vbulletin->GPC['grps_title']) . "', '" . addslashes($vbulletin->GPC['grps_description']) . "', " . intval($vbulletin->GPC['grps_cat']) . ", '0', " . $vbulletin->userinfo['userid'] . ", 1)
");

// ###################### lets do the transaction
if ($vbulletin->options['grpsstoreintegration'])
{
if ($vbulletin->userinfo[$vbulletin->options[uttpoints_pointsfield]] >= $vbulletin->options['grpsmakegroupcost'])
{
$chching = intval($vbulletin->userinfo[$vbulletin->options[uttpoints_pointsfield]] - $vbulletin->options['grpsmakegroupcost']);
$db->query_read("
UPDATE " . TABLE_PREFIX . "user
SET " . $vbulletin->options[uttpoints_pointsfield] . " = $chching
WHERE userid = " . $vbulletin->userinfo[userid] . "
");
}
}

if ($vbulletin->options['grps_notifyadminnewgroup'])
{
vbmail($vbulletin->options['webmasteremail'], $vbulletin->userinfo['username'] . " has created a new group", $vbulletin->userinfo['username'] . " has created a new group on your site, please could you go and moderate this group from within the Admin Control Panel.", "From: \"" . $this->vbulletin->options['hometitle'] . " Mailer\" <" . $vbulletin->options['webmasteremail'] . ">");
}

// thanks for submitting the form send you to index
$vbulletin->url = "/groups/index.php?" . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect("grps_thanks"));
}
else
{ //they ++++ed up
// submission error make em retake
$vbulletin->url = $vbulletin->options[groupsurl] . $vbulletin->session->vars['sessionurl'] . "?do=creategroup";
eval(print_standard_redirect("grps_formerror"));
} //form submitted either way
} // end the process for creating a group


$navbits = array();
$navbits[$parent] = 'Groups';
$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);
eval("print_output(\"".fetch_template("GROUPS")."\");");

?>

Config:

<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXXXiXMZXXS22XX8M0 rXXXXX7r20@MMMW8;;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//XXXXXXXXXXXXXXX7.M8XXXr :0MMMMZ:XXXX72W8S7rrXS8MB;;7XXXXXXXXXXSXXXSXXXXXXSXXXXXXXXXXXSXXXXXXXSXXXXXX
//77777X7777X77XXiSMSXrWMMMBi ,@M XX7rZ8;,,,,i;;;7aMSi777XX77XXX7XX77XXXXX77X7XXX7XX77XX7XXX7XX7XXXXXX
//XXX7777XX777777:BMMMZr i;ZM 777SZi,:::ii;r;r7S@a:777777777777777X7XX777X7X7XXXXXXX7777XX7XX77X77
//XXXXXXXXXXXXXXX:ZM. .,:;rZM 77:8,,::.. .:iXMr;XXXXXXXXXXXXX7X7XXXX7X7X77X7XX77XXXXXXXXXXXXXX
//777777777777777iiMX:,,,,::irXMa.7riM, .;0MMMM8iXM.r777777777777777777777777777777777r777777777r7
//777777777777777r.@MX.,:iiiir2@ ;;7MMMMMMMM@ar:.iX8SMi;777777777777777777777777777777777777777777777
//7777777777777777i MM@r::iir8MMWX Mi .ii;;rS@Xi777777777777777777777777777777777777777777777
//rrrrrrrrrrrrrrrrri iMMMMMMM070MM7 ;Z.,.....,:i;rraZ8X:rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//r77777777rrrrrrrrr rMaW77i :::i;ZMM a;,,,,::i;r77rZ@0:irrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rr;rr;r;i. ,. MX:7 BSX7r7aMM.2;iii;;;rX772MMM ;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//rrrrr;, ;B@@8: 28;72@ MSXXrrXWMMaMXii;;r7X7SM, ,rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
//;rr;i XMMMMMMMMMMM:iXX@ M2X2X;SB@M .M0X;;;7a@MM7. ,;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr;r;rrrrr;
//;;ii MMM@WWWWWWMMM8.XXZM MS::arX@Mr 2ZMMMMMMMM7iSMM :;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
//;;; MM@WWWWWWWWWBM0 7XSM MSa Z00B; MMBr2SZ8r :rSSSZM2 .i;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;r;;;;;;;;
//ii. MM@WWWWMMMM@WMM22XS2BW M0MBa0. 7MM@8SrS2aZ8Z22MM :iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
//;; ,MMMM@W@@. MMM, Za2aZ0.Si;: MMaWMMMMMMMMMMMZ i;;;;iiiii;;;;;;;iiiiiiiii;;;iiiiiiiiiiii
//i: MM8 8@WWWaMMMX .rZ ,r7 ;MMMMMMMW MMX .MMS27;;rrr;iiiiiiiiir777r;iiiiiiiiiiiiiiiii
//ii MM WMWMMMM ,:iM .i;S, :MMMMMMMMMMM :MMMMMZ ZX;;rSaS7;ii;X2r. ;SX;iiiiiiiiiiiiiii
//i: MMaZM@MM0 ,,::iM; ;X MMMMMM MMM rMMMMMMMMMMMMMMM XSXS X;iiiiiiiiiiiiii
//:: MMM@@MMi .:,::i;;M; 7 MMMM; MM MMMMMMMMMMMMMMMMMMM.MMMMMS MMMMM 7i:::i:::::::::
//:: MM@WMM :i;ii;;rrM . MMMM XMMM MM MMMM MMM WMMMMMMMMMMMMW MMMMMMMM i;iiiiiiiiiiiii
//:: MM@MM i;77rrrrr2MX8 MMMM WM2 MMM MMMMMBMMM:MMMMMMMMMM0 MMM r,,,,,:,,,,,,:
//::: MMMM ir;rXrrr78MMMM :MMM ,7ZMM@a::S 8MM. MMMMMMM MM :MMMMMM MMM 7:::::::::::::
//,,, MMM2rX77X7X0MMZ7M MMM0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMM 7 MMMM :, MMM r,,,,,,,,,,,,,
//,,,, MMMMMMMMMMMW aM MMM2MMMMMMMMMMMMMMMMMMMMMMMMMMMMB MMM .r MMMMM ; MMM Xrr;i:,,,,,,,,
//,,,,,. SX.;aM7 M MMM :88i MMMr MMMMMMMMM :i MMX 7MMMM :i,,,,,.,
//,..,.,. B7i:..2M , ;i @MMM @MMMM MMMMM MMMM MMX @MMMMMMMMMMMMMMMMMMMMB .:......
//..,... MWSX7772WM2 M MMMMMMMMMMMMMMMa , MMM MMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM :,,,,,,
//...... M2 S7XSr ,BM M MMMMMMMMMMMMZ ::i. 8MMM MMMMMMMMMMMMMM2 ;20MMMMMMMMMMMZ .......
//...... MMZ7Z22aBS82@M, @M MMMMMMMM :,.,. MMM .MMMMMWMMM . MMMB ,.....
//.,,,,. MMMMMMMMMMMMMMMM: MMM ::,,,,,, MMM , 0MMMMMMM :::. MMM .:::: MMMM ,,,,,,.
// :MM@ ;MMMMMMM MMM MMMMZ
// MMMMM 0MMM SMMMMM
// GRPS: Commune For Groups ,MMMa MMMMX MMMMMM
// vBulletin Add-On Software MMMM MMMMMMMMMMM
// by sabret00the MMM MMMMMMa
// Copyright 2005 M

// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("../");

// ## Set GRPS to rewrite links and images automatically
$rewrite_links = TRUE;

?>

bada_bing
28 Sep 2006, 03:33
Awesome Add On!!

I have a few minor issues that I cannot find to fix:

1. Group Leader Avatar - Not showing up, the image path is obviously wrong http://www.mysite.com/forums/http://www.mysite.com/forums/image.php?u=1&dateline=

2. Invite PM - The link in the PM to accept an invite is going to mysite.com/groups (it should be) mysite.com/forums/groups

3. Should there be an option to upload a groups photos or random is all it gets?

4. How could I go in to edit my navbits? Would like Forums - Groups - Group Name.

5. No Group Info in Member Profile. I am using a bit of the MySpace profile re-write, is this why I am not getting any group info?

Thanks, other then the above it works great for me so far. Im sure these are simple fixes I just am not finding the correct places to make the edits.
YEs I am having simular issues also with the avator not showing up because it point to /groups instead of /forums/

I also have vbpager installed and the pager link point to /groups/bla/bla/bla

Need to fix this ...

TheBlackPoet
28 Sep 2006, 05:20
i never could get hacks like this to work on my forum.. it must be something set up in my dbase that prevents it... try try try... no success...
not your fault though...

sabret00the
28 Sep 2006, 10:19
Can you please... You have my info still?
sure thing, i'll do it sometime today.

sabret00the
28 Sep 2006, 10:21
I just need to overwrite the functions_grps.php only when upgrading from rc4?
nope, all files. just the functions_grps.php was for a problem with the first RC5 zip i threw up. there at atleast two changed instances in index.php in RC5 i can't recall whatelse.