PDA

View Full Version : Reader's name inside post (+)


Admin
02-18-2002, 10:00 PM
Note: This hack will only work on PHP 4.0.5 and higher. Sorry for all the others (anyone still using these old versions?!). :)

Anyhow, this is a great little hack, and most importantly very very fun for the masses. :D
It gives your users the ability to use {bbusername} in their post, and it will mysteriously be changed into the viewer's username when he reads the page.

Demo:
FireFly <!-- auto name hack -->

You can detect this hack is in action by viewing the HTML source of the page. You will see <!-- auto name hack --> next to the name in the source.

You can this hack used in action here as well:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=35192

This hack also contains a small optimization to vBulletin, which removes a lot of calls to str_replace() and replaces that with only one (which is why this hack only works with PHP 4.0.5 and up).

Have fun, I know you will. :D

Scott MacVicar
02-19-2002, 11:54 AM
a classic lets see if it can provide the same type of amusement we have on other boards :p

TWTCommish
02-19-2002, 11:57 AM
'Zactly. This hack is completely useless from a practical standpoint. However, I could use a good laugh. :D :up:

EDIT: yeck...those lines in the text file have to be removed...I either have to copy the code and then weed them all out and such, or re-type it. :(

Admin
02-19-2002, 12:06 PM
I realize this hack is useless, but I think it's fun nonetheless.

Chris, gotcha'. Updated the file. :)

TWTCommish
02-19-2002, 12:10 PM
File looks the same to me...also, I installed it, all my replacement variables jacked up and my board looked like a rainbow, so I uninstalled it...

Lesane
02-19-2002, 12:56 PM
Great fun hack, thanks :up:

Admin
02-19-2002, 01:39 PM
TWTCommish, the file is updated, you were probably just getting a cached version of it.
Install the hack again and do exactly what it says.

TWTCommish
02-19-2002, 01:41 PM
Yep, got it working around 10 minutes after posting that.

Admin
02-19-2002, 01:44 PM
Good. :)

TWTCommish
02-19-2002, 03:07 PM
I tried to get this same effect with the email notifications (those are sort of a dead give-away)...by sticking this code...


$emailsubject = str_replace('{bbusername}', $bbuserinfo[username], $emailsubject);
$emailmsg = str_replace('{bbusername}', $bbuserinfo[username], $emailsubject);
...before this code...

mail($toemail,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
...in newreply.php. No go, though. What's wrong?

hondastyle
02-19-2002, 03:32 PM
Okay, I'm easily amused... I'll admit it.
I installed this hack and posted a message that reads "{bbusername}, you are my favorite user. I wish everyone else on here was like you..."

I'm dying laughing as the responses start to appear. The hardest part is the anticipation of how long it is going to take until people start to catch on.

Too funny - thanks for the laugh ;)

Admin
02-19-2002, 03:54 PM
TWTCommish, you are using the wrong variable in the second lind.

hondastyle - hehe. :D Care to give us the link? :)

TWTCommish
02-19-2002, 04:15 PM
D'oh, my bad. The email subject part doesn't work either, though. :( Any idea what the problem is?

M.Smith
02-19-2002, 04:54 PM
the first piece of code i have to find isnt in my function.php and i havent edited it :noid:

Bald Bouncer
02-19-2002, 05:09 PM
Ah I get it now....I suddenly thought I was populiar after reading this thread :D

nafae
02-19-2002, 06:06 PM
Originally posted by FireFly

This hack also contains a small optimization to vBulletin, which removes a lot of calls to str_replace() and replaces that with only one (which is why this hack only works with PHP 4.0.5 and up).

Have fun, I know you will. :D

Does it go SPEEDIER!?

Radon3k
02-19-2002, 06:12 PM
That's awesome...Thanks for yet another great hack FireFly! :)

Remi
02-19-2002, 07:14 PM
Thank you for this nice hack

But is there a way to hide "Unregisterd" if the user is not loged in.

Kumaro
02-19-2002, 08:45 PM
^^^ lol...yeah same here. I have a question, Is it possible to put this in a template? So if I wanted to include the readers name in a template....is that possible?

Steve Machol
02-19-2002, 08:51 PM
This is going to be a great hack to use on April Fool's Day! :D

-=dm=-
02-19-2002, 10:36 PM
cool thanx

Twig Deez
02-19-2002, 10:41 PM
works like a charm, thanks! :)

ptbyjason
02-19-2002, 11:45 PM
I am enjoying confusing my moderators right now, after I finally tell them what is going on, we are going to have some fun on the board. For now I am keeping this little secret all to myself.

hondastyle
02-19-2002, 11:55 PM
Originally posted by FireFly
TWTCommish, you are using the wrong variable in the second lind.

hondastyle - hehe. :D Care to give us the link? :)

Doh! It was in my admin section.... but my regular users are the next victims... I'll be back with the link after I get it posted... muwahahahaaaa!

Psychdrone
02-20-2002, 12:38 AM
Originally posted by Kumaro
^^^ lol...yeah same here. I have a question, Is it possible to put this in a template? So if I wanted to include the readers name in a template....is that possible?

yes me too?

And FF, pat yourself on the back, for another amusing hack:)

hondastyle
02-20-2002, 12:54 AM
Okay, read it and weep:
http://www.hondastyle.com/forums/showthread.php?threadid=3068

Mind you, my moderators gave it away a bit (i got 'em good in the moderator's forum...) But I suspect I'll still catch enough off-guard to make it worth my while.. lol ;)

Chris

techno
02-20-2002, 01:05 AM
hmmm... I keep getting that really bright rainbow looking web page too...?? Whats the deal with that?

zajako
02-20-2002, 07:00 AM
this hack is extremely useful for rping boards. You can set up actions like for ex. IRC chat rooms
(Typed) /me jumps
(displayed) *Zajako jumps
you get the picture.
I think its great FireFly

Lucky
02-20-2002, 09:29 AM
You got a big 5 star rating.

Thanks for the laugh.

SWFans.net
02-20-2002, 10:28 AM
Hehe, it even works in topic titles. :D

And I think I may actually have a practical use for it at our forums. A great deal of our members are role players with multiple names. I may add that into the templates for forumdisplay to let people know exactly what name they are logged in as. :)

Thanks for the nice hack Firefly.

pdatoon
02-20-2002, 11:42 AM
+-------------------------------------------------------------------------------------------------+
| In functions.php, find this code: |
+-------------------------------------------------------------------------------------------------+
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$fullpm;
+-------------------------------------------------------------------------------------------------+

I'm running 2.2.2 regular and i dont have the fullpm at the end of the line. Mine is just:
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg;

pdatoon
02-20-2002, 12:09 PM
help!

I installed the hack and then got all kind of errors, i removed it but still get errors. When i loggout, it says :


"Database error in vBulletin 2.2.2:

Invalid SQL: UPDATE session SET lastactivity=,location='/pdaforum/member.php?s=&action=logout' WHERE sessionhash='553368d684ae4aa1b92856c41f9703af'
mysql error: You have an error in your SQL syntax near 'location='/pdaforum/member.php?s=&action=logout' WHERE sessionhash='553368d684ae' at line 1

mysql error number: 1064

Date: Wednesday 20th of February 2002 05:56:28 AM
Script: http://www.pdafrance.com/pdaforum/pdaforum/member.php?s=&action=logout
Referer: http://www.pdafrance.com/pdaforum/index.php?s=
"
and the who's online doesnt show people in the board anymore :(

pdatoon
02-20-2002, 12:26 PM
man i dont know what happened.
I had to reupload a bunch of files.
I think it kept corrupting the files on the server.

very weird :rolleyes:

SWFans.net
02-20-2002, 08:48 PM
I wonder if there wouldn’t be a way to add to this a tiny bit and insert random usernames for replacement variables in posts?

SWFans.net
02-20-2002, 08:49 PM
Originally posted by pdatoon
+-------------------------------------------------------------------------------------------------+
| In functions.php, find this code: |
+-------------------------------------------------------------------------------------------------+
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$fullpm;
+-------------------------------------------------------------------------------------------------+

I'm running 2.2.2 regular and i dont have the fullpm at the end of the line. Mine is just:
global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg; I think some of the variables ($fullpm) that are in that line are from other hacks. I just added the bbusername variable to my line in functions.php and it worked great.

Tim Wheatley
02-20-2002, 09:10 PM
Why is this is ANY way useless??

If you have an important new bit of info which EVERYONE should read - put their username in the title - LOL

techno
02-20-2002, 11:04 PM
ok, I'm still having problems with this hack. This is the first hack i have ever had problems with, so I am absolutely clueless as to what is going wrong. The pages load, but there all bright and rainbow colored. Most of the .gifs are missing, and at the very top left it says {html doctype}...or something like that.

I am using the version of vB that has the .php3 extension....could that cause any problems?

Psychdrone
02-20-2002, 11:31 PM
Originally posted by techno
ok, I'm still having problems with this hack. This is the first hack i have ever had problems with, so I am absolutely clueless as to what is going wrong. The pages load, but there all bright and rainbow colored. Most of the .gifs are missing, and at the very top left it says {html doctype}...or something like that.

I am using the version of vB that has the .php3 extension....could that cause any problems?

I bileve that if you actually read the first line
FF, said something like this

Note: This hack will only work on PHP 4.0.5 and higher. Sorry for all the others (anyone still using these old versions?!).

techno
02-20-2002, 11:54 PM
yes, but i noticed that someone else had the same problem earlier and seems to have gotten it fixed.

Sharp
02-21-2002, 01:26 AM
Ahem....testing... {bbusername} :D Neato hack...

Lionel
02-21-2002, 03:39 AM
will this work with 2.21? I'd like to use it for users who never post.

Jawelin
02-21-2002, 06:51 AM
Originally posted by Lionel
will this work with 2.21? I'd like to use it for users who never post. I'm very interested in this option!!!
Could you tell me more how do you think to use to 'incentivate' posts ?
I have about one user by two with 0 posts and don't figure how to 'force' them to post something.
I wouldn't use too restrictions like attachment hack and so on...

Please, give some hint.
Thanks

Stretchr
02-21-2002, 07:17 AM
Popular is great but I found out, over in the Lounge, that I was having someone's baby! I'm still trying to convince my wife that it's hers! :frus: :D
Originally posted by Bald Bouncer
Ah I get it now....I suddenly thought I was populiar after reading this thread :D

Wolf42
02-21-2002, 07:49 AM
SUPER!!!!! :D

THX!

Tho007
02-21-2002, 07:53 AM
I have test this on 2.2.1
At the first post, this works great but then I have a Database error we pdatoon. I have repair any tables.
Bye

TECK
02-21-2002, 08:28 AM
well.. fun is allowed at vB.org to.. right? ;)

voogru
02-21-2002, 08:34 AM
{bbusername} is a silly bear!

Admin
02-21-2002, 10:07 AM
Originally posted by techno
yes, but i noticed that someone else had the same problem earlier and seems to have gotten it fixed.
If I weren't serious with my remark about PHP version I wouldn't post it, would I?

Admin
02-21-2002, 10:08 AM
Originally posted by SWFans.net
I think some of the variables ($fullpm) that are in that line are from other hacks. I just added the bbusername variable to my line in functions.php and it worked great.
Could be that the $fullpm was removed in version 2.2.2, because we are still running version 2.2.1 and that's where I test my hacks as well.

nuno
02-21-2002, 10:12 AM
one of the best ever
i love this hack
thx Chen :)

Remi
02-21-2002, 10:51 AM
Is there a way of restricting the for admins only!!

My users start abusing this nice hack, I don't want to remove it

SWFans.net
02-21-2002, 11:58 AM
Originally posted by FireFly

Could be that the $fullpm was removed in version 2.2.2, because we are still running version 2.2.1 and that's where I test my hacks as well. Its possible, but I?m really not sure. I upgraded my forums to 2.2.2 via PPN?s hack he posted here, but don?t remember if that was a step.

Goes to check

Nope, I don?t see it in his update file as a change. Oddness.

Admin
02-21-2002, 01:00 PM
Well, I can only guess, but maybe it's part of a hack (if it exists) that adds a "Your inbox is full" popup to pages, like "You have a new message". Or maybe that's already a feature... god I can't remember. :p

It's possible to limit this hack to admins, yes.
Replace this:
$replacewords=array(0 => "$bbuserinfo[username]<!-- auto name hack -->");
with this:
$replacewords=array(0 => iif($bbuserinfo['usergroupid']==6,"$bbuserinfo[username]<!-- auto name hack -->",'{bbusername}'));

Martin CX
02-21-2002, 06:17 PM
Very cute hack Firefly. It'll be great fun trying it out. :DOriginally posted by SWFans.net
And I think I may actually have a practical use for it at our forums. A great deal of our members are role players with multiple names. I may add that into the templates for forumdisplay to let people know exactly what name they are logged in as. :)You don't need the hack to do that, though. Just use $username in the templates.

James Cridland
02-21-2002, 07:56 PM
Totally pointless.

Great fun.

Although I hear {bbusername} is getting a bit sick of it.

techno
02-21-2002, 08:20 PM
Originally posted by FireFly

If I weren't serious with my remark about PHP version I wouldn't post it, would I?


Nope, I just didn't think that is what my problem was. Time to contact the server owner and tell him to upgrade!! :):)

Anyway's Firefly, its looks like a really fun hack.

NYI Fan
02-21-2002, 08:54 PM
I have been holding off unleashing it on my forums cuz i want to think of something really good to get them with! I know 1 or 2 people posted what they did, anyone else actually implement this on their site yet and feel like sharing?

James Cridland
02-21-2002, 09:34 PM
http://forums.mediauk.com/showthread.php?threadid=13307

Oh, it's funny... even when people have realised what's going on, others don't realise... !!

This is the funniest hack I've installed... :)

James Cridland
02-21-2002, 09:42 PM
The effect is rather spoilt by the <--! AUTO NAME HACK --> thing, so I removed that from the version I installed. The funniest bit is page 2, where two users both quote and reply to the text, saying how kind it is of me... !

NYI Fan
02-21-2002, 10:04 PM
HI James
thanks for the link, and if you dont mind, where did you remove it from? (I would love to do the same)

Scott MacVicar
02-22-2002, 07:29 AM
FireFly its my "you have a full pm box please empty me" hack to pester people with full pm boxes to remove some. So the $fullpm is from that.

danielillo
02-22-2002, 10:50 AM
Will it work on 2.0.3 forum?

Thanks,

Daniel.

James Cridland
02-22-2002, 12:27 PM
One of our forum guides says... "I think you could have more fun if you had a random generator version!! That could really confuse people!!"

Mark Hewitt
02-22-2002, 12:51 PM
bwhaha great! I've posted my joke thread ;).

But I do actually have a serious use for this. For putting the forum name inside a post. (As I use cobranding on my forums)

The info I need is contained within the $bbuserinfo array. How can I alter the code so that it supports two replacements?

Rose
02-22-2002, 04:48 PM
I assume if you aren't using .php3 (and you are using the default .php ext.) then that is the right version?

I've looked around a bit and I still can't see why it's not coming up right. I don't have any errors, just no cool hack. *lol*

Counts steps - Make two changes to functions.php & Upload.

Is that it?

Unless it has something to do with the fullpm hack, which I don't have, so I removed that bit of text from the coding. Would that effect it?

Rose
02-23-2002, 02:09 PM
Anyone have a suggestion? I've edited the two places in my functions.php, uploaded, and tried it out. I see the actual string { bbusername } (without spaces, of course). I logged in as a regular member to see if it was my status, but the same thing. :s

SWFans.net
02-25-2002, 01:41 AM
Originally posted by Martin CX
You don't need the hack to do that, though. Just use $username in the templates. Tried that and had it fail in 2.2.2. It displays other member's usernames for me when I go into the forum when just using that variable.

Admin
02-25-2002, 05:09 AM
$bbuserinfo[username], SWFans.net.

DWZ
03-11-2002, 09:07 AM
this could become a bit of fun :)

Matt
03-11-2002, 05:42 PM
I installed the hack on the board but the problem is it seems to muckup the postbit template. :( The user title on any posts I use it in comes out as "-" and it goes to display the away image instead of my edited online/offline postbit templates. The rest looks the same.

Any idea what causes this?

DarkReaper
03-12-2002, 01:53 AM
Um..I'm confused. What exactly does this do...?

Zaphod
03-14-2002, 02:30 PM
I have found it does not work with the new security refinements in vb 2.2.x But was able to come up with a easy workaround.

Modify this :
$findwords=array(0 => '{bbusername}');

to use :
$findwords=array(0 => '=bbusername=');

and use =bbusername= in your posts.

hope this helps :classic:

Cloughie
03-15-2002, 03:22 PM
hey i did this..

the {bbusername} works in the thread title but not in the actual thread..

any ideas why?

Admin
03-15-2002, 05:03 PM
Install the fix by smachol in the sticky thread in this forum.

simon
03-31-2002, 02:32 PM
will this work with 2.2.4 ???

Admin
03-31-2002, 04:18 PM
Yes.

Steve Machol
04-02-2002, 02:23 AM
Just as note to let everyone know I used this hack with predictably funny results as a April Fool's Day joke on my board. I combined it with Scott Pakin's automatic complaint-letter generator (http://hugin.sigusr1.org/~pakin/complaint) and the resulting thread set a one day record for responses and views on my forums.

You can see the results here:

http://www.optiboard.com/forums/showthread.php?s=&threadid=4330

Admin
04-02-2002, 04:54 AM
LOL I created a monster. :D Nice going Steve.

CeleronXL
04-07-2002, 09:35 PM
Sorry to bring this back up again, but are there only two steps to this? All I see is two changes two changes to functions.php and it ends there.... It doesn't say save and reupload, so I'm not sure if it ends there....

CeleronXL
04-07-2002, 11:38 PM
Well? I'd really like to install it, but it seems like there has to be more than what I just said above....

Steve Machol
04-08-2002, 05:08 AM
Yes, you just make the two changes to functions.php. Although it doesn't specifically say to 'save' and 'reupload', I thought those steps were pretty obvious. Hence, that's what I did. ;)

Fallout2man
04-08-2002, 06:40 AM
Would there possibly be a way of doing this, but instead of having to quote the person it actually replaced the variable in the user's post to whomever was viewing the thread?

Editor
04-08-2002, 09:57 AM
Nope...we've followed the steps (and tried the ==bbusername== opion) on vB 2.2.5, and no luck. Nothing comes up where the username is meant to.

-=dm=-
04-08-2002, 01:42 PM
Im using v2.2.4 now its not working anymore:(
I have also used the fix from smachol...

Steve Machol
04-08-2002, 04:25 PM
Originally posted by Editor
Nope...we've followed the steps (and tried the ==bbusername== opion) on vB 2.2.5, and no luck. Nothing comes up where the username is meant to. It works on my 2.2.5 forum. All I did was follow FireFly's instructions exactly. You can check it out for yourself:

http://www.optiboard.com/forums/showthread.php?s=&threadid=4330

Fallout2man
04-08-2002, 05:37 PM
But is there any way to integrate it with the sessionhash cookies so that it displays the username in the post according to the cookie on your computer? This hack could really be much more fun if it actually didn't require quoting to use.

Steve Machol
04-08-2002, 07:00 PM
What do you mean? This hack doesn't require any quoting. :confused:

Steve Machol
04-09-2002, 07:33 PM
All you need to do is make the two changes in functions.php that FireFly posted in the first message in this thread. Then to use the hack, just use {bbusername} in a post.

If that doesn't work for you then I have no idea what to tell you. This ain't that complicated.

CeleronXL
04-09-2002, 07:36 PM
Do you need to set replacements or something? It's not working for me.....

CeleronXL
04-09-2002, 09:29 PM
Hmm.... I installed it and it disabled the vBMicrostats.... It also still didn't work though and I uninstalled. Are you sure there's no more than those two steps...? No replacements or anything?

Steve Machol
04-09-2002, 09:33 PM
Yes I'm absolutely sure. I did exactly as I said and it worked. It sounds like another hack of yours is causing the problem. I don't have any other hacks so that may be the difference.

Hwulex
04-10-2002, 02:50 PM
Excellent.
It didn't work to start with, but I made the changes pointed out by Zaphod (here (https://vborg.vbsupport.ru/showthread.php?postid=229465#post229465)) and it works a treat.

Be interesting to see how the guys react :D (here (http://www.hwulex.co.uk/vB/showthread.php?threadid=115))

CeleronXL
04-10-2002, 06:27 PM
Ah ha, I found it. Ok, here it is:


$findwords=array(0 => '{bbusername}');
$replacewords=array(0 => "$bbuserinfo[username]");
$i=1;

$findwords=array(0 => '{getmicrostats}');
$replacewords=array(0 => $microstats);
$i=1;

while ($var=$DB_site->fetch_array($vars) and $i++) {
if ($var['findword']!="") {
$findwords[$i]=$var['findword'];
$replacewords[$i]=$var['replaceword'];
}
}


The microstats and the bbusername hack interfere with eachother. To fix this, what should I do? Should I change the $i=; value on them or something? I'm not very good with this, but someone should know a way to set them each as their own thing.

Admin
04-10-2002, 06:34 PM
Replace this:
$findwords=array(0 => '{bbusername}');
$replacewords=array(0 => "$bbuserinfo[username]");
$i=1;

$findwords=array(0 => '{getmicrostats}');
$replacewords=array(0 => $microstats);
$i=1;
With this:
$findwords = array(
0 => '{bbusername}',
1 => '{getmicrostats}'
);
$replacewords = array(
0 => $bbuserinfo['username'],
1 => $$microstats
);
$i = 2;

CeleronXL
04-10-2002, 06:45 PM
Nice response time, man! That area of the code now looks like this:


$findwords = array(
0 => '{bbusername}',
2 => '{getmicrostats}'
);
$replacewords = array(
0 => $bbuserinfo['username'],
1 => $microstats
);
$i = 2;

while ($var=$DB_site->fetch_array($vars) and $i++) {
if ($var['findword']!="") {
$findwords[$i]=$var['findword'];
$replacewords[$i]=$var['replaceword'];
}
}
$newtext=str_replace($findwords,$replacewords,$new text);
So the Microstats works again, but the {bbusername} just shows up as a blank space in the post..... =/ Is there anything I need to change in the lower portion of the code (beginning with "while ($var=.....").

Btw, I also had to get rid of one of the $'s before microstats....

Admin
04-10-2002, 06:52 PM
Make sure $bbuserinfo is still in the global line in dovars().

CeleronXL
04-10-2002, 06:55 PM
Thanks!! You are a bloody genius! Works now! W000000t! :D

CeleronXL
04-10-2002, 10:35 PM
Waait a second. It only works in the title, not in the post itself.... It doesn't show up in the post, but if you click Edit then it has the username inserted there.... But it still doesn't work in the post.

Admin
04-11-2002, 10:10 AM
See the thread by smachol in this forum "Fix replacement" thing.

Slynderdale
04-17-2002, 11:31 AM
would it be possible to make it work in certain forums for example forumid 57 and 58?

Admin
04-24-2002, 08:56 AM
LOL :D

LaNder
04-27-2002, 02:42 PM
Originally posted by FireFly
It's possible to limit this hack to admins, yes.
Replace this:
$replacewords=array(0 => "$bbuserinfo[username]<!-- auto name hack -->");
with this:
$replacewords=array(0 => iif($bbuserinfo['usergroupid']==6,"$bbuserinfo[username]<!-- auto name hack -->",'{bbusername}'));


i tried this, but now the joke works only for admins, they see their username instead of {bbusername }.

all other users now see the variable instead of their usernames?

is there a possibility to limit the posting of replacements only to special usergroups?



LaNder

Robouk5
04-27-2002, 10:04 PM
For some reason i couldnt fin the first line in the txt file in my functions.php ?
im using 2.24 and i think thats why, would it be possible to update this hack? thanks

bandersen
05-10-2002, 03:26 PM
Its not working by me...
I am on 2.2.5... I did remove the line according to Smachol... and I did try the =bbusername= in functions.php and when posting.

I do not get the unsername displayed... just {bbusername}

Is it to send an email too?

zeedy2k
05-19-2002, 02:58 PM
ok, I added this and it works ok except for one thing, when I add the {bbusername} to the subject it works, but in the actual post it doesnt work.

Help Please

Admin
05-19-2002, 03:12 PM
Have you installed the "Fix" from smachol?

zeedy2k
05-20-2002, 10:51 PM
call me dumb of whatever, but I can seem to find smachol's fix,

Anyone got the Direct URL to it?

zeedy2k
05-20-2002, 11:10 PM
found it

Boofo
05-21-2002, 05:04 AM
I tried to install this but I have the midrostats hack installed so I couldn't find the code I needed to change like it is in the text file. Also, what is the $fullpm part of the code it needs to replace? That wasn't in there at all. Does anyone know how I can do this with microstats installed on 2.2.5? :)

global $DB_site,$replacementsetid,$gzipoutput,$gziplevel, $newpmmsg,$fullpm;

zeedy2k
05-21-2002, 05:32 PM
Did anyone fix this so only an admin can have the ability to post using it but everyone can view it?

zeedy2k
05-22-2002, 04:13 PM
Anyone?

Vivi Ornitier
06-11-2002, 12:26 AM
can we fix this hack for vb 2.2.6? This hack is one of the best hacks and i need it again!

Boofo
06-11-2002, 12:43 AM
Just install the hack and don't tell your users you have it. If they don't know the variable you are using, they can't use it. :)

Originally posted by zeedy2k
Did anyone fix this so only an admin can have the ability to post using it but everyone can view it?

Admin
06-11-2002, 11:03 AM
What part of it doesn't work, Vivi?

Vivi Ornitier
06-11-2002, 10:17 PM
well it's not working on these forums currently, so there must be something wrong with it being integrated into 2.2.6. if u use {bbusername} it's just displays that, and not the username.

Steve Machol
06-11-2002, 10:57 PM
It doesn't work on these forums because FireFly uninstalled the hack. it does work on my 2.2.6 forum. Here it is in action as part of my April Fool's joke on my members:

http://www.optiboard.com/forums/showthread.php?s=&threadid=4330

If you read through this thread you would have noticed that you may need to apply this hack as well:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=35894&highlight=replacement

cteselle
06-17-2002, 09:28 PM
I'm having an interesting problem with this hack on my 2.2.6 installation. This hack will work in the subject line, but not the body of the message. This worked just fine in my previous 2.2.2 installation.

Any ideas?

Steve Machol
06-17-2002, 09:38 PM
I can't say I have the same problem. It's works fine on my 2.2.6 forum. Did you apply the second hack I listed in my previous message?

cteselle
06-17-2002, 10:16 PM
:nervous:

That did the trick!

Thanks!

Talisman
11-04-2002, 04:02 AM
Just installed the =bbusername= variation to this hack.

(Heaven help us.)

:banana:

Bison
11-12-2002, 12:52 AM
i'll try this ... seems like I can use this for something!

DWZ
03-25-2003, 06:39 AM
Hey everyone,

I want to install this for when april 1st comes around.

the thing is, I only want this to work for one user. So, I was thinking I could replace this: $replacewords=array(0 => "$bbuserinfo[username]");with this: $replacewords=array(0 => iif($bbuserinfo['userid']==xxxx,"$bbuserinfo[username]",'=bbusername='));(I'm using Zaphod's edit to use =bbusername=)

Would that work?

Thanks!

euangel
04-01-2003, 05:35 AM
Has anyone got this working in 2.3.0?

the functions.php file doesn't have any of the original code to change anymore

nintendo
04-08-2003, 06:52 AM
Is it possible to have two settings, where if the admin posts it, it shows up as the username, and if everyone else posts it, it shows up as 'username' (with the 's)?

StevenLReady
04-22-2003, 03:57 AM
Does anyone know of to get this working on 2.3.0? I would really love to have it installed for my introductory thread when my board opens. :nod:

Mystics
05-30-2003, 10:10 AM
04-22-03 at 07:57 AM StevenLReady said this in Post #125 (https://vborg.vbsupport.ru/showthread.php?postid=385416#post385416)
Does anyone know of to get this working on 2.3.0? I would really love to have it installed for my introductory thread when my board opens. :nod: I have attached it, if anybody still needs it.

Mr. Brian
05-30-2003, 12:54 PM
Sound interesting.. :p

Thanks for the hacks bty.. :cool:

halkum
12-13-2007, 04:49 PM
Stupid question, since this is so old and such, but any hack out there for 3.6.8 or around that version like this?

DieselMinded
12-14-2007, 12:05 AM
Ditto

punchbowl
12-15-2007, 11:49 AM
Ditto

tridtto