vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Widgets in Profile Editable by Members (https://vborg.vbsupport.ru/showthread.php?t=222546)

RTMdotORG 09-04-2009 10:00 PM

Widgets in Profile Editable by Members
 
1 Attachment(s)
Widgets in Profile
by RTMdotORG

Description: This adds a Widget in a table to your member profiles, using Widgetbox.
Your members will be able to add/edit their widget through the usercp.
Search through Widgetbox for a widget you like then click "GET WIDGET"
and look for a code that looks like this:
d5283df5-c137-45a0-8474-632f88a9a4ce
Then copy and paste into the profile field.
This should work with 3.5-3.8.

Installation Instructions:

Code:

AdminCP>>>User Profile Fields>>>Add new user profile field

Title: WidgetBox Widget

Description: Add your own widget to your profile!<br />
Visit <a href="http://www.widgetbox.com">WidgetBox</a> to choose the one you would like.<br />
Then click "GET WIDGET" and copy the part of the link that looks like this: <br /><font color="red">d5283df5-c137-45a0-8474-632f88a9a4ce</font><br />

Then add to the space below.

You may edit the rest to your likings.

Then go to Edit Templates for whichever template you want this to show for.
Memberinfo Templates>>>MEMBERINFO
Find:
Code:

<!-- / link bar -->
Add Directly Below:
Code:

<if condition="$userinfo[fieldX]">

<div id="" align="center" class="tborder content_block">
        <div class="thead block_title">
                <a href="#top" class="collapse_gadget" onclick="return toggle_collapse"><img id="" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
                <a name="albums"></a>
                <span class="block_name">$bbuserinfo[username]'s Widget</span>
        </div>
        <div class="block_content" id="" style="">

                       
<div class="alt2" align="center">
<body><br /><script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('$userinfo[fieldX]');</script><br /></p></body></div></div></div></if>

Dont forget to change the Profile Field number to the one you created.

DEMO: http://ripthemic.org/forums/member.php?u=1

This will only work with WidgetBox.

elenh 09-06-2009 01:01 AM

Thanks a llot!

elenh 09-06-2009 01:01 AM

btw nice forum!

g0dfather1984 09-06-2009 01:04 AM

I was going to say the same thing as elenh did, nice forum.

RTMdotORG 09-06-2009 01:13 AM

Quote:

Originally Posted by g0dfather1984 (Post 1880374)
I was going to say the same thing as elenh did, nice forum.

Quote:

Originally Posted by elenh (Post 1880370)
btw nice forum!

Thanks!

s-p0k 09-07-2009 08:11 AM

a little more info how to instill this plz..it's 2am lol

RTMdotORG 09-07-2009 12:17 PM

Add the user profile field....
Do the template edit....
and its installed...

bada_bing 09-10-2009 12:56 PM

Does not work.. I have removed

RTMdotORG 09-10-2009 11:08 PM

Quote:

Originally Posted by bada_bing (Post 1882538)
Does not work.. I have removed

maybe some more description on how it doesnt work?
this works fine... you didnt do something right then..

Matrixthestar 09-11-2009 01:45 AM

I don't need to setup this
but really
your forum rocks


All times are GMT. The time now is 04:07 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.01177 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete