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)
-   -   Contextual Forum Subscriptions Hack (https://vborg.vbsupport.ru/showthread.php?t=36365)

mkunichi 11-01-2002 03:48 PM

Given that it had been almost 6 months since the last post, I was just wondering if this hack had been superceded by another, better one.

kippesp 11-01-2002 09:21 PM

I've made no updates. The only enhancement I can think of would be to fix it to work with polls. Creating a new poll doesn't send out an email.

Smoothie 12-02-2002 05:41 AM

STEP 2
(newthread.php) Find the following code
PHP Code:

              eval("\$emailmsg = \"".gettemplate("email_moderator",1,0)."\";");
              eval(
"\$emailsubject = \"".gettemplate("emailsubject_moderator",1,0)."\";");
              
mail($toemail,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
            }
          }
        }
      } 

That is no longer how this code appears. It is now
PHP Code:

              eval("\$emailmsg = \"".gettemplate("email_moderator",1,0)."\";");
              eval(
"\$emailsubject = \"".gettemplate("emailsubject_moderator",1,0)."\";");
              
mail($val,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
            }
          }
          
$bbuserinfo['username'] = htmlspecialchars($bbuserinfo['username']);
        }
      } 

Will the current hack work with 2.2.9?

kippesp 12-02-2002 06:10 AM

Yes, it should work fine. I think the code in this area was first changed in 2.2.7. At least that's what my logs show without tracking down the real ZIP file.

So this line was added between 2.2.6 and 2.2.7:
$bbuserinfo['username'] = htmlspecialchars($bbuserinfo['username']);

The hack addition would still go after the 4th brace in that area--the 2nd brace after the above, quoted line.

Although I have yet to upgrade my forums--don't tell anyone--from your post, at least this area should be fine.

I'm very glad to see that this hack will no longer be necessary in vb3! I think vb3 has its own version anyway.

Paul

Smoothie 12-02-2002 06:24 AM

I've had this hack in my forums since 2.2.1 up to 2.2.7. For some reason I just noticed that extra line of code and wanted to check after I upgraded to 2.2.9

webhost 01-25-2003 10:38 PM

Works great except for one problem
see below how would someone get the thread to send out links instead of the vb code url and /url

take out the a's before url and that is what shows up in email, shows up with the url vb code tags, anyway to fix that


Quote:

Hello Sparky,

RWH Admin has just started the following thread, "Servers Back Online", in the forum "Important Notices / Outages / Virus Alerts" on RWH Forums.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update: - Some reports are coming in that there is a major US DOS attack that seems to off orginated or has affected Microsoft SQL servers, and its affecting the rest of the net. We will keep you informed and hope to see this fixed as quickly as you do.
We are monitoring massive Distributed Denial of Service attacks all over the U.S. tonight starting at around 11:30 PM CST. As many as 5 of the 13 root name server have been down, up to 10 with massive packet loss (xx%):
All servers should be back up to full speed now.

- [aURL=http://abcnews.go.com/wire/Politics/ap20030125_423.html]ABC[/aURL]
- [aURL=http://europe.cnn.com/2003/TECH/internet/01/25/internet.attack/index.html]CNN[/aURL]
- [aURL=http://www.cbsnews.com/stories/2003/01/25/tech/main537959.shtml]CBS[/aURL]
- [aURL=http://news.bbc.co.uk/1/hi/technology/2693925.stm]BBC[/aURL]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This thread is located at:
http://forums.realwebhost.net/showth...8&goto=newpost

To unsubscribe from this forum, please visit this page:
http://forums.realwebhost.net/member...usub&forumid=3

Yours,
RWH Forums Team



kippesp 01-27-2003 03:17 AM

Personally, I like the markup since it doesn't change the meaning. But this should do the trick:

In newthread.php, find my hacked like:
Code:

$postcontents=unhtmlspecialchars($message);
and change it to:
Code:

$postcontents=strip_tags(bbcodeparse2(unhtmlspecialchars($message),1,1,0,1));
I've not tested this, but it may get you what you want. If you've changed it to send out HTML email, you'll want to not use the strip_tags function.

VBullDC 02-14-2003 01:51 PM

I have a question for the forum. I installed this Hack and love it -- it worked a few weeks ago when someone posted a very short message (like 300 characters). All who were subscribed to the specific forum received the email alert.

Today, however, someone posted a message (which was about 12,000 characters) and the message wasn't emailed out to folks subscribed to the forum.

The only difference in the messages that I can see is the length of the posting.

Does anyone have *any* insight into what might have happened this time around?

I haven't changed any of the vBulletin set-up in the time between the first post and the second. I installed the Hack on 1/17/2003 and am running vBulletin 2.2.8.

Thanks!

VBullDC 03-05-2003 07:34 PM

I posted #38 and didn't hear back from anyone....

I installed this hack and it worked several times. Nothing has changed on my board (it's just been running along, all fine), and I haven't installed any hacks or anything new.

But now the hack doesn't work. If someone posts to a forum I'm subscribed to, I don't get the email alert.

If anyone is out there and can help me I'd really appreciate it.

Thanks a lot.

mashby 03-11-2003 01:19 PM

Just installed on my board [link] and it works like a charm! Nice work, thank you very much.

Any chance of adding the Poll feature soon. If so, this would be a perfect hack! :)


All times are GMT. The time now is 10:27 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.03029 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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