[solved]quick question about functions

djetaine

Joined: 2004-08-09
Posts: 7
Posted: Mon, 2004-08-16 06:21

I am trying to install gallery into importal using the snailsource phpbb integration. My problem is when i click on gallery it is looking for some blocks that cant be found. I know that i need to enter two particular global variables into the function that calls the gallery. I believe this will fix it. Where would that function be located? what file? I dont really know php in-depth so i cant tell. Can anyone help me?
----
gallery1.44.
http://www.theslackerslounge.com/TSLCMS/newforum/modules.php?op=modload&name=gallery&file=index&sid=62af7b05e853bae4d8cc1b2fab8a57a1

sorry i was in the wrong forum, i figured the function would be inherent to gallery itself.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2004-08-16 06:48

[moving to the the correct forum]

 
AlpineZone
AlpineZone's picture

Joined: 2004-01-21
Posts: 69
Posted: Mon, 2004-08-16 18:35

Gallery 1.4.4 comes with built-in phpBB integration (built off the snailsource approach). Look in this directory:

gallery\contrib\phpBB2

 
djetaine

Joined: 2004-08-09
Posts: 7
Posted: Mon, 2004-08-16 19:20

oh, i didnt realize that. oops. I i have it working with my nornal phpbb page that i am running now. my problem is with the importal. if i run it directly off my forum it will work. And if i remove the block called recent topics out of my portal page it will work. Its just looking for that block and doesnt see those global variables that it needs.
I just need to know what function actually calls the gallery where i would insert those two globals.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-08-16 19:25

djetaine, as AlpineZone said, look in the contrib/phpBB2 directory. All of the documentation is right there.

 
djetaine

Joined: 2004-08-09
Posts: 7
Posted: Mon, 2004-08-16 20:35

i have looked at that. Im not having a problem integrating with phpbb. That works just fine. Am i to understand then its just modules.php that calls the gallery? becuase i dont see any part where i would insert those variables.
i was under the impression that it would look something like

<?php function display_gallery()
{
  global $portal_config, $var_cache;
}

but i dont see any sort of function call like that in the modules.php
this is the help that i got from martin from snailsource. he said he didnt know exactly what code id need to insert it into.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Mon, 2004-08-16 20:41

Insert *what* variables? Yes.. modules.php does all of the work.

You're not fully explaining what you're trying to do or what the problem is.

 
djetaine

Joined: 2004-08-09
Posts: 7
Posted: Tue, 2004-08-17 02:29

heh, sorry. I have asked this question on two different boards and thought i had explained it further on this post.
I am using IMportal and am trying to integrate the gallery into it. The error message i am recieving is becuase i have not included the global variables $var_cache and $portal_config (or so im told) The problem is the importal is trying to get the gallery to look for the recent topics block for importal. When i remove the recent topics block off my portal page and then click on gallery everything works correctly.
you can see the error when you go to this page
http://www.theslackerslounge.com/TSLCMS/newforum/modules.php?op=modload&name=gallery&file=index&sid=dc08b512a09180e8b02c803918db62c7

 
djetaine

Joined: 2004-08-09
Posts: 7
Posted: Thu, 2004-08-19 18:13

bump.... Any ideas? this is the only thing i need to get my site live.

 
djetaine

Joined: 2004-08-09
Posts: 7
Posted: Fri, 2004-08-20 02:00

problem solved. thank you