vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Bebo button in postbit (https://vborg.vbsupport.ru/showthread.php?t=145408)

Bratz-Designs 04-20-2007 09:00 PM

Bebo button in postbit
 
Hey all,

Why would I become a member of Bebo?
Who wouldn't want to be a member of Bebo? Everyone who is anyone is a member of Bebo. Even the Queen is on Bebo*. (Although her homepage is private and only visible to her personal friends, footmen and corgis. You can tell when she's online though, because the internet is flown at half mast.)
Bebo is the online community allowing you to share photos and blogs, draw on your own and other member's White Boards and, oh, a ton of other stuff too. A ton. Literally a ton.**
Perhaps you're a student? If you're at school then instead of bunking off maths and having a crafty smoke round the back of the chemistry labs, why not use your time more wisely and get your school or college onto Bebo where you can hang out with other students?
Ditto if you're at college or University. Why not try getting up earlier than lunchtime for once and getting online to Bebo? Plus you can join your old school or college as an Alumni so you can up with past students or warn current ones about those weird teachers.

http://www.bebo.com

1. Make a profile field
Profile field type = Single-line text box
Title: Bebo ID
Description: Type your Bebo ID.
You can leave the rest to default.

**Note down the number of the field! Example: field32. You need to replace the X in the next code with the number!**


2. Template changes - In postbit_lecacy & Postbit [2 changes]

Find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After ad:
Code:

<!-- Bebo button start -->
<if condition="$post[fieldX]"><a href="http://www.bebo.com/Profile.jsp?MemberId=$post[fieldx]" alt="View my bebo page!" target="_blank">
<img src="images/misc/bebo.gif" border="0"></a>
</if>
<!-- Bebo button end -->

3. Button upload

Upload it in your: images/misc folder!

Bratzer
http://www.bratz-designs.com

ShawneyJ 04-21-2007 07:34 AM

wow first to post nice man thx, members have been asking for this. good job :)

edit: i had to make me code look like this in order for it to work.

<!-- Bebo button start -->
<if condition="$post[field12]"><a href="$post[field12]" alt="View my bebo page!" target="_blank">
<img src="images/misc/bebo.gif" border="0"></a>
</if>
<!-- Bebo button end -->

sorry just didnt no that i had to remove "http://www.bebo.com/Profile.jsp?MemberId=" for this to work.
andless i missed read something lol.

TCE Killa 01-09-2008 09:05 PM

Thanks man does this work for 3.6.8?

zhabbo 01-13-2008 07:10 PM

Quote:

Originally Posted by TCE Killa (Post 1418616)
Thanks man does this work for 3.6.8?

Yep. It does.

Lombardo 01-21-2008 10:44 PM

why everytime someone clicks it it takes them to their own bebo page?

ive tried all the different url's but it doesnt make a difference.

zhabbo 01-27-2008 12:40 PM

Yeah, i am now actually having troubles, I can't make the link right.!

glennybee 02-13-2008 10:05 PM

Nice one, just installed and works perfect!

Cheers


All times are GMT. The time now is 01:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01907 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete