51
tatane
Re: Xoopstubes: integrating the embed
  • 2013/7/22 13:20

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I added this function to viewcat.php as mentioned but i get this error

Aucun Tout Erreur(s) (0) Deprécié(s) (1) Requête(s) (30) Bloc(s) (3) Extra (2) Temporisation(5)
Deprécié(s)
Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php


I tried

// Get video from source $video['showvideo'] = xtube_showvideo($video_arr['vidid'], $video_arr['vidsource'], $video_arr['screenshot'], $video_arr['picurl']);
in viewcat.php but This brings me
<embed src="http://www.youtube.com/v/&autoplay=0&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>


instead of

<embed src="http://www.youtube.com/v/[color=CC0000]xxxxxxx[/color]&autoplay=0&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed>



52
tatane
Xoopstubes: integrating the embed
  • 2013/7/22 10:30

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Hello
In Module XoopsTubes 1.06 ago on the page singlevideo.php?cid= a smarty that provides the video embed code.
Resized Image


I would also use this smarty to page viewcat.php?cid=

Resized Image


but it is not present in the php file. How to add?

Thank you



53
tatane
Re: div by $ and bootstrap
  • 2013/7/21 7:20

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:

Tarik wrote:
probably because $category.categoryid is used in the check while the id isnt uniform - you probably deleted category with id 2 -


That's it.I add <{counter start=1 skip=1 print=false assign=a}> and this work

Thank



54
tatane
Re: div by $ and bootstrap
  • 2013/7/20 14:09

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I added this code :

<{assign var="thumbnail_span" value=span$thumbnail_span}>
<{
math assign="thumbnail_span" equation="12/nbr" nbr=2}>

<
div class="row-fluid">
<
ul class="thumbnails">
    <{foreach 
item=category from=$categories}>
    <
li class="span<{$thumbnail_span }> thumbnail">
        <
div class="center">
            <
img src="<{$category.image_path}>" title="" alt=""/>
        </
div>
        <
div class="center">
            <{if 
$selected_category == $category.categoryid}>
                <
strong><{$category.name}></strong
                <{else}>
                <
strong><{$category.categorylink}></strong
            <{/if}>
        </
div>
    </
li>
    <{if 
$category.categoryid is div by 2}>

    </
ul></div><div class="row-fluid"><ul class="thumbnails">
    <{/if}>
    <{/foreach}>
</
ul>
</
div>


But it does not work (see images below)

Resized Image


Resized Image



55
tatane
Re: div by $ and bootstrap
  • 2013/7/18 14:31

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I know it takes only span with modules that are not modern I do what I can.



56
tatane
Re: div by $ and bootstrap
  • 2013/7/18 13:16

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


this my code
<div class="thumbnails">
    <{foreach 
item=category from=$categories}>
    <
div class="thumbnail">
        <
img src="<{$category.image}>" title="<{$category.alttext}>" alt="<{$category.alttext}>">
        <
div class="caption">
        <
h3><{$category.title}></h3>
        <
p><class="btn btn-primary" href="#">Action</a> <class="btn" href="#">Action</a></p>
        </
div>
    </
div>
    <{/foreach}>
</
div>


I tried
<div class="thumbnails">
    <{foreach 
item=category from=$categories}>
    <
div class="thumbnail">
        <
img src="<{$category.image}>" title="<{$category.alttext}>" alt="<{$category.alttext}>">
        <
div class="caption">
        <
h3><{$category.title}></h3>
        <
p><class="btn btn-primary" href="#">Action</a> <class="btn" href="#">Action</a></p>
        </
div>
    </
div><{if $category.count is div by 2}> 
    <
br class="clear"/>
<{/if}>
    <{/foreach}>
</
div>

But is not work



57
tatane
Re: div by $ and bootstrap
  • 2013/7/18 12:55

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Ok but we no longer create this kind of display table, we need to use div.

How?



58
tatane
div by $ and bootstrap
  • 2013/7/18 7:47

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Hello
I have a code that is developed in tabular form.
<{if count($categoriesgt 0}>
<
div class="even" style="font-weight: bold;"><{$smarty.const._MD_XTUBE_MAINLISTING}></div>

<
table width="100%" cellspacing="1" cellpadding="3" summary='' style="text-align: center;">
    <
tr>
        <
td colspan="2">&nbsp;</td>
    <
tr>
    <
tr>
        <!-- 
Start category loop -->
        <{foreach 
item=category from=$categories}>
        <
td width="5%" style="text-align: center;">
            <
a href="<{$xoops_url}>/modules/<{$module_dir}>/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" title="<{$category.alttext}>" alt="<{$category.alttext}>" align="middle"/></a>
        </
td>
        <
td width="35%" style="text-align: left; vertical-align: middle;">
            <
a href="<{$xoops_url}>/modules/<{$module_dir}>/viewcat.php?cid=<{$category.id}>"><b><{$category.title}></b></a>&nbsp;(<{$category.totalvideos}>)<br/>
            <{if 
$category.subcategories}>
            <
div style="margin-bottom: 3px; margin-left: 16px; font-size: smaller; vertical-align: top;">
                <{
$category.subcategories}>
            </
div>
            <{/if}>
        </
td>
        <{if 
$category.count is div by $cat_columns}>
    </
tr>
    <
tr><{/if}> <{/foreach}>
        <!-- 
End category loop -->
    </
tr>
    <
tr>
        <
td colspan="2">&nbsp;</td>
    <
tr>
</
table>
<
div class="odd" style="text-align: left; font-size: smaller;"><{$lang_thereare}></div>
<
div class="xoopstube_legend">
    <
img src="<{$xoops_url}>/modules/<{$module_dir}>/images/icon/linkload1_small.png" title="<{$smarty.const._MD_XTUBE_LEGENDTEXTNEW}>" alt="" align="middle"/>&nbsp;<{$smarty.const._MD_XTUBE_LEGENDTEXTNEW}>
    <
img src="<{$xoops_url}>/modules/<{$module_dir}>/images/icon/linkload2_small.png" title="<{$smarty.const._MD_XTUBE_LEGENDTEXTNEWTHREE}>" alt="" align="middle"/>&nbsp;<{$smarty.const._MD_XTUBE_LEGENDTEXTNEWTHREE}>
    <
img src="<{$xoops_url}>/modules/<{$module_dir}>/images/icon/linkload3_small.png" title="<{$smarty.const._MD_XTUBE_LEGENDTEXTTHISWEEK}>" alt="" align="middle"/>&nbsp;<{$smarty.const._MD_XTUBE_LEGENDTEXTTHISWEEK}>
    <
img src="<{$xoops_url}>/modules/<{$module_dir}>/images/icon/linkload4_small.png" title="<{$smarty.const._MD_XTUBE_LEGENDTEXTNEWLAST}>" alt="" align="middle"/>&nbsp;<{$smarty.const._MD_XTUBE_LEGENDTEXTNEWLAST}>
</
div>
<{/if}>


In this code there are <{if $ category.count is div by $ cat_columns}> <{/ if}> which displays columns

If I use Table, I have that:
Resized Image

I would use thumbnails of bootstrap but I can not manage the columns

Do you understand? sorry for my bad english



59
tatane
Re: Layout issue on certain pages (Zetagenesis)
  • 2013/7/6 18:06

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


you tried with the default theme?



60
tatane
Re: Layout issue on certain pages (Zetagenesis)
  • 2013/7/6 16:21

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


This comes from your core advertising that are too wide




TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 38 »



Login

Who's Online

172 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

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

Latest GitHub Commits