vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Block PHP, CODE and HTML from unregistered users (https://vborg.vbsupport.ru/showthread.php?t=59648)

Boofo 04-20-2004 11:32 PM

I'm not running 3.01 yet. What code is different?

Bulent Tekcan 04-21-2004 09:10 AM

I don't know.But when I post any code,unregistered members still see...

Boofo 04-21-2004 09:35 AM

Then you must have missed a step somewhere.

Bulent Tekcan 04-21-2004 10:49 AM

I think only templates is different.

This is original temp.....

bbcode_code

[CODE]<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase
Code:

:</div>
        <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">$code</pre>
</div>


bbcode_html

Code:

<div style="margin:20px; margin-top:5px">
        <div class="smallfont" style="margin-bottom:2px">$vbphrase[html_code]:</div>
        <pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">$code</pre>
</div>


bbcode_php

Code:

<div style="margin:20px; margin-top:5px">
        <div class="smallfont" style="margin-bottom:2px">$vbphrase[php_code]:</div>
        <div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">
                <code style="white-space:nowrap">
                        <!-- php buffer start -->$code<!-- php buffer end -->
                </code>
        </div>
</div>


Bulent Tekcan 04-22-2004 07:27 AM

Any suggestion ?

Boofo 04-22-2004 08:15 AM

All you need to do is add the code I have in the hack around this part of the template:

$code

Beermonster 04-22-2004 08:28 AM

Can this be changed so that only above a certain user group can see it, not just unregistered.
on my forum once you have registered you still have to make at least 10 posts before becoming a full member with all it's privileges. as I was fed up of people registering to PM a member with a reply :(

[high]* Beermonster clicks install :)[/high]

Boofo 04-22-2004 09:03 AM

Quote:

Originally Posted by Beermonster
Can this be changed so that only above a certain user group can see it, not just unregistered.
on my forum once you have registered you still have to make at least 10 posts before becoming a full member with all it's privileges. as I was fed up of people registering to PM a member with a reply :(

[high]* Beermonster clicks install :)[/high]

Sure. Just change this in the templates for this hack:

HTML Code:

<if condition="$bbuserinfo['userid']">
to whatever you want it to be. You could do this:

HTML Code:

<if condition="$bbuserinfo['usergroupid']==6 OR $bbuserinfo['usergroupid']==5">
and so on. ;)

Beermonster 04-22-2004 09:29 AM

Thanks :)

Bulent Tekcan 04-22-2004 02:07 PM

Still not working my board,anyone test in 3.0.1 ?

Realy great hack but I cannot use :(


All times are GMT. The time now is 12:58 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.01024 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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