vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Usergroup comparison page. (https://vborg.vbsupport.ru/showthread.php?t=222850)

designBox 09-10-2009 10:58 AM

Usergroup comparison page.
 
Hello,

I have searched almost everywhere an answer to this question but, unfortunately, it seems it has never been done before.

Basically I would like to build a vb page where the visitors (potential members) could review and compare the different usergroups to subscribe on. 1 is free, the 2 others are payable subscriptions.

I am trying to build a kind of table overview, where the option cells are automatically updated from the database.

Has anyone already made such thing? Anyone ready to try?

Thank you.

Lynne 09-10-2009 01:55 PM

I've never seen something like that. It shouldn't be too hard if you know what you are doing.

designBox 09-10-2009 02:07 PM

Thank you Lynne.
Actually, I am reading the "how-to include a non-vb page" tutorial.

However, too many new things for me, It's still confusing and I have no clue where to begin...

Lynne 09-10-2009 02:17 PM

It's a good tutorial, but start by just getting your page/template to show and then slowly add content (queries and such that produce your results) one thing at a time.

designBox 09-10-2009 03:05 PM

Yes, this is actually the way I am working (I should write experimenting... :P)

However, I have no clue how to retrieve the value of each usergroup option (for example: ability to have a signature or the max size of the allowed image...)

I looked everywhere in the documentation and on both forums (.com and .org) and wasn't able to find the beginning of an answer...

Maybe I am not using the correct search words...
Could you enlight me?

Lynne 09-10-2009 03:43 PM

You will need to look at the usergroup table and see what fields you want to grab and then make a query to do so.

designBox 09-10-2009 04:19 PM

Ah okay, it has to be a sql query. I was looking for an option like vboption['name']....

Thank you very much Lynne.


All times are GMT. The time now is 07:05 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.01095 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete