4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: bag53 on July 21, 2002, 12:27:36 PM

Title: Adding PHP weblog to 4images
Post by: bag53 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?
Title: Adding PHP weblog to 4images
Post by: bag53 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?
Title: Alternatives
Post by: Chris 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.
Title: Adding PHP weblog to 4images
Post by: bag53 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.
Title: Adding PHP weblog to 4images
Post by: heric 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 (http://www.pmachine.com). If anyone know how to integrate the scripts please post the solution.

Thanks- :D