vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - My Shelfari Bookshelf Profile Tab (https://vborg.vbsupport.ru/showthread.php?t=212051)

Chadi 04-23-2009 10:00 PM

My Shelfari Bookshelf Profile Tab
 
My Shelfari Bookshelf Profile Tab
(please nominate for mod of the month)

https://vborg.vbsupport.ru/external/2009/04/12.png

Special thank you to member Wired1 and moderator Lynne who gave me assistance in creating this.

This will add a new tab in members' profile called "My Shelfari Bookshelf" and displays that user's Shelfari bookshelf, using Shelfari's flash widget.

Example:

See screenshot.

Installation
  1. Register a free account at www.shelfari.com
  2. Upload plug-in attached: admincp > manage products
  3. Create a new user profile field (admincp > add new user profile field > Single-Line Text Box>
    • Title: My Shelfari Bookshelf
    • Description: What is your Shelfari.com account username?
    • Private Field: Yes
    • Field Searchable on Members List: No
    • Show on Members List: No
    • Everything else, leave as is
    • Make a note of the new field# for that new profile field
  4. Edit template memberinfo_block_shelfari
    • First line, change "fieldX" to actual field number you noted (eg. field50)
  5. Go to admincp > plugin manager and edit "My Shelfari Bookshelf" plug-in.
    • Find "fieldX" and as you did in the template, change to actual field # (eg. field50). Save.
Now, you can go to your profile > edit details and you will see the Shelfari field that says "What is your Shelfari.com account username?" If this field is left blank by the member, the My Shelfari Bookshelf tab in member profile will not show up. It will only show up if it is filled in. Test it by using my own username Shelfari username: chadi

Customize

Shelfari allows you to customize many variables such as width, height, Amazon associate ID (ethically, mine is not included in this plugin don't worry), etc. If you want to customize this, use the below *sample* as reference. You will need to edit the <embed .... </embed> portion in plugin manager to change these variables. This plugin by default will display your "own books".

Variables you can change inside the <embed>.....</embed> widget code

Variable shown in red, in parenthesis is what it displays. Change only the variable inred, parenthesis is just to explain what that variable option shows.

Variable: ListType
  • isread (I've Read)
  • nowreading (I'm Reading)
  • isowned (Books Owned)
  • top (My Favorites)
Variable: Height / Width
  • height : whatever you want
  • width: whatever you want
Variable: Amazon Associates ID

In plugin code find:
Code:

booksize=large


Add *after*
Code:

&AmazonAssociate=yourID

(change yourID to your actual Amazon Associates ID)

Example of that code portion:
Code:

booksize=large&AmazonAssociate=taljes-20
I use 700x700 width/height. This displays 4 columns and 3 rows nicely.

Quote:

?For his invisible attributes, namely, his eternal power and divine nature, have been clearly perceived, ever since the creation of the world, in the things that have been made. So they are without excuse.?- Romans 1:20
Check out my other mods:
Please show your appreciation by voting and clicking install :up:

Ramsesx 04-24-2009 08:34 AM

Nice idea, thanks.

Lahoria 04-24-2009 03:33 PM

good idea

Lahoria 04-24-2009 03:49 PM

Quote:

Originally Posted by Lahoria (Post 1798210)
good idea

why not update it to 3.8.2 ?

Wired1 04-24-2009 03:52 PM

Quote:

Originally Posted by Lahoria (Post 1798220)
why not update it to 3.8.2 ?

https://vborg.vbsupport.ru/showthread.php?t=212050

Chadi 05-14-2009 05:45 PM

**** Update ****

This 3.7x mod will be moved to the graveyard. Please visit my profile and you'll see the 3.8 mod. Click install, no changes necessary as they're all compatible with 3.7x and 3.6 x anyway. Its important to click install on the 3.8x mod thread to receive future updates and bug fixes. Thank you.


All times are GMT. The time now is 02:34 PM.

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.01041 seconds
  • Memory Usage 1,739KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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