Re: Edit mytube viewcat

What MyTube release are you using? Final is 1.06 and the code for mytube_block_new_h.html template does not match with you has related.
Example
In MyTube viewcat template look for this line

<div style="clear: both;"> <!-- Start link loop --> <{section name=i loop=$video}> <{include file="db:mytube_videoload.html" video=$video[i]}> <{/section}> <!-- End link loop --> </div>

You can see the array values adding

<pre><{$video|@print_r}></pre>

It seems if you play with HTML and CSS (width box) you can get it.
Can you provide a live example?

Topic


Re: Edit mytube viewcat

  • 2015/3/30 9:35:10

i'm using yikes themes

and for my template

In mytube_videoload.html

Quote:

<div class="even" style="display: table; width: 99%;">


</div>
<div style="width: 99%;" class="affiche">
<div style="float: left; padding: 0 4px 4px 0;">

<{if $video.screen_shot}>

<a href="<{$video.url}>" target=""><{$video.videothumb}></a>

<{/if}><br>

&nbsp;

</div>

<div>

<span class="video2"><a href="<{$video.url}>" title=" <{$video.title}>" class="videot"><{$video.title}></a></span>
<br />
<small><{$video.hits|wordwrap:50:"\n":true}></small><br />
<b>Langue: </b><span> <{$video.publisher}><br /></span>
<b><{$smarty.const._MD_MYTUBE_DESCRIPTIONC}></b><br>
<br>
<{$video.description}>&nbsp;<a href="<{$video.url}>" title="<{$video.title}>"><{$video.title}></a><br>


</div> </div>




I want to display two Video on the same line in mytube

like Random video Block for example



Quote:

<div style="overflow: auto;">
<{foreach item=videorandomh from=$block.random}>

<div style="float: left; margin: 1px; padding: 2px; background-color: #d9d9d9; font-size: smaller; text-align: center;">
<span>
<a href="<{$video.url}>"><{$video.videothumb}></a>
<br />
<a href="<{$video.url}>"><{$video.title}></a>
<br /></a>
</span>
</div>
<{/foreach}>
</div>

Topic


Re: 'Prefooter' -in icmsbootstrap

The currently official download for icmsBootstrap 3.0.3 is here.

Me on Ohloh

Topic


Re: Edit mytube viewcat

Hi galdiator,

let me have a look at those templates. Are you using a specific theme (bootstrap, other)?

Me on Ohloh

Topic


Edit mytube viewcat

  • 2015/3/28 5:50:40

Bonjour,

I want to display two Video on the same line in mytube
as block mytube_block_new_h.html that displays 5 video in the same line with smarty template

Quote:

<{assign var='cats_per_col' value=5}>


<table width="700px" cellspacing="1" cellpadding="0">

<{foreach name=i item=videoload from=$block.videos}>
<{if $smarty.foreach.i.iteration mod $cats_per_col eq 1}><tr><{/if}>
<td align="center" style="padding: 2px; vertical-align: middle;"><div align="center"><a href="<{$videoload.url}>" ><{$videoload.videothumb}></a><br />
<a href="<{$videoload.url}>" ><font color="#0066CC"><{$videoload.title}></font></a><br />
</div></td>
<{if $smarty.foreach.i.iteration mod $cats_per_col eq 0}></tr><{/if}>
<{/foreach}>
</table>



Kindly help me to convert the code to use on mytube_viewcat et mytube_inderx

Et merci

Topic


Re: 'Prefooter' -in icmsbootstrap

Hi PortDude
What icmsbootsrap release are you using?
My theme is oudated and there is a more fresh release by Rene.
Donwload
The readme.txt file has some usefult tips about available custom bocks positions in the theme.

Topic


Re: 'Prefooter' -in icmsbootstrap

Great. Actually that's another thing I really like about ICMS- The custom block building. And I was happy to see there was a place for this 'prefooter' in the theme.html source

-Thanks!

Topic


Re: 'Prefooter' -in icmsbootstrap

Hi PortDude, good to see you're making a new site with our beloved CMS

You should create the block position manually, taking care to use the correct naming so the theme and the system know that they are talking about the same thing.

Currently, there is no installation procedure for themes, so the themes cannot create the elements (blocks, block positions, ...) they need for their specific use. It's something that will come in the future, though I can't point a release on that yet.

Me on Ohloh

Topic


'Prefooter' -in icmsbootstrap

Hi All,
Making a new site and customizing the ICMSbootstrap theme. ITs cool because Im familiar with Bootstrap so glad to see this marriage!

Any rate, I notice in the theme.html file that there is a section
for Prefooter (which is also a common holding place in many a bootstrap site)
<{if $xoBlocks.prefoot}>

This implies that there is blockcontent available here..
However, I don't see a file for a prefooter block in the theme set, nor is it an option in blocks position.

I haven't found much documentation on this theme so I'm just wondering are we supposed to create a new block via admin or am I missing a file? lol

Hope that makes sense. -thanks!

Topic


Re: How to hide a block when it has no contents?

Ok thanks, the culprit was that I was passing some display preferences inside $block. Now I check to see if there are any content objects and if not, set $block = array(); and its fine.

Topic


Re: How to hide a block when it has no contents?

You might use also the count() function on your variables that can be empty. That could come in handy if you generate content in your block content that isn't dependent on the number of elements you want to display.

Me on Ohloh

Topic


Re: How to hide a block when it has no contents?

Is the block returning something (like markup), even when there aren't any results? Generally, if $block.content is empty, the block will not display

Steve Twitter: @skenow Facebook: Steve Kenow

Topic


How to hide a block when it has no contents?

Is there a way that I can make a block hide itself if it has not contents? Say I have a 'recent articles' block, which can be filtered by tag. For some tags, there are no articles, but the title of the block still displays.

What I would like to happen is, if there is no content in a block, it does not display the block title or anything else. It just doesn't display.

I've tried setting $block['title'] = '', or not returning $block, but the title still shows up.

Any ideas?

Topic


Re: Those javascript slideshow things

Thanks! It's a little module that needs some TLC, I agree. Lots of small improvements possible. I'll have a look at doing some of them on a regular basis, and starting a more regular flow of releases.

Don't hesitate if you have some needs or proposals that you'd like to see added

Me on Ohloh

Topic


Re: Those javascript slideshow things

Ok I had a look, that's a great module actually, it should be developed further :)

Topic


Re: Those javascript slideshow things

Ok thanks, I will check out the module.

Topic


Re: Those javascript slideshow things

hehe, @skenow is no fan of those image rotators either, but it's part of what some people expect nowadays.

I created a module called 'billboard' some time ago that allows you to add an image rotator to your site. It needs some work to get it up-to-date on the level of functionality and javascript library. I never had requests for a specific functionality, so I stopped working on it. If you are interested, I could spend some time into adding stuff. Let me know.

When it comes to themes with the functionality hardcoded : http://themes.impresscms.es/ should have some options for you.

Me on Ohloh

Topic


Those javascript slideshow things

Hello, Javascript Idiot here. Can someone please recommend a theme that has one of those image slideshows built into the header? I would like a good example to study the code, but I have no idea what constitutes a good example.

The powers that be have dictated that having lots of huge photos zipping past is more important than, say, actually being able to load the page. You know how it is.

Topic


Re: Help with bootstrap theme - navbar

Got it!

I had moved the form from its original location (just left of the menu items) to the right side. Changed the class to navbar-right and it is doing as I want it to.

I'm still wondering about the different uses of elements for the dropdown - a list item for the login and a div for the user menu. Any thoughts?

Steve Twitter: @skenow Facebook: Steve Kenow

Topic


Re: Help with bootstrap theme - navbar

The search form is after all the attached code, starting immediately after the last IF closure. It's common for both instances, so something is shifting it or the login/user dropdown (most likely, since this is where the differences are.

<form style="margin-left: 10px;margin-right: 10px;padding-bottom: 8px;padding-top: 8px;" action="<{$icms_url}>/search.php" class="navbar-left"> <input type="text" placeholder="<{$smarty.const.THEME_SEARCH}>" class="form-control" name="query" /> <input type="hidden" name="action" value="results" /> </form>


I'll attach the entire theme.html file ... and some details from Firebug


Attach file:


zip icms-bootstrap-theme-html.zip Size: 3.27 KB; Hits: 193

png  icms-bootstrap3-nav-login-full.png (369.94 KB)
54__1019754963f2a5121d.png 1600X876 px

png  icms-bootstrap3-nav-logged-in-full.png (374.21 KB)
54__799254963f3e59bc1.png 1600X897 px

Steve Twitter: @skenow Facebook: Steve Kenow

Topic



 Top