This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

IF Group Statement on external page

Support for all Snippets will go here!
Forum rules
PLEASE USE THE [HSIMG][/HSIMG] TAGS WHEN POSTING LARGE IMAGES!
IF YOU DO NOT PROVIDE A LINK TO YOUR FORUM, YOUR TOPIC COULD BE IGNORED!
CANNOT REALLY HELP YOU OUT IF WE CANNOT SEE THE PROBLEM!
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: IF Group Statement

Post by cisco007 »

i thought you said you were using
includes/functions.php
line in your file?
and it's not

Code: Select all

<!-- IF notS_GROUP_5 -->Content here<!-- ENDIF -->
there should be a space between the not and the S_GROUP!
Image
Angry_Sun

Re: IF Group Statement

Post by Angry_Sun »

Oh, there is a space. Don't worry. My fault when transferring it to this post. But yeah, functions is included.
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: IF Group Statement

Post by cisco007 »

cisco wrote:maybe you should try adding the code to you external php file instead of the functions file and see if it works that way
Image
Angry_Sun

Re: IF Group Statement

Post by Angry_Sun »

cisco I think the problem is that it's not picking up my group. Is there a certain function that calls this?
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: IF Group Statement

Post by cisco007 »

yeah, the code in the first post!
Image
Angry_Sun

Re: IF Group Statement

Post by Angry_Sun »

Looking in the database it says my group id is 39. So why the hell isn't this code showing when I put GROUP_39... smile_angry

EDIT: FOUND IT. I have to manually put the code in the file. So why isn't it taking it from functions.php? >.<
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: IF Group Statement

Post by cisco007 »

I really can't tell you! you said you were trying to use it on an external page so don't know the contents of that particular file!
maybe you could also try installing the STK mod from phpbb.com and in the user/group tools tab run the resync user groups!
Image
Angry_Sun

Re: IF Group Statement

Post by Angry_Sun »

This is so weird. It's like it's not picking up the functions include in common.php

Here's the setup.

My page.php -> includes(common_site.php)
common_site.php -> includes(common.pgp)
common.php -> includes(functions.php)

It should still pick up functions.php, right?
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: IF Group Statement

Post by cisco007 »

not really, why not include the functions.php file in the same my page.php file you are using so as to not have any problems!
it's kind of hard to have and include within and include within your file!
Image
Angry_Sun

Re: IF Group Statement

Post by Angry_Sun »

Well then I get the error "Already included that file."
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: IF Group Statement

Post by cisco007 »

when you create a new page or a custom page you really don't have to include the entire functions.php file in it, unless you are going to use the entire code from that file, i just add what ever code i need to the custom page and it's alot simpler and easier, all you have to include is the common.php file from the root of the forum just like stated in the tutorials to create a new custom page, but if you added that code and it's working fine that way, just leave it that way then!
Image
User avatar
Steve
X-Steve
X-Steve
Posts: 1920
Joined: Thu Sep 16 2010 3:19 pm
Real name: Steve© MX
Country Flag: Great Britain
Location: Up north!
Contact:

Re: IF Group Statement

Post by Steve »

common_site.php -> includes(common.pgp) :lol:
Hello! and Do NOT contact me via private message for support!!
Post Reply