vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   IShop - Simple, Flexible, and Integrateable. (https://vborg.vbsupport.ru/showthread.php?t=109515)

hippiesimz 08-21-2008 09:27 PM

Quote:

Originally Posted by MissKalunji (Post 1603957)
In Plugins

Find : Inventory in Memberinfo

Then Change the Hook Location To Member_profileblock_fetch_Unwrapped

Then add the :


Wherever you want it to show..... If you want it in a profile tab

you would have to create a plugin. Let me know if that's what you want

MissKalunji.... yes i want it in a profile tab. :) thanks...
ups one more thing,,, are you using icash to integrate with this one ? or using any other bank method ?

cheers

MissKalunji 08-22-2008 12:27 AM

Quote:

Originally Posted by hippiesimz (Post 1604047)
MissKalunji.... yes i want it in a profile tab. :) thanks...
ups one more thing,,, are you using icash to integrate with this one ? or using any other bank method ?

cheers

Step 1. Create Plugin
Hook Location : member_build_block_start
Name : Ishop Richness Profile Tab
Execution Order : 5 (I left it as default)
Plugin PHP Code :
Code:

$blocklist = array_merge($blocklist, array(
        'ishopmod' => array(
                'class' => 'ishopmod',
                'title' => 'Items',
                'hook_location' => 'profile_left_last'
        )
));

class vB_ProfileBlock_ishopmod extends vB_ProfileBlock
{
        var $template_name = 'memberinfo_block_richness';

        function confirm_empty_wrap()
        {
                return false;
        }

        function confirm_display()
        {
                return ($this->block_data['ishopmod'] != '');
        }

        function prepare_output($id = '', $options = array())
        {
                $this->block_data['ishopmod'] = 'Content to show in the tab.';
        }
}

Plugin is Active : Yes

Save

Step 2.

Then Create a Template Name : memberinfo_block_richness

Code:

<div class="alt1 block_row">
        <ul class="list_no_decoration">
<br/>
<!-- show inventory -->
<fieldset><legend><a href="ishop.php?do=ViewMember&id=$userinfo[userid]" title="$userinfo[username]'s Inventory">$userinfo[username]'s </a></legend>
<br/>
<div>
$userinfo[invrow]
<br>
</div>
</fieldset>
<!-- /show inventory -->
<div class="smallfont">$post[giftsdisplay]</div>
</ul>
</div>

Then it should appear on the left after Contact

Screenshot

Attachment 85869

And i'm using Vb Credits as Bank

Peterpan002 08-23-2008 11:13 AM

Thank you MissKalunji :) perfect.

acast 08-29-2008 12:43 AM

Hi, i want to do one thing and i hope you can help me. I want that when i buy something in the ishop appears in the member profile, but in postbit i want a miniature. For example, if i buy a present called apple in ishop/items/apple.gif in the postbit appears the miniature in ishop/itemsmini/apple.gif and in the member profile the big picture as like it appears.

Can anybody help me with this "if"?

Regards friends.

Colin-Roberts 08-29-2008 06:15 PM

I'm getting this error..
Quote:

Parse error: syntax error, unexpected ';' in /home/thomasb/public_html/forums/ishop.php(281) : eval()'d code on line 57
I haven't edited any of the files unless said so.

RedeemedWarrior 08-31-2008 10:25 AM

works great on Vb 3.7.3 i even have 2 separate installs

john102774 09-02-2008 07:03 AM

Great Hack!!!

I don't quite understand the second step to adding it to your profile page. Please help.

Step 2.

Then Create a Template Name : memberinfo_block_richness

Where do I create this template(location)?

Thanks for your help! :)

RedeemedWarrior 09-02-2008 08:31 AM

you add the template to whatever skins/themes you use

john102774 09-02-2008 10:26 AM

Quote:

Originally Posted by RedeemedWarrior (Post 1612615)
you add the template to whatever skins/themes you use

Thanks for all the help guys!!! :)

RedeemedWarrior 09-02-2008 11:01 AM

no worries


All times are GMT. The time now is 08:36 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.01544 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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