![]() |
|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
![]() |
|
Learn how to remove ads |
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]() I am trying to adapt a vBAdvanced CMPS module for use in a GARS module block, without much luck. I've read through the vBAdvanced.com manual entry on integrating modules on other pages, but that's not exactly what I need.
The modules in question are vBAdvanced modules included with: Links and Downloads Manager 2.1.3b2 ...which also needs to be installed along with the vBAdvanced module. The specific module I want to include as a GARS module is ldm_hot.php, which displays the most popular links in the Links and Downloads Manager directory. This is the full code of ldm_hot.php, which is installed and works properly with vBAdvanced CMPS: PHP Code:
PHP Code:
"Fatal error: Call to a member function on a non-object in global.php" and "undefined function $get_links()" ...even though I have the absolute paths set up to global.php and the $get_links() function is defined in the require_once 'local_links_include.php'. Can anyone point me in the right direction with this? What fundamental changes to which GARS files do I need to make to get a module designed for vBAdvanced to work within a GARS module block? Thanks for your help. |
#2
|
||||
|
||||
![]() Looks like it isnt picking up the file with the get_links function.
Can you post your code in its entirety? |
#3
|
|||
|
|||
![]() All the code is in the "links 2.1.3b2.zip" package at vb.org:
Links and Downloads Manager The full code of the vBAdvanced module is in my first post above. The two files local_links_init.php and local_links_include.php are too large to paste into this post, so I have attached them. The full mod needs to be installed for the module to work. I have it installed and running on my forum, and the vBAdvanced module is running in a vBAdvanced portal block. However, I don't really need this block on my portal, but I do hope to integrate and display links within a GARS module block. Another option is to try to write a GARS only module to pull information directly from Links and Downloads Manager without any reference to the vBAdvanced module, but I haven't had a chance to try that route yet. I thought it might be easier to start from the vBAdvanced module, but that may turn out to be the roundabout way to achive what I want. Last edited by Marris; 03-02-2006 at 04:25 AM.. |
#4
|
|||
|
|||
![]() Well, I went in a completely different direction. Now, I'm avoiding the vBAdvanced module and Links and Downloads Manager code entirely and trying to pull the data directly from the database into a module.
Unfortunately, I'm still getting errors. Could you please take a look at this and see what might be causing the following error: Fatal error: Call to a member function on a non-object in offlinks.php on line 4 This is the module code in its' entirety. PHP Code:
Table: local_linksltoc Fields: linkid, catid Table: local_linkslink Fields: linkname, linkdesc, linkurl Do I have to make changes to GARS to be able to run queries on those two tables? Or perhaps I have a typo or some syntax errors? Thanks again. |
#5
|
||||
|
||||
![]() If thats a GARS module, change instances of $dbto $this->db
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
(Updated) GARS - vBAdvanced Block | gothic | Add-ons | 0 | 06-28-2010 06:08 AM |
vBadvanced gars module - bbcode | alptraum | Geek Article and Review System | 1 | 08-27-2009 10:41 PM |
Gars & Vbadvanced 3.0 CMPS | astranoc | Geek Article and Review System | 7 | 06-11-2008 12:32 AM |
Example of unusual integration of GARS and vBadvanced | convergent | Geek Article and Review System | 5 | 06-03-2007 09:14 PM |
GARS/VBAdvanced what am I missing? | keithxtreme | Geek Article and Review System | 4 | 03-07-2006 09:48 AM |