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-23-2004 09:02 PM

Quote:

Originally Posted by Liquid1ce
This would hide the links to unreg'd?

Code:

<if condition="$bbuserinfo[userid]">
<if condition="$show['url_bbcode']">
<td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
</if>
<else />
<td><img src="$stylevar[imgdir_editor]/mustreg.gif" alt="Must be registered to use these BB codes" width="92" height="20" /></td>
</if>


As long as the links are inside the php, code or html tags, they would be hidden with this hack.

Liquid1ce 04-23-2004 09:06 PM

ok thnx man

Boofo 04-23-2004 09:49 PM

Quote:

Originally Posted by Mr. HillBilly
PHP files had no different code.


Heres the .txt you requested

Thank you, sir. I will get this updated and add the new additons and release it in a few days. ;)

You're on my site, aren't you?

Mr. HillBilly 04-23-2004 10:24 PM

Quote:

Originally Posted by Boofo
Thank you, sir. I will get this updated and add the new additons and release it in a few days. ;)

You're on my site, aren't you?

Not that I know of :eek:


But I'll join

Logikos 05-03-2004 02:00 AM

Hey Boofoo just so you know, this hack does no good as the code in the archive is still viewable :( Could you maybe fix this. I tried and coudn't figure it out. I have disabled my Archive for this. BTW im using vB 3.0.0

Logikos 05-04-2004 09:55 AM

Any idea when this could be fixed? Or anyone eles know how to fix this problem?

Boofo 05-04-2004 10:12 AM

Just be patient young man. Relax. I am working on it now. ;)

Logikos 05-05-2004 01:15 AM

Just wanted to make sure you saw the post :) Thanks bud

Bulent Tekcan 05-11-2004 04:05 PM

Realy interesting because my forum is 3.0.1 but every code still visible,see in http://www.turkeyforum.com/satforum/...ad.php?t=10112 very interesting.

Any idea ?

Boofo 05-11-2004 04:27 PM

Quote:

Originally Posted by turkeyforum
Realy interesting because my forum is 3.0.1 but every code still visible,see in http://www.turkeyforum.com/satforum/...ad.php?t=10112 very interesting.

Any idea ?

You must have missed something somewhere. Make sure you do ALL of the edits for the functions_bbcodeparse.php.

Did you download the latest version of this hack? I don't see the double-click line in it on your site.

Logikos 05-12-2004 02:19 AM

Worked perfect for me :) vb 3.0.0 THANKS!!!!!

Boofo 05-12-2004 09:30 AM

Quote:

Originally Posted by Live Wire
Worked perfect for me :) vb 3.0.0 THANKS!!!!!

You're very welcome, sir. ;)

cLord 05-13-2004 05:32 PM

Maybe it's me but when I install this hack I get a javascript error when the page loads and the double-click doesn't work... :(

Can someone please help?
cLord

(vBulletin version: 3.0.1)

Boofo 05-13-2004 05:44 PM

Quote:

Originally Posted by cLord
Maybe it's me but when I install this hack I get a javascript error when the page loads and the double-click doesn't work... :(

Can someone please help?
cLord

(vBulletin version: 3.0.1)

What browser are you using?

cLord 05-13-2004 06:04 PM

IE 6.0.2800.1106 XPSP1...

cLord ;)

Boofo 05-13-2004 09:12 PM

You either have another hack installed conflicting with this or you missed some code somewhere when installing this hack. Those are the only things I can see that would be causing the problem you are having. Go through the hack instructions very carefully again and let me know if that fixes it. ;)

Logikos 05-14-2004 05:07 AM

Hey Boofo, could you maybe show me how to block it from a usergroup id also? I tried conditions but didn't work. I want to make sure people check there email before they can see the inside the tags. Thanks!

Boofo 05-14-2004 08:55 AM

Quote:

Originally Posted by Live Wire
Hey Boofo, could you maybe show me how to block it from a usergroup id also? I tried conditions but didn't work. I want to make sure people check there email before they can see the inside the tags. Thanks!

That's not a bad idea. I forgot all about people who don't verify. I'll get something together and get it to you.

Logikos 05-14-2004 04:36 PM

Sweet man, thanks a bunch

Bulent Tekcan 05-15-2004 06:53 PM

Hello

EDIT: Boofo has removed the attachment as vBulletin files are not to be posted here.

This is my file,is it correct.....

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 ?

Ruffneck 01-16-2005 12:56 PM

Can i use this hack also only for the code: [URL] ?

Ruffneck 01-16-2005 01:52 PM

Other question can i use this hack only on the forum id: 36 ?

ogetbilo 01-16-2005 05:54 PM

Is this working on 3.0.5 ?

H2k 02-11-2005 01:57 PM

Quote:

Originally Posted by ogetbilo
Is this working on 3.0.5 ?

For some reson this mod dose not work with me i use 3.0.6 and ihave many mod and hack installing in my board..

i try this one and it dont work .. the php and html and code.. is stillshowing .. any idea why this ..

i know that u are going to ask me .. i do not modify the php code.. in the bbcode.. but this code i have use it in 3.0..5 and it was work then after upgtade to the new v.. of vb 3.0.6 and i installing alot of mod hack then i try to install this one .. and it dont work with me .. everything is howing.

i have installing

ushop
Warn system
/you bbcode
and there is many other as well so i dont no if this is the reson or not..

thankyou

H2k 02-13-2005 05:07 AM

Quote:

Originally Posted by H2k
For some reson this mod dose not work with me i use 3.0.6 and ihave many mod and hack installing in my board..

i try this one and it dont work .. the php and html and code.. is stillshowing .. any idea why this ..

i know that u are going to ask me .. i do not modify the php code.. in the bbcode.. but this code i have use it in 3.0..5 and it was work then after upgtade to the new v.. of vb 3.0.6 and i installing alot of mod hack then i try to install this one .. and it dont work with me .. everything is howing.

i have installing

ushop
Warn system
/you bbcode
and there is many other as well so i dont no if this is the reson or not..

thankyou

Something is really wrong i have install this hack in the localhost.. and it work great.

when i upload the file .. it dont work .. i can view all the code php or html etc..

and know i dont no what wrong .. even i'am login . wiht my username. and it tel me unregisiter user can't view this .. anyidea about this erro r?

thankyou

arsec 03-03-2005 02:58 PM

how can i get it to work in 3.0.7???

T3MEDIA 04-18-2005 11:28 AM

I find sometimes the code gets blocked even if your logged in. SOME TIMES not all the time.

King Kovifor 07-21-2005 12:50 AM

I got this error:

Quote:

Parse error: parse error, unexpected T_STRING in /home/mytho4/public_html/vbrenegades/includes/functions_bbcodeparse.php on line 55
Line 55 is this:

PHP Code:

    $bbcodes = array 

Unless I counted Wrong.

EDIT: About to do a revert so that the board is viewable and I'll redo the hack tomorrow.

Crazy Serb 10-02-2005 12:12 AM

is there a new version of this for vbulletin 3.5?!! pleasssseeee!!!

vakvak 11-12-2005 10:06 PM

thanks..


All times are GMT. The time now is 06:02 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.01361 seconds
  • Memory Usage 1,839KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (13)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
  • (40)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