Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by s.molinari s.molinari is offline
Developer Last Online: Sep 2018 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-20-2001 Last Update: Never Installs: 39
 
No support by the author.

Hello all,

Well I did it, my first real hack. I don't know what the rule on this is but I'll be honest and say I used alot of original vB code to make this. I don't believe in reinventing the wheel and the code in vB is so good it makes it very easy to modify.

This hack will give Admins and Mods the ability to alert users with a small message. This message works similiar to the PM popup. It also has the ability to send one user a number of messages. Each message will be denoted by the person who sent the message.

If you are not competent with Mysql and the inner workings of vB and your not sure if you need this utility I would recommend not installing it.

I consider this to be a Beta since I only tested it on my local dev computer. I would really appreciate some "experienced" users testing this hack to let me know where I've made mistakes.

If someone is real hack happy he/she they could change the hack and add the thing listed on my todo list below. If not I'll get to adding them sooner or later.

Anyhow, have fun. I'll be answering your questions here in this forum.

Scott

Demo Screenshots


To do list:
1. Add option to send a message to online users only(good for telling them that the board will be closing before it's closed)
2. Timestamping the messages. Probably not a bad idea.
3. Checking that messaging is on before messages get stored in
db. Would save Mods the embarassment.
4. Add wild card function '*' to search for user names.

If you have more ideas as to how I could improve this hack feel free to post your ideas here!.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-23-2001, 07:58 AM
Lordmusic
Guest
 
Posts: n/a
Default

I know what it was. Can you please not post the line #'s for I have installed hacks before and hence it did not work for me. I need to know what items to put it above and below and I am sure other users would appreciate this. Thanks.
Reply With Quote
  #23  
Old 08-23-2001, 09:31 AM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Line numbers are the easiest to reference. If you know you have hacks (more lines) then you can probably assume that the lines that I quoted won't be correct. My suggestion. Take a look at the original script and see where the lines are and what's around them, then find the same place in your hacked up script.

Scott
Reply With Quote
  #24  
Old 08-23-2001, 01:14 PM
Operations Operations is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stille the Same Problem like Lordmusic has bevor

but i have update Cp
i have controlled all stats and for sure i have make it by hand now..

but no error message and no popup :/

normaly its not so hard

but something is wrong... can u get me a clue what could be?

but i?m looking forward nice hack
Reply With Quote
  #25  
Old 08-23-2001, 02:27 PM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello All,

Due to popular demand (and the load of PMs I've gotten) I have now done one better. Instead of just improving my demo screenshots I have added a real life demo on my test board.

Go here!

I have made 10 test accounts.

User name: test1 (through 10)
password:test

Login to the board, then send yourself a message. It's that easy.

Please don't forget to logout when your finished.

Scott

p.s. I didn't do a mod demo because it's basically the same thing as the admin, just with a few less options for user selection.
Reply With Quote
  #26  
Old 08-23-2001, 05:04 PM
Operations Operations is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Molinari sorry all done i am such a idiot had a misstype in my board

aehmmm works great now nice work
Reply With Quote
  #27  
Old 08-23-2001, 09:46 PM
GB
Guest
 
Posts: n/a
Default

I installed the hack and it does not work. I saved my options in my cp once I finished installing the hack.

Your reference to line numbers in each php file are really a pain in the butt. It would make it alot easier if you made some sort of reference as to what code it should go below or above instead of line numbers...
Reply With Quote
  #28  
Old 08-23-2001, 10:22 PM
Operations Operations is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Template "Headinclude"

</style>
$headnewmsg
$headnewpm<font color="#6F6660"></font>

bewteen style and $headnewpm

in the global.php after
PHP Code:
$headnewpm='';
if (
$checknewpm and $bbuserinfo['userid']!=and $bbuserinfo['pmpopup']==2) {
  if (
$noshutdownfunc) {
    
$DB_site->query("UPDATE user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]");
  } else {
    
$shutdownqueries[]="UPDATE LOW_PRIORITY user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]";
  }
  
$newpmmsg=1;
  eval(
"\$headnewpm = \"".gettemplate('head_newpm')."\";");

add
PHP Code:
if ($checkmessages and $bbuserinfo['userid']!=and $bbuserinfo['messagepopup']==2) {
   
$popupmessages $DB_site->query("SELECT * FROM popupmsgs WHERE userid=$bbuserinfo[userid]  ORDER BY nummessages DESC");
   while (
$popmsg $DB_site->fetch_array($popupmessages)) {
        
$popmessage .= "Von:$popmsg[sender]\\n";
        
$popmessage .= "Nachricht:$popmsg[message]\\n\\n";
        
$DB_site->query("DELETE FROM popupmsgs WHERE nummessages=$popmsg[nummessages] AND userid=$bbuserinfo[userid]");
   }
  
$DB_site->query("UPDATE user SET messagepopup=1 WHERE userid=$bbuserinfo[userid]");
  eval(
"\$headnewmsg = \"".gettemplate('head_newmsg')."\";");

this code follows
PHP Code:
$header='';
$footer='';

// parse header ##################
eval(gettemplate('phpinclude',0,0)); 

the both addings in the /mod/index.php and /admin/index.php are simply Links an can be created somewhere in the Nav
but basicly they are after
PHP Code:
<a href="email.php?s=<?php echo $session[sessionhash]; ?>&action=genlist"> Generate mailing list </a><br>
in the admin/index.php

and after

PHP Code:
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> View </a>|
in the mod/index

thats all start install.php and update cp and it works..
Reply With Quote
  #29  
Old 08-24-2001, 06:06 AM
s.molinari's Avatar
s.molinari s.molinari is offline
 
Join Date: Nov 2001
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GB
I installed the hack and it does not work. I saved my options in my cp once I finished installing the hack.

You should have finishwd installing the hack and then save your options.

Quote:

Your reference to line numbers in each php file are really a pain in the butt. It would make it alot easier if you made some sort of reference as to what code it should go below or above instead of line numbers...
I don't understand what's so difficult. If you know you have hacks then you know the line numbers aren't correct for your scripts. So you should look at an original script. Look at the line number and see for yourself where you should add the code in your hacked script. It has to be easier for both of us when I write line numbers. What would you say if I did do what you want, like Operations did above(thank you very much Operations), and it just so happened that the code I mention is also hacked in your script, then you would never find the spot to where the code should be placed. Nah I'll stick to my line numbers. Sorry!

The other point to make is, if you have a clue as to how to program in PHP, then you should be able to see right away where the code belongs. If your not proficient in PHP programming then you really aught not to be playing around with hacks. Especially ones that change the form of the database like mine. That's why I said in the install, "Only continue if you know what your doing!"

Scott
Reply With Quote
  #30  
Old 08-24-2001, 06:12 AM
Operations Operations is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Np Molinari... (just @work go with it )

Quote:
That's why I said in the install, "Only continue if you know what your doing!"
Thats why Newbes delete files.. format harddisks, destroy CdR?s

they think they know what they do..

@GB... what happend whith the Hack.. do U got an Error?
works it but no message appear, did you have manually controlled the script?

(@molinari sorry for posting.. but so i can learn this php language a little bit better...)
Reply With Quote
  #31  
Old 08-24-2001, 08:37 AM
Lordmusic
Guest
 
Posts: n/a
Default

I don't know what is wrong but I have tried this hack over and over. I installed the install script 2ce which frigged things up i am sure.

I added the $ command where it should be.

I also followed Operations directions in case I did it wrong.

It tells me the messages were sent, but nothing is seen. Please let me know.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04651 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete