fb_slidein_xh

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

fb_slidein_xh

Post by maeg » Sun Sep 08, 2013 1:57 pm

Hi

A small new plugin, that gives you a sliding facebook link.

The link have a fixed position, in the right site.

You can se a demo on CMSimple-xh.dk

I hope you like :)

BTW: I can get it to work by calling the facebook images from the plugin images folder - thats why i use the cmsimple main images folder to the facebook.png images. If any one have a solution to fix that - let me know :D

Download

This plugin is made by the codes in Tata's thread http://www.cmsimpleforum.com/viewtopic.php?f=8&t=6543
Last edited by maeg on Sat Sep 14, 2013 12:54 pm, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: fb_slidin_xh

Post by cmb » Sun Sep 08, 2013 2:20 pm

Hi maeg,
maeg wrote:A small new plugin, that gives you a sliding facebook link.
That's a nice idea! :)
maeg wrote:BTW: I can get it to work by calling the facebook images from the plugin images folder - thats why i use the cmsimple main images folder to the facebook.png images. If any one have a solution to fix that - let me know :D
You can change line 24 of index.php:

Code: Select all

        <img src="'.$pth['folder']['plugins'].'fb_slidein/images/facebook.png" alt="'.$pcf['alt'].'">
This will use plugins/fb_slidein/images/facebook.png.

BTW: the file plugins/fb_slidein/fb_slidein.js will never be used (apparently it is not necessary at all). The problem is line 18 in index.php:

Code: Select all

    $hjs .= '<script type="text/javascript" src="'.$pth['folder']['plugins'].'fb_slidein/fb_slidein.js"></script>'."\n";
Writing something to $hjs has only effect, if that is done before <?php echo head();?> is processed. But if <?php echo fb_slidein()?> is inserted before </body>, that's already to late. A possible solution is to use $bjs instead of $hjs in line 14 and 18 (works only since CMSimple_XH 1.5.4). But as I said: the script might not be necessary at all.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: fb_slidin_xh

Post by maeg » Sun Sep 08, 2013 4:04 pm

Hi


Thx to Cmb for the help.

Just uploadet a new version

Demo and download

tanavots
Posts: 72
Joined: Sat Feb 25, 2012 4:18 pm

Re: fb_slidin_xh

Post by tanavots » Mon Sep 09, 2013 10:37 am

Hey,

There is little mistake in CMB code folder name: fb_slidein --> fb_slidin

Best

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: fb_slidin_xh

Post by cmb » Mon Sep 09, 2013 10:45 am

tanavots wrote:There is little mistake in CMB code folder name: fb_slidein --> fb_slidin
Indeed, the code as is does not work. But I would suggest to rename the plugin folder from fb_slidin/ to fb_slidein/, because fb_slidein is used as the plugin name in several other places (for instance in config.php).
Christoph M. Becker – Plugins for CMSimple_XH

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: fb_slidin_xh

Post by maeg » Mon Sep 09, 2013 2:22 pm

Hi

Ohh yes - my fault.

Just uploadet a new file with the right name


Sorry :oops:

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: fb_slidein_xh

Post by maeg » Sat Sep 14, 2013 12:58 pm

Hi

I just released fb_slidein_xh version 1beta03

In the new version it is possible to set the position from the top in px, and select side "left or right"

Download

Have fun

Torsten.Behrens
Posts: 522
Joined: Thu May 22, 2008 7:27 am
Location: Germany / Schleswig-Holstein
Contact:

Re: fb_slidein_xh

Post by Torsten.Behrens » Sat Sep 14, 2013 3:18 pm

maeg wrote:
You can se a demo on CMSimple-xh.dk
Demo: Link to open cmsimple-xh.dk in a new Tab - no more ?!? No fb or tw?
Torsten Behrens
CMSimple Templates

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: fb_slidein_xh

Post by maeg » Sat Sep 14, 2013 3:53 pm

Torsten.Behrens wrote: Demo: Link to open cmsimple-xh.dk in a new Tab - no more ?!? No fb or tw?
Ups - forgot to change the link :oops: . Now it goes to fb and tw

Have a nice day

tanavots
Posts: 72
Joined: Sat Feb 25, 2012 4:18 pm

Re: fb_slidein_xh

Post by tanavots » Sat Sep 14, 2013 5:03 pm

Hey!
maeg wrote: I just released fb_slidein_xh version 1beta03
Nice work, but did You forgot to change version number in version.nfo file? Still 1beta2. And Visit downloadpage link is also broken.

Post Reply