PDA

View Full Version : Mini Mods - YoBroMoFo - Facebook FanBox widget


TimberFloorAu
01-28-2010, 10:00 PM
This works on forumhome.

Demo http://www.yobromofo.com/forum/forum.php ( guests can view )

P L E A S E C L I C K I N S T A L L

What does this do?

Ok this mod adds facebook fanbox to your forum home page. Expand and collapses.

Takes 2 minutes to do code edits.

1 template file to edit.
0 to upload

You must have a facebook account, and can get their widget from here:

Just goto http://www.facebook.com/pages/create.php

Please read the instructions CAREFULLY

I will NOT assist those who do not mark this as Installed.
Other sites copying VB.org Modifications including ours, do not hotlink our files ! Do not reproduce this modification unless you credit Me and VB.org as the source publisher.

Special thanks to Cellarius for his Collapsible Boxes Tutorial

AzzidReign
01-29-2010, 02:46 AM
Looks good, just don't know how my users will feel if their pictures are randomly shown on my site...It would be cool just to have a thing telling how many fans there are and to have a fan button :P But I'm sure I can figure out how to do that.

Good work :)

ijob
01-29-2010, 04:34 AM
quick question b4 I install. Can this be used to target other 'groups' of people belonging a particular 'network'?

TimberFloorAu
01-29-2010, 04:40 AM
No idea. Check the code over at developers corner Facebook

Magz
01-29-2010, 04:56 AM
Looking good, installed without hitch.

TimberFloorAu
01-29-2010, 04:58 AM
Thanks Magz - Looks great !!!!

sumampouw
01-29-2010, 05:33 AM
Nice...
Thank you :)

dacho
01-29-2010, 05:42 AM
Thanks it's look good

Kingdombuilder
01-29-2010, 05:44 AM
Installed and looking good, thanks...

ManagerJosh
01-29-2010, 05:44 AM
Can it support multiple facebook fan pages?

Kingdombuilder
01-29-2010, 05:54 AM
Can it support multiple facebook fan pages?

I would image that you would just duplicate for another account...

iguano
01-29-2010, 06:40 AM
Installed thanks but in the lateral block, is better for me.:up:

abdobasha2004
01-30-2010, 06:52 AM
very nice
better than the java script

GrossKopf
01-30-2010, 09:08 AM
The link in your instructions are wrong to create the Fan box. The correct link is http://www.facebook.com/facebook-widgets/fanbox.php

COL NIL SATIS
01-30-2010, 07:44 PM
looks promising this!!!

w-elbalad.com
01-30-2010, 08:17 PM
looking good, thanks...

COL NIL SATIS
01-31-2010, 04:41 PM
Installed and working great...how would i centre it mate??? also rated 5

AdamFL
01-31-2010, 04:42 PM
Thank you ! :)

TimberFloorAu
01-31-2010, 06:44 PM
Havent tested but try:

Adding <cente> tags as below


<!-- This is the content for fan box from FACEBOOK-->
<center>
<!--facebook script content goes here see readme -->
</center>
<!-- End content from facebook FAN BOX-->

Zaiaku
01-31-2010, 11:03 PM
If I had more members using facebook this would be installing this now. I'll get this tagged so I could use it later, Great Work!

TimberFloorAu
01-31-2010, 11:09 PM
Personally I cannot stand facebook.
I dont actually have this product/mod installed.

But hundreds of our members think Facebook is the bees knees... I am in the minority lol

tunerclub.net
02-01-2010, 03:58 AM
it may just be me... but i cant find in the readme where it says to put the code in the actual file

tunerclub.net
02-01-2010, 04:10 AM
ok, i figured it out...

is there a way to make it collapsed by default?

TimberFloorAu
02-01-2010, 04:13 AM
Click Install ;)

By Cellarius:

Collapsed as default? Yes, but...

There is a way default the box to be collapsed by default. But this it's quick and dirty, and really not recommended to use. Basically, you have to add display:none to the style of the collapsing container, like so:

Code:

<div class="blockrow" id="cel_dummy" style="display: none;">

Now, there are two major drawbacks:

* any user with javascript disabled will not be able to open the box, and the box will show the wrong icon.
* vB at this point only saves information on closed boxes to a cookie; so if you reload the page, the box will always be closed, because vB will not remember that it has been opened.

COL NIL SATIS
02-01-2010, 06:37 PM
Havent tested but try:

Adding <cente> tags as below


<!-- This is the content for fan box from FACEBOOK-->
<center>
<!--facebook script content goes here see readme -->
</center>
<!-- End content from facebook FAN BOX-->


cheers mate!!! thank you ;)

COL NIL SATIS
02-01-2010, 06:39 PM
Is there a way to have more than 32 members in the box.... i changed the 32 to 48 but the 48 dont fit in the box??? any ideas...how to make the box bigger or longer lol

TimberFloorAu
02-01-2010, 07:28 PM
Nope sorry.

COL NIL SATIS
02-02-2010, 07:38 PM
No problem!!!! thanks for the reply though

COL NIL SATIS
02-06-2010, 04:10 PM
anyone know how too have say 50 members in the box????

TimberFloorAu
02-06-2010, 07:57 PM
Perhaps contact Facebook API developers. There code is limiting the number of "friends" I would imagine because the script fires multiple requests, and they deem 32 as their limit

COL NIL SATIS
02-07-2010, 12:10 PM
Ahh right ok mate..i will try that ..cheers

COL NIL SATIS
02-07-2010, 12:18 PM
my page has gone??? any ideas...anyone else having issues

nekiw
02-09-2010, 04:16 PM
how can I implement it in a forumblock on right side? please let me know

TimberFloorAu
02-09-2010, 06:32 PM
I would imagine, not having created forum blocks.

Create new forum block, title it Facebook Fanbox

Then add the html from facebook ( you will not need our code ) And size the fanbox according to your forum block.

Pretty simple stuff I think Nekiw, but do some investigating first

Boosted Panda
02-09-2010, 06:45 PM
The widget is super easy. Just copy and paste the code into the widget and adjust the size.

TimberFloorAu
02-09-2010, 06:48 PM
Cheers Matt

crazyace
02-09-2010, 08:38 PM
The link in your instructions are wrong to create the Fan box. The correct link is http://www.facebook.com/facebook-widgets/fanbox.php

Please update this in the instructions :D

crazyace
02-09-2010, 10:12 PM
Any way to make it fluid? Also any way to make it line up with the collapse bar above it?

nekiw
02-10-2010, 06:38 AM
thank you for replies, but I dont understand where to make new forum blocks.
when I goto forum blocks manager all that I can add is preset blocks.
I cant find anywhere to add my own code.

TimberFloorAu
02-10-2010, 06:45 AM
1. thanks for the link update.

2. no it cannot be made fluid.

3. see attached image. Goto forums and Moderators, add new forum block, choose vbblock.blocktype_html

See image below

Shanti Nanda
06-07-2010, 08:10 PM
<font color="DarkOrchid">Now that page just show a "Like Box", no a "Fan Box"... I tried to find the Fan Box now, as It shows on the fist post, but nothing... and I tried to use the codes for that Like Box but didn't work, so maybe we need a update.</font>

wierdo124
06-09-2010, 02:35 PM
Mine won't work. The code that you say is there, isn't there on my style i guess. Using Brave.

CapitanoN6
08-14-2010, 09:49 PM
is possible made this for user page and when you click you become friend and not "like" ????

Gamelobby
05-20-2011, 05:03 AM
I would imagine, not having created forum blocks.

Create new forum block, title it Facebook Fanbox

Then add the html from facebook ( you will not need our code ) And size the fanbox according to your forum block.

Pretty simple stuff I think Nekiw, but do some investigating first

The widget is super easy. Just copy and paste the code into the widget and adjust the size.

1. thanks for the link update.

2. no it cannot be made fluid.

3. see attached image. Goto forums and Moderators, add new forum block, choose vbblock.blocktype_html

See image below

I made it & it works great on top like originally planned, but i made one for the sidebar/block but there is this red x error image box showing that doesn't show on top of forums.
"{vb:rawphrase latest_bets}"
https://vborg.vbsupport.ru/attachment.php?attachmentid=129291&d=1305871110
Can i just remove some of the code, or will that screw up the connection.?

> Also is there any way to shift it over so i can add another row of pics, or center it so it doesn't seem off to one side.?


Thanks
:D



*edit*
I removed this part of the code & it appears to be fine, but... is it going to cause issues.?

<a class="collapse" id="collapse_cel_dummy" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_cel_dummy_img}_40b.png" alt="{vb:rawphrase latest_bets}" /></a>

red-dna
10-27-2012, 10:04 AM
Mark as Installed, because here i found the way to make a block with my fanpage
Thanks TimberFloorAu for the great idea and the help