vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New hack: Advance Profile Page (https://vborg.vbsupport.ru/showthread.php?t=53974)

assassingod 06-07-2003 06:03 PM

1st;
That's what the extra long bio field is for

2nd;
Again the bio field

3rd;
Good Idea

4th;
Was going to anyway;)

5th (extra);
I might add "Last 5 posts"

Dan 06-07-2003 06:06 PM

Steven... this looks good. I'm holding off all the hacks I want to install untill a vB3 version comes out

/me waits patiently for vB3 public beta

N9ne 06-07-2003 06:10 PM

Steve, the last 5 posts thing, make sure it's not an intensive query/make sure there aren't many queries...

I think you should aim for < 16 queries for this Advanced Profile Page.

assassingod 06-07-2003 06:10 PM

Thanks.

So far, completed:
Select which user's can use APP
Minimum posts to use APP

Thats probably all the admin extras that will be needed.

Quote:

Today at 08:10 PM N9ne said this in Post #13
Steve, the last 5 posts thing, make sure it's not an intensive query/make sure there aren't many queries...

I think you should aim for < 16 queries for this Advanced Profile Page.

Yeah I know, that will be the main problem.

N9ne 06-07-2003 06:17 PM

I've got a good idea:

Have in each usergroup's settings, "Can have an advanced profile page"

And then, do an if statement in admin/user.php so it finds if this user's usergroupid can have APP's...

If the user's usergroup CAN, show a field in the user's adminCP profile "can have an Advanced Profile Page".

So this way, it works two ways, you can have a usergroup allowed it, while specific users in it can't have it :).

To make life easier for you, have a page in the adminCP that displays which users can't have an APP but their usergroup can, because most likely these are the trouble makers.

A way the code for this page can be written:

First get usergroupids which can have an APP.
Then do a select from the user table, WHERE: usergroupid is in array of results produced from first query, and then: AND canhaveAPP=0

So that last part will take users who's usergroup allows them an APP but they specifically can't have one...

Don't forget though that things will be done differently for adding users in the adminCP as they don't have a usergroup yet...so you must take it that they're in usergroupid 2, but it could be 3 if COPPA, so that will require a little thinking.

assassingod 06-07-2003 06:21 PM

I see. Great idea, I'll do that now.:)

albamaster 06-09-2003 03:24 PM

i want it vb3 man :)

gmarik 06-09-2003 03:50 PM

Oh, sounds great.

/me wants to test it as soon as possible!

assassingod 06-09-2003 04:10 PM

1 Attachment(s)
Thanks. If I dont finish it before vB3 comes out, I will scrap it for vB2 and start with vB3:)

Admin Screenshot:

So far, if the user has less than 300 posts, they dont see the link in the User CP (or if their usergroup cant view it, or don't have access)

I believe thats most of the admin end done.

assassingod 06-10-2003 02:04 PM

Done:
If a user has less than x posts, the dont see UserCP link
If their usergroup doesnt allow APP, then its not availible when editing that use, nor can he see the link
If you have selected 'no' to user using APP they, again, dont see the link

Now I am working on the features you allow, whether they show up or not.


All times are GMT. The time now is 04:18 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.01026 seconds
  • Memory Usage 1,730KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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