PDA

View Full Version : Add-On Releases - My Shelfari Bookshelf Profile Tab


Chadi
04-23-2009, 10:00 PM
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

Register a free account at www.shelfari.com (http://www.shelfari.com)

Upload plug-in attached: admincp > manage products
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

Edit template memberinfo_block_shelfari
First line, change "fieldX" to actual field number you noted (eg. field50)
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:
booksize=large

Add *after*
&AmazonAssociate=yourID
(change yourID to your actual Amazon Associates ID)

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


?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 (http://www.biblegateway.com/passage/?version=47&search=Romans%201:20)
Check out my other mods:

Mods
Thread Listing by Letter with ABC Navigation Menu (https://vborg.vbsupport.ru/showthread.php?t=211939)
Text Background Highlight (https://vborg.vbsupport.ru/showthread.php?t=211940)
ESV Bible Verse with Audio (https://vborg.vbsupport.ru/showthread.php?t=211936)
My Shelfari Bookshelf Profile Tab (https://vborg.vbsupport.ru/showthread.php?t=212050)
Postbit Mini Box: Member Info Icons (https://vborg.vbsupport.ru/showthread.php?t=212052)
MixPod Playlist MP3 Player in Profile (https://vborg.vbsupport.ru/showthread.php?p=1801014)
Styles
Green Earth Admin Style (https://vborg.vbsupport.ru/showthread.php?p=1801526)
Purple Element Admin Style (https://vborg.vbsupport.ru/showthread.php?t=212035)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
good idea

why not update it to 3.8.2 ?

Wired1
04-24-2009, 03:52 PM
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.