A+ A A- show on home page

Premium sports magazine Joomla template with clean, easy to customize and unique design.
GK User
Mon Apr 09, 2012 2:05 am
http://muaythaiakademia.com/ on home page show A+ A A- how to remove that?
User avatar
Junior Boarder

teitbite
Mon Apr 09, 2012 3:14 am
Hi

Add this code to css:

Code: Select all
#gkTools {
    display: none;
}
User avatar
Moderator

GK User
Mon Apr 09, 2012 9:31 pm
Thank you, how now to move module closer like on demo, because after i remove that its a big space between modules
User avatar
Junior Boarder

teitbite
Tue Apr 10, 2012 1:38 am
Hi

It's a breadcrumbs position showing there, so if You remove it You will loose it's functionality. But if You wish You can use this code:

Code: Select all
#gkBreadcrumb {
    display: none;
}
User avatar
Moderator

GK User
Tue Apr 10, 2012 4:49 am
Thank you!!!
Home
http://muaythaiakademia.com/
Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Etiam porta sem malesuada magna mollis euismod. Aenean lacinia bibendum nulla sed consectetur. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

this is showing on facebook when i try to put my webpage no idea where this text coming from, on google+ is great only on facebook got this. Any advice?
User avatar
Junior Boarder

teitbite
Tue Apr 10, 2012 4:27 pm
Hi

Please guide me exacly where I can see this text. I cannot find it.
User avatar
Moderator

GK User
Tue Apr 10, 2012 8:17 pm
teitbite wrote:Hi

Please guide me exactly where I can see this text. I cannot find it.

Anywhere on facebook just try to put http://muaythaiakademia.com/ on any posts on update status will be shown that message, also no thumbnails for images. On google + work very good
User avatar
Junior Boarder

teitbite
Wed Apr 11, 2012 11:46 pm
Hi

I believe You are talking about frontpage. Right ? Please check what is set as a type of this menu item. If it's an article or futured articles than You may not see it because of disabled content part, but script can still see it all.
User avatar
Moderator

GK User
Thu Apr 12, 2012 9:52 pm
Yes its like that you say. So what i should change? What to put on menu item?
User avatar
Junior Boarder

teitbite
Fri Apr 13, 2012 12:36 am
Hi

The most common practise is to use feautured articles type and present some articles. But You can create an empty article and show it instead with article layout type.
User avatar
Moderator

GK User
Fri Apr 13, 2012 11:32 am
I make like you say and still same. Also i notice then other links for example http://muaythaiakademia.com/smoker-fights on facebook thumbnails image dont show on google+ is ok.
User avatar
Junior Boarder

teitbite
Sat Apr 14, 2012 6:42 pm
Hi

I do not know about google, but I believe they must mess up something, becuase if facebook can use a picture than there everything is ok on site.

For menu issue please send me an access to joomla panel.
User avatar
Moderator

GK User
Sat Apr 14, 2012 7:58 pm
i send you message and thx lot of
User avatar
Junior Boarder

teitbite
Sun Apr 15, 2012 3:24 am
Hi

Plese tell me how did You posted frontpage on facebook ? I cannot see a like button anywhere.
User avatar
Moderator

GK User
Sun Apr 15, 2012 10:58 am
teitbite wrote:Hi

Plese tell me how did You posted frontpage on facebook ? I cannot see a like button anywhere.


Simple just copy http://muaythaiakademia.com/ and paste anywhere on status update or on some post. It will be good if work like on google+.
User avatar
Junior Boarder

teitbite
Mon Apr 16, 2012 6:47 am
Hi

Ok. I was never paying attention to this social stuff but looks like facebook stopped showing a random image from pages. I've found a very good forum where number of ways how to set an image is available. Please take a look Yourself http://stackoverflow.com/questions/6892 ... n-facebook

Let me know what You think and we're gonna figure out something together.
User avatar
Moderator

GK User
Mon Apr 16, 2012 10:41 pm
teitbite wrote:Hi

Ok. I was never paying attention to this social stuff but looks like facebook stopped showing a random image from pages. I've found a very good forum where number of ways how to set an image is available. Please take a look Yourself http://stackoverflow.com/questions/6892 ... n-facebook

Let me know what You think and we're gonna figure out something together.

I will check also all others yours template work great in facebook just this one i got some problem
User avatar
Junior Boarder

teitbite
Tue Apr 17, 2012 2:22 am
Hi

Are You using the latest version ? I've narrowe the porblem to a plugin which should look for facebook informations. Please let me know so I'll install it and try to figure out more on my copy.
User avatar
Moderator

GK User
Tue Apr 17, 2012 8:56 am
teitbite wrote:Hi

Are You using the latest version ? I've narrowe the porblem to a plugin which should look for facebook informations. Please let me know so I'll install it and try to figure out more on my copy.


Just i notice that article from K2 dont show image other articles showing if u can check this maybe i made something wrong in K2 im not so sure. This link for example http://muaythaiakademia.com/contact showing image on Facebook
User avatar
Junior Boarder

teitbite
Wed Apr 18, 2012 5:05 pm
Hi

Yes I've noticed that it's a problem about K2 articles too. This is why I was trying to come up with a code to dynamicaly set <og:image> value. To point which image should be used exacly.

Try one last thing to test if it's a problem of a template or K2 related. Please in template's /html folder change name "/com_k2" to "/_com_k2". Check if image is being set propperly, if not we can start looking for solution on K2 forum than :) Of course if I do not figure out to overwrite open graph values.
User avatar
Moderator

GK User
Thu Apr 19, 2012 2:10 am
teitbite wrote:Hi

Yes I've noticed that it's a problem about K2 articles too. This is why I was trying to come up with a code to dynamicaly set <og:image> value. To point which image should be used exacly.

Try one last thing to test if it's a problem of a template or K2 related. Please in template's /html folder change name "/com_k2" to "/_com_k2". Check if image is being set propperly, if not we can start looking for solution on K2 forum than :) Of course if I do not figure out to overwrite open graph values.

I change name "/com_k2" to "/_com_k2" but no result . this part i dont understand Check if image is being set propperly
User avatar
Junior Boarder

GK User
Thu Apr 19, 2012 3:23 am
There is one commercial extension for that :( on k2 forum no solution i check it http://extensions.joomla.org/extensions ... I7fQ%3D%3D
User avatar
Junior Boarder

teitbite
Fri Apr 20, 2012 2:35 am
Hi

I've get an answer from programmers, that our Open Graph plugin is not supporting K2 articles yet (only regular joomla articles). Try unpublish this plugin so facebook should use it's own system to fill the blanks.
User avatar
Moderator

GK User
Fri Apr 20, 2012 5:37 am
teitbite wrote:Hi

I've get an answer from programmers, that our Open Graph plugin is not supporting K2 articles yet (only regular joomla articles). Try unpublish this plugin so facebook should use it's own system to fill the blanks.

Hi Soory again but where to find that Open Graph plugin i check on extension->plugin manager but not such name there
User avatar
Junior Boarder

teitbite
Fri Apr 20, 2012 6:20 pm
Hi

Ok. I had a wrong impression about this. Anyway I'm trying to fix it by hardcoding on a page of other client with the exact same problem. Please keep attention to thread https://www.gavick.com/forums/fb-gk4/og ... 986#p72986 . When I'll be able to solve it I'll write the solution there.
User avatar
Moderator

GK User
Sun Apr 29, 2012 3:06 pm
any news ?
User avatar
Junior Boarder

teitbite
Mon Apr 30, 2012 8:52 am
Hi

Yes problem is solved. Like I've said I was working on the same issue for another user, so please simply check the solution in His thread:

https://www.gavick.com/forums/fb-gk4/og ... 986#p72986
User avatar
Moderator

GK User
Tue May 01, 2012 3:05 am
// OpenGraph support
$template_config = new JConfig();
$uri = JURI::getInstance();
$article_attribs = json_decode($this->item->attribs, true);

$og_image = '';
if( preg_match( '/\<img.*src=.*?\>/', $this->item->text ) ){
$imgStartPos = JString::strpos( $this->item->text, 'src="' );
if( $imgStartPos ) $imgEndPos = JString::strpos( $this->item->text, '"', $imgStartPos + 5 );
if( $imgStartPos > 0 ) $og_image = JString::substr( $this->item->text, ( $imgStartPos + 5) , ( $imgEndPos - ( $imgStartPos + 5 ) ) );
}

$og_desc = strip_tags( $this->item->introtext );
$og_image = 'http://' . $_SERVER['SERVER_NAME'] . '/' . $og_image;

$og_title = $this->escape($this->item->title);
$og_type = 'article';
$og_url = $cur_url;
$og_site_name = $template_config->sitename;

if(isset($article_attribs['og:title'])) {
$og_title = ($article_attribs['og:title'] == '') ? $this->escape($this->item->title) : $this->escape($article_attribs['og:title']);
$og_type = $this->escape($article_attribs['og:type']);
$og_url = $cur_url;
$og_image = ($article_attribs['og:image'] == '') ? '' : $uri->root() . $article_attribs['og:image'];
$og_site_name = ($article_attribs['og:site_name'] == '') ? $template_config->sitename : $this->escape($article_attribs['og:site_name']);
$og_desc = $this->escape($article_attribs['og:description']);
}

$doc = JFactory::getDocument();
$doc->setMetaData( 'og:title', $og_title );
$doc->setMetaData( 'og:type', $og_type );
$doc->setMetaData( 'og:url', $og_url );
$doc->setMetaData( 'og:image', $og_image );
$doc->setMetaData( 'og:site_name', $og_site_name );
$doc->setMetaData( 'og:description', $og_desc );

is this a solution? if it is i try and not work
User avatar
Junior Boarder

teitbite
Wed May 02, 2012 3:54 pm
Hi

It's hard to tell what's that code at all :) Ok. Please send me an FTP access and I'll see what's not ok on Your site. Are You using regular joomla articles or K2 ?
User avatar
Moderator

GK User
Wed May 02, 2012 11:35 pm
i send you pm about frp
User avatar
Junior Boarder

GK User
Thu May 03, 2012 12:15 am
Thank you now work! Can you pls send me file to know what exactly is changed to use on other sites?
User avatar
Junior Boarder

teitbite
Thu May 03, 2012 1:21 pm
Hi

I haven't done anything ;/ So if it started to work than it has to be a cache issue. So when finaly cache were replaced the problem gone too. It happens somethime :)
User avatar
Moderator


cron