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)
-   -   vB Popup Messaging Utility v.0.1 (https://vborg.vbsupport.ru/showthread.php?t=26044)

Lordmusic 08-23-2001 07:58 AM

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.

s.molinari 08-23-2001 09:31 AM

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

Operations 08-23-2001 01:14 PM

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 :)

s.molinari 08-23-2001 02:27 PM

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.

Operations 08-23-2001 05:04 PM

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

aehmmm works great now nice work :)

GB 08-23-2001 09:46 PM

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...

Operations 08-23-2001 10:22 PM

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..
:)

s.molinari 08-24-2001 06:06 AM

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

Operations 08-24-2001 06:12 AM

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...)

Lordmusic 08-24-2001 08:37 AM

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.


All times are GMT. The time now is 11:23 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.01485 seconds
  • Memory Usage 1,767KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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