vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   WebTemplates 3.5.x: VB Integrated CMS (Content Management System) (https://vborg.vbsupport.ru/showthread.php?t=103076)

Logician 02-01-2007 04:45 AM

Quote:

Originally Posted by Quantnet.org (Post 1171467)
Would I be able to create a webtemplate that include the login box and then when the user login, it will show them different content based on their usergroup.

Yes you can use vb conditionals to display different content depending on visitor's usergroup

Quantnet 02-01-2007 04:53 AM

Quote:

Originally Posted by Logician (Post 1171804)
Yes you can use vb conditionals to display different content depending on visitor's usergroup

Thanks for the response.

My main concern is the login box. I would like to have a seperate part of my website where the users login, got customized messages based on their usergroup (this I know I will use conditions).

This page does not have to contain any VB forum component. Just a plain page, login box, admin login, and message content.

Would you be able to point me to a template that does this ?

Logician 02-01-2007 05:05 AM

Quote:

Originally Posted by Quantnet.org (Post 1171807)
Thanks for the response.

My main concern is the login box. I would like to have a seperate part of my website where the users login, got customized messages based on their usergroup (this I know I will use conditions).

This page does not have to contain any VB forum component. Just a plain page, login box, admin login, and message content.

Would you be able to point me to a template that does this ?

Have you installed the hack and played with it? Actually its whole point is to do what you want. ;) You don't have to deal with login boxes yourself, you just set WT's permission as "guests can not see" so when a guest visits the page, he automatically gets "no permission page" with a login box and when he logins, he gets the content. Please play with the test templates for a while, I guess you'll understand the concept better.

Quantnet 02-01-2007 05:15 AM

Thanks Logican
I have installed and get the test pages to display correctly but i guess I haven't played it long enough to still ask these questions.

Actually, my original intention was somewhat different https://vborg.vbsupport.ru/showthread.php?t=137910

I found your mod accidentally and just realized it can do the application checking status using your mod and set different message based on usergroup. Quite happy.

I'll play some more.

Quantnet 02-01-2007 07:59 AM

I'm almost there, still need a bit of help.

I was able to get the login box displayed for guest, but this is the default VB login with all the headers, footer, forgot password, etc stuff

I only need a blank username, password box....

Is there a way for me just to get the 2 input boxes instead of the complete log in page ?

Logician 02-01-2007 08:11 AM

Quote:

Originally Posted by Quantnet.org (Post 1171886)
I'm almost there, still need a bit of help.

I was able to get the login box displayed for guest, but this is the default VB login with all the headers, footer, forgot password, etc stuff

I only need a blank username, password box....

Is there a way for me just to get the 2 input boxes instead of the complete log in page ?

First allow guests to see that WT. Then set a vb conditional in WT:
<if condition="!$bbuserinfo[userid]">

Put your simple form here and make it HTTP post to vb login.php

<else />

Your regular content..
</if>

Quantnet 02-01-2007 08:13 AM

Thumbs up. Thanks..

Now only if i know how to make it HTTP post to vb login.php

Even if i can't figure it out, your mod has 95% of what I need.

Thanks so much.

Logician 02-01-2007 08:31 AM

Quote:

Originally Posted by Quantnet.org (Post 1171899)
Thumbs up. Thanks..

Now only if i know how to make it HTTP post to vb login.php

Even if i can't figure it out, your mod has 95% of what I need.

Thanks so much.

Check the source code of any vb age as a guest and use the <form> </form> part of login section.

Quantnet 02-01-2007 08:37 AM

Got it. Rate 5 stars and vote MOTM.
I still couldn't believe I could use your mod to develop a whole college application status checking system. This is beyond expectation.

Thanks.

Logician 02-01-2007 09:22 AM

Quote:

Originally Posted by Quantnet.org (Post 1171914)
Got it. Rate 5 stars and vote MOTM.
I still couldn't believe I could use your mod to develop a whole college application status checking system. This is beyond expectation.

Thanks.

Thanks for the compliments and here is another clue:

If you use
<if condition="!$bbuserinfo[userid]">

Put your simple form here and make it HTTP post to vb login.php

<else />

$includedtemplate
</if>
in a theme webtemplate, then make sure your other wt's use this theme, you can manage your multiple pages which use this system much easier.


All times are GMT. The time now is 06:33 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.01856 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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