vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Mark4865 04-03-2011 01:59 PM

Got everything working as we wanted thanks for all the help Lynne great support

Acoly 04-18-2011 09:17 PM

Hi guys,
I have just created my first php vbulletin page following the instructions on the first page. Is there any way I can control the access to specific areas of my page according to the member's permission? If so can you point me to some code examples please?
TIA,
George
PS: Please be gentle PHP/vbulletin is fairly new to me :).

Lynne 04-18-2011 10:36 PM

Quote:

Originally Posted by Acoly (Post 2186106)
Hi guys,
I have just created my first php vbulletin page following the instructions on the first page. Is there any way I can control the access to specific areas of my page according to the member's permission? If so can you point me to some code examples please?
TIA,
George
PS: Please be gentle PHP/vbulletin is fairly new to me :).

You can use this function:
PHP Code:

if (!is_member_of($vbulletin->userinfoxyz))   { 
// no permission if you aren't a member of usergroupid x, y, or z         
print_no_permission();  



Acoly 04-19-2011 01:46 AM

Thank you so much Lynne, that worked :).

I have another question pertinent to this page--I want to use it to add a form that only contains a type=file input field and upload that file on the server.
I have created the form but when trying to submit, I get the following error:

Your submission could not be processed because a security token was invalid.

I am pretty sure that I will need to pass the credentials as well--do you know how I can accomplish this?

TIA,
George

--------------- Added [DATE]1303235753[/DATE] at [TIME]1303235753[/TIME] ---------------

I got it! I am adding the code for the whole form below:
Code:

<form action="test.php" method="post" enctype="multipart/form-data">
  <label for="file">Filename:</label>
  <input type="file" name="file" id="file" />
  <br />
  <input type="submit" name="submit" value="Submit" />
  <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
  <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
</form>

These two hidden fields is what is needed.
George

Lynne 04-19-2011 05:11 PM

Yep, you got it. Thanks for sharing it. :)

ivan_wc3 04-19-2011 10:58 PM

Hi all,
there is a way to set in a specific navtab a different style?
I would to set for each navtab a different style? How it's possible?

Thanks a lot :)

Lynne 04-20-2011 03:56 AM

Quote:

Originally Posted by ivan_wc3 (Post 2186469)
Hi all,
there is a way to set in a specific navtab a different style?
I would to set for each navtab a different style? How it's possible?

Thanks a lot :)

This article has nothing to do with navtabs. If you have a question about navtabs, I suggest you post in the appropriate forum.

ivan_wc3 04-20-2011 06:22 AM

sorry,
this is a misunderstanding....
I've add my ownvBulletin page using my MASTER style... It's possibile create my own vBulletin page with another different style...

In this way i've differents style in differents page?

Thanks you a lot

Lynne 04-20-2011 08:17 PM

You may change the template for the different styles.

ivan_wc3 04-21-2011 04:12 PM

Sure,
but in this way user must change style and all the page will have the same style.

I would to create page with different style. It's possible?


All times are GMT. The time now is 11:26 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.01759 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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