Vodes for Joomla 1.5
- rakib
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 11 months ago #3557
by rakib
what the version of your Joomla. I guess it is < 1.5. JFactory is introduced with Joomla 1.5. Can you please make sure your version.
Please Log in or Create an account to join the conversation.
- serge06
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 11 months ago #3558
by serge06
Joomla 1.0
I guess this explains.
What should then be the code?
Thanks
I guess this explains.
What should then be the code?
Thanks
Please Log in or Create an account to join the conversation.
- rakib
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 11 months ago - 15 years 11 months ago #3559
by rakib
Probably code should be like this
<? require_once('vodes_util.php');
//$my = & JFactory::getUser(); // <----- comment this line
$uid = $my -> id; // in Joomla 1.0 $my is a gloabal variable so would get the id automatically.
$vode = new Vodes();
?>
Last Edit: 15 years 11 months ago by rakib.
Please Log in or Create an account to join the conversation.
- rewing
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 10 months ago #3744
by rewing
Hi,rakib
Link is dead! could you upload again?
Link is dead! could you upload again?
Please Log in or Create an account to join the conversation.
- rakib
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 10 months ago #3793
by rakib
Hi which link did you mean for dead ? I can download vodes for Joomla 1.5 from the link joomlacode.org/gf/project/vodes/frs/
Hi,rakib
Link is dead! could you upload again?
Hi which link did you mean for dead ? I can download vodes for Joomla 1.5 from the link joomlacode.org/gf/project/vodes/frs/
Please Log in or Create an account to join the conversation.
- wc_r
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 9 months ago #3833
by wc_r
I have added in this code to the default.php article view on Joomla 1.5. THe vodes_util.php is in the dame directory as default.php. But when I try to view an article, it says
Call to undefined method Vodes::updateVodes()
Code I added -
Call to undefined method Vodes::updateVodes()
Code I added -
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<? require_once('vodes_util.php');
$my = & JFactory::getUser();
$uid = $my -> id;
$vode = new Vodes();
?>
<?php $vode->updateVodes($uid)?>
<img rc="images/stories/folder_locked.png" />
Please Log in or Create an account to join the conversation.