vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - AJAX Tabs Content Script - Version 3.0 (YUI) (https://vborg.vbsupport.ru/showthread.php?t=191106)

bobster65 07-30-2009 01:17 AM

Quote:

Originally Posted by yotsume (Post 1858225)
I know my name says coder but there are things I don't know yet....

For instance I could use some code help with that. PLEASE

Maybe usng my help file as an example. :)

SUGGESTION 2

You need to buy your own church so we all can worship you as god! HAHAHA

lol.. sorry bout that.. I'll drop another file later tonight or in the AM for ya with an example on using perms in these content files.. just sitting down for dinner and some R&R time with the GF :D

bobster65 07-30-2009 01:20 PM

1 Attachment(s)
Quote:

Originally Posted by yotsume (Post 1858225)
I know my name says coder but there are things I don't know yet....

For instance I could use some code help with that. PLEASE

Maybe usng my help file as an example. :)

SUGGESTION 2

You need to buy your own church so we all can worship you as god! HAHAHA

Try this .. (look at lines 48-59 to see what I did). This prevents guests from viewing the file directly or accessing the content via the Tabs..

FiMeTi 07-30-2009 03:59 PM

Hello bobster65!

I really dont want to bother you, but did you find the time to check the loading.gif problem in css yet? I´d appreciate your prof help.

bobster65 07-30-2009 04:03 PM

Quote:

Originally Posted by FiMeTi (Post 1858595)
Hello bobster65!

I really dont want to bother you, but did you find the time to check the loading.gif problem in css yet? I?d appreciate your prof help.

messing around with that now ;)

JVCode 07-30-2009 06:32 PM

Just wondering if your script would be able todo something like I'm wanting... see this thread for more info.

If it is possible, would I be able to get some help with implementing it on my website ?

Kind regards,
J.

yotsume 07-31-2009 06:55 PM

Quote:

Originally Posted by bobster65 (Post 1858510)
Try this .. (look at lines 48-59 to see what I did). This prevents guests from viewing the file directly or accessing the content via the Tabs.

Code:

userinfo['userid']==0
In your code do I have to change the user ID to match the usergroup(s) I wish to block from seeing the content?

You do not explain how to select which usergroups have access and which usergroups do not.

Can you please provide these instructions so I can finish securing my site.

THANKS!

bobster65 07-31-2009 08:00 PM

Quote:

Originally Posted by yotsume (Post 1859228)
Code:

userinfo['userid']==0
In your code do I have to change the user ID to match the usergroup(s) I wish to block from seeing the content?

The way I did that one was to only prevent "guests" Guests have a UserID of 0. You asked me to show you how to prevent "GUESTS" from viewing the tab content files directly.

To block specific user groups, use this instead... in this example, it blocks user groups 5 and 6 from seeing the content.

Code:

if (is_member_of($vbulletin->userinfo, 5,6))

bobster65 07-31-2009 08:02 PM

Quote:

Originally Posted by JVCode (Post 1858679)
Just wondering if your script would be able todo something like I'm wanting... see this thread for more info.

If it is possible, would I be able to get some help with implementing it on my website ?

Kind regards,
J.

Im not seeing how this would work for what you want to do..

yotsume 07-31-2009 08:35 PM

Quote:

Originally Posted by bobster65 (Post 1859261)
The way I did that one was to only prevent "guests" Guests have a UserID of 0. You asked me to show you how to prevent "GUESTS" from viewing the tab content files directly.

To block specific user groups, use this instead... in this example, it blocks user groups 5 and 6 from seeing the content.

Code:

if (is_member_of($vbulletin->userinfo, 5,6))

<--- on knees bowing to his god chanting THANK YOU!
Simple code! Thanks! Im learning all the vbphrases to code myself. ;)

bobster65 07-31-2009 08:45 PM

Quote:

Originally Posted by yotsume (Post 1859286)
<--- on knees bowing to his god chanting THANK YOU!
Simple code! Thanks! Im learning all the vbphrases to code myself. ;)

:cool: You'll catch on just fine. The best way to learn is just check out other modifications and core vB code...


All times are GMT. The time now is 10:20 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.01606 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
  • (4)bbcode_code_printable
  • (8)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