vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Welcome Thread Upon Registration (https://vborg.vbsupport.ru/showthread.php?t=214702)

Mahar 09-16-2009 04:51 AM

Very Very nice hack. Installed. :)

Stifmeister2 09-23-2009 09:15 PM

Quote:

Originally Posted by SirAdrian (Post 1875880)
If you guys want to fix the IP's:

Edit both plugins, find
PHP Code:

$threaddm->set('visible'$visible); 

Below it, add
PHP Code:

$threaddm->set('ipaddress'IPADDRESS); 

Cheers

Are you sure this works?? I did it and I'm still getting weird IPs for the welcome thread starter... :S

Adrian Schneider 09-23-2009 09:55 PM

Works, but you may want it to post from the person being welcomed rather than someone else, or the IP associations will be out of wack like you said. :)

Cloudrunner 09-24-2009 12:35 AM

Fix for the DB error after email click for activation:

Find in the plugin "Welcome thread upon registration -> register_activate_start"
Code:

$useridnumber = $db->query_first("
    SELECT userid
    FROM useractivation
    WHERE activationid = '" . $vbulletin->db->escape_string($vbulletin->GPC['i']) . "'
   
");

Replace with
Code:

$useridnumber = $db->query_first("
    SELECT userid
    FROM " . TABLE_PREFIX . "useractivation
    WHERE activationid = '" . $vbulletin->db->escape_string($vbulletin->GPC['i']) . "'
   
");

No more database errors.

Cloudrunner 09-24-2009 01:09 AM

To get it to truly randomize ...

In BOTH "welcome thread upon registration" plugins:

Find:
Code:

$rand_title = array_rand($title, 4);
Replace with:
Code:

$rand_title = array_rand($title);
Find:
Code:

$rand_text = array_rand($pagetext, 4);
Replace with:
Code:

$rand_text = array_rand($pagetext);
Find:
Code:

$threaddm->setr('pagetext', $pagetext[$rand_text[0]]);
$threaddm->setr('title', $title[$rand_title[0]]);

Replace with:
Code:

$threaddm->setr('pagetext', $pagetext[$rand_text]);
$threaddm->setr('title', $title[$rand_title]);

This fixes the problems I have found. I will post any more fixes if I find any other problems.

Stifmeister2 09-24-2009 09:36 PM

Quote:

Originally Posted by SirAdrian (Post 1889653)
Works, but you may want it to post from the person being welcomed rather than someone else, or the IP associations will be out of wack like you said. :)

Damnit. We like to have random poster... Is there any way to get the posters real IP (I guess not)? Or the same IP for every welcome topic started (like 123.123.123.123)??

Adrian Schneider 09-24-2009 10:07 PM

If you have a dedicated bot account, you could use a fake IP:
PHP Code:

$threaddm->set('ipaddress''123.123.123.123'); 


CMFINC 09-25-2009 12:49 AM

id like to thank all the people trying to help get this one going.. so far so good on this end other than the IP thing...
SirAdrin im trying your frist IP fix post.. see what will happen now. LOL..
again thank you all.

jimjam 09-29-2009 04:58 AM

Hi this is working well, but its not showing the welcoming posters signature. I really need the signature to show as there are important links in it. Is it possible to show the signature as well. Thanks

abdulbasitsaeed 10-15-2009 09:21 AM

Thank you for this awesome mod! :)

I have this weird problem, and would be grateful if someone could help me sort it out.

I have entered the ID's of the post icons I want to use for the welcome thread when it is generated. However, the mod seems to not recognize them and uses its own icons. And yes, I am sure that I am entering the ID, and not the display order of the post icons.

e.g. I first entered these IDs: 28,34,24

The ID's of the icons it uses are: 2 and 3



Then I entered only 28.

Now it uses icon with ID 2.


Does the mod recognize only the first digit of the ID's entered?

On other thing, if I may mention. I have 2 separate categories of post icons. One with the default vbulletin ones and another with my own personal selection. I don't think that it should matter, since the ID of every post icon is unique, regardless of category. Still thought I'd mention it.

Hope someone can make some sense out of this. Thanks!


All times are GMT. The time now is 01:27 PM.

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.01240 seconds
  • Memory Usage 1,749KB
  • 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
  • (8)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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