Welcome, Guest. Please Login or Register.
April 25, 2024, 01:22:57 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Notification of New Threads « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Notification of New Threads  (Read 8793 times)
cpradio
Noobie
*
Posts: 10


ICQ - 129352763 WWW
Notification of New Threads
« on: March 20, 2003, 07:30:39 PM »
Reply with quote

This probably is a dumb question but is there any way I can setup my forum to notify me a new thread is created in a specific category/board?

I am using YaBB SE for a support area for my open-source script and would like to be notified when new suggestions or bug reports come in.

-Matt
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Notification of New Threads
« Reply #1 on: March 20, 2003, 09:14:06 PM »
Reply with quote

try this mod: http://www.yabbse.org/community/index.php?board=134;action=display;threadid=20290
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
cpradio
Noobie
*
Posts: 10


ICQ - 129352763 WWW
Re:Notification of New Threads
« Reply #2 on: March 20, 2003, 11:16:59 PM »
Reply with quote

okay, that mod is such crap.  I am having nothing but troubles with it as it doesnt use {$db_prefix} for the table names.

Anyways, I got it down to this error message:
You have an error in your SQL syntax near '}categories AS c LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT=c.ID_CAT) WHERE ' at line 1

Here is the sql syntax:
 $condition = ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' ? '1' : "(FIND_IN_SET('{$settings[7]}', c.memberGroups) != 0 || c.memberGroups='')");  
 $result_boards = mysql_query ('SELECT DISTINCT c.memberGroups,c.ID_CAT, b.ID_CAT FROM {$db_prefix}categories AS c ' .
                               'LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT=c.ID_CAT) WHERE ' .
                               $condition) or die($db_prefix." ".$condition."<br>".mysql_error());


Any ideas?
« Last Edit: March 20, 2003, 11:17:21 PM by cpradio » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Notification of New Threads
« Reply #3 on: March 20, 2003, 11:27:16 PM »
Reply with quote

Quote from: cpradio on March 20, 2003, 11:16:59 PM
okay, that mod is such crap.
I think you need some attitude readjustment.  Not like any had to code this software let alone that mod.  Sheesh.
Logged

cpradio
Noobie
*
Posts: 10


ICQ - 129352763 WWW
Re:Notification of New Threads
« Reply #4 on: March 20, 2003, 11:28:24 PM »
Reply with quote

by mod, i was refering to the module that i just tempted to installed based on the moderators' suggestion.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Notification of New Threads
« Reply #5 on: March 20, 2003, 11:32:15 PM »
Reply with quote

if the mod isnt working, u can tell about it nicely in that thread, so Christian Land can update/fix it
better than saying "this mod is such crap"

i took a look at the mod, it's all using $db_prefix
only in the nt_db_mod.php file he forgot to, which can be fixed easily
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Notification of New Threads
« Reply #6 on: March 20, 2003, 11:34:10 PM »
Reply with quote

Quote from: cpradio on March 20, 2003, 11:28:24 PM
by mod, i was refering to the module that i just tempted to installed based on the moderators' suggestion.
I fully understood what you were referring to.  You asked for a way to be notified on new threads.  Spaceman-Spiff went beyond just saying, "there is a mod" to providing you with a link to a mod ideas thread, which contained a link to a finished mod.  My point was that "okay, that mod is such crap." shows absolutly no respect for the mod author or anyone trying to help.  Just saying that you needed help with the mod and why would have sufficed versus saying it is crap.
Logged

cpradio
Noobie
*
Posts: 10


ICQ - 129352763 WWW
Re:Notification of New Threads
« Reply #7 on: March 20, 2003, 11:34:57 PM »
Reply with quote

If you look at the replace code or the add before statements you will see yabbse_ not {$db_prefix}  this happens in a few of them not all of them.

Also I recall seeing him stating he will not provide support.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Notification of New Threads
« Reply #8 on: March 20, 2003, 11:37:10 PM »
Reply with quote

Quote from: cpradio on March 20, 2003, 11:34:57 PM
If you look at the replace code or the add before statements you will see yabbse_ not {$db_prefix}  this happens in a few of them not all of them.

Also I recall seeing him stating he will not provide support.
Alright, so either alter the mod to work, send Christian a PM asking for some help, or wait for raffael3d's new mod.
Logged

cpradio
Noobie
*
Posts: 10


ICQ - 129352763 WWW
Re:Notification of New Threads
« Reply #9 on: March 20, 2003, 11:44:10 PM »
Reply with quote

okay, i agree using the word "crap" was inappropriate.  I am just frustrated that someone would post a mod that has so many flaws though, i can understand flaws are a part of programming.

The sql syntax error though is the only part i am concerned about.  I cannot find the problem.  I have looked at it for an hour and nothing is fixing it.

That is where I am stuck.  I fixed all of the other little tidbits of problems.  Could anyone help me with the sql query?
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Notification of New Threads
« Reply #10 on: March 20, 2003, 11:46:35 PM »
Reply with quote

Try changing

{$db_prefix} to '.$db_prefix.'

for both categories and boards
« Last Edit: March 20, 2003, 11:46:56 PM by David » Logged

cpradio
Noobie
*
Posts: 10


ICQ - 129352763 WWW
Re:Notification of New Threads
« Reply #11 on: March 20, 2003, 11:48:47 PM »
Reply with quote

i already have.  {} tells php what is inbetween the two brackets is a variable and needs the variables' value to be displayed.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Notification of New Threads
« Reply #12 on: March 20, 2003, 11:51:25 PM »
Reply with quote

Quote from: cpradio on March 20, 2003, 11:48:47 PM
i already have.  {} tells php what is inbetween the two brackets is a variable and needs the variables' value to be displayed.
But look at the error.

QuoteYou have an error in your SQL syntax near '}categories AS c LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT=c.ID_CAT) WHERE ' at line 1
That error is from MySQL and shows the query it has been sent.  Looking at the part after LEFT JOIN you will see that PHP is not parsing the prefix number.
Logged

mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Notification of New Threads
« Reply #13 on: March 20, 2003, 11:53:05 PM »
Reply with quote

I´ll check the mod! I know Chris as a very accurate working coder....

mediman
Logged

mainComm Dev Team
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Notification of New Threads
« Reply #14 on: March 21, 2003, 12:48:27 AM »
Reply with quote

I checked the mod! It works absolutly great!

The only 2 things i found:

1. In the funktion notifyBoards()

you have
$condition = ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' ? '1' : "(FIND_IN_SET('$settings[7]', c.memberGroups) != 0 || c.memberGroups='')");   
   $result_boards = @mysql_query ('
      SELECT DISTINCT c.ID_CAT, b.ID_BOARD
      FROM yabbse_categories AS c
         LEFT JOIN yabbse_boards AS b ON (b.ID_CAT=c.ID_CAT)
      WHERE '.$condition);


to replace with

$condition = ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' ? '1' : "(FIND_IN_SET('$settings[7]', c.memberGroups) != 0 || c.memberGroups='')");   
   $result_boards = @mysql_query ('
      SELECT DISTINCT c.ID_CAT, b.ID_BOARD
      FROM {$db_prefix}categories AS c
         LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT=c.ID_CAT)
      WHERE '.$condition);


and in the file nt_db_mod.php  you have to hardcode your prefix or you change the tablename after you used this file in phpmyadmin...

mediman
« Last Edit: March 21, 2003, 12:50:19 AM by mediman » Logged

mainComm Dev Team
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Notification of New Threads « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.026 seconds with 20 queries.