21
Angela78
Re: Yogurt - news from suico
  • 2009/5/10 16:38

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


Works Great Thanks

Just wondering if you know how to make it so when a scrap is posted it will post the Time & Date it was posted

Thanks,
Angela

Quote:

urbanspacema wrote:
Hello every one!

I'm working on changes to modules yogurt 3.3 to make it similar to myspace. as the first amendment I put the player mp3 files on the main page of the profile. in the future I would like to put a player like that of jeroenwijering.com.

Here are the changes made

change the file templates/index.html with this

<{include file="db:yogurt_navbar.html"}>  <{ if $petition==&& $isOwner==&& $isfriend==0}>  <!-- if not owner and not friend --> <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> <!-- end if --> <{ /if }> <{ /if }> <{ if $allow_friends }> <div class="yogurt-nav-bar" id="yogurt-nav-bar">        <p id="yogurt-profile-fans"><a href="fans.php?uid=<{$uid_owner}>" alt="<{$lang_fans}>" title="<{$lang_fans}>" > <{$lang_fans}> </a><img src="images/fans.gif" /> ( <{$nb_fans}> )  | <{$lang_trusty}> </p> <p id="trustybw"> <span id="trustycolor">&nbsp;<img width="<{$trusty}>" height="0" src="images/transparent.gif" /></span>&nbsp;<img width="<{$trusty_rest}>" height="0" src="images/transparent.gif" /></p>  | <{$lang_cool}> <p id="coolbw"> <span id="coolcolor">&nbsp;<img width="<{$cool}>" height="0" src="images/transparent.gif" /></span>&nbsp;<img width="<{$cool_rest}>" height="0" src="images/transparent.gif" /></p>  | <{$lang_sexy}> <p id="sexybw"> <span id="sexycolor">&nbsp;<img width="<{$sexy}>" height="0" src="images/transparent.gif" /></span>&nbsp;<img width="<{$sexy_rest}>" height="0" src="images/transparent.gif" /></p> </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}>     </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}></span> <!-- <{ if $user_icq!=""}><img src="http://status.icq.com/online.gif?icq=<{$user_icq}>&img=21"> <{ /if }> --></p> <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> <!-- start module search results loop --> <{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}>">         <!-- start results item loop -->         <{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}>         <!-- end results item loop -->         <p>             <{$module.showall_link}>         </p>     </div> </div> <{/foreach}> <!-- end module search results loop --> </div>  </div><!-- end of div of group1 -->  <div class="yogurt-profile-group2">  <!--Modifiche di urbanspaceman--> <div id="yogurt-profile-friends" class="outer">     <h2 id="yogurt-audio-allaudiotitle" class="head">     <{$player_from_list}>     </h2>  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="240" height="20" id="dewplayer" align="middle"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="audioplayers/dewplayer-multi.swf?mp3=<{$audio_list}>" /><param name="quality" value="high" /><param name="bgcolor" value="FFFFFF" /><embed src="audioplayers/dewplayer-multi.swf?mp3=<{$audio_list}>" quality="high" bgcolor="FFFFFF" width="240" height="20" name="dewplayer" wmode="transparent" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>  </div> <!--fine modifiche di urbanspaceman-->   <div id="yogurt-profile-friends" class="outer">     <h2 id="titulo-friends" class="head"><{$lang_videos}> ( <{$nb_videos}> )</h2>         <{ if $allow_videos==}>             <div id="yogurt-profile-tribe">                 <{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 $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 }> <{ if $allow_tribes==1}> <div id="yogurt-profile-tribes" class="outer"> <h2 class="yogurt-profiletitle head"><{$lang_tribes}> (<{$nb_tribes}>)</h2> <{if $nb_tribes==0}><p id="notribes"><{$lang_notribesyet}></p><{ /if }>        <{section name=i loop=$tribes}> <div class="yogurt-profile-tribe <{cycle values="odd,even"}>">         <a href="tribe.php?tribe_id=<{$tribes[i].tribe_id}>"><img alt="<{$tribes[i].title}>" title="<{$tribes[i].title}>" class="yogurt-profile-tribes-img" src="<{$xoops_upload_url}>/<{$tribes[i].img}>" /></a> <h4> <{$tribes[i].title}> </h4><p><{$tribes[i].desc}></p> </div> <{/section}> <p id="yogurt-profile-friend-viewall" class="foot"> <a href="tribes.php?uid=<{$uid_owner}>"><{$lang_viewalltribes}></a> </p> </div> <{ /if }> </div><!-- end of group2 --> <{include file="db:yogurt_footer.html"}>


in file yogurt/index.php insert this code between the line 40 and 74
//////////////////modifica urbanspaceman
$controler_audio = new YogurtAudioControler($xoopsDB,$xoopsUser);

/**
* Fecthing numbers of tribes friends videos pictures etc...
*/
$nbSections $controler_audio->getNumbersSections();

$start_audio = (isset($_GET['start_audio']))? intval($_GET['start_audio']) : 0;

/**
* Criteria for Audio
*/
$criteriaUidAudio = new criteria('uid_owner',$controler_audio->uidOwner);
$criteriaUidAudio->setStart($start_audio);
$criteriaUidAudio->setLimit($xoopsModuleConfig['audiosperpage']);

/**
* Get all audios of this user and assign them to template
*/
$audios $controler_audio->getAudio($criteriaUidAudio);
$audios_array $controler_audio->assignAudioContent($nbSections['nbAudio'],$audios);

if(
is_array($audios_array))
{
    
$xoopsTpl->assign('audios'$audios_array);
    
$audio_list '';
    foreach(
$audios_array as $audio_item) {$audio_list .= '../../uploads/yogurt/mp3/'.$audio_item['url'].' | ';}
    
//$audio_list = substr($audio_list,-2);
    
$xoopsTpl->assign('audio_list',$audio_list);
    
}
else {
$xoopsTpl->assign('lang_noaudioyet',_MD_YOGURT_NOAUDIOYET);}

/////////////////fine modifica urbanspaceman

Fun!
Urban



22
Angela78
Re: Yogurt Scrapbook Timestamp
  • 2009/5/10 2:41

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


I was looking at a way to do this today I'll let you know if I find away



23
Angela78
Re: why isnt xoops developing a forum? or the cbb
  • 2009/5/10 0:55

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


Quote:

sailjapan wrote:
Two other forum modules have been announced in the last two months:

Newbbex from InstantZero
X-Forum 4.10 from Wishcraft



I use the newbb & love it works like a charm for me



24
Angela78
Re: Does anyone here have flashchat5 intergrated with xoops 2.3?
  • 2009/5/10 0:17

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


Yes That is what I was trying to do lol I've been looking at the code all day would it be OK for me to post the code to that chat user file? maybe someone can spot what is what with it



25
Angela78
Re: Does anyone here have flashchat5 intergrated with xoops 2.3?
  • 2009/5/9 23:51

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


Thanks for the welcome

No I have no admin or webmaster rights given to the mod's Yet they can ban the Admin I'd like them to be able to Ban others if need be just not the admins.

I have my site link in my profile if you wanted to check it out. I'm stumped on this LOL I can also show the codes for the XOOPS CMS file for flash chat if need be.

Most of the time I can figure this stuff out but this is over my head a bit lol I'm also wondering if it has to do with how the chat code is written? I had this problem with the chat itself when I was using it as a stand alone & fixed it if I try to fix it in the same way while it's integrated it brings the chat down lol



26
Angela78
Does anyone here have flashchat5 intergrated with xoops 2.3?
  • 2009/5/9 23:18

  • Angela78

  • Just popping in

  • Posts: 27

  • Since: 2009/5/9 1


I have flashchat 5.0.11 from tufat.com It seems to work great with my XOOPS 2.3 site other than one small problem the Mods can kick & Ban the Admin Just wondering where I can change the user permission as it is using the XOOPS user permissions.

Thanks,
Angela




TopTop
« 1 2 (3)



Login

Who's Online

193 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 193


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