Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Related Articles add-in

 

 


gwiley
User

Oct 12, 2009, 4:30 PM

Post #1 of 10 (3479 views)
Shortcut
Related Articles add-in Can't Post

I'm a bit at a loss, I've put in the modification per the instructions (tutorial) and it shows up in the source code, I can copy out the http:// line and paste it into a browser and it lists the related articles per the keywords, but for some reason it will not show up in the article page.

Any ideas?



Thanks in advance


Donna
Staff / Moderator


Oct 14, 2009, 12:53 PM

Post #2 of 10 (3464 views)
Shortcut
Re: [gwiley] Related Articles add-in [In reply to] Can't Post

Hi there!

Can you send a link to the modified article page?

Donna

--
support@interactivetools.com


gwiley
User

Oct 14, 2009, 1:27 PM

Post #3 of 10 (3463 views)
Shortcut
Re: [Donna] Related Articles add-in [In reply to] Can't Post

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! :)


Donna
Staff / Moderator


Oct 15, 2009, 2:51 PM

Post #4 of 10 (3449 views)
Shortcut
Re: [gwiley] Related Articles add-in [In reply to] Can't Post

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


gwiley
User

Oct 15, 2009, 3:13 PM

Post #5 of 10 (3448 views)
Shortcut
Re: [Donna] Related Articles add-in [In reply to] Can't Post

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

This: <?php include("yourfile.php"); ?>
Is This: <?php include('yourfile.php'); ?>


However, now I get THIS on the page when I preview it: :( Help? tHanKs!

Warning: include() [function.include]: 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) [function.include]: failed to open stream: no suitable wrapper could be found in /home/funre0/public_html/publish/temp_1255644575000.php on line 177

Warning: include() [function.include]: 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


Donna
Staff / Moderator


Oct 16, 2009, 11:43 AM

Post #6 of 10 (3444 views)
Shortcut
Re: [gwiley] Related Articles add-in [In reply to] Can't Post

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


gwiley
User

Oct 16, 2009, 12:05 PM

Post #7 of 10 (3443 views)
Shortcut
Re: [Donna] Related Articles add-in [In reply to] Can't Post

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 -->


Donna
Staff / Moderator


Oct 16, 2009, 12:20 PM

Post #8 of 10 (3442 views)
Shortcut
Re: [gwiley] Related Articles add-in [In reply to] Can't Post

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


gwiley
User

Oct 17, 2009, 11:24 AM

Post #9 of 10 (3427 views)
Shortcut
Re: [Donna] Related Articles add-in [In reply to] Can't Post

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) [function.include]: 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) [function.include]: failed to open stream: No such file or directory in /home/funre0/public_html/publish/temp_1255803586000.php on line 177

Warning: include() [function.include]: 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


Donna
Staff / Moderator


Oct 19, 2009, 3:01 PM

Post #10 of 10 (3397 views)
Shortcut
Re: [gwiley] Related Articles add-in [In reply to] Can't Post

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