BBClone in joomla 1.5

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
nl1bzw
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jan 29, 2008 11:07 pm

BBClone in joomla 1.5

Post by nl1bzw » Tue Jan 29, 2008 11:52 pm

Hello,

I can't get BBClone working in joomla 1.5 anymore.

I added this code to the index.php in the root:

Code: Select all

<?php
defined("_BBC_PAGE_NAME") ? _BBC_PAGE_NAME : define("_BBC_PAGE_NAME", $mainframe->_head['title']);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>
Now it gives hits if people visited my page, but the name of the page they visited stays blank.

Anybody any idear how to solve this?

I guess this piece of code changed with joomla 1.5:

Code: Select all

$mainframe->_head['title']
Thanks already.

nl1bzw
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jan 29, 2008 11:07 pm

Re: BBClone in joomla 1.5

Post by nl1bzw » Thu Jan 31, 2008 7:27 pm

I got it working now. I placed the code in the top of the index.php page instead of the bottom.

Now to let you know how to get it working:

Go to the root of joomla.

Open the index.php file

Scroll to the bottom

Place "?>" in the bottom of the index.php

Then place this code under it:

Code: Select all

<?php
defined("_BBC_PAGE_NAME") ? _BBC_PAGE_NAME : define("_BBC_PAGE_NAME", $mainframe->getPageTitle());
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
?>


Post Reply