vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - GRPS: Groups Commune 2.0.x (https://vborg.vbsupport.ru/showthread.php?t=127303)

murrtex 09-30-2006 06:50 AM

hello sabret00the.thans for hack..
my config is;
Code:

<?php

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

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

?>

and installer;
Code:

chdir('../../forum/');

its okey bur image dir is problem..
http://www.4umturk.com/groups/images/

it should be http://www.4umturk.com/forum/images/

how can I fix that..

and

when I click Start A New Group

it says
Code:

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

how will we fix it

best regards

sabret00the 09-30-2006 09:27 AM

Quote:

Originally Posted by Lionel
I hope you don't mind all my reportings. I am not trying to be smart. I simply love your hack and am trying to help.

nope, not at all, the help is much appreciated, much appreciated :)

sabret00the 09-30-2006 09:37 AM

Quote:

Originally Posted by Snake
It is set to that already.



Still getting the same error.

sorry, you need the trailing slashes

PHP Code:

chdir('../forums/'); 


sabret00the 09-30-2006 09:38 AM

Quote:

Originally Posted by ChurchMedia
I'm still getting a few DB errors in admincp -- missing table prefixes.

This hack is a great idea. My members are going to love it when I get it up and running! :)

which admincp errors, can you post up the error messages please.

sabret00the 09-30-2006 09:41 AM

Quote:

Originally Posted by Lionel
Please, although it is saying username all over on the invitation form, I already have people trying to put email addresses and of course, they get



is there a way to verify a username in the below and display a vb error if not found?

Thanks.

PHP Code:

 foreach ($vbulletin->GPC['invite_username'] as $key => $invite)
 {
  if (!empty(
$invite))
  {
   
// create the DM to do error checking and insert the new PM
   
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
   
$pmdm->set('fromuserid'$vbulletin->userinfo['userid']);
   
$pmdm->set('fromusername'$vbulletin->userinfo['username']);
   
$pmdm->set('title'$newpmtitle);
   
$pmdm->set('message'$message);
   
$pmdm->set_recipients($invite$botpermissions);
   
$pmdm->set('dateline'TIMENOW);
   
$pmdm->save();  
  }
 } 


the only way i can think of, is a query for each username.

sabret00the 09-30-2006 09:49 AM

Quote:

Originally Posted by whitetigergrowl
url:

http://www.powerrangerempire.com/com....php?do=groups

^^^ Its to moderate the groups.

database error:

merci, that's fixed for RC6 along with a couple others.

sabret00the 09-30-2006 09:51 AM

Quote:

Originally Posted by murrtex
hello sabret00the.thans for hack..
my config is;
Code:

<?php

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

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

?>

and installer;
Code:

chdir('../../forum/');

its okey bur image dir is problem..
http://www.4umturk.com/groups/images/

it should be http://www.4umturk.com/forum/images/

how can I fix that..

and

when I click Start A New Group

it says
Code:

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

how will we fix it

best regards

for your bottom error wait for RC6 to be released today.

for the image problem, you'll have to prefix your image urls with your site url. i explained a couple pages back, but if you're still confused, let me know and i'll explain again.

sabret00the 09-30-2006 09:53 AM

Quote:

Originally Posted by Lionel
in viewthread.php, I also made into



and that stopped displaying the broken image for reputation.gif

change gone into rc6

Quote:

Originally Posted by Lionel
and i changed the url into bburl instead of homeurl in same viewthread

that was actually redundant and thus all instances have been removed. can't actually remember what i had that there for tbh.

sabret00the 09-30-2006 09:58 AM

Quote:

Originally Posted by Lionel
While putting a padding around image in groups_display_main, I saw this



What is the group gallery?

the groups gallery is the ability for each group tp host pictures, set a default picture and thus negate the need for the rotating picture in said group, it would also enable thumbnail viewing of the default picture in the usercp module and so on and so fourth. unfortunately not available though. especially so while i'm still working out kinks here.

sabret00the 09-30-2006 10:37 AM

Sorry for the delay in getting this one released. here you go;

New Zip:
Groups v2.0.0 RC6.zip: various bug fixes including table prefixes in admincp, invitations system now features inline erroneous username fallback and clean up regarding broken images in viewthread.php

Snake 09-30-2006 01:39 PM

Quote:

Originally Posted by sabret00the
sorry, you need the trailing slashes

PHP Code:

chdir('../forums/'); 


Okay Sabe, this is pissing me off. I don't know what's the problem here. Everything is fine as it is so I've PM'ed you with the FTP info to my site. You can check for yourself where I did wrong.

murrtex 09-30-2006 03:50 PM

I updated but still same errors ..
http://www.4umturk.com/groups/

sabret00the 09-30-2006 04:37 PM

Quote:

Originally Posted by murrtex
I updated but still same errors ..
http://www.4umturk.com/groups/

your problem is simply a css problem.

do a search within this thread for "css" and all your questions will be answered, fi that still doesn't help you. come back to me.

Lionel 09-30-2006 05:16 PM

Everything appears to be fine with that last RC 2.06

couple suggestions though. In the functions_grps, in the replacements, I put one quote in front of them.
Quote:

'"usercp.php',
Why? Some times it's harcoded like /forums/usercp.php for other hacks, and the replacement of course only picks up user.cp and reput the vburl in front again, making it double. So by putting the quote in front of it, we insure that it is right after "=" and nothing else is there.

in postings.php you need to fix the replacememt for reputation.gif and put it exactly as it is in template (remove the extra dots)

sabret00the 09-30-2006 05:23 PM

Quote:

Originally Posted by Lionel
Everything appears to be fine with that last RC 2.06

couple suggestions though. In the functions_grps, in the replacements, I put one quote in front of them.


Why? Some times it's harcoded like /forums/usercp.php for other hacks, and the replacement of course only picks up user.cp and reput the vburl in front again, making it double. So by putting the quote in front of it, we insure that it is right after "=" and nothing else is there.

in postings.php you need to fix the replacememt for reputation.gif and put it exactly as it is in template (remove the extra dots)

not sure what you mean on the postings.php one Lionel, that's not supposed to do anything bar show the IP or enable you to stick/close/delete a thread.

Lionel 09-30-2006 05:27 PM

Quote:

Originally Posted by sabret00the
not sure what you mean on the postings.php one Lionel, that's not supposed to do anything bar show the IP or enable you to stick/close/delete a thread.

sorry I meant viewthread.php

here is my corrected one

Quote:

'<span id="reputationmenu',
' Reputation" border="0" /></a></span>',
'src="$stylevar[imgdir_button]/infraction.gif"'

sabret00the 09-30-2006 05:33 PM

Quote:

Originally Posted by Lionel
sorry I meant viewthread.php

here is my corrected one

the reputation image/link should be commented out while the infraction.gif is changed to clear.gif and set as width="0" height="0".

what extra dots are there?

Lionel 09-30-2006 05:35 PM

Quote:

Originally Posted by sabret00the
the reputation image/link should be commented out while the infraction.gif is changed to clear.gif and set as width="0" height="0".

what extra dots are there?

'src="' . $stylevar['imgdir_button'] . '/infraction.gif"'

your code:

PHP Code:

 $postbit str_replace(
  array(
   
'member.php',
   
'private.php',
   
'search.php',
   
'sendmessage.php',
   
'profile.php',
   
'<!-- / post #',
   
'imwindow',
   
'400, 200); return false;">',
   
'images/avatars/',
   
'<span id="reputationmenu',
   
' Reputation" border="0" /></a></span>',
   
'src="' $stylevar['imgdir_button'] . '/infraction.gif"'
  
), 


Lionel 09-30-2006 05:38 PM

that was infraction.gif

sabret00the 09-30-2006 05:41 PM

Quote:

Originally Posted by Lionel
that was infraction.gif

the full code should look like this.
PHP Code:

    $postbit str_replace(
        array(
            
//'image.php',
            
'member.php',
            
'private.php',
            
'search.php',
            
'sendmessage.php',
            
'profile.php',
            
'<!-- / post #',
            
'imwindow',
            
'400, 200); return false;">',
            
'images/avatars/',
            
'<span id="reputationmenu',
            
' Reputation" border="0" /></a></span>',
            
'src="' $stylevar['imgdir_button'] . '/infraction.gif"'

        
),
        array(
            
//$vbulletin->options['bburl'] . '/image.php',
            
$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/',
            
'<!-- <span id="reputationmenu',
            
' Reputation" border="0" /></a></span> -->',
            
'src="' $vbulletin->options['bburl'] . '/clear.gif" width="0" height="0"'

        
),
    
$postbit); 

minus the commented out lines. please note, that's both tested and workng as far as i can tell. i.e. on my board.

Lionel 09-30-2006 05:49 PM

yes but this does not exists in template so no replacement takes place, at least not for me

Quote:

'src="' . $stylevar['imgdir_button'] . '/infraction.gif"'

what does is

Quote:

'src="$stylevar[imgdir_button]/infraction.gif"'


sabret00the 09-30-2006 06:07 PM

Quote:

Originally Posted by Lionel
yes but this does not exists in template so no replacement takes place, at least not for me



what does is

that's interesting because this is all in the post-parsed state so the above should most definately replace.

hmmmm.

hopefully some others will offer feedback on this one.

Lionel 10-01-2006 02:33 AM

Is there a way to align group members in 3 rows?

This is how it displays to me

sabret00the 10-01-2006 06:23 AM

Quote:

Originally Posted by Lionel
Is there a way to align group members in 3 rows?

This is how it displays to me

that's on viewmembers.php? if so refresh a couple times, that's a css bug i somehow managed to work in there and haven't managed to figure out how.

Lionel 10-01-2006 07:05 AM

I had a similar situation. If I recalled, what I did was to include the info in it's table and do an align="left" and they automatically wrap themselves into the next line. I am going to try and will let you know.

Lionel 10-01-2006 08:08 AM

ok, here is what i did.
in groups_display_memberbit I put

Quote:

<table style="float:left"><tr><td>
bits goes here
</td></tr></table>
Now, since the main group page uses that too, I need to adjust that template too by putting a td in there to accomodate the tables. I believe with that setup, the next members will automatically wrap around to go to the next line. If I recall, I used table align="left" which was fine with Firefox, but IE did not like. So the float did it for both

Lionel 10-01-2006 08:32 AM

Perfect! This was misaligning the newest member in main group page to the left (but was wrapping around :-))

so since you define both scripts the same I introduced a new define in viewmembers and here is the content of template

PHP Code:

<if condition="THIS_PART=='viewmembers'">
<
table style="float:left"><tr><td nowrap></if>    <strong><a href="$vboptions[bburl]/member.php?u=$grps_membersinfo[userid]">$grps_membersinfo[username]</a></strong><br />
    <
a href="$vboptions[bburl]/member.php?u=$grps_membersinfo[userid]"><img src="$grps_membersinfo[avatar]alt="$grps_membersinfo[username]'s avatar" border="0" /></a><br />
    <
span class="smallfont">Joined$grps_membersinfo[join_date]</span><if condition="THIS_PART!='viewmembers'"><br /></if>
<if 
condition="THIS_PART=='viewmembers'"></td></tr></table></if> 

with that setup, both viewmembers and group.php display fine.

murrtex 10-01-2006 10:50 AM

my css is ok I installed css_prefix.xml
but images have same error.. :(

foreverdarkness 10-01-2006 06:02 PM

I can not get this to work...I am logged on my site and every time i go to the groups its shows me as logged out so i cant view them. It seems like its an issue with the cookies but I dont know how to fix it. Please help.

sabret00the 10-01-2006 06:19 PM

Quote:

Originally Posted by foreverdarkness
I can not get this to work...I am logged on my site and every time i go to the groups its shows me as logged out so i cant view them. It seems like its an issue with the cookies but I dont know how to fix it. Please help.

Go here http://www.yoursite.com/forums/admin...s&dogroup=http

and make sure the cookie path is set to "/". that should fix it.

sabret00the 10-01-2006 06:25 PM

Quote:

Originally Posted by murrtex
my css is ok I installed css_prefix.xml
but images have same error.. :(

just had a look and it seems you got half of it working, so my job is easier, here's the rest of what to do.

Go to your AdminCP => Styles & Templates => <your style> All Style Options

Now scroll down to the Image Paths section
and change the "Button Images Folder" from "images/buttons" to http://www.yoursite.com/forum/images/buttons"
do that for each of the proceeding image paths. they will be:
  • Item Status Icon Folder
  • Attachment Icons Folder
  • Miscellaneous Images Folder
  • Text Editor Controls Folder
  • Poll Images Folder
  • Ratings Images Folder
  • Reputation Images Folder
that should fix your problems.

ronoxQ 10-01-2006 07:51 PM

Quote:

Originally Posted by sabret00the
sorry RonoxQ, it's unbeleivably hard to follow a conversation in this thread, your problem is the on about it linking to everything wrongly right? someone else had that problem and it was the Zoints SEO mod. if that's not your problem (i'll get a chance to read back through the thread in about half hour) then just hold tight, this message will be edited.

Yep, that was the problem! Dang, I liked that hack. Hope it gets fixed soon... (I mean SEO, I've picked Groups over it.)

Now images aren't showing up. Darn... The URL they're giving me adds /groups/ to the end of my forum URL. >_<

sabret00the 10-01-2006 08:50 PM

check this post: https://vborg.vbsupport.ru/showthread.php?p=1087770.

foreverdarkness 10-02-2006 01:16 AM

Quote:

Originally Posted by sabret00the
Go here http://www.yoursite.com/forums/admin...s&dogroup=http

and make sure the cookie path is set to "/". that should fix it.

That worked but now I cant create any groups...it keeps says cant find phrase grps_thanks or grps_formerror. Depending on if i fill in both fields. I get the grps_formerror error when just doing the title and when i fill in both fields i get the grps_thanks error.

whitetigergrowl 10-02-2006 01:20 AM

The smilies and avatars are being referred to differently and thus not showing. Just a bunch of red x's. They want to point to a smilies and images folder in the groups folder. Also, when I click on the link at the top of the forums that shows categories, forums, etc, when I am in a forum or thread in the groups, it wants to reference to the 'groups' folder rather than the main forums.

Protoman 10-02-2006 01:52 AM

unable to find phrase 'grps_thanks' on group addition

then the group is not added following this error.

Trana 10-02-2006 03:43 AM

Any chance of a version without file edits?

sabret00the 10-02-2006 08:55 AM

Quote:

Originally Posted by whitetigergrowl
The smilies and avatars are being referred to differently and thus not showing. Just a bunch of red x's. They want to point to a smilies and images folder in the groups folder. Also, when I click on the link at the top of the forums that shows categories, forums, etc, when I am in a forum or thread in the groups, it wants to reference to the 'groups' folder rather than the main forums.

check these posts out:
https://vborg.vbsupport.ru/showthread.php?p=1081687
https://vborg.vbsupport.ru/showthread.php?p=1087770
https://vborg.vbsupport.ru/showthread.php?p=1082634

As for your avatars where are they being stored and is it all avatars (defealt and custom) or just one or the other?

sabret00the 10-02-2006 08:56 AM

Quote:

Originally Posted by Protoman
unable to find phrase 'grps_thanks' on group addition

then the group is not added following this error.

you forgot the error.

sabret00the 10-02-2006 09:01 AM

Quote:

Originally Posted by Trana
Any chance of a version without file edits?

without file edits? you mean the cpnav_vbulletin.xml file edit or the groups/includes/config.php?


All times are GMT. The time now is 07:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03263 seconds
  • Memory Usage 1,897KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (6)bbcode_php_printable
  • (30)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete