vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vbBux / vbPlaza v1.5.8 (Points + Store System) (https://vborg.vbsupport.ru/showthread.php?t=106953)

The Chief 02-22-2006 01:25 AM

One thing I would like to suggest, maybe if we could be able to Delete posts in your threads, like the users would be able to delete some posts in their own threads, don't know if this is possible...

anyways, great, hack!

moonclamp 02-22-2006 01:26 AM

Apologies if this has already been reported (this is a hell of a long thread)

If a user/admin tries to donate points to a member whose usergroup cannot use the estore they get this error:

Quote:

Fatal error: Unable to proceed with save while $errors array is not empty in class vB_DataManager_PM in /includes/class_dm.php on line 758

caimakale 02-22-2006 01:33 AM

Quote:

Originally Posted by SasukeNC
Hey do you have AIM maybe I can talk to you on it. But no, none of that worked, it is all gone. This has to be a very small error though and I don't know what.

Sorry I don't use aim or any of those. So disabling all of your plugins and products didn't work? Did you continue down the line or did you just do the estore ones?

eNforce 02-22-2006 01:45 AM

Quote:

Originally Posted by Reeve of shinra
a) create a new usergroup that has permission to use the vbshould and then use the secondary usergroup store action to let users buy access to it.

b) if you want to add an option where it costs points per vbshout post, take a look at the action I created for the profile comments hack ... you can use the same code - you just need to figure out where to add it. I dont have that hack installed to point out where though.

Well you see, there's no option to allow/disallow vbshout access in the usergroup manager, the only similar option is 'Banned Users' in the actual vbshout options.

Banning all usergroups except for one usergroup (the new shoutbox usergroup) doesn't work because their primary usergroup overrides the new secondary shoutbox group :(

shaynehammy 02-22-2006 03:26 AM

CMX,

Firstly, you rock! Amazing updates so far.

I was wondering if you could consider putting this in. I would love it if clicking on Estore brough a drop down menu

Choices could be:
Quick links
> Use Estore
Miscellaneous
> View All History
> View Lottery Winners
> Donate

Perhaps this option could be configurable through admin for drop down or normal. Or we could add our own links?

Thanks

Rickie3 02-22-2006 04:36 AM

ok if anyone is interested i have created a drop down menu for estore

in template 'navbar' find
Code:

<if condition="$show['popups']">
above add
Code:

<td id="estore" class="vbmenu_control"><a href="estore.php$session[sessionurl_q]">eStore</a><script type="text/javascript"> vbmenu_register("estore"); </script></a></td>
now still in navbar go right to the bottom and find

Code:

</if>
add above

Code:

<div class="vbmenu_popup" id="estore_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead"><a href="estore.php?$session[sessionurl]">eStore Home</a></td></tr>       
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=48">Lottery</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=userhistory">history</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=27">Give Gifts</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=13">Bank</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=7">Donate</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=16">Thief</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=listcat&categoryid=2">User title options</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=listcat&categoryid=1">User name options</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=listcat&categoryid=7">Misc options</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=richestusers">Richest members</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=mostsold">Most sold</a></td></tr>
       
        </table>
    </div>

see screenshot
you can customise this to how you want it,hope someone finds this handy

eNforce 02-22-2006 05:24 AM

That's cool, I tried adding a few admin options with an if condition to only show it to admins but it didn't work :(

Code:

        <if condition="!is_member_of($bbusergroup, 6)">
        <tr><td class="thead"><a href="estore.php?$session[sessionurl]">Admin Options</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=12">Admin Donate</a></td></tr>
        </if>

What's wrong with this? It will display the option to ALL members instead of only admin as I'd like.

kylek 02-22-2006 05:25 AM

Rickie3 - Thanks, I will definately use it, just finished the upgrade to 3.5.4 and re doing the navbars, good timing.

Rickie3 02-22-2006 05:30 AM

Quote:

Originally Posted by eNforce
That's cool, I tried adding a few admin options with an if condition to only show it to admins but it didn't work :(

Code:

        <if condition="!is_member_of($bbusergroup, 6)">
        <tr><td class="thead"><a href="estore.php?$session[sessionurl]">Admin Options</a></td></tr>
        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=12">Admin Donate</a></td></tr>
        </if>

What's wrong with this? It will display the option to ALL members instead of only admin as I'd like.

try this
Code:

<tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&itemid=12">Admin Donate</a></td></tr>
if a member clicks it they will see "You are not allowed to purchase this item."

eNforce 02-22-2006 05:33 AM

Yeah I know they'll see that message, I'd just like to hide the 'thead' and option in the menu from them :nervous:


All times are GMT. The time now is 08:09 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.04302 seconds
  • Memory Usage 1,756KB
  • 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
  • (7)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
  • (6)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