Re: [gwiley] Related Articles add-in

  • Archived  

By Donna - October 14, 2009

Hi there!

Can you send a link to the modified article page?
Donna

--
support@interactivetools.com

Re: [Donna] Related Articles add-in

  • Archived  

By gwiley - October 14, 2009

You can view the source here and search for "Related Article" to see where it begins:

http://funreviews.net/publish/ComputingandInternet/ZyGor_Guide.php

You can see the #include and if you copy and paste from http://....relatedArticles.html it'll show the results.

Weird. If this isn't what you want, let me know.

Thanks for the assist! :)

Re: [gwiley] Related Articles add-in

  • Archived  

By Donna - October 15, 2009

Hi there,

Since your pages are in PHP, you'll need a PHP include instead of an SSI include. The syntax should be:

<?php include("yourfile.php"); ?>

...make sure you replace "yourfile.php" with the path you currently have.

Give that a try and let me know how it works. :)
Donna

--
support@interactivetools.com

Re: [Donna] Related Articles add-in

  • Archived  

By gwiley - October 15, 2009

After fumbling around (like I always do), what you recommended is on the right track:

[font "Verdana"]This: <?php include("yourfile.php"); ?>
Is This: <?php include('yourfile.php'); ?>

[font "Verdana"]However, now I get THIS on the page when I preview it: :( Help? tHanKs!

Warning: include() [[url "http://funreviews.net/cgi-bin/function.include"]function.include[/#4f82cb][/url]]: URL file-access is disabled in the server configuration in /home/funre0/public_html/publish/temp_1255644575000.php on line 177

Warning: include(http://funreviews.net/cgi-bin/search.cgi?action=search&keywordSearchFields=keyword&keyword=wow&template=searchEngine/relatedArticles.html&perpage=10) [[url "http://funreviews.net/cgi-bin/function.include"]function.include[/#4f82cb][/url]]: failed to open stream: no suitable wrapper could be found in /home/funre0/public_html/publish/temp_1255644575000.php on line 177

Warning: include() [[url "http://funreviews.net/cgi-bin/function.include"]function.include[/#4f82cb][/url]]: Failed opening 'http://funreviews.net/cgi-bin/search.cgi?action=search&keywordSearchFields=keyword&keyword=wow&template=searchEngine/relatedArticles.html&perpage=10' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/funre0/public_html/publish/temp_1255644575000.php on line 177

Re: [gwiley] Related Articles add-in

  • Archived  

By Donna - October 16, 2009

Hi there!

Some servers don't allow you to pull in an include with the full URL, but that's no problem... we can switch it to using the path instead. What code are you currently using? I'm assuming you have a placeholder in the spot where you'd put the filename?

If you have something like this:

$article.placeholder.url$

...try this:

$article.placeholder.filepath$

Does that make sense?
Donna

--
support@interactivetools.com

Re: [Donna] Related Articles add-in

  • Archived  

By gwiley - October 16, 2009

Uhm, I'm not sure if I understand. Here's the code for the Related Articles modification:

<!-- Related Articles modification begin -->

<!-- templateIf : $article.keyword$ ne "" -->

<?php include('$settings.searchurl$?action=search&keywordSearchFields=keyword&keyword=$article.keyword$&template=searchEngine/relatedArticles.html&perpage=10'); ?>

<br>

<!-- /templateIf -->

<!-- Related Articles modification end -->

Re: [gwiley] Related Articles add-in

  • Archived  

By Donna - October 16, 2009

Ok, you'll want to change the $settings.searchurl$ to:

/full/path/to/search.cgi

...obviously with the full path on your server instead of my made up path. :) If you're not sure what that is, check with your hosting provider and they can let you know.
Donna

--
support@interactivetools.com

Re: [Donna] Related Articles add-in

  • Archived  

By gwiley - October 17, 2009

Well, I think we're getting further. I didn't get the wrapper error this time, but got a 'no such file or directory'. But, if I copy and paste the full URL in the include it pops right up! Weird?

This line that says 'no such file' works: http://funreviews.net/cgi-bin/search.cgi?action=search&keywordSearchFields=keyword&keyword=wow&template=searchEngine/relatedArticles.html&perpage=10

Here's the error:

Warning: include($http://funreviews.net/cgi-bin/search.cgi?action=search&keywordSearchFields=keyword&keyword=wow&template=searchEngine/relatedArticles.html&perpage=10) [[url "http://funreviews.net/cgi-bin/function.include"]function.include[/#4f82cb][/url]]: failed to open stream: No such file or directory in /home/funre0/public_html/publish/temp_1255803586000.php on line 177

Warning: include($http://funreviews.net/cgi-bin/search.cgi?action=search&keywordSearchFields=keyword&keyword=wow&template=searchEngine/relatedArticles.html&perpage=10) [[url "http://funreviews.net/cgi-bin/function.include"]function.include[/#4f82cb][/url]]: failed to open stream: No such file or directory in /home/funre0/public_html/publish/temp_1255803586000.php on line 177

Warning: include() [[url "http://funreviews.net/cgi-bin/function.include"]function.include[/#4f82cb][/url]]: Failed opening '$http://funreviews.net/cgi-bin/search.cgi?action=search&keywordSearchFields=keyword&keyword=wow&template=searchEngine/relatedArticles.html&perpage=10' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/funre0/public_html/publish/temp_1255803586000.php on line 177

Re: [gwiley] Related Articles add-in

  • Archived  

By Donna - October 19, 2009

Hi there,

Hmm, looks like it's not reading the temp files Article Manager creates with dynamic pages. I think we'll need to take this to a support request. It's close, though!

Fill out a support request form and we can see what's going on there:

https://www.interactivetools.com/support/email_support.cgi
Donna

--
support@interactivetools.com