Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Accessing variables from Forum, Community in Links

Quote Reply
Accessing variables from Forum, Community in Links
I have a general question about how I can make Community and/or Forum variables available within Links.

For example, I would like to create a homepage that allows users to login (Community), displays recent Forum posts and Directory Entries.

I've searched the Gossamer Forum extensively and haven't come across any solutions. All three programs seem to work fine independently, however I'm having a hard time integrating them (i.e., incorporating components of >1 on any page).


I am running Links 2.2.1, Community 1.0.2, and Gforum 1.2.3.

Paths to the public cgi scripts:

Community: //cgi-bin/
Links: //cgi-bin/
Forum: //Cgi-bin/forum


Thank you,

Erik
Quote Reply
Re: [eendrulat] Accessing variables from Forum, Community in Links In reply to
You can use a global to pull data from other installations.
For example, to access the Forum tables in your Links installation you need to use something like this:

use lib('/path/to/forum/admin');
my $db = GT::SQL->new('/path/tol/forum/admin/defs')->table('Forum','Post');
Quote Reply
Re: [afinlr] Accessing variables from Forum, Community in Links In reply to
Did you get an answer on why that wasn't working before?


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Accessing variables from Forum, Community in Links In reply to
I think that there is occasionally a problem that the database isn't connected the first time this is used under mod_perl in some situations ...