User , memeber id photo portraits
xssif
Joined: 2008-06-20
Posts: 26 |
Posted: Mon, 2008-09-29 18:34 |
Would relay like to know if any one knows how to make User , memeber id photo portraits to work with gallery 2? |
|
Posts: 16504
I guess I don't since I have to ask the question. Can you clarify or explain further? I really haven't even got a remote clue as to what you are asking about.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 27300
Perhaps this:
http://codex.gallery2.org/Gallery2:Modules:userphoto
but like nivekiam, you need to explain a bit better.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
It's all goo its just that this link to download does not work,Ha...do you know of any other place to download this?
http://codex.gallery2.org/Gallery2:Modules:userphoto
Posts: 26
It is simple, I have a site running g2 and need members, users id photo to be shown, if possible similar to this:[img]http://http://gallery.menalto.com/files/pictures/picture-6235.png[/img]
Can you help?
Posts: 16504
Looks like the author has updated the plugin, but broke the link: http://www.e-poze.ro/downloads/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 26
Ok, thanks, now how do I reach the author to make clear of things? Like how to configure this.
Posts: 314
shoot!
serbanc - www.e-poze.ro
Posts: 26
Ok, I got it installed and working some how, now what's the trick if any to show user photo publicly in galleries next to their comments etc?
Posts: 26
Maybe you can explain this some how in detail...I see it working on your site, how did you activated it? Help.
Posts: 314
dear xssif,
as the members, comments module were not designed to work with plugins, I had to modify those modules in order to display the additional infos.
check in www.e-poze.ro/downloads for comment.tgz and members.tgz for the modified modules that allow taking advantage of those two extra modules.
the two extra modules are userdata and userphoto
regards,
serbanc - www.e-poze.ro
Posts: 26
ok, will try...is this simply a case of replacing these modules? god i hope so. thanks for help so far.
Posts: 314
yeap, just replacing the modules.
serbanc - www.e-poze.ro
Posts: 26
How about favorites can it be rigged up too for user photo, is it big deal?
Posts: 314
not sure that I understand what you mean
sorry
serbanc - www.e-poze.ro
Posts: 26
well, as there is comments, there is favorites as well "Favourited by" ie: http://www.gallery-425.net/main.php?g2_itemId=7258&g2_imageViewsIndex=1
can this user photo plug in be fixed to show photo id for member favoriting? well maybe next time.
Posts: 26
by the way sign up with your site, user id xssif, will not let me log on. to bad, wanted to see how you got set up.
Posts: 314
it's normal that you cannot log-on.
my site is set so that the user confirms the registration.
so after you will click on the link provided, you will be able to login
related to your question.
yes, it can be done.
grab the code from .inc files (typically enclosed between Serban: begin and end comments) and put it into the "favourited by" section of Callbacks (favourites module).
then grab from .tpl files the section where the userimage is displayed (typically a call like {g->image ...) and put it where you need in the favourited by block.
serbanc - www.e-poze.ro
Posts: 26
Well, help again, deleted sugested modules, up loaded ftp your new ones, now what?
Posts: 314
if you do not install the userphoto, there is nothing to see, really
serbanc - www.e-poze.ro
Posts: 26
Ok, ok, sorry to bug you but this is higher learning for me, not a programmer . Dabble in code a bit but this latter.
In the mean time.
I have user photo installed, ftp new versions of members and comments, now what?
Posts: 314
set yourself some pictures and check the comments
however, clear the template cache
serbanc - www.e-poze.ro
Posts: 26
ok will try.
Posts: 314
I registered on your site as well (serbanc)
If you do not install/activate the userphoto module, nothing will appear
serbanc - www.e-poze.ro
Posts: 26
Have not forgotten something on the way here?
Posts: 314
don't know...
serbanc - www.e-poze.ro
Posts: 26
Hey, don't know what I'm doing wrong. Maybe you can help via e-mail [url]mailto:info@gallery-425.net[/url]
Posts: 26
Hi, I don't know if you are getting this, but I still trying in many ways to make userphoto work with my site. No luck so far. Could you help here?
Working here on developmnet server: http://gallery425.byethost4.com/main.php?g2_itemId=86
this is the code of my photo.tpl
====================================================
{*
* $Revision: 1.3 $
* If you want to customize this file, do not edit it directly since future upgrades
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
* version. Gallery will look for that file first and use it if it exists.
*}
{assign var="itemLinksVisible" value=false}
{foreach from=$theme.params.photoUpperBlocks item=block}
{if $block.0 == 'core.ItemLinks'}
{assign var="itemLinksVisible" value=true}
{/if}
{/foreach}
{if !empty($theme.imageViews)}
{assign var="image" value=$theme.imageViews[$theme.imageViewsIndex]}
{/if}
{if !empty($theme.params.sidebarBlocks)}
{g->theme include="sidebar.tpl"}
{/if}
<table class="gcBackground1" width="100%" cellspacing="0" cellpadding="0">
<tr valign="top">
<td align="left">
<div id="gsContent" class="gcBorder1">
<div class="gbBlockTop">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
{if !empty($theme.params.sidebarBlocks) || $itemLinksVisible}
<td align="left" valign="top">
{g->theme include="itemLinksDefault.tpl"} </td>
{else}
<td align="left" valign="top">
{g->theme include="itemLinks.tpl"} </td>
<td align="left">
{* Our emergency edit link, if the user all blocks containing edit links *}
{if !isset($item)} {assign var="item" value=$theme.item} {/if}
{g->callback type="core.ShouldShowEmergencyEditItemLink"
permissions=$permissions|default:$theme.permissions
checkBlocks=$checkBlocks|default:null
checkSidebarBlocks=$checkSidebarBlocks|default:true
checkAlbumBlocks=$checkAlbumBlocks|default:false
checkPhotoBlocks=$checkPhotoBlocks|default:true}
{if ($block.core.ShouldShowEmergencyEditItemLink)}
<a href="{g->url arg1="view=core.ItemAdmin" arg2="subView=core.ItemEdit"
arg3="itemId=`$item.id`" arg4="return=true"}" title="{g->text text="Edit"}">
<div class="iconEmergency"></div>
</a>
{/if}
</td>
{/if}
</tr>
</table>
</div>
<div id="ContentPhoto" class="gsContentPhoto">
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top">
<div id="gsImageView" class="gbBlock gcBorder1">
<table align="center" cellpadding="0" cellspacing="0">
{if $theme.params.navigatorPhotoTop}
<tr align="top">
<td align="left" valign="top">
<div class="gbNavigatorTop">
{g->theme include="navigator.tpl"}
</div>
</td>
</tr>
{/if}
<tr>
<td align="left" valign="top">
{if !empty($theme.imageViews)}
{capture name="fallback"}
<table style="text-align: center; width: 300px; height: 200px;">
<tr>
<td valign="top" align="left">
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"
forceFullUrl=true forceSessionId=true } ">
<div class="downloadItem"></div>
{g->text text="Download %s" arg1=$theme.sourceImage.itemTypeName.1}
</a>
</td>
</tr>
</table>
{/capture}
{if ($image.viewInline)}
{if count($theme.imageViews) > 1}
{if $theme.params.disableViewInlineFullSize}
{assign var="nextIndex" value=0}
{else}
{if $theme.imageViewsIndex==0}
{assign var="nextIndex" value=1}
{elseif $theme.imageViewsIndex==count($theme.imageViews)-1}
{assign var="nextIndex" value=0}
{else}
{assign var="nextIndex" value=$theme.imageViewsIndex+1}
{/if}
{/if}
{if isset($theme.photoFrame)}
{g->container type="imageframe.ImageFrame" frame=$theme.photoFrame
width=$image.width height=$image.height}
<div id="photo">
{if $theme.params.disableViewInlineFullSize && $theme.imageViewsIndex == 0}
{if isset($theme.navigator.first) && isset($theme.navigator.last)}
<a href="{g->url params=$theme.navigator.next.urlParams}" title="{g->text text="Next"}">
{elseif isset($theme.navigator.last)}
<a href="{g->url params=$theme.navigator.next.urlParams}" title="{g->text text="Next"}">
{elseif isset($theme.navigator.first)}
<a href="{g->url params=$theme.navigator.first.urlParams}" title="{g->text text="First"}">
{/if}
{g->image id="%ID%" item=$theme.item image=$image
fallback=$smarty.capture.fallback class="%CLASS%"}
</a>
{else}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.item.id`"
arg3="imageViewsIndex=`$nextIndex`" }" title="{g->text text="Full Size"}">
{g->image id="%ID%" item=$theme.item image=$image
fallback=$smarty.capture.fallback class="%CLASS%"}
</a>
{/if}
</div>
{/g->container}
{else}
<div id="photo">
<div id="photoframe">
{if $theme.params.disableViewInlineFullSize && $theme.imageViewsIndex == 0}
{if isset($theme.navigator.first) && isset($theme.navigator.last)}
<a href="{g->url params=$theme.navigator.next.urlParams}" title="{g->text text="Next"}">
{elseif isset($theme.navigator.last)}
<a href="{g->url params=$theme.navigator.next.urlParams}" title="{g->text text="Next"}">
{elseif isset($theme.navigator.first)}
<a href="{g->url params=$theme.navigator.first.urlParams}" title="{g->text text="First"}">
{/if}
{g->image item=$theme.item image=$image fallback=$smarty.capture.fallback}
</a>
{else}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.item.id`"
arg3="imageViewsIndex=`$nextIndex`"}" title="{g->text text="Full Size"}">
{g->image item=$theme.item image=$image fallback=$smarty.capture.fallback}
</a>
{/if}
</div>
</div>
{/if}
{else}
{if isset($theme.photoFrame) && $theme.photoFrame != 'ice_default'}
{g->container type="imageframe.ImageFrame" frame=$theme.photoFrame
width=$image.width height=$image.height}
<div id="photo">
{g->image id="%ID%" item=$theme.item image=$image
fallback=$smarty.capture.fallback class="%CLASS%"}
</div>
{/g->container}
{else}
<div id="photo">
<div id="photoframe">
{g->image item=$theme.item image=$image fallback=$smarty.capture.fallback}
</div>
</div>
{/if}
{/if}
{else}
{$smarty.capture.fallback}
{/if}
{else}
{g->text text="There is nothing to view for this item."}
{/if}
</td> {* TD gsImageView *}
</tr>
{if $theme.params.navigatorPhotoBottom}
<tr align="top">
<td align="left" valign="top">
<div class="gbNavigatorBottom">
{g->theme include="navigator.tpl"}
</div>
</td>
</tr>
{/if}
</table>
</div> {* DIV gsImageView *} </td>
{if $theme.params.photoDescription || $theme.params.showMicroThumbs}
<td align="left" width="190px" valign="top">
<div>
{g->image item=$UserPhoto.userphoto image=$UserPhoto.userphoto maxSize=150}
</div>
{if $theme.params.showMicroThumbs}
<div class="gsContentDetail gcBorder1">
<div class="gbNavigatorMicroThums">
{g->theme include="navigatorMicroThumbs.tpl"}
</div>
</div>
{/if}
{if $theme.params.photoDescription}
<div class="gsContentDetail">
<div class="gbBlock gcBorder1">
{if !empty($theme.item.title)}
<h2> {$theme.item.title|markup} </h2>
{/if}
{if !empty($theme.item.description)}
<p class="giDescription">
{$theme.item.description|markup}
</p>
{/if}
</div>
<div class="gbBlock gcBorder1">
{g->block type="core.ItemInfo"
item=$theme.item
class="giInfo"}
{if $theme.params.showPhotoSizes}
{g->block type="core.PhotoSizes" class="giInfo"}
{/if}
{if $theme.params.showImageSize}
{assign var="childSize" value=$theme.item.size/1024|round}
{if $childSize > 0}
<div class="giInfo">
{if $childSize >= 1024}
{math equation="$childSize/1024" format="%.2f"} MB
{else}
{$childSize} KB
{/if}
</div>
{/if}
{/if}
</div>
<div id="gsSidebar">
{* Show the photo blocks chosen for this theme *}
{foreach from=$theme.params.photoUpperBlocks item=block}
{g->block type=$block.0 params=$block.1 class="gbBlock gcBorder1"}
{/foreach}
</div>
</div>
{/if}
</td>
{/if}
</tr>
</table>
</div> {* DIV ContentPhoto *}
{if $theme.pageUrl.view != 'core.ShowItem' && $theme.params.dynamicLinks == 'jumplink'}
<div class="gbBlock">
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.item.id`"}">
{g->text text="View in original album"}
</a>
</div>
{/if}
{* Download link for item in original format *}
{if !empty($theme.sourceImage) && $theme.sourceImage.mimeType != $theme.item.mimeType}
<div class="gbBlock gcBorder1">
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}" >
{g->text text="Download %s in original format" arg1=$theme.sourceImage.itemTypeName.1}
</a>
</div>
{/if}
{* Show any other photo blocks (comments, exif etc) *}
{foreach from=$theme.params.photoBlocks item=block}
{if $block.0 == 'exif.ExifInfo'}
<div id="exif" class="gcBackground2" style="position:absolute; left:0px; top:0px; visibility:visible;">
<table cellspacing="0" cellpadding="0" style="padding:1px;">
<tr>
<td style="padding-left:5px;" class="gbBreadCrumbBackground">
<h2>Exif</h2>
</td>
<td align="right" class="gbBreadCrumbBackground">
<div class="buttonAction buttonClose"><a href="javascript:void(0);" onclick="toggleExif('photo','exif'); return false;"
title="{g->text text="Close"}"></a>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="gcBackground1" style="padding-bottom:5px;">
{g->block type=$block.0 params=$block.1}
</td>
</tr>
</table>
</div>
{else}
{g->block type=$block.0 params=$block.1 class="gbBlock gcBorder1"}
{/if}
{/foreach}</div>
{* DIV gsContent *}
</td>
</tr>
</table>
=====================================================================
Do you think you could help out here?
Thanks
*****************************************************************
Gallery 425
http://www.gallery-425.net, http://www.gallery-425.info, http://www.gallery-425.org, http://www.gallery-425.co.cc