×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Using tags from other extensions in comment

Using tags from other extensions in comment 16 years 3 months ago #695

  • Geurt Diepeveen
  • Geurt Diepeveen's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I like the comment extension you made, i just have one issue with it.
I want registered users on my site to be able to use tags in their comment to link to YouTube video’s with the use of the allvideos extension I have installed.
This works fine if the tag is used in an article but when the same tag is used in a comment, only the tag text is shown instead of being executed to show the YouTube video.

I can't get this to work
Can this be done in your comment extension ?

Using tags from other extensions in comment 16 years 3 months ago #699

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Do we speak for allvideo reloaded?
here is the code we added in version !joomlacomment 3.25
/* Daniel add-on for Allvideo Reloaded */
		if (defined('_JOSC_J15')) {
			if (JPluginHelper::importPlugin('content', 'avreloaded')) { 
    			$app = &JFactory::getApplication(); 
    			$res = $app->triggerEvent('onAvReloadedGetVideo', array($html)); 
    			if (is_array($res) && (count($res) == 1)) { 
    				$html = $res[0]; 
    			} 
			}
		}

And it is working.

Using tags from other extensions in comment 16 years 3 months ago #709

  • Geurt Diepeveen
  • Geurt Diepeveen's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi Daniel,
I was referring too AllVideos 2.5.3 - The all-in-one media solution, but i downloaded the Allvideo Reloaded instead an that one works fine.
Thank you.

There is however a bug in this, when the reply is posted it just shows the allvideos TAG and not the video.
When the entire page is reloaded then it does show the video.

Also is it possible to add another button in the comment editor to make it easy for users to add video ?

Thanks again
  • Page:
  • 1
Time to create page: 0.104 seconds