Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on December 24, 2012, 06:11:55 AM

Title: Facebook Likes Hide
Post by: vbgamer45 on December 24, 2012, 06:11:55 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3477)

(http://bit.ly/kZVDB6)

[glow=black,2,300]Facebook Likes Hide[/glow]
Developed by 4Kstore (http://www.smfsimple.com/index.php?action=profile;u=55) for SMFSimple.com (http://www.smfsimple.com/)
SMF 2.0 - 2.0.X



[glow=black,2,300]El soporte oficial de los desarrolladores de nuestros mods lo encontraras en SMFSimple.com
Official Support in www.SmfSimple.com (http://www.smfsimple.com/)
[/glow]





[glow=black,2,300]Description:[/glow]
With this mod you can hide content selected in any post and will only be visible if you click on the facebook like button

[glow=black,2,300]Descripcion:[/glow]
Con este mod podras ocultar contenido que selecciones dentro de cualquier post y solo sera visible si se da click en el boton me gusta de facebook



[glow=black,2,300]Features:[/glow]
1. Hooks used
2. Enable - Disable
3. Allow users to unhide the topic when they replied to
4. Show the button to guests
5. Time before reload the page
6. Facebook lang

[glow=black,2,300]Caracteristicas:[/glow]
1. Usa Hooks
2. Habilitar - Deshabilitar mod
3. Permitir a los usuarios ver el contenido oculto si responden al topic
4. Mostrar el boton a los invitados
5. Tiempo antes de recargar la pagina
6. Configurar el idioma de Facebook

Language Support | Lenguajes Soportados
English


Settings
Administration Center » Modification Settings » FBlikes Mod
(index.php?action=admin;area=modsettings;sa=Fblike)

Notes:
This Mod Uses Jquery.
This Mod Uses CSS3.
This Mod Uses Hooks.

License:
 * This SMF modification is subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this SMF modification except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/ (http://www.mozilla.org/MPL/)
 
[glow=black,2,300]Facebook Likes Hide[/glow]
[glow=black,2,300]IMAGES | IMAGENES:[/glow]
(http://i.imgur.com/WITTp.png)

(http://i.imgur.com/dPwt4.png)

(http://i.imgur.com/2Y0pS.png)

(http://i.imgur.com/svgzj.png)

(http://i.imgur.com/KOyLA.png)

(http://i.imgur.com/WITTp.png)
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 24, 2012, 02:41:36 PM
Readme updated.
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on December 24, 2012, 04:09:48 PM
well . i am happy to be the first to comment, commend and complain!

This mod will boost your traffic via facebook and i think it's commendable, but on the aspect of "complain"

Please i need any expert or all our masters here.

I need to remove restrictions on Guests. that is i need to edit some codes to enable Guests to "like" without registering or logging on my forum because what i am after is "like". people now finds it difficult to register on forum cos they meet many site by the day.
so i am not even after anybody registering. all i want is to "like" .

please somebody should help and tell me how to remove the "login or register" on Guest under cpanel , so they can just "like"


hope it will be possible :D
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 24, 2012, 04:21:36 PM
Can you put the list of your installed mods in your forum?
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on December 24, 2012, 05:09:37 PM
here they are

1.      SMF Gallery Lite    3.1.4    
2.    Optimus Brave    1.8.4    
4.    Tagging System SMFSIMPLE    1.0    ( removed)
5.    Google Translate for SMF 2.0    1.3    
6.    SEO Sitemap    2.2.1    
7.    Ohara YouTube Embed    1.0    
8.    Thank-o-matic    3.0    
9.    Custom Form Mod    1.7    
10.    Related Topics    1.401    
11.    Copyright and Footer Links    3.2    
12.    Google Tagged    2.0    
13.    SA Facebook    2.0.2    
14.    SA Affiliates    3.3.5.6    
15.    SMF 2.0.3 Update    1.0    
16.    Topic Rating Bar    0.7.2    
17.    Registered Links    3.0    (removed)
18.    Invitation Message In Your Face (IMIYF)    0.3.1    
19.    Remember Position After Login/Logout v1.0.3    1.3    
20.    Popos Smiley    1.0    
21.    Social Buttons    2.0    
22.    Redirect Error 404    1.0    (removed)
23.    Anti-Spam Links    1.0.1    
24.    Facebook Likes Hide    1.4    
25.    Ad Managment    3.0.1    
26.    Google Analytics Code    
27.    SimplePortal    2.3.5
28.    Aeva Media
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 24, 2012, 05:24:53 PM
The mod Registered Links put that text in your forum when you surf as guest...
Remove that mod and try.
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on December 24, 2012, 05:45:05 PM
i don't think it's from "registered link" mod because after removing , i still saw it. well i saw this code under
default/languages/Fblike.english.php  look at the bottom code ;)

<?php
global $scripturl;
$txt['fblike_admin_title'] = 'FBLikes Mod';
$txt['fblike_admin_title_desc'] = 'FBLikes Mod Settings';
$txt['fblike_enable'] = 'Enable FBlike';
$txt['fblike_guest_can'] = 'Show to guests';
$txt['fblike_message_unhide'] = 'Unhide When topic reply';
$txt['fblike_count'] = 'Time before reload the page';
$txt['fblike_count_seconds'] = 'Seconds';
$txt['fblike_button_lang'] = 'FB Language';
$txt['fblike_bbc'] = 'Hide content using facebook';
$txt['fblike_all_ok'] = 'Thanks for sharing, now you can see the content!!';
$txt['fblike_all_bad'] = 'Something went wrong, contact the administrator';
$txt['fblike_hidden_txt'] = 'This content is hidden, if you want to see you need to click in facebook button';
$txt['fblike_guest_txt'] = 'The guest can\'t se this content, Please <a href="'.$scripturl.'?action=register">Register</a> or <a href="'.$scripturl.'?action=login">Logging</a>';
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 24, 2012, 06:25:59 PM
You need to check in the admin panel the option "show to guests"
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on December 24, 2012, 11:47:17 PM
Quote from: 4Kstore on December 24, 2012, 06:25:59 PM
You need to check in the admin panel the option "show to guests"
if i click "show on guest" it means they wouldn't the "like" button anymore rather the hidden contents.....
all i need is to remove the "login or register" restrictions for guest so they can only the "like" button rather than "login or register"  and i think it's all about editing
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 26, 2012, 04:46:09 AM
Try removing this part from Sources/Fblike-hooks.php


if(empty($modSettings['fblike_guest_can']) && $user_info['is_guest']) //Show message to guests if the mod is disabled to guests
{
$fbml = '<div class="fblike" id="fblike">
'.$txt['fblike_guest_txt'].'
</div>';
return $fbml;
}


I am in vacations and this is not my computer, I can't help you anymore from here.. sorry
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on December 26, 2012, 08:39:21 AM
it works!! :D

thanks alot
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 26, 2012, 03:39:04 PM
Quote from: johnpaul2k2 on December 26, 2012, 08:39:21 AM
it works!! :D

thanks alot

Great!
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on December 31, 2012, 04:23:29 AM
Some of my visitors are complaining of "not seeing the hidden content(s)" while browsing through Nigeria popular Mobile Browser called Operamini. though i tried it myself and i noticed it. i know that this Mod is made of jQuery which works like Java script .

when you click, it will reload immediately and open the "hidden content" and such isn't applicable to such browser.

any solution to that browser??


i am using wap2 for mobile
Title: Re: Facebook Likes Hide
Post by: 4Kstore on December 31, 2012, 05:17:24 AM
I can't reproduce that error because I don't use opera mini, but a possible solution is disable this mod for cellphones..
Title: Re: Facebook Likes Hide
Post by: johnpaul2k2 on January 02, 2013, 02:35:47 AM
how will i disable it for mobile users
Title: Re: Facebook Likes Hide
Post by: carlosgq on March 02, 2013, 04:05:15 PM
Hola, podrían de favor decirnos que archivo modificar para poder traducir al español este grandioso mod? solo quiero que el mensaje que los visitantes ven, que está en ingles, lo pueda modificar y traducir al español, o ponerle lo que quiera, como "contenido oculto, registrese o logueese para verlo" 
gracias por el mod, saludos