Welcome, Guest
Please Login or Register.    Lost Password?

Item ID not carried to play page
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Item ID not carried to play page
#988
Item ID not carried to play page 8 Months, 2 Weeks ago Karma: 0
Good evening all. Still lovin the component! My client is ecstatic about what is being presented to them. So thanks for that.

So my enquiry is:

I am working with metamod / mod_php in order to embed modules within specific component pages. I can do that all tickety-boo 'n' all with the components that I'm using, but have run into one small speedbump with JVid...

the item id isn't carried into the view-video page. It is instead replaced by &v=UtrBq9i1jU227 (for example).

Is there anyway I can determine what an item id is for a specific vid? I am trying to place an iJoomla Adagency Zone module in the right hand position beside specific videos...

Thanks!
G
InternalWealth
(Pro Member Platinum)

Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#993
Re: Item ID not carried to play page 8 Months, 2 Weeks ago Karma: 10
sorry i don't understand what you are trying to do ...

apparently, v parameter will have to be there so that the main controller will catch this video id and play it according. just like youtube.

You can execute a sql to lookup "index.php?option=com_jvideodirect" in component table and obtain itemid according.
cassie
jVideoDirect staff
Posts: 844
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#997
Re:Item ID not carried to play page 8 Months, 2 Weeks ago Karma: 0
Thanks for the quick response Cassie. I often wait a few days to get response from creators of the components I purchase...

I'll discuss your feedback with the other developers helping with my project.

What I'm trying to achieve is to embed into video pages, ads that are relative to the content. So a video about cars would have a right hand module showing banners about car products, for example.

Here's a snippet from mod_php that I'm using. The example places module id 444 in my product analyzer component. If I have an item id for a specific page within the product analyzer component, I can expand on the if or else if statement to place modules directly into individual pages within the component....



<?php
// Don't edit
$id = JRequest::getInt('id');
$option = JRequest::getVar('option');
$view = JRequest::getVar('view');
$task = JRequest::getVar('task');

$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$params = array('style' => 0);

// Start editing
if($option == 'com_productanalyzer'){
$mod = getModule(444);
echo JModuleHelper::renderModule($mod[0], $params);
}elseif($option == 'com_virtuemart'){

}else{ // Here we don't display anything. Don't change.
return;
}
// End editing


function getModule($id){
global $mainframe;

$user =& JFactory::getUser();
$db =& JFactory::getDBO();

$aid = $user->get('aid', 0);

$modules = array();

$query = 'SELECT id, title, module, position, content, showtitle, control, params'
. ' FROM #__modules AS m'
. ' LEFT JOIN #__modules_menu AS mm ON mm.moduleid = m.id'
. ' WHERE m.published = 1'
. ' AND m.access <= '. (int)$aid
. ' AND m.client_id = '. (int)$mainframe->getClientId()
. ' AND m.id = '.$id
. ' ORDER BY position, ordering';

$db->setQuery( $query );

if (null === ($modules = $db->loadObjectList())) {
JError::raiseWarning( 'SOME_ERROR_CODE', JText::_( 'Error Loading Modules' ) . $db->getErrorMsg());
return false;
}

check_modules($modules);

$total = count($modules);
for($i = 0; $i < $total; $i++)
{
//determine if this is a custom module
$file = $modules[$i]->module;
$custom = substr( $file, 0, 4 ) == 'mod_' ? 0 : 1;
$modules[$i]->user = $custom;
// CHECK: custom module name is given by the title field, otherwise it's just 'om' ??
$modules[$i]->name = $custom ? $modules[$i]->title : substr( $file, 4 );
$modules[$i]->style = null;
$modules[$i]->position = strtolower($modules[$i]->position);
}

return $modules;
}

?>
InternalWealth
(Pro Member Platinum)

Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1001
Re:Item ID not carried to play page 8 Months, 2 Weeks ago Karma: 10
you may also like to take a look at our tagcloud modules for reference ...
This thread will be moved to "developer corner"
cassie
jVideoDirect staff
Posts: 844
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1761
Re:Item ID not carried to play page 6 Months, 4 Weeks ago Karma: 0
He's talking about the JMenu::getActive()->id isn't being forwarded.


He's talking about the menu Itemid.
jbcwebservices
(Free Member)

Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1777
Re:Item ID not carried to play page 6 Months, 4 Weeks ago Karma: 0
I'm having the same problem.

Something to do with JRoute, It's not adding the item id to the video links outside of the componet page, for example:

My Jvd component is published on item id:86 (not the frontpage)

index.php?option=com_jvideodirect&view=jvideodirect&Itemid=86

This is a problem when you have modules featuring vids on other pages for example the Jomsocial page or other non JVD frontpage becuase the Jvd does not add the item id to those links.

eg: index.php?option=com_jvideodirect&v=W1fV9ScLq5yt6

The link should be: index.php?option=com_jvideodirect&v=W1fV9ScLq5yt6&Itemid=86

This offers serious restrictions and i hope it will be sorted soon.

On a plus note, the component is fantastic! simply the best joomla vid solution out there.

Keep up the good work!

Happy New Year
TwistedVision
(Free Member)

Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: cassie, tanny, ethan