PDA


View Full Version : Integrate the Links Directory with the CMPS


Brian
07-09-2004, 05:18 PM
We have tried to make it as easy as possible for those who would like to integrate the Links Directory and the CMPS. Here is a quick tutorial on how to do this...


In your Admin CP, under your 'vBa CMPS' options, click on the 'Add a Page' link.
Once there, fill out the page and set the options as you wish. For your 'Page Identifier' option, use 'linksdirectory'.
(Note: Be sure that the 'Custom Page Content' module is enabled for this page as this is where the content in your links directory pages will be displayed).
Now open your links/links_config.php file and look for:

define('NO_REGISTER_GLOBALS', 1);

Right below that, add:
if (empty($_POST))
{
define('VBA_PAGE', 'linksdirectory');
define('VBA_PORTAL', true);
}

Save the file, upload it to your server, and you're done. :)

orca
07-12-2004, 04:53 PM
Does this need a special template? I get an empty page although I enabled custom contents (well, sidebars and top are ok).

Brian
07-12-2004, 05:13 PM
Is the 'Custom Page Content' module enabled for the new page you created?

teksigns
07-12-2004, 09:10 PM
i would like a latest links box for the sides not the middle ......

orca
07-14-2004, 05:12 AM
Is the 'Custom Page Content' module enabled for the new page you created?
Yes, it is.

Brian
07-14-2004, 12:38 PM
If you'd like to fill out a support ticket I'd be glad to take a look and see what the problem is.

orca
07-14-2004, 06:42 PM
Well, thanks. I'll try again later since it was late when trying. I could have missed sth.

ricoche
07-18-2004, 03:59 AM
Hmm. I just tried the above and it doesn't show on my site either. Here is some info about what I did.

Added a page as follows:

Page Title: Link Directory
Page Identifier: linksdirectory
Page Template: Blank
Custom Style for this Page: Default

Then for the module section I have:

Module Title: Links Directory
Active: Yes
Column: Center Column
Display Order: 4

I then made the changes as indicated to the links_config.php file as follows:

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
if (empty($_POST))
{
define('VBA_PAGE', 'linksdirectory');
}

Brian
07-18-2004, 12:12 PM
Did you make sure that the 'Custom Page Content' module was active on that page? If so and you're still having problems please fill out a support ticket via the Member's Area here and I'll be glad to take a look.

ricoche
07-23-2004, 04:16 AM
Did you make sure that the 'Custom Page Content' module was active on that page? If so and you're still having problems please fill out a support ticket via the Member's Area here and I'll be glad to take a look.


Hi there,

Yes I did make sure the 'Custom Page Content' module was active, but it still doesn't show up for some reason. However, I created a new thread today about a "Latest or Top 10 Links" sideblock that might be more of what I am looking for. So this is not a critical thing for me.

Basically I want to simply have some indication on my frontpage that links are either being added or a list of some of the top links visited. I know these are completely two different things, but I think either will attract current members.

I remember having something like this for vbportal a while back that really helped to divert traffic to the link area. For some reason I guess, many people like to see "What's new" on the frontpage. <grin> Me too!

Thanks again!

- Jim :)

7thGenCivic.com
08-22-2004, 12:23 AM
has there been an update for this? Cause I have the blank center as well.

7thGenCivic.com
08-22-2004, 12:31 AM
haha, i think i figured it out.
I think all of us, at least me anyway, where goint to page=linksdirectory instead of the normal /links/index.php

it's all good now. might want to explain that in the instructions.

wynode
08-23-2004, 06:36 AM
Worked like a charm!

Keep up the good work!

KW802
09-13-2004, 02:45 PM
:cool: Worked perfectly, thanks.

macker123
09-28-2004, 11:35 PM
I followed the instructions above and I get the following database error:
Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT links.*, links_categories.title FROM links AS links
LEFT JOIN links_categories AS links_categories ON (links.catid = links_categories.catid)
WHERE valid = 1 AND suspended = 0 AND links.catid NOT IN ()
ORDER BY dateline DESC
LIMIT 5

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY dateline DESC
LIMIT 5' at line 3

mysql error number: 1064

I get this error once I add to the links/links_config.php file that we are supposed to.

The section of my links_config.php looks like this:



error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
if (empty($_POST))
{
define('VBA_PAGE', 'linksdirectory');
define('VBA_PORTAL', true);
}
define('VBA_SCRIPT', 'links_directory');


What have I done wrong? I followed all 3 steps.

Kesomir
10-03-2004, 07:33 AM
I got the same issue as above. The problem is the latest links block. It can't run on the same page as the "included" links directory.

To fix this disable the latest links block from the page set up for linksdirectory.

macker123
10-03-2004, 10:49 AM
I got the same issue as above. The problem is the latest links block. It can't run on the same page as the "included" links directory.

To fix this disable the latest links block from the page set up for linksdirectory.

Thanks works perfect now.

RaZor Edge
11-12-2004, 04:05 PM
When we integrate the Links Directory with CMPS, the title of the page is the same on all pages.

Is it possible to change that???

RaZor Edge
11-15-2004, 11:18 PM
Any ideas?

Brian
11-16-2004, 02:08 PM
http://www.vbadvanced.com/forum/showpost.php?p=15559&postcount=2

RaZor Edge
11-16-2004, 03:47 PM
http://www.vbadvanced.com/forum/showpost.php?p=15559&postcount=2
Oh..

I didn't find this post with the search I made...

Thank you Brian.

Brian
11-16-2004, 04:31 PM
No problem. I don't think there are any good search terms that would bring that back without a lot of results other than $pagetitle (which of course I knew to search for that since a few people have asked about this). ;)

RaZor Edge
11-23-2004, 10:58 AM
Brian, correct me if i'm wrong,

But with vBalink Gold, must we add


define('VBA_PAGE', 'linksdirectory');
define('VBA_PORTAL', true);

OR



if (empty($_POST))
{
define('VBA_PAGE', 'linksdirectory');
define('VBA_PORTAL', true);
}

right after

define('NO_REGISTER_GLOBALS', 1);

in links_config.php???

Brian
11-23-2004, 01:17 PM
Yes. links_config.php or links_global.php should work. Or you can add it to the individual files if you only want the portal on some pages.

SoloX
01-18-2005, 11:51 PM
I did all of this but the links content is showing up in the left column and not in the center. How do I fix this?

Thanks

update:
If I comment out the following, everything displays properly, except that now i see ALL the active modules.
//define('VBA_PAGE', 'linksdirectory');

update 2:
also, the pull down menus on links like navbar 'Whats Popular' or the site link are not working. :-(

SoloX
01-19-2005, 05:21 PM
anyone? :-(

SoloX
01-21-2005, 04:38 PM
Brian helped me out .. thanks to him! ...

Lionel
03-23-2005, 11:25 PM
if (empty($_POST))
{
define('VBA_PAGE', 'linksdirectory');
define('VBA_PORTAL', true);
}

that works for gallery but I get a blank page for links

Lionel
03-23-2005, 11:48 PM
ok, that was caused by the random gallery module

AndyA
09-20-2005, 12:27 PM
Does anyone have a link to a site with this integration, what does it look like ?

Gary Bolton
09-20-2005, 01:29 PM
Does anyone have a link to a site with this integration, what does it look like ?


Yes, click my banner and view the portal page. The links are on the left side.

Judge Ruckus
10-16-2005, 02:48 AM
Anything like this or will this work with 3.5?

Brian
10-16-2005, 06:25 PM
Yes, the instuctions should still be the same with vB 3.5.

AndyA
10-18-2005, 12:00 PM
In your Admin CP, under your 'vBa CMPS' options, click on the 'Add a Page' link.

With vb3.5 what type of page should I be adding ? I see a selection.

[Module] A Module Page will allow you to select only modules which you would like to display on this page.

[BB Code] A BB Code Page will allow you to enter BB Code which will be displayed as the content for your 'Custom Page Content' module.

[Template] A Template Page will allow you to specify the name of a template which will be displayed as the content for your 'Custom Page Content' module.

[PHP File] A File Page will allow you to specify a file from your modules directory which will be displayed as the content for your 'Custom Page Content' module.

[HTML File] An HTML Page will allow you to specify a HTML file on your server to include which will be displayed as the content for your 'Custom Page Content' module.

Thanks in advance.

Brian
10-18-2005, 02:19 PM
A module page should be fine.

djmini
01-03-2006, 05:06 PM
Ok I've created the page, now how do I add the Links into the blank center?

Thanks!

djmini
01-03-2006, 05:19 PM
Do I need a new module for the LINKS?

Brian
01-03-2006, 05:27 PM
All you have to do is add the code in the first post. Once you do that, the links directory will be displayed along with whatever modules you have active on the page you created to integrate.

djmini
01-03-2006, 05:30 PM
I wish it were that easy... I get nothing but a blank page with my desired modules on the left or right.

Brian
01-03-2006, 05:36 PM
So you are seeing the modules and just not the content for the links directory? If so, edit the page you're using to integrate and make sure you have the 'Custom Page Content' module active on that page.

djmini
01-03-2006, 06:25 PM
I've followed the instructions, have the custom page content module on....

http://www.teammightyminiz.com/index.php?page=linksdirectory
see here

djmini
01-04-2006, 03:36 AM
ok... did something differant...

http://www.teammightyminiz.com/forum/links/

But can't edit the modules, as you will see... it seems to just cram the links info on top of the main portal page info...

Any suggestions?

Brian
01-04-2006, 05:47 PM
Have you tried turning the other modules off on the page you created?

djmini
01-05-2006, 05:16 AM
thing is... it's not a page.

It's from an edit on the configlinksphp

djmini
01-05-2006, 05:27 AM
the page I created = http://www.teammightyminiz.com/index.php?page=linksdirectory

I edited the configlinksphp file and get
http://www.teammightyminiz.com/forum/links/

The Page created has no links to be seen, all but the search forums module are turned off.

The /forum/links/ is active yet is uneditable.

Brian
01-06-2006, 02:53 PM
Admin CP => vBa CMPS => Edit Pages => linksdirectory

Turn the modules off there.

djmini
01-09-2006, 06:03 PM
Turning all modules off does not make the links appear... it creates a contentfree page more or less... I dunno.

It's lame eh?

DaleBrown
06-22-2006, 02:29 AM
I'm having the same problem.. I turned off all the modules and nada did we ever figure this one out?

orphan
08-19-2006, 01:57 AM
Anyone got this working with 3.6 and 1.0.1 ?