1
tatane
yogurt_3_2_RC1
  • 2008/6/22 14:14

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Good morning

My site uses x_movie-v1_7-customv2_5_13, XOOPS 2.0.18 fr and yogurt_3_2_RC1

I would like yogurt through the video with a poster x_movie is visible in a block under the block my friends (as below)

Resized Image


I currently have a link that allows you to do this but my insights are not aligned!

search.php?action=showallbyuser&mid=3&uid={user_id}


how

2
trabis
Re: yogurt_3_2_RC1
  • 2008/6/22 15:57

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi, you could star at templates/yogurt_index.html

Look for this:

<{foreach 
item=module from=$modules}>

<
div class="yogurt-profile-search-module">
<
h4 class="yogurt-profiletitle head"> <class="yogurt-profile-search-module-title"> <img src="images/toggle.gif" />a> <{$module.name}>h4>
<
div class="yogurt-profile-search-module-results">
  
  <{foreach 
item=result from=$module.results}>

<
class="<{ cycle values="odd,even"}>">  <img src="<{$xoops_url}>/<{$result.image}>" alt="<{$module.name}>" /><b><a href="<{$xoops_url}>/<{$result.link}>"><{$result.title}>a>b><br /><small>(<{$result.time}>)small>p>

  <{/foreach}>
  
<
p>
<{
$module.showall_link}>
p>
div>
div>
<{/foreach}>


That is the loop that goes true the search results

you can use smarty <{if}> to list the result for just one module and then paste that code where you like

ex:

<{foreach 
item=module from=$modules}>

<{if 
$module.name == 'xmovie'}>

<
div class="yogurt-profile-search-module">
<
h4 class="yogurt-profiletitle head"> <class="yogurt-profile-search-module-title"> <img src="images/toggle.gif" />a> <{$module.name}>h4>
<
div class="yogurt-profile-search-module-results">
  
  <{foreach 
item=result from=$module.results}>

<
class="<{ cycle values="odd,even"}>">  <img src="<{$xoops_url}>/<{$result.image}>" alt="<{$module.name}>" /><b><a href="<{$xoops_url}>/<{$result.link}>"><{$result.title}>a>b><br /><small>(<{$result.time}>)small>p>

  <{/foreach}>
  
<
p>
<{
$module.showall_link}>
p>
div>
div>
<{/if}>
<{/foreach}>


I think you will have to remove some divs and classes here to take off the efects because it may cause problems.

3
tatane
Re: yogurt_3_2_RC1
  • 2008/6/22 16:24

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


My dosier does not want!

I have

<{foreach 
item=module from=$modules name="search_results"}>

<
div class="yogurt-profile-search-module" id="yogurt-profile-search-module-<{$smarty.foreach.search_results.iteration}>" >
    <
h4 class="yogurt-profiletitle head"
        <
class="yogurt-profile-search-module-title" id="yogurt-profile-search-module-title-<{$smarty.foreach.search_results.iteration}>" 
            <
img src="images/toggle.gif" />
        a
        <{
$module.name}>
    h4>

    <
div class="yogurt-profile-search-module-results" id="yogurt-profile-search-module-results-<{$smarty.foreach.search_results.iteration}>">
        
        <{foreach 
item=result from=$module.results}>

        <
class="<{ cycle values="odd,even"}>">  
            <
img src="<{$xoops_url}>/<{$result.image}>" alt="<{$module.name}>" />
                <
b>
                    <
a href="<{$xoops_url}>/<{$result.link}>">
                        <{
$result.title}>
                    a>
                b><br />
            <
small>(<{$result.time}>)small>
        p>

        <{/foreach}>
        
        <
p>
            <{
$module.showall_link}>
        p>
    div>
div>
<{/foreach}>



if I met


<{foreach 
item=module from=$modules}>

<{if 
$module.name == 'xmovie'}>

<
div class="yogurt-profile-search-module">


it does not work anymore! I have a blank page error!

4
tatane
Re: yogurt_3_2_RC1
  • 2008/6/22 16:45

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


what I want is to put the bloc My contributions under the block xxxx and Friends

5
trabis
Re: yogurt_3_2_RC1
  • 2008/6/22 17:34

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Then just pic the all code
<div id="yogurt-profile-search-results" class="outer">
<
h2 class="yogurt-profiletitle head"><{$lang_usercontributions}>h2>

<{foreach 
item=module from=$modules}>

<
div class="yogurt-profile-search-module">
<
h4 class="yogurt-profiletitle head"> <class="yogurt-profile-search-module-title"> <img src="images/toggle.gif" />a> <{$module.name}>h4>
<
div class="yogurt-profile-search-module-results">
  
  <{foreach 
item=result from=$module.results}>

<
class="<{ cycle values="odd,even"}>">  <img src="<{$xoops_url}>/<{$result.image}>" alt="<{$module.name}>" /><b><a href="<{$xoops_url}>/<{$result.link}>"><{$result.title}>a>b><br /><small>(<{$result.time}>)small>p>

  <{/foreach}>
  
<
p>
<{
$module.showall_link}>
p>
div>
div>
<{/foreach}>

div>


and paste it a little beloow:

<{ /if }>
//paste it here between friends and allow tribes
<{ if $allow_tribes==1}>

6
tatane
Re: yogurt_3_2_RC1
  • 2008/6/22 17:44

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:
<{ /if }>
//paste it here between friends and allow tribes
<{ if $allow_tribes==1}>


I put this code or? Forgive me but I can speak very English so I find it hard to understand

7
trabis
Re: yogurt_3_2_RC1
  • 2008/6/22 17:47

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Please paste here your yogurt_index.html so we can make the changes.

8
tatane
Re: yogurt_3_2_RC1
  • 2008/6/22 17:51

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


<{include file="db:yogurt_navbar.html"}>
<{ if 
$petition==&& $isOwner==&& $isfriend==0}>



<
div id="yogurt-profile-petition" class="confirmMsg">
<
h4><{$lang_youhavexpetitions}>h4>
<
img width="30" src="<{$xoops_url}>/uploads/<{$petitioner_avatar}>" />
<
form action="makefriends.php" method="post">
<{
$lang_askingfriend}>
<
ul>
    <
li>
        <
input name="level" type="radio" value="0" />
        <{
$lang_rejected}>
    li>
    <
li>
        <
input name="level" type="radio" value="1" />
        <{
$lang_accepted}>
    li>
    
    <
li>
        <
input name="level" type="radio" value="3" />
        <{
$lang_acquaintance}>
    li>
    
    <
li>
        <
input name="level" type="radio" value="5" />
        <{
$lang_friend}>
    li>
ul>
<
input type="hidden" name="petition_id" id="petition_id" value="<{$petition_id}>" />
<
input type="submit" />
<{
$token}>
form>
div>
<{else}>

<{if ((
$isfriend!=1) && ($isOwner==0) && ($isanonym!=1))}>
<
div id="yogurt-profile-petition">
<
form action=submit_friendpetition.php method="post">
<{
$lang_askusertobefriend}><input type="hidden" name="petitioned_uid" id="petitioned_uid" value="<{$uid_owner}>" />
<
input name="" type="image" src="images/addfriend.jpg"/><{$token}>
form>
div>

<{ /if }>
<{ /if }>
<{ if 
$allow_friends }>
<
div class="yogurt-nav-bar" id="yogurt-nav-bar">    
  

div>
<{/if}>

<
div class="yogurt-profile-group1">
<{ if 
$allow_pictures || $allow_videos }>
<
div id="yogurt-profile-visual" class="outer">
    <
h2 class="yogurt-profile-title head">
        <{
$owner_uname}>
    h2>
<{ if 
$allow_pictures }>
    <
div id="yogurt-profile-avatar">
        <{if 
$avatar_url!="" && $avatar_url!="blank.gif" }>
            <
img src="<{$xoops_url}>/uploads/<{$avatar_url}>" />
        <{ else }>
            <
img src="images/noavatar.gif">
            <{if 
$isOwner}>
                <
p>
                    <{
$lang_selectavatar}>
                p>
            <{ else }>
                <
p>
                    <{
$lang_noavatar}>
                p>
            <{/if}>
        <{ /if }>
    div>
<{/if}>
    <{ if 
$allow_videos==}>
    <
div id="yogurt-profile-mainvideo">
        <{if 
$mainvideocode!="" }>
            <
object width="200" height="150">
                <
param name="movie" value="http://www.youtube.com/v/<{$mainvideocode}>" />
                <
param name="wmode" value="transparent" />
                <
embed src="http://www.youtube.com/v/<{$mainvideocode}>" type="application/x-shockwave-flash" wmode="transparent" width="200" height="150" />            object>
            <
p id="yogurt-profile-mainvideo-desc">
                <{
$mainvideodesc}>
            p>
        <{ else }>
            <
img src="images/novideo.gif">
            <{if 
$isOwner}>
                <
p>
                    <{
$lang_selectmainvideo}>
                p>
            <{else}>    
                <
p>
                    <{
$lang_nomainvideo}>
                p>
            <{/if}>
        <{ /if }>
    div>
    <{/if}>
    
div>
<{/if}>



<{ if (
$isOwner==1) }>

    <
div id="yogurt-album-visitors" class="outer">
        <
h2 class="head"><{$lang_visitors}>h2>
        <
p>
        <{foreach 
from=$visitors key=k item=v}>
             <
a href=index.php?uid=><{$k}> > <{$v}> a>&nbsp
        <{/foreach}> 
        p>
        div>
<{ /if }>



<{ if 
$allow_profile_general==1}>
<
div id="yogurt-profile-details" class="outer">
<
h2 class="yogurt-profile-title head"><{$lang_detailsinfo}> <{ if $isOwner==}> <a href="edituser.php" title="<{$lang_editprofile}>"><img src="images/edit.gif" />a> <{/if}>h2>
<
class="odd"><img src="images/username.gif" /><span class="yogurt-profileinfo-label"><{$lang_uname}>:span><span class="yogurt-profileinfo-value"><{$user_uname}>span>p>
<
class="even"><img src="images/username.gif" /><span class="yogurt-profileinfo-label"><{$lang_realname}>:span><span class="yogurt-profileinfo-value"><{$user_realname}>span>p>
<
class="odd"> <img src="images/house.gif" /> <span class="yogurt-profileinfo-label"><{$lang_location}>:span><span class="yogurt-profileinfo-value"><{$user_location}>span><a href="http://maps.google.com/?q=<{$user_location}>" target="_blank"><img src="images/mapsgoogle.gif" />a>p>
<
class="even"> <img src="images/occ.gif" /> <span class="yogurt-profileinfo-label"><{$lang_occupation}>:span><span class="yogurt-profileinfo-value"><{$user_occupation}>span>p>
<
class="odd"> <img src="images/interests.gif" /> <span class="yogurt-profileinfo-label"><{$lang_interest}>:span><span class="yogurt-profileinfo-value"><{$user_interest}>span>p>
<
class="even"> <img src="images/bio.gif" /> <span class="yogurt-profileinfo-label"><{$lang_extrainfo}>:span>p>
<
p  class="yogurt-profileinfo-valuebigtext odd"><{$user_extrainfo}>p>
div>
<{ /if }>
<{ if 
$allow_profile_contact==1}>
<
div id="yogurt-profile-details" class="outer">
<
h2 class="yogurt-profile-title head"><{$lang_contactinfo}> <{ if $isOwner==}> <a href="edituser.php" title="<{$lang_editprofile}>"><img src="images/edit.gif" />a> <{/if}>h2>
<
class="even"> <img src="images/url.gif" /> <span class="yogurt-profileinfo-label"><{$lang_website}>:span><span class="yogurt-profileinfo-value"><{$user_websiteurl}>span>p>
<
class="odd"> <img src="images/email.gif" /> <span class="yogurt-profileinfo-label"><{$lang_email}>:span><span class="yogurt-profileinfo-value"><{ mailto address=$user_email encode="javascript"}>span>p>
<{ if 
$isanonym!=&& $isOwner!=}>
<
class="even"> <img src="images/email.gif" /> <span class="yogurt-profileinfo-label"><{$lang_privmsg}>:span><span class="yogurt-profileinfo-value"><a href="javascript:openWithSelfMain('<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$uid_owner}>', 'pmlite', 450, 380);"><img src="<{$xoops_url}>/images/icons/pm.gif" alt="Send Private Message to suico" />a>span>p>
<{ /if }>
<
class="odd"> <img src="images/icq.gif" /> <span class="yogurt-profileinfo-label"><{$lang_icq}>:span><span class="yogurt-profileinfo-value"><{$user_icq}>spanp>
<
class="even"> <img src="images/aim.gif" /> <span class="yogurt-profileinfo-label"><{$lang_aim}>:span><span class="yogurt-profileinfo-value"><{$user_aim}>span>p>
<
class="odd"> <img src="images/ym.gif" /> <span class="yogurt-profileinfo-label"><{$lang_yim}>:span><span class="yogurt-profileinfo-value"><{$user_yim}>span>p>
<
class="even"> <img src="images/amsn.gif" /> <span class="yogurt-profileinfo-label"><{$lang_msnm}>:span><span class="yogurt-profileinfo-value"><{$user_msnm}>span>p>
div>
<{ /if }>



<{ if 
$allow_profile_stats}>
<
div id="yogurt-profile-statistics" class="outer">
<
h2 class="yogurt-profiletitle head"><{$lang_statistics}>h2>
<
class="odd"> <img src="images/birthday.gif" /> <span class="yogurt-profileinfo-label"><{$lang_membersince}>:span><span class="yogurt-profileinfo-value"><{$user_joindate}>span>p>
<
class="even"> <img src="images/rank.gif" /> <span class="yogurt-profileinfo-label"><{$lang_rank}>:span><span class="yogurt-profileinfo-value"><{$user_rankimage}>  <{$user_ranktitle}>span>p>
<
class="odd"> <img src="images/comments.gif" /> <span class="yogurt-profileinfo-label"><{$lang_posts}>:span><span class="yogurt-profileinfo-value"><{$user_posts}>span>p>
<
class="even"> <img src="images/clock.gif" /> <span class="yogurt-profileinfo-label"><{$lang_lastlogin}>:span><span class="yogurt-profileinfo-value"><{$user_lastlogin}>span>p>
<
class="odd"> <img src="images/signature.gif" /> <span class="yogurt-profileinfo-label"><{$lang_signature}>:span>p>

<
p  class="yogurt-profileinfo-valuebigtext even"><{$user_signature}>p>
div>
<{ /if }>


<
div id="yogurt-profile-search-results" class="outer">
<
h2 class="yogurt-profiletitle head"><{$lang_usercontributions}>h2>

<{foreach 
item=module from=$modules name="xmovie"}>

<
div class="yogurt-profile-search-module" id="yogurt-profile-search-module-<{$smarty.foreach.search_results.iteration}>">
    <
h4 class="yogurt-profiletitle head"
        <
class="yogurt-profile-search-module-title" id="yogurt-profile-search-module-title-<{$smarty.foreach.search_results.iteration}>"
            <
img src="images/toggle.gif" />
        a
        <{
$module.name}>
    h4>

    <
div class="yogurt-profile-search-module-results" id="yogurt-profile-search-module-results-<{$smarty.foreach.search_results.iteration}>">
        
        <{foreach 
item=result from=$module.results}>

        <
class="<{ cycle values="odd,even"}>">  
            <
img src="<{$xoops_url}>/<{$result.image}>" alt="<{$module.name}>" />
                <
b>
                    <
a href="<{$xoops_url}>/<{$result.link}>">
                        <{
$result.title}>
                    a>
                b><br />
            <
small>(<{$result.time}>)small>
        p>

        <{/foreach}>
        
        <
p>
            <{
$module.showall_link}>
        p>
    div>
div>
<{/foreach}>

div>

div>

<
div class="yogurt-profile-group2">
<{ if 
$allow_friends==}>
<
div id="yogurt-profile-friends" class="outer">
<
h2 id="titulo-friends" class="head"><{$lang_friendstitle}> ( <{$nb_friends}> )h2>
<{if 
$nb_friends==0}><p id="nofriends"><{$lang_nofriendsyet}>p><{ /if }>       
<{
section name=i loop=$friends}>
<
div class="yogurt-profile-friend <{cycle values="odd,even"}>">        
<
a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$friends[i].uid}>" alt="<{$friends[i].uname}>" title="<{$friends[i].uname}>"><{ if $friends[i].user_avatar=="blank.gif"}><img class="yogurt-profile-friend-photo" src="images/noavatar.gif"><{ else }><img class="yogurt-profile-friend-photo" src="<{$xoops_upload_url}>/<{$friends[i].user_avatar}>"><{/if}><{$friends[i].uname}> a>
div>
<{/
section}>
<
p id="yogurt-profile-friend-viewall" class="foot">
<
a href="friends.php?uid=<{$uid_owner}>"><{$lang_viewallfriends}>a>
p>
div>
<{ /if }>

div>
<{include 
file="db:yogurt_footer.html"}>

9
trabis
Re: yogurt_3_2_RC1
  • 2008/6/22 17:58

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Sorry, I think I did not understand your previous problem.

10
tatane
Re: yogurt_3_2_RC1
  • 2008/6/23 7:21

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


The block "Mes contributions" which is surrounded by red
Resized Image
how to bring it under "tatane et ces amis" ?
Resized Image

Login

Who's Online

378 user(s) are online (273 user(s) are browsing Support Forums)


Members: 0


Guests: 378


more...

Donat-O-Meter

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

Latest GitHub Commits