Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
GRPS: Groups Commune 2.0.x Details »»
GRPS: Groups Commune 2.0.x
Version: 2.0.13, by sabret00the sabret00the is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.4 Rating:
Released: 09-22-2006 Last Update: 09-28-2007 Installs: 233
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Welcome ladies and gentleman, this is the release thread for GRPS, an interactive groups commune. I hope you enjoy this release and i sincerely hope it provides everything to your community in which you're looking for.

What is it?
It's a groups commune. The original idea is that forums with lots and lots of forums on the front-page suck, as a result i thought most of the conversation was rather obscure in regards to what the forums were trying to achieve, so it'd be nice to have that all going on elsewhere, not detracting away from the content and stopping your front-page from looking like a car crash.

Features?
  • Groups Home
    • Groups Activity List
      • Newest Groups
      • Most Popular Groups
      • Largest Groups
    • Category List
    • Group Search by Title
    • Group Sort by Alphabetical Title, Categories, Member Count

    • Users can create groups
    • Admin switch to moderate groups or not
      • Admin CP access to moderation panel
  • Groups Page
    • Posts since last visit notification
    • Group Info
      • Group Leader shown with avatar
      • Category
      • Type
        • Groups can be listed as public, private or hidden
      • Start Date
      • Member count
      • Post count
    • Group Desciption
      • Shows group title
      • Shows random image
      • Shows group information set by group leader
    • Groups Thread List (Forum)
      • Status Icon
      • Title
        • Threads use postbit as per the forums
      • Thread Author with avatar and time that the thread was started
      • Last reply with avatar, username and time that the last reply was posted
      • Post New Thread Button
        • Groups Members can create threads
    • Newest Members
      • Shows five newest members
      • Link to view all members
        • Shows all members of the group
    • Group Options
      • Users can join/leave groups
        • PM Notification for group leaders upon join requests (when moderation enabled).
        • PM Notification for of acceptance or refusal.
      • Users can send invites to other users via PM
  • Groups Thread
    • Groups Info Box (see above for more info)
    • Group Description box (see above for more info)
    • Newest Members List (see above for more info)
    • List of groups posts using forums postbit
    • Pagination using native vBulletin pagination
    • Group Leader/Moderation Options
      • Open/Close Thread
      • Stick Thread
      • Delete Thread
    • Users have the ability to report posts
    • Moderators have the ability to view IP and host.
  • Group Leader Options
    • Groups Management
      • WYSIWYG Editor
      • Reason for editing box
      • Group Options
        • Private Posts
        • Only group leader can make threads
        • Moderate Members
        • Show group text edit details
        • Hide group image on group pages
        • Hidden Group
          • This option is only available to admins
    • Group Members Moderation
      • Ability to accept or deny new members
  • Postbit Integration
    • View Users Groups
  • User Control Panel (Integration)
    • List of groups appears in usercp in order of the last post
  • Administrator Options
    • vBulletin Options
      • Turn groups on or off
      • Groups Limit Per User
      • Posts Per Page (threads)
      • Check Forum Activity Posts
      • Check Forum Activity Time
      • Number of Random Images
      • Turn email notification of new groups on/off
    • Usergroup Options
      • Can view groups
      • Can create groups
      • Can join groups
      • Can post messages in groups
      • Can edit messages in groups
      • Can delete messages posted in groups
      • Numbers of groups usergroup can join limited
      • Can moderate groups
        • See above for more info
      • Can view IP Addresses
    • Category Editor
      • Edit
        • Edit cat id (please not this can ef up your show)
        • Edit cat title
        • Edit cat description
      • Add
        • New Cat Title And Description
    • Groups Editor
      • Search for group by id
        • Edit
          • Title
          • Desciption
          • Categoryid
          • Group leader id
          • Private Posts
          • Moderate Members
          • Hidden group

Special Thanks to harry1951, without his help testing and his recommendations, this would've never ended up the way it did.

Honestly, i can't think of anything else, if you appreciate the work gone into this mod, please donate (in GBP) (right click open in new window)

Hopefully you all appreciate that i just relaunched my site and rather than soak up the atmosphere there or go out drinking i came to release this tonight.

Screens below, rest to your right

Please note this mod does work with 3.5.x

PLEASE DO NOT JOIN MY SITE IN A BID TO PLAY WITH IT OR HAVE A LOOK AT IT FURTHER, MY SITE IS SOMETHING I VALUE FOR BEING SOMEWHERE I CAN CHILL AT, IT'S NOT A TEST SUITE OR DEMO!

Bug Fixes
  • Groups v2.0.0 RC1b.zip: fix regarding incorrect table prefixes in index.php and editpost.php
  • Groups v2.0.0 RC2.zip: fix regarding incorrect table prefixes in functions_grps.php and class_grps.php. also fix regarding installation instructions.
  • Groups v2.0.0 RC3.zip: fix regarding inability to get to create groups page. updated simplified instructions, sadly still not cool html ones and also added ability to delete groups, delete categories and of course the menu options to get to these.
    • Groups v2.0.0 RC3b.zip: fix regarding joining and leaving group depreciated function error added uninstaller to the zip at http://www.yoursite.com/groups/tools...p?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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 09-24-2006, 08:58 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Azhrialilu
.. 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
Reply With Quote
  #133  
Old 09-24-2006, 09:04 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr
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:
PHP Code:
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
PHP Code:
        array(
            
// navbar replacements
            
'usercp.php'
and replace with
PHP Code:
        array(
            
// navbar replacements
            
'usercp.php',
            
'forum.php'
now find in the same file
PHP Code:
        array(
            
// navbar links
            
$vbulletin->options['bburl'] . '/usercp.php'
and replace that with
PHP Code:
        array(
            
// navbar links
            
$vbulletin->options['bburl'] . '/usercp.php',
            
$vbulletin->options['bburl'] . '/forum.php'
now save the file and upload it and you're sorted.
Reply With Quote
  #134  
Old 09-24-2006, 09:06 PM
ronoxQ's Avatar
ronoxQ ronoxQ is offline
 
Join Date: Aug 2005
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind! Fixed!

Heh, it was the specialized JavaScript navbar I was using. Not your problem at all. ^_^
Reply With Quote
  #135  
Old 09-24-2006, 09:13 PM
hippsta's Avatar
hippsta hippsta is offline
 
Join Date: Mar 2006
Location: Las Vegas, N.V.
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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..

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

PHP Code:
Array
(
    [
cellpadding] => 6
    
[cellspacing] => 1
    
[closedthreadimage] => images2/buttons/threadclosed.gif
    
[codeblockwidth] => 640px
    
[contenttype] => text/htmlcharset=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

Reply With Quote
  #136  
Old 09-24-2006, 09:24 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hippsta
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..


=

PHP Code:
Array
(
    [
cellpadding] => 6
    
[cellspacing] => 1
    
[closedthreadimage] => images2/buttons/threadclosed.gif
    
[codeblockwidth] => 640px
    
[contenttype] => text/htmlcharset=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

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
PHP Code:
    [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.
Reply With Quote
  #137  
Old 09-24-2006, 09:37 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here you go the contents of my groups/browse.php

PHP Code:
<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//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")."\");");

?>
Reply With Quote
  #138  
Old 09-24-2006, 09:44 PM
hippsta's Avatar
hippsta hippsta is offline
 
Join Date: Mar 2006
Location: Las Vegas, N.V.
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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, 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..
Reply With Quote
  #139  
Old 09-24-2006, 09:45 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Benj
here you go the contents of my groups/browse.php

PHP Code:
<?php

//XXXXXXXXXXXXXXXXXX;,XMMMMMS i7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXSXXXXXXSSXXXSXXXXXXSXXXSXSXXSXXSXXSXXXX
//XXXXXXXXXXXXXXXX7:XMM0aaZWMMX.rXXXXXXX77;iiiii;7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//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.
Reply With Quote
  #140  
Old 09-24-2006, 09:46 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hippsta
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, 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.
Reply With Quote
  #141  
Old 09-24-2006, 10:00 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
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 ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10685 seconds
  • Memory Usage 2,792KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete