1
mandrake
Need help for adding $vidsource in xoopstube title bar.
  • 2014/6/15 15:24

  • mandrake

  • Just popping in

  • Posts: 16

  • Since: 2014/5/26


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


2
Mamba
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/6/15 17:18

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


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

3
mandrake
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/6/15 18:19

  • mandrake

  • Just popping in

  • Posts: 16

  • Since: 2014/5/26


Hi

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

I continue to search in my side.

4
mandrake
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/7/20 19:03

  • mandrake

  • Just popping in

  • Posts: 16

  • Since: 2014/5/26


UP

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

5
Bleekk
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/7/21 6:13

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


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

6
olivee
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/7/21 11:07

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


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 ....

7
mandrake
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/7/27 20:51

  • mandrake

  • Just popping in

  • Posts: 16

  • Since: 2014/5/26


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.

8
olivee
Re: Need help for adding $vidsource in xoopstube title bar.
  • 2014/7/29 15:41

  • olivee

  • Just popping in

  • Posts: 24

  • Since: 2014/1/28


you are welcome

Login

Who's Online

229 user(s) are online (113 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits