Post Reply 
Integration in html page
23-Dec-2012, 12:09 PM
Post: #31
RE: Integration in html page
I don't even know where to begin except that I love the program. Did the install flawlessly. Thought I was going to be able to integrate into html and even read the integration instructions first and yep they lead you to believe it's not a problem, just edit the .htaccess and enter that ginormous line of commands, easy do. Now the part in step one about you must first create a php file was a little trippy because it doesn't tell you what to do with it but yea (maybe the server reads it anyway) so we do this with the "example.php" file as suggested and edit the lisum so it's edible, we go for the manual page edit option as I only got like 20 so no biggie. Then..............

I start embedding the <?php * ?> into the html and get nada. Go figure. Search and find this thread, YES! Now, look; AddType application/x-httpd-php .html this is an easy do so no problem (damn this is a long road) and then I get my path; <?php require("pathtofile/myphpfile.php"); ?> but what in the hell is "myphpfile.php"? Hmmmm, the palatable example.php file? Nope that didn't work. I start throwing .httaccess in different directories, I try to point to /commentics.php I create a new php file called myphpfile.php with the code in it. Man then out of desperate measures just to get a peek at it I change my index file name from html to php and I got left hand justified commentics all piled on top of each other with a button that is grey like it's not going to work and it doesn't.

Well, it's 3am. Lets see what kind of response we get here. Much appreciated and happy holidays to all you other wee hour keyboard monkeys.
Find all posts by this user
Quote this message in a reply
23-Dec-2012, 09:22 PM
Post: #32
RE: Integration in html page
Hi,

The PHP file, which the integration guide instructs you to create, is meant to be the file that you want your comments to be on. If you want the comments to be on a HTML file then use a HTML file instead. It does say to only create the file if you don't already have a file that you want the comments on. It sounds like you already have a suitable file, and it's a HTML file, so this is the file to add the integration code into.

If after adding the integration code to your HTML file, nothing shows up, it would mean that the two lines of code in your .htaccess file are not correct for your particular server. From your post, it looks like you figured out the correct commands for your server from this thread. You should now be able to execute PHP code in your HTML file. So if you were to add <?php echo "test"; ?> it should display the word test. If not, please contact your host to find out the correct commands for your server. I can only suggest what commands might work, it's up to your host to tell you for sure.

I assume that when you tried to insert a path to "myphpfile.php", you were trying to include the PHP file which you created from your first paragraph? Hopefully, I explained well enough in my first paragraph that this is the wrong way of doing it. Instead, don't create a PHP file, just use your HTML file, and add the integration code to it.

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
24-Dec-2012, 03:01 AM
Post: #33
RE: Integration in html page
(23-Dec-2012 09:22 PM)Steven Wrote:  Hi,

The PHP file, which the integration guide instructs you to create, is meant to be the file that you want your comments to be on. If you want the comments to be on a HTML file then use a HTML file instead. It does say to only create the file if you don't already have a file that you want the comments on. It sounds like you already have a suitable file, and it's a HTML file, so this is the file to add the integration code into.

If after adding the integration code to your HTML file, nothing shows up, it would mean that the two lines of code in your .htaccess file are not correct for your particular server. From your post, it looks like you figured out the correct commands for your server from this thread. You should now be able to execute PHP code in your HTML file. So if you were to add <?php echo "test"; ?> it should display the word test. If not, please contact your host to find out the correct commands for your server. I can only suggest what commands might work, it's up to your host to tell you for sure.

I assume that when you tried to insert a path to "myphpfile.php", you were trying to include the PHP file which you created from your first paragraph? Hopefully, I explained well enough in my first paragraph that this is the wrong way of doing it. Instead, don't create a PHP file, just use your HTML file, and add the integration code to it.

Ok. I have a sweet host so I'm sure I'm good there. Let me crawl over this and I will report back in a while. I'm pretty shell shocked on the last run but when I get it going I will report back for others, thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  misaligned on page ianheslop 4 48 15-May-2013 11:46 AM
Last Post: ianheslop
  Custom Integration with TNG - advice needed Tom C. 12 179 01-May-2013 04:10 AM
Last Post: Tom C.
  Submitting comment without page reload johndoe694 6 182 24-Apr-2013 10:09 PM
Last Post: johndoe694
  Comments number on another page. Edgey 4 452 17-Apr-2013 10:31 PM
Last Post: aww
  Binding Commentics to specific page on site johndoe694 2 136 12-Apr-2013 02:11 PM
Last Post: johndoe694
  how i can page add page Jalilnet 1 183 27-Feb-2013 02:33 PM
Last Post: Steven
  am live! but comment resend after page refresh. terungwa 2 355 24-Jan-2013 11:30 PM
Last Post: terungwa
  alphanumeric value page ID? herzeleid77 3 405 16-Jan-2013 04:03 PM
Last Post: Steven
Star How to integrate Commentics to a subdomain page? page 1 339 04-Jan-2013 07:26 AM
Last Post: page
  Displaying HTML correctly commonsnews 0 173 04-Nov-2012 10:09 PM
Last Post: commonsnews

Forum Jump:


User(s) browsing this thread: 1 Guest(s)