PDA

View Full Version : Private Text Message Hack v1.0


g-force2k2
08-17-2002, 10:00 PM
As requested [ Here ] (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41865&perpage=15&display=&pagenumber=1)

Please download the fixed attachment located [ Here ] (https://vborg.vbsupport.ru/attachment.php?s=&postid=287216)

If you've downloaded this hack before the redownload it or make the changes below... else the hack won't work... that should be it :)

Unfortunately FireFly didn't have the time to make the hack so i took it up on my own ;) Hope that you enjoy it... here's the breakdown... screenshots will be included below :)

Private Text Hack v1.0
Hack created g-force2k2 Sunday August 18th, 2002
vbulletin 2.2.6
Please don't edit this hack if you need any assistance refer to the thread.
If you have any problems please refer to the thread.
// ++++++++++++++

To Do
// ++++++++++++++
Queries to Run (6)
File Modifications (28)
newreply.php (8)
showthread.php (6)
editpost.php (8)
admin/functions.php (2)
admin/usergroup.php (4)
Templates to Add (8)
Templats to Edit (3)

What does this hack do?
// ++++++++++++++
It allows your users to private text each other within a post.
It still maintains a regular post. but allows an option to private text other users.
You can choose which usergroupcs can add private text messages and which groups can see them.
But unless a usergroup is allowed to view no other user will be able to view it except the user recieving and the user posting.
Enjoy this hack :) It's really a good addition to keep things smart.
The usergroups options can be edited in the admin cp usergroup.php
And the private text length can also edited in the vbulletin options in admin cp under thread options.
The private text messages work with bbcode... smilies... and disables html etc... same as a regular message would work.
Also maintains the same image count... so if you have your image set at 5 per post and the user tries 3 in a post and 3 in the private text message they will get the images error :)
The private text messages can be edited the same way as a post, but when quoting they're bypassed.
Hopefully you'll enjoy this hack as much as i did making it :D If you like it please click on the install thanks ;) [ g-force2k2 ]

For editpost.php change view this post

https://vborg.vbsupport.ru/showthread.php?postid=287518#post287518

For another editpost.php change view this post

https://vborg.vbsupport.ru/showthread.php?postid=287633#post287633

For enabling users to edit their own private text messages view this post

https://vborg.vbsupport.ru/showthread.php?postid=287651#post287651

g-force2k2

g-force2k2
08-18-2002, 04:04 PM
First a screenshot of the modified newreply for those usergroups which have permission to add them :p

g-force2k2

g-force2k2
08-18-2002, 04:06 PM
Next a screenshot of the editpost for the users that have permission to view all private text messages :)

g-force2k2

g-force2k2
08-18-2002, 04:09 PM
Next here's the screenshot of the showthread.php from a guest point of view :)

See anything special :p

g-force2k2

[D]Vincent
08-18-2002, 04:10 PM
Great, I'll definately install this. :: clicks install :: ^^

g-force2k2
08-18-2002, 04:11 PM
Following Screenshot... Proximity (another s/n for me :p) and me are having a private text conversation... as you can see from the guest shot they don't exist for the guest :)

g-force2k2

g-force2k2
08-18-2002, 04:12 PM
Yet another screenshot same scenario if you look at the screenshots... Apocalypse (me again) and Proximity are conversing this time... in the last one from g-force2k2 perspective this conversation wasn't viewable :)

g-force2k2

g-force2k2
08-18-2002, 04:15 PM
Finally last but not least another screenshot from my prospecitve... this time i have full access to see all private text messages as you can see by comparing my first one to this one :)

btw if you look a screenshot back or two you'll see that html was disabled within the private text messages... and that smilies were enabled :)

Enjoy everyone... comments... suggestions... etc :)

g-force2k2

Spitfireisgod
08-18-2002, 04:19 PM
great hack man...

in my idea, this is more efficent than PMs because i rarely read my PMs

but it would look nice if you made the text for people that can see it like with a black background with white text so people can notice it

g-force2k2
08-18-2002, 04:23 PM
yeah i think i might modify it to make it more regonizeable... and yes it can be used like a private message :)

btw you can also simply just edit the postbit_privtxt template and add color etc... whatever you like :) very simple to modify :D

g-force2k2

ULTIMATESSJ
08-18-2002, 04:28 PM
heh this is greatness, very nice work

/me clicks install

EDIT: be happy your my official 100th Hack installed :bunny:

g-force2k2
08-18-2002, 04:29 PM
Originally posted by ULTIMATESSJ
heh this is greatness, very nice work

* ULTIMATESSJ clicks install

thanks :) makes me strive harder to make better hacks ;)

g-force2k2

flame
08-18-2002, 05:11 PM
Another Suggestion, hoe about rather than one user, seting it up so only certain usergroups can view 'private text' ?

Otherwise Great Addition

Flame

g-force2k2
08-18-2002, 05:16 PM
well included you can decide which usergroups can view all the private text messages... but if you mean having only one certain private text being viewable to a certain usergroup i will work on such :)

g-force2k2

Sho
08-18-2002, 05:30 PM
Really fast work, thanks for doing it g-force2k2!

Gonna install it now on the test board ... :)

g-force2k2
08-18-2002, 05:32 PM
lol thanks Sho :) if you need any assistance you know where to find me :p

g-force2k2

Link14716
08-18-2002, 05:39 PM
Just wondering if you can enable HTML and BBCode and other stuff in them and how hard it'd be?

Sho
08-18-2002, 05:43 PM
Hm, install_privatetext.php is not parsed correctly. PHP 4.2.1.

Sho
08-18-2002, 05:46 PM
Actually, it looks more like a *.txt file. ;)

g-force2k2
08-18-2002, 05:48 PM
lol Sho yeah ask the hackers that install my hacks:p a write all my hacks on php files even though they're readable text files :)

and Link enabled html in the posts should enable it within the private text message ;) no mods needed... i said when i was making this i wanted to be good... hopefully it is :)

g-force2k2

Sho
08-18-2002, 06:01 PM
Step 5 in showthread.php, I have to search for:

attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter

Two occurrences found. Which one?

Sho
08-18-2002, 06:04 PM
Also, is seems to me like step 6 in showthread.php is the same as step 3.

Velocd
08-18-2002, 06:06 PM
Cool hack ;), but I don't think I'll be needing it.

g-force2k2
08-18-2002, 06:12 PM
Sho just follow the instructions down ;) it goes in order... yes there's two occurances... but both appear in the installation... just take it down the php file :)

g-force2k2

Sho
08-18-2002, 06:17 PM
Ah! You're right. Stupid me again. :(

Boofo
08-18-2002, 06:18 PM
Step 2 in adding code to the showthread.php has 2 instances of the code. Which one do I use?

And the step you said that had 2 instnaces of the code in newreply has 3 for me. 2 under a redirect and one a few lines down from where I added the other code for this hack.

g-force2k2
08-18-2002, 06:19 PM
Originally posted by Sho
Ah! You're right. Stupid me again. :(

lol don't take it so hard Sho... when i first joined i didn't know what i was doing:p

after all the thread is here for questions :)

g-force2k2

g-force2k2
08-18-2002, 06:21 PM
Boofo follow the code down it'll show both instances... as for the newreply.php issue its the second one... but you said you have two different ones? mine posting an example?

g-force2k2

Sho
08-18-2002, 06:44 PM
Hmm ... what about "newthread"?

g-force2k2
08-18-2002, 06:48 PM
nope... no modifications to that... it wouldn't really be necessary to make a thread just to private text message a user ;) just my thoughts on it though :)

g-force2k2

Sho
08-18-2002, 06:51 PM
No, but you might want to add a private text to the posting. ;)

Anyway, first let me get to work what's there at the moment ...

g-force2k2
08-18-2002, 06:56 PM
if you downloaded an earlier zip be sure to view the first post for a few spelling errors of mine ;\ but it shoud be just dandy now :)

thanks Desty Nova ;)

g-force2k2

Sho
08-18-2002, 07:02 PM
Ah, another change in newreply.php ... now it seems to work, but I'm going to test it a bit more. ;)

Sho
08-18-2002, 07:16 PM
Looks like everything works now. Just clicked "I installed ...". :)

Thanks again! *Great* work!

Boofo
08-18-2002, 08:39 PM
From your first post:

Why would you replace the same thing?

open newreply.php

find:


PHP:

if($permissions[canaddprivtxt]) {






replace it with:


PHP:

if($permissions[canaddprivtxt]) {

Sho
08-18-2002, 08:57 PM
Touched the templates here and there and made the feature available to my users. The first are trying it out, I bet their response will be positive. ;)

Thanks again for making one of the finest hacks I know of!

Jashugan
08-18-2002, 08:58 PM
Originally posted by Boofo
From your first post:

Why would you replace the same thing?

open newreply.php

find:


PHP:

if($permissions[canaddprivtxt]) {






replace it with:


PHP:

if($permissions[canaddprivtxt]) {

lol, actually it should be...
Find:
if($permssions[canaddprivtxt]) {

Replace with:
if($permissions[canaddprivtxt]) {

Cuz of his typo at newreply.php (6)
he didnt take "i" out of that at first post anyway that s what he try to do.

Jashugan
08-18-2002, 09:01 PM
Originally posted by Sho
Touched the templates here and there and made the feature available to my users. The first are trying it out, I bet their response will be positive. ;)

Thanks again for making one of the finest hacks I know of!

Do you have any problem with "private messages" at showthread.php? Well I have, I test by PTM (private text message) to one of member then I log out and use different member and can saw these at my showthread.php! Also when I log out and I can saw these private messages! Do you have any problem with these?

g-force2k2
08-18-2002, 09:33 PM
thanks for confirmation Jashugan... just wondering do you have the tetris hack installed by any chance?

And Boofo regards... (for my spelling errors x_X)

g-force2k2

Sho
08-18-2002, 09:41 PM
Originally posted by Jashugan


Do you have any problem with "private messages" at showthread.php? Well I have, I test by PTM (private text message) to one of member then I log out and use different member and can saw these at my showthread.php! Also when I log out and I can saw these private messages! Do you have any problem with these?

Unfortunately, yes! When I first tested it, everything worked. Now even guests can view the privtexts.

g-force2k2, there seems to be a major problem.

Tim Wheatley
08-18-2002, 09:42 PM
Does this work with multiple styles? Because I just installed it, didn't see anything, installed again, checked again and I'm not seeing any forms to fill in on edit post page or reply... :(

Sho
08-18-2002, 10:05 PM
@Tim Wheatley: Check for updates in the first post.

Anyway, I just checked all files again, everything is according to the hack file. Still the same problem Jashugan has. We need help, fast.

g-force2k2
08-18-2002, 10:24 PM
alright im curreltly looking into it...

sorry for the trouble x_X

g-force2k2

g-force2k2
08-18-2002, 10:37 PM
Originally posted by Tim Wheatley
Does this work with multiple styles? Because I just installed it, didn't see anything, installed again, checked again and I'm not seeing any forms to fill in on edit post page or reply... :(

Did you config the usergroups yet? because i believe that they all come in as no for being able to add and view... so you have to adjust those options in admin cp first ;)

g-force2k2

Tim Wheatley
08-18-2002, 10:39 PM
All I have in the admin cp that I didn't have before is the char limit - 500? I don't have an option to set usergroups. Yes I did run all the queries. I just tried to run them again to be sure and they told me I already has them (duplicates).

Sho
08-18-2002, 10:39 PM
Btw, when I use usergroups.php to allow a usergroup to add private texts it does work, but when I visit the page again, it still shows "No".

The most important problem is that everyone can see those private texts, though. ;)

g-force2k2
08-18-2002, 10:46 PM
well in the usergroup options did you make sure that you disabled them to see all private text messages? and also for the problem with the usergroup.php the fix is in the new zip and on the first post... you have to replace cannaddprivtxt to canaddprivtxt (i think) hope that helps somewhat?

g-force2k2

g-force2k2
08-18-2002, 10:47 PM
Originally posted by Tim Wheatley
All I have in the admin cp that I didn't have before is the char limit - 500? I don't have an option to set usergroups. Yes I did run all the queries. I just tried to run them again to be sure and they told me I already has them (duplicates).

Tim the usergroup configs can only be done in the usergroup.php

edit the usergroups and you'll find the options there... hope that helps :)

g-force2k2

Sho
08-18-2002, 10:49 PM
Originally posted by g-force2k2
well in the usergroup options did you make sure that you disabled them to see all private text messages? and also for the problem with the usergroup.php the fix is in the new zip and on the first post... you have to replace cannaddprivtxt to canaddprivtxt (i think) hope that helps somewhat?

It does indeed. Unfortunately, in the first posting of this thread you order us to replace can with cann, not cann with can. ;)

g-force2k2
08-18-2002, 10:52 PM
Originally posted by Sho


It does indeed. Unfortunately, in the first posting of this thread you order us to replace can with cann, not cann with can. ;)

err... maybe it was just worded wrong ;\ because its correct on the first page ;)

g-force2k2

Sho
08-18-2002, 10:55 PM
Well, I give up. Doesn't work either way.

Gonna uninstall this hack now & wait for a cleaned up and *working* version.

g-force2k2
08-18-2002, 10:58 PM
umm... its working O_o

the screenshots show its working... my forum shows its working...

i can only give so much support... but it might have something to do with other hacks you have installed...

what others do you have?

g-force2k2

Sho
08-18-2002, 11:00 PM
Nope, it's not. I log out, I can see all private messages. "Can view all private text messages" for usergroup "Unregistered / Not Logged In" is set to no. According to my database, "canaddprivtxt" is set to 1 for all usergroups I'm interested in, yet usergroup.php shows no. "canviewprivtxt" is set to 0 for all usergroups but 6 ("Administrators"), yet a guest can see all private texts. I just rechecked all file changes again. I'm going crazy. ;)

Sho
08-18-2002, 11:06 PM
I have installed Post Counter & Direct Link (https://vborg.vbsupport.ru/showthread.php?s=&threadid=22083) (change to showthread.php - probably significant?), NewStatistikHack 1.2.1e (https://vborg.vbsupport.ru/showthread.php?s=&threadid=41421) (change to newreply.php, among others). There are others, but none of them touches any of the files or tables I had to modify for your hack.

g-force2k2
08-18-2002, 11:47 PM
okay Sho im really really sorry ;\ i just overlook such easy things... last fix i promise... just make these two edits...

open showthread.php

find:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(!$getperms['canviewprivtxt']) {
$viewprivtxt=0;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

and replace that with:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms['canviewprivtxt']) {
$viewprivtxt=1;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

it appears twice... and i swear... no joking it'll work :)

g-force2k2

Sho
08-18-2002, 11:50 PM
Gonna try it, hold on

Sho
08-18-2002, 11:54 PM
I'm sorry g-force2k2, but still ... log in as A, attach a private text to B to a reply, log out, visit the thread as a guest ... and there is the private text to B. Doesn't work. :(

g-force2k2
08-18-2002, 11:56 PM
Sho email me your showthread.php and i will debug if for you and send it back aight?

g-force2k2

Sho
08-18-2002, 11:58 PM
No, this time it was my fault! Forgot to delete those "!" in front of "$getperms", just looked at the 0/1 difference. I guess we both overlook the easy things. ;)

Seems to work now!

g-force2k2
08-19-2002, 12:06 AM
:D thats great to hear Sho ^^ sorry for all the trouble... but if its working then thats the best thing i could ask for :)

g-force2k2

Sho
08-19-2002, 12:07 AM
Tested it with a few members and across all usergroups, works great now. Thanks!

Jashugan
08-19-2002, 12:40 AM
Thanks G-force for hard work and fix it up :)

* Jashugan install!

Tim Wheatley
08-19-2002, 12:44 AM
Doesn't work here.

Firstly, whenever I change permissions I do so, go back to check and they've gone back to the original (off) setting.

Even when I do click on then don't go back in, I (admin) can view all of them (as I should), so can the person I send it to (as he should), but unfortunately when each of us logs out of the board we can still read it... :(

g-force2k2
08-19-2002, 12:49 AM
Tim there's two changes that you need to make...

A)

open admin/usergroup.php

find:

$cannviewprivtxt

it should be:

$canviewprivtx

B)

open showthread.php

find:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms['canviewprivtxt']) {
$viewprivtxt=1;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

should find it twice and replace them both with:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms['canviewprivtxt']) {
$viewprivtxt=1;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++


I await to hear good news from you too Tim :)

g-force2k2

Sho
08-19-2002, 12:49 AM
@Tim Wheatley:

First open your modified usergroup.php.

Replace

makeyesnocode("Can add private text messages","canaddprivtxt",$usergroup[cannaddprivtxt]);

with

makeyesnocode("Can add private text messages","canaddprivtxt",$usergroup[canaddprivtxt]);

---

Now, open your modified showthread.php. When you first modified it, you inserted the following two times:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(!$getperms['canviewprivtxt']) {
$viewprivtxt=0;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++


Replace both with:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms['canviewprivtxt']) {
$viewprivtxt=1;
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

Now everything should work.

Sho
08-19-2002, 01:00 AM
@Boofo: See step 3 and step 6 for showthread.php in your install_privatetext.php.

Boofo
08-19-2002, 01:04 AM
Thanks. I just found that about 2 seconds after I posted the message that I just deleted. :)

Originally posted by Sho
@Boofo: See step 3 and step 6 for showthread.php in your install_privatetext.php.

g-force2k2
08-19-2002, 01:08 AM
my posts though the quick reply keep timing out x_X then i saw that Boofo's post disappeared so i guess it doesn't matter now xD

g-force2k2

Sho
08-19-2002, 01:08 AM
Thanks. I just found that about 2 seconds after I posted the message that I just deleted. :)

Happens. ;)

Boofo
08-19-2002, 01:16 AM
Sorry about that. I erased it after I found the second instance of code. It was formatted different in my showthread.php so I had to search for a single line. I felt kind-of stupid and thought I could erase it before anyone caught it. :)

My ISP has been down since about 1/3 into this hack. I had just uploaded the newreply (before the added change which I have to do when I can get the site back online) and just got done with the showthread.php and was uploading it when the site went down. Now, I have made the changes to it and am just waiting for the site to come back up so I can finish the hack. I'm in a holding pattern, I guess you could say. :)

g-force2k2, I may need your assistance when I finish this in case I got something wrong in the middle of all of this. Having a site go down in the middle of a hack can be quite frustrating, especially when there are changes made during that time. :)

Originally posted by g-force2k2
my posts though the quick reply keep timing out x_X then i saw that Boofo's post disappeared so i guess it doesn't matter now xD

g-force2k2

Schorsch
08-19-2002, 07:21 AM
it's really confusing, please update your install file with all the fixes :)

and Thanks for your great work !!

Schorsch

g-force2k2
08-19-2002, 01:29 PM
yes Schorsch the file has been updated... only changes are there for the hackers who downloaded it beforehand...

g-force2k2

Attrox
08-19-2002, 01:34 PM
Great hack g-force2k2, I think I might use it...it could be very useful.

Schorsch
08-19-2002, 01:45 PM
Originally posted by g-force2k2
yes Schorsch the file has been updated... only changes are there for the hackers who downloaded it beforehand...

g-force2k2

your file (I downloaded it 2 mins ago) is not completely bug free, for example in your install file it is still:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($permssions[canaddprivtxt]) {

instead of permissions

cu
Schorsch

g-force2k2
08-19-2002, 02:45 PM
oh okay schorsch thanks for telling me i will update... but im pretty sure the rest is good then... my bad my bad ;)

g-force2k2

g-force2k2
08-19-2002, 02:55 PM
thats wierd >_O i changed it like five times and it doesn't change i even deleted it and reattached it O_<...

well i will reattach here...

g-force2k2

Neo
08-19-2002, 04:03 PM
it would be cool if you had a user validation part to it.

g-force2k2
08-19-2002, 04:18 PM
Originally posted by Neo
it would be cool if you had a user validation part to it.

User Validation?

you mean like check to see if the user exists ;) because it does have that feature :p

g-force2k2

Schorsch
08-19-2002, 08:01 PM
ok, what about this:

me as admin can edit my private message text, but all my registered useres and mods can't edit their priv. message text. they simply don't see the priv. message box under the post when they wanna edit the post.

also if they edit their post, the priv. message text is gone after that.

what's wrong ?

thanks,
Schorsch

ExAvIoUr
08-19-2002, 10:35 PM
Another spelling error is on Line 33 of Showthread.php :


// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= "posbit_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++


Replace with


// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= "postbit_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++


I'm currently trying to get the Private Text box to work...
~~~~~~~~~~~~~~~~~~~~~~~~~~
Newreply.php (Line 3):

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= "privtext_error_missingfields,privtext_error_userno exist,privtext_error_userself,privtext_error_toolo ng,privtext_redirect_thanks,newreply_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

g-force2k2
08-20-2002, 12:37 AM
ExAvIoUr did you make enable the usergroup to be able to post private text messages?

Schorsch :: thanks for telling me about that... i made it so that you can't edit your private text messages... because if a user trys something then they can't go back and edit it... the only users that can are the ones that can veiw all private text messages... but i will work on a quick fix for the problem about just simply editing :) thanks for bringing that to my attention...

g-force2k2

Boofo
08-20-2002, 12:43 AM
Just curious, but xhouldn't there be a comma at the beginning of these lines?

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= "postbit_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++



like this?

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$templatesused.= ",postbit_privtxt";
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

ExAvIoUr
08-20-2002, 12:44 AM
I've fixed the problem and it worked like gem!

To all members who want to install this hack: make sure your new templates are NAMED correctly, with "Txt" not "text"...

g-force2k2
08-20-2002, 12:53 AM
for the post editing part that Exaviour brought up try this code...

open editpost.php

find:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

replace it with:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms[canviewprivtxt]) {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
} else {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

can anyone confirm this one for me? thanks i advance :)

g-force2k2

g-force2k2
08-20-2002, 12:55 AM
btw Boofo you're correct x_X...

im just a beginner at hacking and it shows :)

thanks for the info Boofo i will update the install shortly but just want to insure any other errors or such :)

g-force2k2

Boofo
08-20-2002, 01:04 AM
The editing part you posted above doesn't work. Even as an Admin I can't edit it.

Boofo
08-20-2002, 01:09 AM
Also, is there any way to have it so when you have the cursor in the private message box and you click on a smilie, it will add it to the private message instead of the regular message box? I have the code installed that I gave you in the pm already. :)

g-force2k2
08-20-2002, 01:13 AM
Boofo does the box just now show up or does it just not edit?

And you can show the code here but i will add it to a new update when i finish sorting things out here ;)

g-force2k2

Boofo
08-20-2002, 01:16 AM
The box shows up fine but you can't edit it with or without the new code you posted. It won't even do it with the old code in it. :)

Also, do you need to add "newreply_privtxt" to the templatedused in the newreply template? :)

Originally posted by g-force2k2
Boofo does the box just now show up or does it just not edit?

And you can show the code here but i will add it to a new update when i finish sorting things out here ;)

g-force2k2

g-force2k2
08-20-2002, 01:41 AM
Boofo the newrepy_privtxt shows n my templatesused ;)

btw send me your editpost.php

i just test and i can edit successfully and Exaviour the code that i stated above works like a charm :)

g-force2k2

Boofo
08-20-2002, 01:58 AM
I'm pm'ing it now. What file do you have the newrepy_privtxt in the templatesused section?

Originally posted by g-force2k2
Boofo the newrepy_privtxt shows n my templatesused ;)

btw send me your editpost.php

i just test and i can edit successfully and Exaviour the code that i stated above works like a charm :)

g-force2k2

g-force2k2
08-20-2002, 02:02 AM
im pretty sure that it was in the newer install O_o but i could be wrong =p

g-force2k2

ExAvIoUr
08-20-2002, 02:18 AM
Thanks!!!!

The edit function now works :)

g-force2k2
08-20-2002, 02:20 AM
yeah sorry about that Exaviour didn't think of that when i made the hack x_X i will update a new zip in alittle once i get thing squared away sorry for all this trouble >_O

g-force2k2

Schorsch
08-20-2002, 02:20 AM
I'm confused, is the edit priv. text message problem solved ?

because a normal registered user or mod still can't edit priv text messages at my forums and when they edit the post the priv. text message is gone. :paranoid:

g-force2k2
08-20-2002, 02:22 AM
Schorsch view this post it has the edit... i did not update the file yet sorry...

https://vborg.vbsupport.ru/showthread.php?postid=287518#post287518

g-force2k2

Schorsch
08-20-2002, 02:29 AM
yeah I already did that g-force2k, but nevertheless, they can't edit the priv text messages :( they don't see the box

g-force2k2
08-20-2002, 02:33 AM
thats because they don't have permissions too... once you post it you can't change it... but thats just they way i think... only way to edit is if you have permission to view all private text messages... it you'd like i can easily show you how to change that?

g-force2k2

Schorsch
08-20-2002, 02:41 AM
can you show me how registered users and mods can edit their priv. text message without having the rights to view all (even from other users) priv. messages ? because viewing all messages is a thing that only admins should be able to do ;)

thanks!!

Schorsch

g-force2k2
08-20-2002, 02:45 AM
yeah sure Schorsch just give me a minute thanks...

g-force2k2

elyrain
08-20-2002, 03:04 AM
Parse error: parse error, unexpected $ in /home/ibliftin/public_html/forums/newreply.php on line 582

i'm comming up with that error, I do have the tetris hack installed. Anyone know what to do? TIA

g-force2k2
08-20-2002, 03:25 AM
elyrain can you show me whats on that line?

thanks in advance...

g-force2k2

Boofo
08-20-2002, 03:51 AM
g-force2k2, I still can't get it to take edited text. Also, if I edit a private text message from someone else to me, if gives me the error where I can submit a private text message to myself. :) I thought the Admin could edit any of them.

g-force2k2
08-20-2002, 03:58 AM
yeah Boofo but you can't send private text messages to yourself :p thats what Neo was talking about User Validation... btw... i don't know what else could be wrong... you don't edit the user part... thats who the private text message is to... Actually i see what you mean... i will edit that part asap... regards but lets try getting the edit feature to work for you :)

g-force2k2

g-force2k2
08-20-2002, 04:01 AM
Boofo for the part about editing a user try this modification... (my bad wasn't thinking again x_X)

open editpost.php

find:

// checking user
$user = $DB_site->query_first("SELECT username FROM user WHERE username='".addslashes(htmlspecialchars($privuser))."'");
if(empty($user[0])) {
eval("standarderror(\"".gettemplate("privtext_error_usernoexist")."\");");
exit;
} elseif($bbuserinfo[username] == "$user[0]") {
eval("standarderror(\"".gettemplate("privtext_error_userself")."\");");
exit;
}
}

replace with:

// checking user
$user = $DB_site->query_first("SELECT username FROM user WHERE username='".addslashes(htmlspecialchars($privuser))."'");
if(empty($user[0])) {
eval("standarderror(\"".gettemplate("privtext_error_usernoexist")."\");");
exit;
} elseif($postinfo[username] == "$user[0]") {
eval("standarderror(\"".gettemplate("privtext_error_userself")."\");");
exit;
}
}

try and see if that works Boofo :)

g-force2k2

Boofo
08-20-2002, 04:02 AM
The only difference between the editpost.php I sent you and the one I am using now is the code from your post about editing that I have in mine, where it isn't in the one I sent you.

Originally posted by g-force2k2
yeah Boofo but you can't send private text messages to yourself :p thats what Neo was talking about User Validation... btw... i don't know what else could be wrong... you don't edit the user part... thats who the private text message is to... Actually i see what you mean... i will edit that part asap... regards but lets try getting the edit feature to work for you :)

g-force2k2

g-force2k2
08-20-2002, 04:03 AM
Boofo see my recent fix about the problem you brought to my attention :) thanks for showing me that x_X

g-force2k2

Boofo
08-20-2002, 04:11 AM
Ok, that fixed the part about me being able to edit a private text message to me when I try editing it. It still won't take the edit though.

g-force2k2
08-20-2002, 04:16 AM
could you please post the editpost_privtxt template? thanks in advance Boofo :)

g-force2k2

Jashugan
08-20-2002, 04:20 AM
Originally posted by Boofo
Ok, that fixed the part about me being able to edit a private text message to me when I try editing it. It still won't take the edit though.
What is the problem excatly? I have no problem with that.. can you give me step by step to detect that problem?

Sho
08-20-2002, 04:26 AM
g-force2k2, Boofo considers it a problem that you can't edit a post to add a private text. I know you intended it to work this way - anyway, I'm with Boofo on this one. Give us! :)

Schorsch, on the other hand, considers it a problem that you can't edit a private text after posting. Again, you intended it to work this way. That's okay with me.

Boofo
08-20-2002, 04:27 AM
g-force2k2, here you go. It is the excat same template in your install file. :)

<!-- private text hack [ g-force2k2 ] -->
<tr><td bgcolor="{secondaltcolor}" valign="top"><normalfont><b>Private Text Options:</b></normalfont><br><smallfont>Maximium Characters: $PTMlength</smallfont></td>
<td bgcolor="{secondaltcolor}"><smallfont><input type="checkbox" name="dopriv" value="no" $dopriv><b>Add a private text message to the post?</b><br><input type="text" class="bginput" name="privuser" size="20" maxlength="50" value="$postinfo[privuser]"> <b>Username to send private text to?</b><br><textarea name="privmsg" rows="10" cols="$textareacols" onChange=getActiveText(this) onclick=getActiveText(this)>$postinfo[privmsg]</textarea></td></tr>
<!-- private text hack [ g-force2k2 ] -->

Jashugan, when I go into edit mode and change anything in the private text message, when I go to save it, it is the exact same as it was before I edited it. It doesn't take any changes I made to the original private text message..

g-force2k2
08-20-2002, 04:28 AM
// +++++++ Addon for allowing post owner to edit their own private text message +++++++
open editpost.php (2)

find: (1)

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms[canviewprivtxt]) {
eval("\$privtxtedit = \"".gettemplate("editpost_privtxt")."\";");
} else {
$privtxtedit = "";
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

replace it with:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(($getperms[canviewprivtxt]) OR ($postinfo[username] == "$bbuserinfo[username]")) {
eval("\$privtxtedit = \"".gettemplate("editpost_privtxt")."\";");
} else {
$privtxtedit = "";
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

find: (2)

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if($getperms[canviewprivtxt]) {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
} else {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

replace with:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(($getperms[canviewprivtxt]) OR ($postinfo[username] == "$bbuserinfo[username]")) {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
} else {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

There that should allow users to edit their own private txt messages...

g-force2k2

Boofo
08-20-2002, 04:29 AM
Sho, you must have misubderstood me. I can edit a post to add private text, I just can't edit the private text after it is posted. :)

Originally posted by Sho
g-force2k2, Boofo considers it a problem that you can't edit a post to add a private text. I know you intended it to work this way - anyway, I'm with Boofo on this one. Give us! :)

Schorsch, on the other hand, considers it a problem that you can't edit a private text after posting. Again, you intended it to work this way. That's okay with me.

g-force2k2
08-20-2002, 04:29 AM
Boofo try taking out the codes that you added in... the onchange and all then try and see if that works? thanks in advance...

g-force2k2

Jashugan
08-20-2002, 04:32 AM
Originally posted by Boofo
Jashugan, when I go into edit mode and change anything in the private text message, when I go to save it, it is the exact same as it was before I edited it. It doesn't take any changes I made to the original private text message..
Umm when you edit, are you using Admin access? Cuz I edit and save it without any problem with Admin access (g-force didnt add more group permission yet but soon) I change the private message or add few message and it come out normal.

Sho
08-20-2002, 04:37 AM
There that should allow users to edit their own private txt messages...

Works!

Sho, you must have misubderstood me. I can edit a post to add private text, I just can't edit the private text after it is posted.

Didn't work until now, now it works! :)

Sorry about the missunderstanding, Boofo.

Boofo
08-20-2002, 04:43 AM
I t0ook the code out and it still doesn't allow me to edit a private text message. I can edit it, it just won't allow me to change it from the original on save.

Originally posted by g-force2k2
Boofo try taking out the codes that you added in... the onchange and all then try and see if that works? thanks in advance...

g-force2k2

Sho
08-20-2002, 04:46 AM
Originally posted by Boofo
I t0ook the code out and it still doesn't allow me to edit a private text message. I can edit it, it just won't allow me to change it from the original on save.

Hm, it works here.

- With my own private texts.

- With other's private texts - after "Can view all private text messages" for my usergroup, of course.

Boofo
08-20-2002, 04:46 AM
g-force2k2, look at the code right above it in my editpost.php and see if maybe that is what is causing the problem. The Admin edit options.

Sho
08-20-2002, 04:50 AM
Emtpy shell.

g-force2k2
08-20-2002, 05:01 AM
Sho please remove the editpost.php vbulletin rules say you can't attach full files... just warning you ahead of time man...

Boofo you're correct... remove that part...

find:

} else {
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
}

replace with:

}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

that should do the trick nice eyes Boofo :)

g-force2k2

Jashugan
08-20-2002, 05:02 AM
Sho and elyrain

dont attach these full file, pls delete it and PM to g-force. VB.org staffs are not allow it.

Sho
08-20-2002, 05:18 AM
Done. I did not think - I am very sorry. Won't do it again.

Boofo
08-20-2002, 05:20 AM
Here's what I have. What am I supposed to replace it with?

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(($getperms[canviewprivtxt]) OR ($postinfo[username] == "$bbuserinfo[username]")) {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
} else {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

And I can't delete the Edit admin options because that is for Xenon's hack. :)

g-force2k2
08-20-2002, 05:32 AM
//Admin Edit Hack
if ($bbuserinfo[usergroupid] == 6) {
$datetime=mktime($datetime[hours],$datetime[minutes],0,$datetime[mon],$datetime[mday],$datetime[year])-3600*($bbuserinfo['timezoneoffset']-$timeoffset);
$DB_site->query("UPDATE post SET ipaddress='".addslashes($ipadd)."',dateline='$datetime',editable='$editable',userid ='$userid',threadid='$pthreadid',title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
} else {
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
if(($getperms[canviewprivtxt]) OR ($postinfo[username] == "$bbuserinfo[username]")) {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql,d opriv=$dopriv,privuser='".addslashes($privuser)."',privmsg='".addslashes($privmsg)."' WHERE postid='$postid'");
} else {
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");
}
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
}

try that Boofo if not i will look into it tomarrow... im out... peace

g-force2k2

Boofo
08-20-2002, 06:27 AM
I'm sorry. maybe I missed something but that code looks exactly the same as the code I already have except that you added a } after it. The code I already have has one of those already there, I just didn't include it in the code I gave you. Sorry about that. :) Is there something different in the new code that I'm not seeing?

g-force2k2
08-20-2002, 01:36 PM
yeah its the same as you probably had... just means that i have to make Xenon's double post hack compatible with this hack... just give me soemtime and i'll go about doing something of the sort ;)

g-force2k2

empreur76
08-20-2002, 07:08 PM
hello !!

i'm install this hack but i have this mail !! !?
in showthread.php i think !

can you help me !?
thank
Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid = '217'

mysql error: You have an error in your SQL syntax near '// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv' at line 4

mysql error number: 1064

Schorsch
08-20-2002, 07:18 PM
lol empreur76 what the heck did u do ??

ExAvIoUr
08-20-2002, 08:26 PM
Find in Showthread (Line 69):


SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid


replace with


SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
FROM post
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid


If that doesn't work, I don't know :( Just trying to suggest solutions.

Boofo
08-20-2002, 11:11 PM
Actually, I think that has to do with Xenon's "Extra Edit Options for Admins" hack, if that helps at all. :)

Originally posted by g-force2k2
yeah its the same as you probably had... just means that i have to make Xenon's double post hack compatible with this hack... just give me soemtime and i'll go about doing something of the sort ;)

g-force2k2

g-force2k2
08-21-2002, 02:18 AM
empreur76

to solve the sql error simply just remove my coding slashes... for some reason on the second edit of the showthread for that query it will error out...

so just make this coding:

// +++++++ Private Text Hack [ g-force2k2 ] +++++++
post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,
// +++++++ Private Text Hack [ g-force2k2 ] +++++++

and change it to this:

post.dopriv AS dopriv, post.privmsg AS privmsg, post.privuser AS privuser,

hoep that fixes your problem :)

g-force2k2

Odil
08-21-2002, 01:29 PM
It's a great hack, I just want to know if it's possible to private message more than one person per message?

Odil

empreur76
08-21-2002, 01:50 PM
ok very thanks !!
it's ok for me !!! but i have a question!!

only admin can make private message ! ?
i make change in usergroup for member but this don't work, the member can't make message !!
!?

g-force2k2
08-21-2002, 02:44 PM
Originally posted by Odil
It's a great hack, I just want to know if it's possible to private message more than one person per message?

Odil

No at the moment its only possible to private text message one person... but maybe in the near future i will make an addon to make this possible :)

empreur76 :: are you sure that everythign is correct? im trying to think of what could be wrong... just make sure that the usergroups are configured correctly... if not then i will do what i can to help ;)

g-force2k2

Odil
08-21-2002, 06:32 PM
Hi again

I have noticed that in a few of my forums the private text box doesn't appear. There is no option to turn this on or off on each forum. Any ideas what can be wrong?

Odil

g-force2k2
08-22-2002, 01:16 AM
No there isn't an option... but are you sure that you have the correct permissions? And is this for the adding or editing of the private text messages? Regards...

g-force2k2

Tim Wheatley
08-22-2002, 06:58 PM
Ok it works, Sorry for the delay but the fixes in post 46 worked for me. Thank you. :)

Xenon
08-22-2002, 07:10 PM
g-force: i have had a look at your code, everything seems ok, but may i suggest a optimization? (could perhaps also help with next version alowing more users to view...)

i see your privacy infos depent on the username, that's no problem as long as you don't change someones username because he want....

you should convert the username into the userid and just save the userid of the user a private message is shown, so he can always read the message, no matter if he changes his name somewhere in future.

as said this could help later also with adding more users to view this...

just a suggestion :)

g-force2k2
08-23-2002, 12:51 AM
yeah Tim thanks for sharing :)

btw Xenon yeah i know exactly what you mean by the userid x_X should have thought about that ;) but thanks as always for giving me the input it is more then appreciated :)

g-force2k2

Boofo
08-31-2002, 03:56 AM
g-force2k2, 2 quick questions for you. Did you ever get the problem figured out for me not being able to edit a private text message? And are you planning on doing an upfdate anytime soon with Xenon's suggestions from post #140?

g-force2k2
08-31-2002, 04:13 AM
yeah Boofo... i believe i told you about the problem had the same think with the newreply.php about the Admin Quick Edit or something of that nature... as for Xenon's suggestion i will take it into consideration with my next version of this hack... just don't have enough on hand to make a second version yet... regards...

g-force2k2

Boofo
08-31-2002, 04:20 AM
Ok, that's all I needed to know. I'll go ahead and uninstall this hack, too, since we can't get it to work and wait on any others you come up with until after version 3.0 comes out. I just don't seem to have very good luck with your hacks it seems. :)

Originally posted by g-force2k2
yeah Boofo... i believe i told you about the problem had the same think with the newreply.php about the Admin Quick Edit or something of that nature... as for Xenon's suggestion i will take it into consideration with my next version of this hack... just don't have enough on hand to make a second version yet... regards...

g-force2k2

g-force2k2
08-31-2002, 04:23 AM
heh... you're telling me Boofo :p but don't worry man we'll keep doing it over and over until something finally works out btw the two of us :p regards man...

g-force2k2

Boofo
08-31-2002, 04:27 AM
I hope you don't think I blame you. I just have one of those setups that always seems to have problems. They usually get worked out in time, but with over 100 hacks installed, there are bound to be conflicts that don't seem worth the time for very many hack authors to fix. Maybe my site is telling me "enough hacks", you think? ;)

Originally posted by g-force2k2
heh... you're telling me Boofo :p but don't worry man we'll keep doing it over and over until something finally works out btw the two of us :p regards man...

g-force2k2

Dark Shogun
10-18-2002, 02:30 PM
g-force2k2 I get this error when I try to send a message. Do you know how I could possibly fix it?

Warning: Wrong parameter count for addslashes() in /web/blah/public_html/forum/newreply.php on line 378

Dark Shogun

Dark Shogun
10-18-2002, 09:00 PM
Fixed

Dark Shogun

LangTuDaTinh
11-15-2002, 11:37 PM
i must have did something wrong... when i try to edit my my thread, the username of the one i sent private text to is in the message form not in the username form.

please help

#01
12-11-2002, 11:54 AM
Man this is one hell of a hack. Does a lot of code changes.

Is the newest version still under development? The one that allows you to show to certain groups?

Brain Crusher
02-09-2003, 09:38 PM
Works also fine in 2.2.9 :)

Great Hack, but it will be more cool to write a private text to a few guys :)!

Brain Crusher
02-11-2003, 04:47 PM
I added the quick reply and
also vB v2.2.6] Private Text Message Hack v1.0

now i want under the quick reply the private text message hack, any guy know what#?s must i make?

I search a quick private text hack :)!

Red Blaze
05-01-2003, 03:43 PM
pretty big bump, but I need some help. :(

I'm using 2.2.9, but making a test run on 2.3.0.

I'm looking for

if ($parseurl) {
$message=parseurl($message);
}
// remove sessionhash from urls:
$message=ereg_replace("&sessionhash=[a-z0-9]{32}","",$message);
$message=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$message);
$message=ereg_replace("&s=[a-z0-9]{32}","",$message);
$message=ereg_replace("\\?s=[a-z0-9]{32}(&)?","?",$message); {

But all I can find is

if ($parseurl) {
$message=parseurl($message);
}
// remove sessionhash from urls:
$message = stripsession($message);

if (strlen($message)>$postmaxchars and $postmaxchars!=0) {
eval("standarderror(\"".gettemplate("error_toolong")."\");");
}



Can someone help me?

Dark Shogun
05-20-2003, 04:10 PM
Same here. I need help with 2.3.0. :)

Dark Shogun

Crank
01-27-2004, 12:33 AM
would love to use this. does it work with 2.3.4?

Gio~Logist
11-10-2004, 01:06 AM
is this hack made so that admins can see al private text? because if it isnt then everyone can private text other people like crazy spamming

Renada
03-05-2005, 07:11 PM
Hi,

Does anyone know if this will work with 3.07?

Thanks,
Renada