vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Private Text Message Hack v1.0 (https://vborg.vbsupport.ru/showthread.php?t=42444)

g-force2k2 08-17-2002 10:00 PM

Private Text Message Hack v1.0
 
As requested [ Here ]

Please download the fixed attachment located [ Here ]

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/showthrea...518#post287518

For another editpost.php change view this post

https://vborg.vbsupport.ru/showthrea...633#post287633

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

https://vborg.vbsupport.ru/showthrea...651#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

Quote:

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:

PHP Code:

attachment.attachmentid,attachment.filename,attachment.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

Quote:

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?

Code:

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

Quote:

Originally posted by Boofo
From your first post:

Why would you replace the same thing?

Code:

open newreply.php

find:


PHP: 

if($permissions[canaddprivtxt]) {


 



replace it with:


PHP: 

if($permissions[canaddprivtxt]) {


lol, actually it should be...
Find:
PHP Code:

if($permssions[canaddprivtxt]) { 

Replace with:
PHP Code:

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

Quote:

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

Quote:

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.


All times are GMT. The time now is 02:45 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.01396 seconds
  • Memory Usage 1,821KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)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