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 [you] Code Hack (https://vborg.vbsupport.ru/showthread.php?t=62682)

Erwin 04-01-2004 10:11 AM

Great hack! :)

Boofo 04-01-2004 10:16 AM

Thank you, would-have-been-my-boss-if-you-were-still-an-Admin-here. ;)

Are you planning on using this to abuse and torture your members this April Fool's day?

Because if you are, it works great for that! ;)

Erwin 04-01-2004 10:17 AM

It would be better if Unregistered users see a particular name instead of unregistered, since that gives the game away. :) But cool... trying it out now since it's April 1...

Boofo 04-01-2004 10:36 AM

I'm sure you could do a conditional in the functions.php code for that. ;)

SpeedysWorld 04-01-2004 11:56 AM

/me Loves this hack! I wille be clicking install when I get home, just getting a list together of the hacks I am going to be installing tonight.

- SpeedysWorld

BarBeQue 04-07-2004 05:47 PM

[high]* BarBeQue clicks install
[/high]

works great! nice and easy hack, although the archive edits made me fall asleep ;)

Boofo 04-07-2004 05:55 PM

Without those edits, the hack wouldn't fool anyone. They would be able to see the [you] code. ;)

msimplay 04-08-2004 11:31 AM

change unregistered into guest ?

Boofo 04-08-2004 11:57 AM

You can do that right below the code in the functions.php. ;)

Bro_Joey_Gowdy 04-08-2004 01:30 PM

/me clicks install

Great Hack

Toneboy 04-10-2004 01:33 AM

Just taken a look at the code for this. Looks a lot more comprehensive than the vB2 version. Nice work.

Will install when my eyes aren't totally bloodshot. :)

Boofo 04-10-2004 10:22 AM

That's the best time to install. If you mess up, you don't really care then. LOL

Don't forget the install button when you install it. ;)

Toneboy 04-10-2004 08:19 PM

Installed with fresh eyes. :)

Clicked install - tested, and all working great. Thanks.

miz 04-17-2004 01:29 PM

nice job mate
i will try this 1 out :P

Boofo 04-17-2004 01:32 PM

Quote:

Originally Posted by miz
nice job mate
i will try this 1 out :P

Don't forget the install button, my friend. ;)

EDIT: You beat me to it. LOL

BarBeQue 04-18-2004 11:40 AM

Quote:

Originally Posted by Boofo
Don't forget the install button, my friend.

I see you saying that on several places...
How do you see who installed what hack?
Or is it something only the orig hack poster can see?

Boofo 04-18-2004 09:28 PM

Quote:

Originally Posted by BarBeQue
I see you saying that on several places...
How do you see who installed what hack?
Or is it something only the orig hack poster can see?

If I tell you how I know, then I have to kill you! ;)

Actually, the original hack author can see it only in his hack threads, but Mods here can see it everywhere.

I use it to gauge whether or not updates and additions to my hacks are warranted. If there are very few installs, usually it isn't worth the effort to add or update the hack with new features. It there are many installs, then it it worth the time and effort involved to update or add new features since the hack is being used by so many people.

It's also a nice way to thank someone who has taken the time to supply a hack and support it. ;)

Mr. HillBilly 04-22-2004 11:10 PM

Great hack boofo, will click install I get it on my board.

Just to let you know,

Code in archive/index.php has changed in 3.0.1

In your .txt file you have,
PHP Code:

echo "\t<li><a href=\"t-$thread[threadid]\" d=\"$thread[lastpost]\">$thread[title]</a></li>\n"

Should be
PHP Code:

echo "\t<li><a href=\"t-$thread[threadid].html\" d=\"$thread[lastpost]\">$thread[title]</a></li>\n"

Also, code in archive/global.php has changed
Your .txt file has,
PHP Code:

echo "$indent<li><a href=\"f-$forumid\">$forum[title]</a></li>\n"

should be:
PHP Code:

echo "$indent<li><a href=\"f-$forumid.html\">$forum[title]</a></li>\n"

Also in the .txt file, you have,
PHP Code:

echo "$indent<li>$forum[title]</li>\n"

should be
PHP Code:

echo "$indent<li><strong>$forum[title]</strong></li>\n"

and you have,
PHP Code:

$navarray[] = "<a href=\"f-$forumid\">" $forumcache["$forumid"]['title'] . "</a>"

should be
PHP Code:

$navarray[] = "<a href=\"f-$forumid.html\">" $forumcache["$forumid"]['title'] . "</a>"


gwon 04-30-2004 10:47 AM

Advanced warning for people who install this: Remember to add [you] to the restricted username list...a user on my board registered [you] and lots of members got very confused very quickly ;)

*clicks install*

Sanity 08-15-2004 08:48 AM

Run into problems with "functions_newpost.php" - [you]-code wont parse in message body. Iam running vB 3.02.

Great hack anyway.

aranthorn 08-19-2004 06:05 PM

doesn't work on 3.0.3. As far as I can tell, there is no
PHP Code:

echo print_archive_navigation($foruminfo); 

in 3.0.3 index.php

andrew67 11-01-2004 09:06 AM

Nope there's not.
Also does this work for thread titles? Assuming it worked for vb3.0.3

aranthorn 11-01-2004 05:03 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=68832" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=68832</a>

Boofo 11-01-2004 08:55 PM

Quote:

Originally Posted by aranthorn

You'd better check to make sure that is going to work everywhere. I was going to do it that way in my version but there were too many places that you can't catch with the way you are doing it. ;)

andrew67 11-01-2004 09:14 PM

I've actually got similar code to that at the moment but it doesn't work on thread titles.

Boofo 11-01-2004 09:21 PM

Quote:

Originally Posted by andrew67
I've actually got similar code to that at the moment but it doesn't work on thread titles.

Mine works on thread, forum and archive titles. True, I haven't updated it for 3.0.3 yet as I am not running that version and don't plan to upgrade until new versions stop coming out so frequently. ;)

It should be very easily adaptable though. ;)

eXtremeTim 01-01-2005 06:11 AM

I used the following code in functions.php instead of the code you provided.

PHP Code:

        if (THIS_SCRIPT != editpost) {
            global 
$bbuserinfo;
            
$replacementvars['/\[you\]/i'] = $bbuserinfo['username'];

        }
            
$replacementvars['/\[test\]/i'] = "This is just a test."

Reason I did this is so that its not parsed on editpost so that when you edit a post that contains it you dont have that nice problem of it locking in on your name. Also so you can tell when other users are using it faster and easier. The reason for the [test] code is since that it will allways be looking for something to parse out so on edit post you would get an error becuase there would be nothing to parse out since the error checking code was removed when this hack was installed.

Boofo 01-01-2005 07:33 AM

Quote:

Originally Posted by eXtremeTim
I used the following code in functions.php instead of the code you provided.

PHP Code:

        if (THIS_SCRIPT != editpost) {
            global 
$bbuserinfo;
            
$replacementvars['/\[you\]/i'] = $bbuserinfo['username'];
 
        }
            
$replacementvars['/\[test\]/i'] = "This is just a test."

Reason I did this is so that its not parsed on editpost so that when you edit a post that contains it you dont have that nice problem of it locking in on your name. Also so you can tell when other users are using it faster and easier. The reason for the [test] code is since that it will allways be looking for something to parse out so on edit post you would get an error becuase there would be nothing to parse out since the error checking code was removed when this hack was installed.

Exactly what part of the code did you replace with this in functions.php? There is a big block of code there. ;)

eXtremeTim 01-01-2005 02:51 PM

If you have the hack installed replace the following with the code I posted above:

PHP Code:

            global $bbuserinfo;
            
$replacementvars['/\[you\]/i'] = $bbuserinfo['username']; 

If you are doing a fresh install replace the following
PHP Code:

function process_replacement_vars($newtext$sendheader 1)
{
    
// parses replacement vars

    
global $DB_site$vboptions$style$stylevar$newpmmsg$_SERVER$debug;
    static 
$replacementvars;

    if (
connection_status())
    {
        exit;
    }

    
// do vBulletin 3 replacement variables
    
if (!empty($style['replacements']))
    {
        if (!isset(
$replacementvars))
        {
            
$replacementvars unserialize($style['replacements']);
        }

        
// this is WAY too slow!
        //$newtext = strtr($newtext, $replacementvars);

        // using str_replace() has case-sensitivity issues...
        //$newtext = str_replace(array_keys($replacementvars), $replacementvars, $newtext);

        // this is slower than str_replace() but is case-insensitive, so we'll use it.
        
$newtext preg_replace(array_keys($replacementvars), $replacementvars$newtext);
    }

    return 
$newtext;


with
PHP Code:

function process_replacement_vars($newtext$sendheader 1)
{
    
// parses replacement vars

    
global $DB_site$vboptions$style$stylevar$newpmmsg$_SERVER$debug;
    static 
$replacementvars;

    if (
connection_status())
    {
        exit;
    }

    
// do vBulletin 3 replacement variables
    
if (!isset($replacementvars))
    {
            
$replacementvars unserialize($style['replacements']);
        }
if (
THIS_SCRIPT != editpost) { 
            global 
$bbuserinfo
            
$replacementvars['/\[you\]/i'] = $bbuserinfo['username']; 

        } 
            
$replacementvars['/\[test\]/i'] = "This is just a test."


        
// this is WAY too slow!
        //$newtext = strtr($newtext, $replacementvars);

        // using str_replace() has case-sensitivity issues...
        //$newtext = str_replace(array_keys($replacementvars), $replacementvars, $newtext);

        // this is slower than str_replace() but is case-insensitive, so we'll use it.
        
$newtext preg_replace(array_keys($replacementvars), $replacementvars$newtext);

    return 
$newtext;



Tipi 01-20-2005 08:28 PM

This was the hack i was looking for when i installed the /me hack. :nervous: Very nice hack, Boofo! And I clicked install too. ;)

DeMiNe0 02-09-2005 10:33 AM

updated for 3.0.6 yet?

Christine 05-17-2005 01:28 AM

Anyone have this running on 3.0.7?

Steve F 08-06-2005 07:14 AM

Installed on 3.07, thanks for sharing, had good fun on my forums :devious:

sebbe 06-06-2006 12:47 PM

This doesn't work on vB 3.5 right?

Chy 09-30-2007 09:00 PM

Has anyone tried this on 3.6.8?

insolentmuse 10-09-2007 07:06 PM

Quote:

Originally Posted by Chy (Post 1350423)
Has anyone tried this on 3.6.8?

Did you try this?

PassatWorld 03-28-2008 07:46 PM

3.6.8

Im getting:

XML Error: syntax error at Line 1

Boofo 03-28-2008 08:46 PM

Try the 3.7 version.

jediteknoman 04-02-2008 03:41 AM

I'm interested to try this out, do you guys have any screenshots to show me what this does?

robbiefritz 01-01-2009 02:01 PM

Quote:

Originally Posted by Boofo (Post 1477122)
Try the 3.7 version.

I was unable to find the modification for 3.7?


All times are GMT. The time now is 12:08 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.01532 seconds
  • Memory Usage 1,860KB
  • 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
  • (14)bbcode_php_printable
  • (8)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