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)

mandy71480 02-27-2006 12:14 PM

Right, it's not showing up in the navbar. :(

X-Files 02-27-2006 12:21 PM

Quote:

Originally Posted by CMX_CMGSCCC
1) There is a fully viewable Item History on the eStore page itself. It shows the top 5 sold items on the main page. Then when you view a category, it shows all items in the category with a View button on the right to view the history for that item. The Item History page itself is fully paged and everything so if there are 10000 entries, it will show 1,2,3, etc.. pages just like vB shows pages for the Threads. Also there is a fully searchable Admin CP feature for Item History as well.

2) The only reason I do not wish to look at removing points upon deleting posts is for the simple reason that u have to first get everyone who posted in the thread, and how many times they have posted in that thread and then calculate the amount of points to remove per post, amount of points to remove per character, amount of points to remove per views, amount of points to remove per thread creation, and then update each individual user in the database. And everyone will have posted a different amount of times so u cant even do a simple query for "IN (1,2,3,)" for the MySQL command. So it could be 1000 queries if 1000 different people posted in a single thread. If u know a way to do it in 1 query let me know :)

3) This would be a difficult item to achieve, it would have to basically add a second points column and increase it every time the points gets increased from actions. And inside the WHERE clause where it updates the users points, it would have to do "AND (pointstoday < $maxpointsperday)" which is plausible I guess, but thats a pretty big change since it changes the WHERE clause as well as adds another field to SET for every MySQL query. In other words, I'm not sure the amount of time put into it and making sure everything is working properly as well as On/Off variable for it as well, is worth it at this time.

-CMX

I see your points.

Regarding the limit. We were on phpbb and they had a points system that had this feature and we have been missing it since the move to vB.

Regarding the points removal. Usually for us it will just be one post in one forum. Do you think there would be a way to accomplish this without to much hacking.

For the reporting can everyone see the admin donate?

We will probably be trying this out on our dev site soon.

Thanks for your reply. You guys seem much more responsive than the ucash/ushop group.

X-Files 02-27-2006 12:23 PM

Quote:

Originally Posted by X-Files
I see your points.

Regarding the limit. We were on phpbb and they had a points system that had this feature and we have been missing it since the move to vB.

Regarding the points removal. Usually for us it will just be one post in one forum. Do you think there would be a way to accomplish this without to much hacking.

For the reporting can everyone see the admin donate?

We will probably be trying this out on our dev site soon.

Thanks for your reply. You guys seem much more responsive than the ucash/ushop group.

Is it hard to move from the uCash 1.1.1 to this system? We do not have the store running but have been looking at their new version.

Reeve of shinra 02-27-2006 12:37 PM

Its very easy to have your existing ucash points moved over... its like 1 click ;)

X-Files 02-27-2006 12:50 PM

Can we display the points (chips) in the navbar welcome block?

Code:

Welcome, X-Files. You have 32,997 chips!
You last visited: Today at 10:46 AM
Private Messages: Unread 0, Total 328.

Can the name be changed to chips instead of points?

Can we have real items in the shop?

Buy widget #1 for 1000 points(chips for us).

I know I should probably install and try things out. I need to get our dev site updated. so that I can try this out.

1numara 02-27-2006 12:54 PM

Quote:

Originally Posted by 1numara
hi,

i love this hack and tried in my forum, but i have some problems ...

i activated all eStore and eBux Features and regulate the all usergroup settings, but for example when i try to donate the eBux points, it says "Your usergroup does not have permission to purchase eStore Options."

do you know where I do wrong ? what must I do ?

thanks for your help ..
Quote:

Originally Posted by CMX_CMGSCCC
There is a GLOBAL Usergroup permission for access to the eStore. Admin CP -> Usergroups -> Usergroup Manager -> usergroup u want to give access to -> At the bottom "Can use eStore" or something similar, I forget the exact wording... and too lazy to look it up atm... lol

first, thanks for answer :)

i found the panel settings you said.

i think you said "eBux eStore Permissions" - "Can this group purchase eStore options at all?"

i checked this settings for all usergroup i want to give access, but it's already set as "yes" ...

did i look the correct settings ? if yes, is there something else to recommend me ?

CallieJo 02-27-2006 01:30 PM

Quote:

Originally Posted by CMX_CMGSCCC
That could be the reason some gifts are not found. I dont remember there being an issue creating the estoregifts table without a TABLE_PREFIX, but it definitely should have the TABLE_PREFIX. I just checked the XML files, all of them have the TABLE_PREFIX's, so not sure. But the one without the prefix is not being used and can be deleted.

I've deleted the old one...but it didn't affect the issue with gifts not showing up in postbit for most users. Even after updating the giftie fix thang in admin and here is my postbit/postbit legacy code:
Code:

<if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if>
<if condition="$vboptions['ebux_enabled']"><div>$post[ribbons]</div></if>

Quote:

Originally Posted by CMX_CMGSCCC
Now it shows all of the gifts it finds in the postbit, up to the amount u have set as the maximum. The reason for this is because the gifts now have the ability to have the "hover Message" to show the gift message and who sent the gift.

Okies...thanks. If at any time in the future...not wanting to fill your plate more...can you enable it to be admin preference whether or not to show them all with messages or to just show them once with no message in postbit only?

At first I missed the messages, but then loved that it only showed one gift when there were more than one of the same thang. It kept it clean looking and peopes still could view messages in the profiles.

Also, I see the delete option in profile but not the hide option. Am I missing something? And is this always going to be in the profile for managing? I like it that way rather than usercp.

Thanks for all your hard work!! It's much appreciated BUNCHES!

Once I get this one site finished up I'll be working on another and adding your awesome product to it...at that time, I will again donate a little somethang somethang...Thanks and have a splendid day ;)

mandy71480 02-27-2006 01:44 PM

this is what my navbar template code looks like if this helps... not sure why estore isn't showing up in the navbar

Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
       
        <if condition="$bbuserinfo['userid']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>
               
        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">
                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>
                <if condition="$show['registerbutton']">
                        <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
                </if>
                <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
                <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
                <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
                <if condition="$show['popups']">
<if condition="$show['member']">
                                <td id="estoremenu" class="vbmenu_control"><a href="$show[nojs_link]#estoremenu">$vbphrase[estore_name] $vbphrase[estore_menu]</a> <script type="text/javascript"> vbmenu_register("estoremenu"); </script></td>
                        </if>               
                        <if condition="$show['searchbuttons']">
                                <if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                                <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
                        </if>
                        <if condition="$bbuserinfo['userid']">
                                <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>               
                        </if>
                <else />               
                        <if condition="$show['searchbuttons']">
                                <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>
                        <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                        <if condition="$bbuserinfo['userid']">                       
                                <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>                       
                        </if>                       
                </if>
                <if condition="$bbuserinfo['userid']">
                        <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
                </if>
        </tr>
        </table>
</div>
<!-- / nav buttons bar -->

<br />
<if condition="$show['forumdesc']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
        </tr>
        </table>
        <br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
       
        <if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead">$vbphrase[search_forums]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="search.php" method="post">
                                <input type="hidden" name="do" value="process" />
                                <input type="hidden" name="showposts" value="0" />
                                <input type="hidden" name="quicksearch" value="1" />
                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
                        </form>
                        </td>
                </tr>
                <tr>
                        <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
                </tr>
                </table>
        </div>
        <!-- / header quick search form -->
        </if>

        <if condition="$show['member']">
        <!-- user cp tools menu -->
        <div class="vbmenu_popup" id="usercptools_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
               
                <tr><td class="thead">$vbphrase[quick_links]</td></tr>               
                <if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
                               
                <tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
                <if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
                <!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
               
                <tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
                <if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]">$vbphrase[private_messages]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]">$vbphrase[subscribed_threads]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
                <if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
               
                </table>
        </div>
        <!-- / user cp tools menu -->
        </if>
<if condition="$show['member']">
        <!-- estore tools menu -->
        <div class="vbmenu_popup" id="estoremenu_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">

                <tr><td class="thead"><a href="estore.php?$session[sessionurl]">$vbphrase[estore_name] $vbphrase[estore_main]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&amp;itemid=48">$vbphrase[estore_lottery]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&amp;itemid=27">$vbphrase[estore_give_gifts]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&amp;itemid=13">$vbphrase[ebux_bank]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&amp;itemid=7">$vbphrase[estore_donate]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&amp;itemid=16">$vbphrase[estore_thief]</a></td></tr>

                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=richestusers">$vbphrase[ebux_richest_users]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=userhistory">$vbphrase[estore_history]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=mostsold">$vbphrase[estore_most_sold]</a></td></tr>

                <if condition="is_member_of($bbuserinfo['usergroupid'], 6)">
                        <tr><td class="thead">$vbphrase[estore_admin_only]</a></td></tr>
                        <tr><td class="vbmenu_option"><a href="estore.php?$session[sessionurl]do=action&amp;itemid=12">$vbphrase[estore_admin_donate]</a></td></tr>
                </if>

                </table>
        </div>
        <!-- / estore tools menu -->
        </if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

        <div class="vbmenu_popup" id="pagenav_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                                <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                                <input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
                        </form>
                        </td>
                </tr>
                </table>
        </div>

<!-- / PAGENAV POPUP -->
</if>


LBSources 02-27-2006 01:55 PM

Quote:

Originally Posted by LBSources
sorry for not keeping up folks.. CMX glad everyones contribution went to a worthy cause unlike our ushop contributions..

but i havent been keeping up as of lately..

anyone have the outlines on how the lottery works.. i guess i mean the settings and how the variables in the options are defined..

thanks in advance.. install and operation went flawless and my HOTM obviously went with this project thumbsup!

BUMP? :nervous:

Ayway to exclude a certain usergroup from points per download?

MissKalunji 02-27-2006 02:01 PM

Quote:

Originally Posted by CMX_CMGSCCC
What do u mean Request Award page? eBS doesnt have a request award page?


BTW: Another thing I'm adding to v1.2.3 is a simple version double check. It checks that the product XML imported is the same version as the estore.php file thats uploaded.

-CMX

i have the other hack : award

and when i go to request award...it goes blank
if i unable the ebux hack it shows

same thing for the vbgallery sorry i didnt explain myself properly


All times are GMT. The time now is 05:26 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.04911 seconds
  • Memory Usage 1,863KB
  • 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
  • (8)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