xoops forums

mandrake

Just popping in
Posted on: 2014/6/15 15:24
mandrake
mandrake (Show more)
Just popping in
Posts: 16
Since: 2014/5/26
#1

Need help for adding $vidsource in xoopstube title bar.

Hello,

I'm not a php programmer but i need to add the vidsource at the next of new image in xoopstube title bar.
The vidsource (youtube, viddler, google vidéo, etc) appear in admin area form and i want put it at the next of vidéo title where the new image appear on user area.

Can you help me for that, i think it's $vidsource, but i don't know modify php.(rrrrr)

If you have a litle time for helping me please?

bar title is located in singlevidéo.html so i think a little adding in singlevidéo.php and after add the smarty variable in this line of singlevideo.html:

<div class="xoopstube_singletitle"><{$video.title}></font><{$video.icons}><span><{if $xoops_isadmin}> <small><{$video.adminvideo}></small><{/if}></span>
:

Can you help me please?

Thank's in advance

Mamba

Moderator
Posted on: 2014/6/15 17:18
Mamba
Mamba (Show more)
Moderator
Posts: 10808
Since: 2004/4/23
#2

Re: Need help for adding $vidsource in xoopstube title bar.

Quote:
Can you help me please?

I am not ignoring you or anybody else, but I need to focus on XOOPS 2.5.7 release. However, maybe somebody else can help you in the meantime...

If nobody else can help, I hope I'll be able to take a look at this sometime next week...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

mandrake

Just popping in
Posted on: 2014/6/15 18:19
mandrake
mandrake (Show more)
Just popping in
Posts: 16
Since: 2014/5/26
#3

Re: Need help for adding $vidsource in xoopstube title bar.

Hi

Ok thank you mamba, i can waiting, it's not a problem.

I continue to search in my side.

mandrake

Just popping in
Posted on: 2014/7/20 19:03
mandrake
mandrake (Show more)
Just popping in
Posts: 16
Since: 2014/5/26
#4

Re: Need help for adding $vidsource in xoopstube title bar.

UP

Have you a little time for explain me how to do that please?

Bleekk

Theme Designer
Posted on: 2014/7/21 6:13
Bleekk
Bleekk (Show more)
Theme Designer
Posts: 934
Since: 2002/12/14
#5

Re: Need help for adding $vidsource in xoopstube title bar.

I will help you as soon as I come home from work.
can you tell me which xoopstube version you are using?

olivee

Just popping in
Posted on: 2014/7/21 11:07
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#6

Re: Need help for adding $vidsource in xoopstube title bar.

hello I am using a personalised mytube. I think you can do like this

add this line in /include/videoloadinfo.php
$video['sourceico'] = '<img src="' XOOPS_URL '/modules/' $xoopsModule -> getVar'dirname' ) . '/images/icon/' $video_arr['vidsource'] . '.png" alt="Source" title="Source" style="width: 16px; vertical-align: middle;">';

after
$video['icons']          = xtubeDisplayIcons($video_arr['published'], $video_arr['status'], $video_arr['hits']);


add the smarty code in /templates/xoopstube_singlevideo.html
<{$video.sourceico}>
after
<{$video.icons}>


the same think in /templates/xoopstube_videoload.html

than you must add one icon for each vidsource in /images/icon/ folder like 100.png 101.png ....

mandrake

Just popping in
Posted on: 2014/7/27 20:51
mandrake
mandrake (Show more)
Just popping in
Posts: 16
Since: 2014/5/26
#7

Re: Need help for adding $vidsource in xoopstube title bar.

Hello

Yes it's exactly what i want and it's work perfectly,i haven't tested with images but with alt, it's ok.I do that now.

Verry big thank's for your help, i haven't problem with html and css but PHP it's another story.

Thank's again.

olivee

Just popping in
Posted on: 2014/7/29 15:41
olivee
olivee (Show more)
Just popping in
Posts: 24
Since: 2014/1/28
#8

Re: Need help for adding $vidsource in xoopstube title bar.

you are welcome