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)

Charlie Argueta 05-26-2004 10:29 AM

Hi Boofo

I have a question, if I also want to block the Spoiler Code, how do I do it with this Hack or I have to do something else?

See Ya

SaN-DeeP 06-14-2004 09:21 PM

this hack is not working for me.
i am using vb 3.0

I just want to disable the php code tag and rest leave enabled.
i have just modified the bbcode_php template and left the rest as it is.

its not working for me.
where can be the prob ??

this is the test thread.
http://207.58.143.178/forums/showthr...2928#post32928

and also the doubleclick php box to copy to clipboard not working.
would prefer to remove that.

is there any way to change this hack and enable it for displaying contents in this code tags for users with 20+ posts only.

Thnx.
Sandy...

SaN-DeeP 06-17-2004 10:24 PM

Quote:

Originally Posted by SaN-DeeP
this hack is not working for me.
i am using vb 3.0

I just want to disable the php code tag and rest leave enabled.
i have just modified the bbcode_php template and left the rest as it is.

its not working for me.
where can be the prob ??

this is the test thread.
http://207.58.143.178/forums/showthr...2928#post32928

and also the doubleclick php box to copy to clipboard not working.
would prefer to remove that.

is there any way to change this hack and enable it for displaying contents in this code tags for users with 20+ posts only.

Thnx.
Sandy...

bump

need some help
thnx.

Boofo 06-17-2004 10:36 PM

It looks to me like you forgot to edit the includes/functions_bbcodeparse.php. Post the bbcode_php template here and let me see it. We'll get you going. ;)

sabret00the 06-27-2004 01:21 PM

are the templates upto date yet?

Boofo 06-27-2004 02:03 PM

Quote:

Originally Posted by sabret00the
are the templates upto date yet?

Yessir. ;)

sabret00the 06-28-2004 12:22 PM

nice one, i was worried as i removed the javascript from the boxes then thought, darn these might be the old templates lol

SaN-DeeP 06-28-2004 01:53 PM

Quote:

Originally Posted by Boofo
It looks to me like you forgot to edit the includes/functions_bbcodeparse.php. Post the bbcode_php template here and let me see it. We'll get you going. ;)

hello boofo :)
thnx for ur time this is the template
i am using vb 3.0 and want to hide the code only for only for PHP tag.
can u possibly also tell me, to make this work only for users who have more then 25 posts.
only users above 25 posts should be able to read the content under hidden tags

Code:

<div style="margin:20px; margin-top:5px">
 <div class="smallfont" style="margin-bottom:2px">
<table cellpadding="0" cellspacing="0" border="0" width="$stylevar[codeblockwidth]">
<tr>
<if condition="$bbuserinfo['userid']">
<td class="smallfont" align="left" nowrap="nowrap">
$vbphrase[php_code]:
</td>
<td class="smallfont" align="right" nowrap="nowrap">
(Double-click PHP box to copy code to clipboard)
</td>
</tr>
</table>
</div>
 <a ondblclick='javascript:window.clipboardData.setData("Text", this.innerText); alert("PHP code copied to the clipboard. You can paste it now.");'><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></a>
<else />
<td class="smallfont" align="left">
$vbphrase[php_code]:
</td>
</tr>
</table>
</div>
 <div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset">
  <code style="white-space:nowrap">
  <!-- php buffer start -->$vbphrase[bf2_block_php]<!-- php buffer end -->
  </code>
 </div>
</if>
</div>

thnx.
Sandy...

sabret00the 06-29-2004 09:49 PM

want to be using the vb3 tabless code instead?

bbcode_code
HTML 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">
                <if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_code]</if>
        </pre>
</div>

bbcode_html
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">
                <if condition="$bbuserinfo['userid']">$code<else />$vbphrase[bf2_block_html]</if>
        </pre>
</div>

bbcode_php
HTML Code:

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


Bulent Tekcan 09-01-2004 01:18 PM

HTML code still viewing.....How can I hide it ?


All times are GMT. The time now is 06:36 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.01066 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_html_printable
  • (3)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