Display Tags, Views, etc under photos instead of sidebar

ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Sat, 2014-04-05 16:59

Hey guys, please help me out, i want to show tags and other photo details under photo. I dont like it on the side bar. Please guide me a way. I am waiting... please

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2014-04-05 18:53

http://galleryproject.org/node/111733

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Mon, 2014-04-07 07:34

Sir, it didnt help me, and i have some other problems if you think you answer them, please reply me...

[1] that code was mentioned in the post you shared above
*Before*:
---------------------------
</div>
<? if (($theme->photo_descmode == "bottom") and ($_description)): ?>
<div id="g-info"><div class="g-description"><?= $_description ?></div></div>
<? endif; ?>
<?= $theme->add_paginator("bottom", FALSE); ?>
<?= $theme->photo_bottom() ?>
</div>
<?= $script ?>

*After*:
---------------------------
</div>
<? if (($theme->photo_descmode == "bottom") and ($_description)): ?>
<div id="g-info"><div class="g-description"><?= $_description ?></div></div>
<? endif; ?>
<?= $theme->add_paginator("bottom", FALSE); ?>
<?= $theme->photo_bottom() ?>
</div>
<?= $script ?>
<?= iptc_block::get("iptc", $theme) ?>

in that code how i can put the block name that i have to show in it? how i am suppose to find the block name? what to do if i have to show tags, random photo or anything else?

[2] How can i add manual og:description it the module facebook opengraph code? i mean i dont want to add description to each and every photo, so i want one manually added description to all the photos by modifying this code but there is no description code that i can modify and put my own text... and want my title to be shown as 'filename.gif | Mixgif.com, Funny Photos online' instead of 'filename.gif' in facebook share. i some how managed to change title in other pages.
<?php defined("SYSPATH") or die("No direct script access.");/**
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2013 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class facebook_opengraph_theme {
static function head($theme) {
if ($theme->item()) {
$item = $theme->item();
$image_url = $item->thumb_url(true);
$page_url = url::abs_current(true);
return "<meta property=\"og:image\" content=\"$image_url\"/>
<meta property=\"og:title\" content=\"$item->title\"/>
<meta property=\"og:type\" content=\"article\"/>
<meta property=\"og:url\" content=\"$page_url\"/>";
}
}

}

[3] please modify watermark module that can watermark gif animations, current one doesn't work with gif files, instead it converts files into non-animated gif with watermark.

[4] my carousel block isn't showning more then one item, what to do? settings is fine, sometimes for 1 second it shows more items as i set in settings, but other second it shows 1 photo again. :(

Please reply these questions if possible, this is my gallery http://www.mixgif.com

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Mon, 2014-04-07 07:37

and of course, thanks for your precious reply... :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-04-07 13:36
Quote:
how i am suppose to find the block name?

what is the name of the module that you want the data from?

Quote:
How can i add manual og:description it the module facebook opengraph code?

I think there is a open-graph module have you tried it?

Quote:
please modify watermark module that can watermark gif animations,

Please find a developer that can add this and contribute back to the community.

Quote:
my carousel block isn't showning more then one item, what to do?

Show me a screenshot of the settings for one of the blocks and I will try to replicate the issue.

In the future please have one issue per thread it will get hard to follow later in this thread.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Mon, 2014-04-07 16:07
Quote:
how i am suppose to find the block name?
what is the name of the module that you want the data from?

there are plenty of modules that i want to show, but right now i want to show 'About This Photo' module under the photo, e.g. photo tags, views, etc

Quote:
How can i add manual og:description it the module facebook opengraph code?
I think there is a open-graph module have you tried it?

yes sir, i am already using that tag, but as i told i cannot add description to all the photos, so i want one description for all. When i check my source code of site, i shows og:description but as i dont add any description so its empty, but when i open open graph module to add manual description, i am unable to see og:description in module.

Quote:
please modify watermark module that can watermark gif animations,
Please find a developer that can add this and contribute back to the community.

Thats what i am thinking of... i hope to get over it as soon as possible

Quote:
my carousel block isn't showning more then one item, what to do?
Show me a screenshot of the settings for one of the blocks and I will try to replicate the issue.

i am attaching that screenshot below, hope you fix it.

Quote:
In the future please have one issue per thread it will get hard to follow later in this thread.

Sorry for that, Sir. I wasn't expecting someone to reply, but i saw your reply i posted all my questions quickly. :)

Dave

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-04-07 18:08
Quote:
but right now i want to show 'About This Photo' module under the photo

So you would add:
<?= about_this_photo_block::get("simple", $theme) ?> to some place in photo.html.php of the theme you are using. It should show the same info as in the sidebar. If you don't want the sidebar info you will have to remove it from the sidebar admin to the inactive side but still have the module activated.

Quote:
my carousel block isn't showning more then one item, what to do?
Show me a screenshot of the settings for one of the blocks and I will try to replicate the issue.

See if adding the checkbox to start auto works. I will have to check at home later today if those setting work for me.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Mon, 2014-04-07 18:26

thanks, it worked, i am able to show meta data under photos, but still not the way i wanted, i mean i just want to show views and tags, how to hide other options? thanks in advance...

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Mon, 2014-04-07 18:33

ok, i edited the original 'about this photo' file and managed to achieve what i wanted. Thank you sir, you are great

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-04-07 21:39
Quote:
my carousel block isn't showning more then one item, what to do?

Enable the Carousel should auto scroll. checkbox.

Quote:
but as i told i cannot add description to all the photos, so i want one description for all.

Then you need to edit the module manually.
For example the code currently is:
<meta property=\"og:title\" content=\"$item->title\"/>
change to
<meta property=\"og:title\" content=\"$item->title | Mixgif.com and other text you want. \"/>
similar to the description.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Tue, 2014-04-08 03:49

guess what sir?
i checked my source code after disabling the open graph module from my site, but in my source code i still can see those og: meta tags, it means there is any other module as well who is inserting those tags in my header, i have to check all them manually and deleted repeated tags and modify the one i want. any way that helped alot. Here is what i found
[url=view-source:http://www.mixgif.com/Unbelievable/Crow-Story]view-source:http://www.mixgif.com/Unbelievable/Crow-Story[/url]
Although i am still unable to fix the carousel problem but i hope to fix it somehow or can i get any alternate of that module?

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Tue, 2014-04-08 04:51

sorry to bother you sir, its done and i have added proper og tags to my pages, now only one serious problem is left, and that is Carousel problem.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-04-08 16:24

Enable the Carousel should auto scroll. checkbox.

Failing that send am a Private Message (write to author link) with login credentials.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Tue, 2014-04-08 16:27

ok i am going to send you author detail

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2014-04-09 01:31

got your login info. then I proceeded to the carousel admin page
I checked the "Enable the Carousel should auto scroll." and it works as designed.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Wed, 2014-04-09 14:42

but sir, i dont want it to auto scroll, i just want desired number of photos at once. no scrolling sir. :(

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2014-04-09 14:55
Quote:
i just want desired number of photos at once.

then you need to change the setting to show more than one item.
Adjust the "number of thumbs to show".

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ahtishamafzal

Joined: 2014-04-05
Posts: 16
Posted: Thu, 2014-04-10 13:07

ok thanks sir