Recent Topics

1 Jan 16, 2012 23:44    

Hi Guys,

I am currently integrating b2evolution into osCommerce and I must say its been a lot easier than I thought it would be.

The only issue I am having is getting the oscommerce footer to display.

The code I have in the stub file is:

<?php
require('includes/application_top.php');

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_BLOG));

require(DIR_WS_INCLUDES . 'template_top.php');

# First, select which blog you want to display here!
# You can find these numbers in the back-office under the Blogs section.
# You can also create new blogs over there. If you do, you may duplicate this file for the new blog.
$blog = 1;

# You could *force* a specific skin here with this setting: (otherwise, default will be used)
# $skin = 'custom';

# This setting retricts posts to those published, thus hiding drafts.
# You should not have to change this.
$show_statuses = array();

# Here you can set a limit before which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the past
$timestamp_min = '';

# Here you can set a limit after which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the future
$timestamp_max = 'now';

# Additionnaly, you can set other values (see URL params in the manual)...
# $order = 'ASC'; // This for example would display the blog in chronological order...

/**
 * That's it, now let b2evolution do the rest! :)
 * Note: if you put this file in a subdirectory, you will need to adjust the path below, for example:
 * require_once dirname(__FILE__).'/../conf/_config.php';
 */
require_once dirname(__FILE__).'/conf/_config.php';

require $inc_path.'_blog_main.inc.php';

require(DIR_WS_INCLUDES . 'template_bottom.php');

require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

For some reason the last 2 requires are being ignored.

Does anyone have ideas on this one.

Thanks

Mark

2 Jan 17, 2012 03:00

The script exits in _blog_main.inc.php
You need to play with a_noskin.php file instead

3 Jan 20, 2012 21:25

Hi,

I have been trying to get this sorted all week now and I am no further forward urgh

The two lines of code I need to add are

require(DIR_WS_INCLUDES . 'template_bottom.php');
require('includes/application_bottom.php');

I have tried adding them to all sorts of files but can not get the oscommerce footer to display at all.

A little help would be appreciated as I did make another post and it for some reason got deleted!

Thanks for your time

Mark

4 Jan 20, 2012 21:46

The post is gone due to forums crash.

If I remember correctly there were mysql errors saying that some tables don't exist. This happens when you install b2evo and oscommerce in different databases.

Try to install them into a single database

5 Jan 21, 2012 13:45

Many thanks for the advice.

I now have my blog wrapped inside the oscommerce framework.

Just a couple of quick questions if I may.

I am using the a_noskin file as suggested but I need to change how the date is displayed from

18/01/12
10:25:00 pm , Categories: Uncategorized

to

18/01/12 10:25:00 pm , Categories: Uncategorized

I have looked at the code but not sure what needs to go where.

Also when I am logged in as the administrator the administrator menu at the top of the page looks like this

* admin »
o Edit your profile…
o Change your profile picture…
o Change your password…
o Set your preferences…
o
o Logout
* Messages
* 12:42 pm
* Admin Adm
* Logout Close

* b2evolution »
o Open b2evolution.net
o Open Support forums
o Open Online manual
o
o b2evolution on twitter
o b2evolution on facebook
* Dashboard
* See
* Write
* Blog »
o Posts…
o Comments
o Categories…
o
o Blog settings…
o
o Create new blog…
o
o Blog stats…
* System »

I need to know which file controls this menu so I can restyle it.

Thanks Again

Mark

6 Jan 21, 2012 17:26

A lot more needs to be done.
You need to set blog URL to a_noskin.php instead of blog1.php, and then select "use params" below.

Create a copy of "template_top.php" like "template_top_b2evo.php" and edit it to include "/rsc/css/basic.css" CSS file from b2evo. It should be included BEFORE oscommerce CSS files.

You may also need to remove this whole section

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>"><!-- InstanceBegin template="/Templates/Standard.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
	<title><?php
		// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
		request_title( array(
			'auto_pilot'      => 'seo_title',
		) );
		// ------------------------------ END OF REQUEST TITLE -----------------------------
	?></title>
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="rsc/css/fp02.css" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
	<?php skin_content_meta(); /* Charset for static pages */ ?>
	<?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?>
	<?php skin_base_tag(); /* You're not using any skin here but this won't hurt. However it will be very helpfull to have this here when you make the switch to a skin! */ ?>
	<?php skin_description_tag(); ?>
	<?php skin_keywords_tag(); ?>
	<meta name="generator" content="b2evolution <?php echo $app_version ?>" /> <!-- Please leave this for stats -->
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
	<?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?>
	<!-- InstanceEndEditable -->
</head>
<body>

and closing body tag

</body>

7 Jan 21, 2012 18:10

Create a copy of "template_top.php" like "template_top_b2evo.php" and edit it to include "/rsc/css/basic.css" CSS file from b2evo. It should be included BEFORE oscommerce CSS files.

a daft question maybe but why create a new template_top and not add it directly at the top of the existing file?

8 Jan 21, 2012 18:34

Because then b2evo styles will be included in all oscommerce pages, not only in blog

9 Jan 21, 2012 19:57

sam2kb wrote:

Because then b2evo styles will be included in all oscommerce pages, not only in blog

ah right never thought of that although I have been changing the styles to suit my store and have edited the stylesheet to compensate for this. I have also styled the blog posts and sidebar with the infoxbox containers so it looks the same.

Just the date thing and the administrator links I really need sorting now.

10 Jan 21, 2012 22:35

ok I have sorted the date layout.


Form is loading...