Author Topic: Adding PHP weblog to 4images  (Read 9783 times)

0 Members and 1 Guest are viewing this topic.

Offline bag53

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Adding PHP weblog to 4images
« on: July 21, 2002, 12:27:36 PM »
I am currently running a PHP weblog script on my site and I want to insert it between the Catagories table and the New Images table. I have created the new table in home.html and included the weblog php files in index.php. My log appears outside of 4images. I can send you a link by email if you need to see what I mean. Is there anyway to get 4images to include the necessary weblog files correctly? Here the code I changed:


Code: [Select]
//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
$categories = get_categories(0);
if (!$categories)  {
  $categories = $lang['no_categories'];
}
$site_template->register_vars("categories", $categories);
unset($categories);

//-- // Weblog Includes --------------------------
$blog = 1;
$cat = "3+4+6+8+10";
include(ROOT_PATH.'b2/blog.header.php');
include(ROOT_PATH.'b2/news.php');
include(ROOT_PATH.'b2/b2archives.php');


//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------


How can I include external PHP files into 4images?

Offline bag53

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Adding PHP weblog to 4images
« Reply #1 on: July 23, 2002, 11:15:23 AM »
I am not having a good time getting my weblog script to play nice with 4images. The script I use is b2. Does anyone know a PHP weblog script that will work with 4images?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Alternatives
« Reply #2 on: July 23, 2002, 02:29:56 PM »
Why not put your PHP include statements in the template file footer.html?

I'm using pphlogger found at http://www.phpee.com  It's a nice PHP/mySQL web site statistics and visitor tracking logger.  It even includes full click paths taken by each visitor.  Best of all, it's FREE.  All you have to do is paste one line of javascript into footer.html.  Couldn't be any easier.

Offline bag53

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Adding PHP weblog to 4images
« Reply #3 on: July 24, 2002, 09:36:36 AM »
Mine is a web log script. Or blog script. Where I have daily news posts. I origionally put my include statements in index.php and all my news posts appeared outside 4images' table. I then put them in home.html and I get MySQL errors.

Offline heric

  • Newbie
  • *
  • Posts: 17
    • View Profile
Adding PHP weblog to 4images
« Reply #4 on: September 16, 2002, 07:00:57 PM »
I am interested in the same integration weblog+4images. I need to integrate 4images with the weblog script Pmachine. If anyone know how to integrate the scripts please post the solution.

Thanks- :D