vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Nexia's POINTS system (https://vborg.vbsupport.ru/showthread.php?t=143530)

giovannicosta 04-11-2007 01:37 PM

Pk, hope you make an addon then :D

harmor19 04-11-2007 03:27 PM

I wrote something that you can add to the core product.

#############################################
Open: hooks_nex_points.xml
Find:
Code:

</hooks>

Above Add:
Code:

<hooktype type="nex_navbar">
                <hook>nex_points_navbar_add_link</hook>
        </hooktype>

#############################################
Add a new plugin for: parse_templates
Add this code
Code:

$nex_create_link = array();

($hook = vBulletinHook::fetch_hook('nex_points_navbar_add_link')) ? eval($hook) : false;

foreach($nex_create_link as $links)
{
  $nex_navbar_links .= $links;
}

#############################################
In the "navbar" template
Find:
Code:

<if condition="$show['popups']">

After Add:
Code:

<if condition="!empty($nex_navbar_links)">       
<td id="nexlinksmenu" class="vbmenu_control">
    <a href="#">Nexia's Point System</a>
    <script type="text/javascript">
        vbmenu_register("nexlinksmenu");
    </script>
</td>       
</if>


Find:
Code:

<!-- NAVBAR POPUP MENUS -->

After Add:
Code:

<div class="vbmenu_popup" id="nexlinksmenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Nexia's Point System</td>
        </tr>
$nex_navbar_links
</table>
</div>


I'll show you how to write a custom link to be displayed in the drop down menu on my next post.

harmor19 04-11-2007 03:30 PM

Add a new plugin for: nex_points_navbar_add_link
Here are some examples.

Code:

$nex_create_link[] = "<tr><td class='vbmenu_option'>
<a href='http://xenweb.net'>Xen Web Hosting</a>
</td>
</tr>";

$nex_create_link[] = "<tr><td class='vbmenu_option'>
<a href='http://vbulletin.org'>vBulletin.org</a>
</td>
</tr>";

If you are writing an add-on you can easily add a link in the drop down menu.

nexialys 04-11-2007 03:39 PM

hum, please, harmor19, if you have addons to produce, would you mind sending them to me in a pm, so i can add them as a release, because your example may trouble the persons who are not really into coding...

harmor19 04-11-2007 03:42 PM

Quote:

Originally Posted by nexialys (Post 1225034)
hum, please, harmor19, if you have addons to produce, would you mind sending them to me in a pm, so i can add them as a release, because your example may trouble the persons who are not really into coding...

I wrote it for you to add to the core product.

Fearlessninja 04-11-2007 11:38 PM

Could you please add an icash import for the product? Or is it already possible, if it is, please tell me how it will work. Because uninstalling icash will remove the point field then my members will lose all their points.

apthost 04-12-2007 12:30 AM

Can you put into it as a feature, the ability to create random things and when a person reaches the required number of points an email will be sent to the administrator and then the person can give that person what he or she gets and then be given a link to subtract those points from his or her account.

nexialys 04-12-2007 01:03 AM

Quote:

Originally Posted by Fearlessninja (Post 1225465)
Could you please add an icash import for the product? Or is it already possible, if it is, please tell me how it will work. Because uninstalling icash will remove the point field then my members will lose all their points.

not complicated, i will try to fix the vBBux importer to import iCash in a sole importer...

nexialys 04-12-2007 01:04 AM

Quote:

Originally Posted by apthost (Post 1225508)
Can you put into it as a feature, the ability to create random things and when a person reaches the required number of points an email will be sent to the administrator and then the person can give that person what he or she gets and then be given a link to subtract those points from his or her account.

this is not in my shelf right now. this request is more a request for a new tool, not really a new functioanlity in the core of the points system...

you can post that kind of requests here: https://vborg.vbsupport.ru/forumdisplay.php?f=112

AzzidReign 04-12-2007 01:44 AM

How would I change the postbit so instead of it displaying:
Cash: 0.00$
Display:
Cash: $0.00


All times are GMT. The time now is 01:20 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.04627 seconds
  • Memory Usage 1,744KB
  • 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
  • (8)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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