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: 1.00, by Sparkz Sparkz is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-25-2002 Last Update: Never Installs: 239
 
No support by the author.

Small hack to automatically send PM to new users
after they have activated account.

Requested by Xelation
Tested on 2.2.5

UPDATED - v2.1 - 2002-05-02

Version 2.1 only fixes some problems with installation. Now it checks to see if the settings are already present in the DB, it has an option to remove the settings if you wish to uninstall and it has an option to remove any surplus settings you may have as a result of running the old install file.

If you have version 2.0 up and running problem-free, there is absolutely no need to upgrade.

You should uninstall version 1.0 before installing this one.
This version facilitates vB's built in setting system, and no longer requires a writable file on the server.

It also supports popup on PM.

Follow the instructions in install.txt

-- If you are running MySQL 3.22.xx, you might need to use this installfile instead.

Show Your Support

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

Comments
  #72  
Old 05-07-2002, 02:23 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no other hacks in the register.php.
I even tried a clean install of the original file just in case... included the code again... but still nothing. I made sure everything was checked "yes" if to receive PMs or not....
Reply With Quote
  #73  
Old 05-07-2002, 03:39 PM
vbf.Falco171's Avatar
vbf.Falco171 vbf.Falco171 is offline
 
Join Date: Feb 2002
Location: Be
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, same for me...
Reply With Quote
  #74  
Old 05-07-2002, 04:00 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If at least I was able to reproduce the problem, I could try to solve it. Sorry for not being able to help you guys :/
Reply With Quote
  #75  
Old 05-07-2002, 08:07 PM
vbf.Falco171's Avatar
vbf.Falco171 vbf.Falco171 is offline
 
Join Date: Feb 2002
Location: Be
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've a first correction for this hack...

In php file of the hack, replace on line 17 and 18, $username by \$username, because with $username you can't see this text in admin panel...
Reply With Quote
  #76  
Old 05-07-2002, 08:18 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually knew about that one. Just forgot to update the file
Reply With Quote
  #77  
Old 05-08-2002, 05:34 PM
bonnmac bonnmac is offline
 
Join Date: Mar 2002
Location: United States
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You very much for this hack. I've installed it and it works great. Will make for a nice friendly atmosphere of a board to be welcomed.
Reply With Quote
  #78  
Old 05-09-2002, 07:28 PM
vbf.Falco171's Avatar
vbf.Falco171 vbf.Falco171 is offline
 
Join Date: Feb 2002
Location: Be
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ouhhh I've the solution, from Nicolas2000 a moderator of vBulletin-France Team...

The new code to insert into register.php :
PHP Code:
// Sparkz - Send Default PM to new users
   
if ($defpmactive && ($defpmadminmail || $adminemail)) {
      
$DB_site->query ("INSERT INTO privatemessage
                        (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderid)
                        VALUES (NULL,
$userid,$userid," $defpmuserid ",'" addslashes (htmlspecialchars (str_replace ('$username'$username$defpmsubject))) . "','".addslashes (htmlspecialchars (str_replace ('$username'$username$defpmbody))) . "',".time().",0,0)");
      if (
$pmpopup) {
         if (
$noshutdownfunc) {
            
$DB_site->query("UPDATE user SET pmpopup=2 WHERE userid='$userid'");
         } else {
            
$shutdownqueries[]="UPDATE user SET pmpopup=2 WHERE userid='$userid'";
         }
      }
   }
// Sparkz - Send Default PM to new users 
Modifications in php file :
PHP Code:
         $optionstemplate=generateoptions();
         
$DB_site->query("UPDATE template SET template='$optionstemplate' WHERE title='options'"); 
Put that on line 34 after } and on line 71 after } .

I test it and it run ! But the installation and un-installation don't work
Reply With Quote
  #79  
Old 05-09-2002, 08:41 PM
bandersen's Avatar
bandersen bandersen is offline
 
Join Date: Feb 2002
Location: Oslo
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vive la France!!!!

Can you pls. tell what's on line 34 and 71... just in case we do not have the same? then I'll try it out. thanks.
Reply With Quote
  #80  
Old 05-09-2002, 09:25 PM
vbf.Falco171's Avatar
vbf.Falco171 vbf.Falco171 is offline
 
Join Date: Feb 2002
Location: Be
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ouais vive la Belgique, vive la France, vive les pays Francophones

And for answer you :
On line 34 after
PHP Code:
       } elseif ($result['total'] > 1) {
            echo 
'<tr class="'.getrowbg().'" valign="top"><td><p><font size="1">Les param&egravetres existent d&eacuteja ' $result['total'] . ' fois</font></p></td></tr>';
            echo 
'<tr class="'.getrowbg().'" valign="top"><td><p><font size="1">Essayez de modifier vos param&egravetres.</font></p></td></tr>';
         } 
and on line 71 after
PHP Code:
            }
         } else {
            echo 
'<tr class="'.getrowbg().'" valign="top"><td><p><font size="1">Impossible de trouver des param?tres ? supprimer.</font></p></td></tr>';
         } 
Reply With Quote
  #81  
Old 05-09-2002, 10:08 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will look at it and update the files tomorrow... I've already had a few beers, so I'm not gonna mess with any code now
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 10:24 AM.


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.06312 seconds
  • Memory Usage 2,319KB
  • 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
  • (4)bbcode_php
  • (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
  • (11)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