 |

dimeco
User
Apr 18, 2008, 12:03 PM
Post #1 of 11
(741 views)
Shortcut
|
|
a little confused...
|
Can't Post
|
|
Just clarifying... I'm (finally) getting our 2nd site up and I need to double check something. In my main site - our search engine rankings DROPPED considerably with using artman 2 with .shtml as the extensions. So I want to build the new site with either .php or .html My question: .html - is there any reason why I can't use that if I was to include the code for videos for example? And if I stick with .html (over php for example), in the admin settings, where it says for the file extension .shtml, "Dynamic SSI and Code Parsing" if I set that at .html, do I check that box or does it automatically know? (My other site says .shtml so the settings don't match LOL) Amber
|
|
|  |
 |

MikeB
Staff
/ Moderator

Apr 18, 2008, 3:26 PM
Post #2 of 11
(737 views)
Shortcut
|
|
Re: [dimeco] a little confused...
[In reply to]
|
Can't Post
|
|
Hi Amber, Thanks for the post! There shouldn't be an issue at all with using a different extension for Article Manager, though I'd suggest looking into your main site regarding the search engine rankings. The .shtml extension isn't something that will stop search engines from indexing your site so there may be another issue there. I'd suggest having another look into this to see if it could be anything else. Regarding your new site, if you'd like to use the .html extension you'll want to note that you'll need to set up the server so Server Side Includes (SSI) are able to be included on regular .html pages. This can generally be done through a control panel provided by your hosting company, or by getting in touch with them. The setting you're referring to in the admin program actually just allows you to choose the temporary file extension. This will just be used for any files that need to be created by Article Manager when it does it's server side parsing. I hope this helps! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

dimeco
User
Apr 21, 2008, 8:38 AM
Post #3 of 11
(722 views)
Shortcut
|
|
Re: [MikeB] a little confused...
[In reply to]
|
Can't Post
|
|
I'm not sure what you mean by the ssi includes via my control panel... I did look at the apache handler and the shtml is there. Okay - what about using a PHP file extension? I built those pages (temporarily) - and they come up just like the html pages. Is there code I need to place at the beginning of the php page so that it takes the html? (Sorry, I'm not a php expert - I can work with it once there, but have not created a php page before). Amber
|
|
|  |
 |

MikeB
Staff
/ Moderator

Apr 21, 2008, 11:28 AM
Post #4 of 11
(718 views)
Shortcut
|
|
Re: [dimeco] a little confused...
[In reply to]
|
Can't Post
|
|
Hi Amber, Thanks for the post! Yes, you should be able to use PHP as the extension in Article Manager and the only tweaks you'll really need to make will be to the includes that are being used. Server Side Includes on an SHTML page have different syntax than PHP includes and here's some detail about that and what you'll want to do to switch to PHP: 1. You can change the extension itself by logging into Article Manager and clicking Admin->Publishing. You'll want to change the "Default File Extension" at the top of the page to "php" and then click "Save". 2. Next, you'll want to click the checkbox at the top of the list of publishing rules (to select them all) and then scroll down to the dropdown menu at the bottom of the page. You'll want to select "Templates: Convert SSIs to PHP includes" and then click "Go". This will ensure that all of your includes (category list, search form, etc.) still work when you switch to PHP. From there you'll want to click the "Publish All" button to re-publish all of your articles and you should be all set to publish your pages as PHP. I hope this helps! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

dimeco
User
Apr 21, 2008, 12:51 PM
Post #5 of 11
(714 views)
Shortcut
|
|
Re: [MikeB] a little confused...
[In reply to]
|
Can't Post
|
|
Hi Mike, I did these steps before I posted. It still doesn't work :( http://www.thatsubject.com/topics/publish/index.php vs http://www.thatsubject.com/topics/publish/index.shtml (obviously I haven't changed the look yet LOL) Amber
|
|
|  |
 |

MikeB
Staff
/ Moderator

Apr 21, 2008, 2:04 PM
Post #6 of 11
(709 views)
Shortcut
|
|
Re: [dimeco] a little confused...
[In reply to]
|
Can't Post
|
|
Hi Amber, Thanks for the update! I've had a look at this for you and it seems that on the PHP version the proper includes are there and they just aren't being executed to actually include any content. I'd suggest getting in touch with your hosting company to ask them how you can get PHP includes working on this server as it seems that they aren't currently being executed. From what I can tell here, everything else has been set up fine so once they let you know how to get the includes working you'll be all set to work with Article Manager and publish PHP files. I hope this helps Amber! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 21, 2008, 5:15 PM
Post #7 of 11
(705 views)
Shortcut
|
|
Re: [dimeco] a little confused...
[In reply to]
|
Can't Post
|
|
Yea, it looks like PHP isn't working at all. Your host may need to enable PHP or may have a special extension for it such as .php4 or .php5 Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

dimeco
User
Apr 22, 2008, 6:31 AM
Post #8 of 11
(694 views)
Shortcut
|
|
Re: [Dave] a little confused...
[In reply to]
|
Can't Post
|
|
Hi Dave, well, php is running everywhere on our servers and I've never had issue with it. (But I'll check if it needs to be physically assigned to this script). My support guy from our server yesterday replied with this: --- "It will work only (atleast) if the file: include_header.html and include_header.php are placed in the topics/publish/ - there maybe many more files (you will need to read the files (e.g. How_to_become_a_good_chef.php) and make sure that those files are present." --- I'm going to check that now. Amber
|
|
|  |
 |

dimeco
User
Apr 22, 2008, 6:40 AM
Post #9 of 11
(693 views)
Shortcut
|
|
Re: [dimeco] a little confused...
[In reply to]
|
Can't Post
|
|
Okay this is wierd. I looked at the site. include_globalheadlines.php is there include_globalMenu.php is there include_groupedHeadlines.php is there include_header.php is there include_searchbox.php is there BUT include_siteFooter.shtml include_siteHeader.shtml These stayed as shtml - did not replicate as PHP? Amber
|
|
|  |
 |

MikeB
Staff
/ Moderator

Apr 22, 2008, 10:54 AM
Post #10 of 11
(677 views)
Shortcut
|
|
Re: [dimeco] a little confused...
[In reply to]
|
Can't Post
|
|
Hi Amber, Thanks for the email! I've had a look at this and it looks like the reason these files weren't recreated is because Article Manager had been switched to the "Classic" template set. The .shtml example of the index page that you had provided earlier (which has since been removed) was using the classic design and when you switched Article Manager to use this design, the publishing rules were actually updated as well. The classic design didn't use a footer and the header itself can be found here with a slightly different name: http://www.thatsubject.com/topics/publish/include_header.php From what I've noticed, I don't think this is the issue here as the problem still seems to be that on these PHP pages, the server isn't rendering the PHP code (the includes for example). My suggestion for now would be to set something up external to Article Manager. The easiest thing would be to create a PHP file that just has one line of content that says "Hello World" and call this file "hello.php". Then, in another file called "include.php" you'll just have this one line of code: <?php include('/home/thatsbjc/www/topics/hello.php'); ?> Upload both of these files right into your /topics/ directory and then view the include.php file here: http://www.thatsubject.com/topics/include.php This issue seems to be external to the software itself so it'd be best to get that taken care of and focus on whether or not PHP and PHP includes are working first. Once the include.php page works the way we'd expect, we can use that as a reference point for Article Manager. I hope this helps! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

dimeco
User
Apr 25, 2008, 12:22 PM
Post #11 of 11
(649 views)
Shortcut
|
|
Re: [MikeB] a little confused...
[In reply to]
|
Can't Post
|
|
This is all fixed now, thanks :) Amber
|
|
|  |
|