vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Allow Somebody to Use Non-Selectable Styles (https://vborg.vbsupport.ru/showthread.php?t=50574)

amykhar 03-22-2003 01:05 PM

You want if (($bbuserinfo[userid]==6) or ($bbuserinfo==286)) {

Attrox 03-22-2003 05:20 PM

Great hack...I installed it, seems to be working smoothly. Nice work. :)

Cyricx 03-22-2003 09:26 PM

Awesome! Great Hack! :)

Chris M 03-23-2003 05:48 PM

Great Idea:)

Satan

amykhar 03-23-2003 06:05 PM

Thank you all :)

Amy

Alchemyst 03-23-2003 10:46 PM

Is there a way too intergrate this with the Styles in Postbit hack. So that mods who have a scheme that is non-selectable it shows up as the default?

Cyricx 03-28-2003 03:22 AM

Forgot to ask you about the Global.php too :)

How do I need to alter this line to allow for user id 6 and 286 in the global.php?

Code:

if (!$style['userselect'] and $bbuserinfo[userid]!=X) {
Thank you greatly!! :)

This is an AWESOME help to creating styles. :)

amykhar 03-28-2003 01:34 PM

Code:

if (!$style['userselect'] and $bbuserinfo[userid]!=6 and $bbuserinfo[userid]!=286) {

amykhar 03-28-2003 01:52 PM

Quote:

03-23-03 at 07:46 PM Alchemyst said this in Post #16
Is there a way too intergrate this with the Styles in Postbit hack. So that mods who have a scheme that is non-selectable it shows up as the default?
OK. I have this working on my board, but I think part of it is working because I have the postcounter hack installed (the one by Bira and Freddie)

Here's the code you need to modify: (Please understand queries before you try to do this. I am writing the instructions this way to enable you to use it with other hacks.)
Find:
Code:

style.title as styletitle
Add After:
Code:

,style.userselect as userselect
Find:
Code:


        if (!$getperms['cangetattachment']) {
                $viewattachedimages=0;
        }

Add After:
Code:


        if (!$post[userselect]) {
            $post[styletitle]="Default";
            $post[styleid]=1;
        }

Find:
Code:

style.title as styletitle
Add After:
Code:

,style.userselect as userselect
Find:
Code:

$post[postcount] = ++$postcount;
Add After:
Code:

  if (!$post[userselect]) {
      $post[styletitle]="Default";
      $post[styleid]=1;
  }

I am serious though. If you don't understand what the queries mean, then don't try this hack. Email me and send me your showthread.php and I will do it for you instead.

Amy

Cyricx 03-29-2003 02:35 AM

w00t! :)

Now I can get the wife to browse over the new ones too. :)

Thanks!


All times are GMT. The time now is 12:34 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.01100 seconds
  • Memory Usage 1,738KB
  • 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
  • (10)bbcode_code_printable
  • (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