if( $this->video_type == 'media_upload_url' )
{
/* Change board url tag to actual url */
if( mb_substr( $this->video_data, 0, 11 ) === '%BOARD_URL%' )
{
$this->video_data = str_replace( '%BOARD_URL%', '', $this->video_data );
}
}
This is what i want and it works. Substitution str_replace( '%BOARD_URL%', '', $this->video_data ). Could you include this fix in the next build? And what about video addresses in pages of video system? Are they being recalculated every time (request) based on current site address? I still mean the case of change of site address
Can we do by the same way site-relative values of other tokens (%VIDEO_LINK%, %CATEGORY_LINK% etc)?
$tags['%CATEGORY_LINK%'] = "<a href=".str_replace( \IPS\Http\Url::internal( '' ), '', $this->container()->url() ).">".$this->container()->_title."</a>";
$tags['%VIDEO_LINK%'] = "<a href=".str_replace( \IPS\Http\Url::internal( '' ), '', $this->url() ).">{$this->title}</a>";
$tags['%PROFILE_LINK%'] = "<a href=".str_replace( \IPS\Http\Url::internal( '' ), '', $this->author()->url() ).">".$this->author()->name."</a>";
You have a bug when the name of picture contains brackets ( )
https://yadi.sk/i/bQFp2z54o1UQlg
You can't add video with site-relative address via "Quick Add" dialog
https://yadi.sk/i/-VSqYix9VE82rw
Issue with category content
https://yadi.sk/i/zc_ls9h8R-pmGw
Add one more configuration to discussion topic in order to allow to specify date format per language
$tags['%DATE_ADDED%'] = \IPS\DateTime::create( $this->date )->format( 'd-m-Y' );
$tags['%DATE_UPDATED%'] = $this->last_updated ? \IPS\DateTime::create( $this->last_updated )->format( 'd-m-Y' ) : '';