1 rankzero Jan 16, 2012 23:44
3 rankzero 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 sam2kb 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 rankzero 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 sam2kb 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 rankzero 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 sam2kb Jan 21, 2012 18:34
Because then b2evo styles will be included in all oscommerce pages, not only in blog
9 rankzero 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 rankzero Jan 21, 2012 22:35
ok I have sorted the date layout.
The script exits in _blog_main.inc.php
You need to play with a_noskin.php file instead