Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
PHP include broken on "Next" and "previous" pages

 

 


lamberticus
User

Oct 5, 2009, 11:04 AM

Post #1 of 8 (2797 views)
Shortcut
PHP include broken on "Next" and "previous" pages Can't Post

I use a php include to produce our navigation bar on our pages which works great on most Article Manager pages but the ones that show up when the "next page" or "previous page" links are used. Could this be a relative path issue? Not sure how to modify the include code in the template to make the next and previous pages show the include properly.

Finally close to going live with our next site and thanks as always!

Andy


lamberticus
User

Oct 5, 2009, 11:37 AM

Post #2 of 8 (2796 views)
Shortcut
Re: [lamberticus] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

One additional thing: this only happens on category index next and previous pages, not with the main index.


Donna
Staff / Moderator


Oct 6, 2009, 4:33 PM

Post #3 of 8 (2781 views)
Shortcut
Re: [lamberticus] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

Hi there,

Yep, could definitely be a relative path issue. What code are you currently using for your include?

Donna

--
support@interactivetools.com


lamberticus
User

Oct 7, 2009, 7:29 AM

Post #4 of 8 (2779 views)
Shortcut
Re: [Donna] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

The code is recursing two directories "
<?php include("../../templates/include.html"); ?>. Which gets us into the right directory and works fine for the category index pages, but not once you click the next page links. It's like the next pages are generated from a different level of subdirectory or something.

In the main index page, because it is one level higher, is use "../templates/include.html" which works fine for the main index and the "next pages" off the main index.

My server (iis 6) is setup to parse php code in html as well.


Andy


Donna
Staff / Moderator


Oct 9, 2009, 2:24 PM

Post #5 of 8 (2772 views)
Shortcut
Re: [lamberticus] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

Hi there,

Rather than using relative paths, we recommend using full virtual paths. Relative paths only work in the directory they're in, as opposed to a full path which will work from anywhere. :)

So, instead of ../../ ... you'll want:

/full/server/path/to/file/include.html

I hope this helps. :)

Donna

--
support@interactivetools.com


willbegood
User

Oct 16, 2009, 1:58 AM

Post #6 of 8 (2711 views)
Shortcut
Re: [Donna] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

Hello Donna, i've tryed full path, and i have strange issue anyway
I'm using include for my navigation, footer and for Google Analytics

See those url

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=1

on this one nav ok, google ok, footer ok

--------

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=2

on this one (same page but different filter) : nav ok, google does'nt show in the source, and my footer say "Pas de contenu" (No records were found!)

for
http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=3
>>>same problem

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=4
>>>same problem

etc etc

Why this happening?? I really don't understand!!!!
I send you all my include files and the main file.
I've already try to play with 'allowSearch' => '0', .... without no result.

Please help
Attachments: interventions-sous-categorie.php (2.82 KB)
  footer.php (0.53 KB)
  google.php (0.49 KB)
  nav.php (0.44 KB)


willbegood
User

Oct 16, 2009, 2:00 AM

Post #7 of 8 (2710 views)
Shortcut
Re: [willbegood] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

I'm using CMS BLUIDER sorry


In Reply To
Hello Donna, i've tryed full path, and i have strange issue anyway
I'm using include for my navigation, footer and for Google Analytics

See those url

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=1

on this one nav ok, google ok, footer ok

--------

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=2

on this one (same page but different filter) : nav ok, google does'nt show in the source, and my footer say "Pas de contenu" (No records were found!)

for
http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=3
>>>same problem

http://www.richard-riahi.com/v2/fr/interventions-sous-categorie.php?fr_parentcateg=4
>>>same problem

etc etc

Why this happening?? I really don't understand!!!!
I send you all my include files and the main file.
I've already try to play with 'allowSearch' => '0', .... without no result.

Please help



Donna
Staff / Moderator


Oct 16, 2009, 11:57 AM

Post #8 of 8 (2694 views)
Shortcut
Re: [willbegood] PHP include broken on "Next" and "previous" pages [In reply to] Can't Post

Ah, that makes a bit of a difference! You'll actually want to ask this in the CMS Builder forum -- you can find it here:

http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/

Donna

--
support@interactivetools.com