PDA

View Full Version : Link Vault script...


Tommo
07-26-2005, 12:19 AM
Hi,

Following on from the long co-op thread does anyone know how to get the link vault script working with this script??

here is the setup for phpbb which works ..can anyone tell me the small changes I'd need to make and where to put the the first bit of code??


2. Edit the phpBB file page_tail.php which is found in the forum includes folder by finding line
$template->pparse('overall_footer'); , and add the following code just before it.


include ($phpbb_root_path . '../xxxxxxxxxxxxxxxxxx.php');
$disp_links = DisplayLinks(3,'',' | ','','');
$template->assign_vars(array('LINK_VAULT' => $disp_links));

3. To display the links edit the overall_footer.tpl which you will find in your specific template folder eg. ...forum/templates/subsilver/ and where you want the links to display insert the following code.

{LINK_VAULT}

minstrel
07-26-2005, 03:31 AM
These look like basically the same instructions as the DP Coop Network. I suggest you try following the suggestions there for LV substituting 'xxxxxxxxxxxxxxxxxx.php' for the filename.

Tommo
07-26-2005, 11:27 AM
Sorry I should have made myself clear...

I have been trying to follow that thread for the past few days and I am getting nowhere...(not the clearest in the world!!)

and I am getting the following error..


Fatal error: Call to undefined function: displaylinks() in /home/mark/public_html/directory/index.php on line 109

here is the code in index php

Content visible to registered users only.

the 'lvp42z0bRrqfN90kJd.php file is in the root.

minstrel
07-26-2005, 03:43 PM
Per the Coop Ads thread, try this:

1. remove the code you've added so far

2. add to footer.tpl:

Content visible to registered users only.

3. if that doesn't work, you can see if the solution posted by undieshosting is better:

Content visible to registered users only.

Tommo
07-26-2005, 04:42 PM
undieshosting's solution is the one that I've been trying to implement, but the LV and Coop codes are very different.

and adding that code won't work as it needs to call and display the links. I tried it however and I got the following error

Warning: Smarty error: file:www.trackbikes.co.uk/lvp42z0bRrqfN90kJd.php is not readable in /home/mark/public_html/directory/libs/smarty/Smarty.class.php on line 1088

minstrel
07-27-2005, 02:26 AM
Content visible to registered users only.
That looks very like the error I was getting for the Coop Ads.

For me it was an academic question only (wondering why it didn't work) because frankly there aren't enough pages in the directory yet to matter that much. In the Coop, I don't need to display ads on the directory pages to be able to have ads for the directory displayed as part of my account - that's what I did. Never used Link Vault but that might be the way to go for you too.