Welcome, Guest. Please Login or Register.
November 29, 2024, 04:47:39 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] View posts per day in profile « previous next »
Pages: 1 [2] 3 4 Reply Ignore Print
Author Topic: [Done 1.5.1] View posts per day in profile  (Read 8494 times)
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #15 on: April 09, 2003, 07:17:15 AM »
Reply with quote

Did you install it manually?

What is line 475?
For me, it is:
                           <select name="postsPerDay">
Which shouldn't cause any parse errors.

-[Unknown]
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #16 on: April 09, 2003, 06:20:16 PM »
Reply with quote

it is:
                              <option value="0"' . ($modSettings['postsPerDay'] ']== 0 ? ' selected="selected"' : '') . '>' . $txt['postsper_none'] . '</option>

I checked for any spaces after codes... none. I installed a Gobalopper Who's Online mod before this one but modsetting work fine with it. I only got the error after I installed this mod. Have not had time to look at the code yet. I just made sure there was no extra spaces after all the codes. Still got parse error.

Here is my lines for 475 and on...

                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '" colspan="3"><hr size="1" width="100%" class="windowbg3" /></td>
                     </tr><tr>
                        <td valign="top" class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><a href="javascript:reqWin(\'' . $scripturl . '?action=helpadmin;help=m_postsper\')" class="help"><img src="' . $imagesdir . '/helptopics.gif" border="0" alt="' . $txt[119] . '" /></a></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><font size="2">' . $txt['postsper_enable'] . '</font></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '">
                           <select name="postsPerDay">
                              <option value="0"' . ($modSettings['postsPerDay'] ']== 0 ? ' selected="selected"' : '') . '>' . $txt['postsper_none'] . '</option>
                              <option value="1"' . ($modSettings['postsPerDay'] ']== 1 ? ' selected="selected"' : '') . '>' . $txt['postsper_onlyday'] . '</option>
                              <option value="2"' . ($modSettings['postsPerDay'] ']== 2 ? ' selected="selected"' : '') . '>' . $txt['postsper_onlytoday'] . '</option>
                              <option value="3"' . ($modSettings['postsPerDay'] ']== 3 ? ' selected="selected"' : '') . '>' . $txt['postsper_both'] . '</option>
                           </select>
                        </td>
                     </tr><tr>


Line 474 is select name="postperday" dilly
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #17 on: April 09, 2003, 06:28:07 PM »
Reply with quote

If I remove this:

                             <option value="0"' . ($modSettings['postsPerDay'] ']== 0 ? ' selected="selected"' : '') . '>' . $txt['postsper_none'] . '</option>
                             <option value="1"' . ($modSettings['postsPerDay'] ']== 1 ? ' selected="selected"' : '') . '>' . $txt['postsper_onlyday'] . '</option>
                             <option value="2"' . ($modSettings['postsPerDay'] ']== 2 ? ' selected="selected"' : '') . '>' . $txt['postsper_onlytoday'] . '</option>
                             <option value="3"' . ($modSettings['postsPerDay'] ']== 3 ? ' selected="selected"' : '') . '>' . $txt['postsper_both'] . '</option>
                          </select>


Modsettings will load, but without the option to change the post per day.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #18 on: April 09, 2003, 11:52:23 PM »
Reply with quote

Quote from: Nemesis on April 09, 2003, 06:20:16 PM
                              <option value="0"' . ($modSettings['postsPerDay'] ']== 0 ? ' selected="selected"' : '') . '>' . $txt['postsper_none'] . '</option>

Well, I just double checked and this is not the correct code, nor the code in the mod....  Try copying it from the mod again.... it should be "$modSettings['postsPerDay']" not "$modSettings['postsPerDay'] ']".

-[Unknown]
Logged
yabbadooSE
Noobie
*
Posts: 7


I'm a llama!

Re:[Done 1.5.1] View posts per day in profile
« Reply #19 on: April 10, 2003, 03:41:39 AM »
Reply with quote

Just wanted to say thanks Unknown for those 2 nice mods, the one mentioned here (posts per day) and Global Moderator Panel :).


off topic... Where can I find a good sub-categories mod for 1.5.1?  I just installed YabbSE... and it seems to not be able to.  
For example, i'd like to have a board with subcategories IN it with moderators for each board within that subcategory.

so the main page isn't so large or clustered.

thanks.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #20 on: April 10, 2003, 05:30:54 AM »
Reply with quote

Quote from: yabbadooSE on April 10, 2003, 03:41:39 AM
Just wanted to say thanks Unknown for those 2 nice mods, the one mentioned here (posts per day) and Global Moderator Panel :).


off topic... Where can I find a good sub-categories mod for 1.5.1?  I just installed YabbSE... and it seems to not be able to.  
For example, i'd like to have a board with subcategories IN it with moderators for each board within that subcategory.

so the main page isn't so large or clustered.

thanks.

That's one thing my secret project adds.  I don't believe one is currently available.

Please note that Chris Cromer should get all the kudos for the Global Moderator Center.

-[Unknown]
Logged
yabbadooSE
Noobie
*
Posts: 7


I'm a llama!

Re:[Done 1.5.1] View posts per day in profile
« Reply #21 on: April 10, 2003, 06:39:44 AM »
Reply with quote

ahh okay thanks for the reply.  That'll save me a lot of time searching through 100's of threads.. i had already much pretty given up before i decided to just ask.

Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #22 on: April 11, 2003, 10:53:35 PM »
Reply with quote

Quote from: Horseman on April 08, 2003, 10:44:07 AM
great mod  :D THX

download this mod in german/english here:

http://www.h-h-c.de/downloads/postsperday.rar

Oh, I missed this post :-[.

Thanks a lot, Horseman... I really appreciate the translation.  (my biggest weak spot is foreign language.)

-[Unknown]
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #23 on: April 12, 2003, 04:30:04 AM »
Reply with quote

Unknown you were right about the mod, I got it to work. Somehow when downloading the file it change your mod file. Freaking weird.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #24 on: April 12, 2003, 05:21:13 AM »
Reply with quote

Quote from: Nemesis on April 12, 2003, 04:30:04 AM
Unknown you were right about the mod, I got it to work. Somehow when downloading the file it change your mod file. Freaking weird.

With my craptacular server.... I'm not terribly surprised.

Note to everyone:  If you experience errors, try downloading it again.

-[Unknown]
Logged
chris
Guest
Re:[Done 1.5.1] View posts per day in profile
« Reply #25 on: April 12, 2003, 12:40:34 PM »
Reply with quote

Uhmmm...

QuotePosts:  1 (1.27 per day, 1 today)

;D you should fix the calculations....
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #26 on: April 12, 2003, 08:24:17 PM »
Reply with quote

Quote from: Christian Land on April 12, 2003, 12:40:34 PM
Uhmmm...

QuotePosts:  1 (1.27 per day, 1 today)

;D you should fix the calculations....

Wha?!  That would like mean they had been registered for like 0 days.... oh....

Well, it works okay after the first day.

-[Unknown]
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #27 on: April 15, 2003, 07:39:07 AM »
Reply with quote

dutch translation for this mod:

$txt['postsper_day'] = 'per dag';
$txt['postsper_today'] = 'vandaag';
$txt['postsper_onlyday'] = 'Toon gemiddelde per dag';
$txt['postsper_onlytoday'] = 'Laat geposte berichten vandaag zien';
$txt['postsper_both'] = 'Toon gemiddelde en posts vandaag';
$txt['postsper_none'] = 'Laat geen berichten per dag zien';
$txt['postsper_enable'] = 'Laat gemiddelde berichten per dag zien';


BiErLeEuW = new nick for onsforum
Logged
BiErLeEuW
Full Member
***
Posts: 174


WWW
Re:[Done 1.5.1] View posts per day in profile
« Reply #28 on: April 15, 2003, 12:39:48 PM »
Reply with quote

Could you make a function in the Memberlist for this ?
Like Top 15 Posters but now Most Active Users!

I hope you know what i mean... Tnx for all, it works fine!
Logged
Fizzy
Full Member
***
Posts: 214


Re:[Done 1.5.1] View posts per day in profile
« Reply #29 on: April 18, 2003, 09:20:58 AM »
Reply with quote

I have a problem running this one.

The average per day works fine, but when todays posts or the combined is selected I get the following error from prfile.php

Quote
Database Error

You have an error in your SQL syntax near 'AND posterTime > 1050644631' at line 5
File: /home/s/k/skincell/public_html/yabbse/Sources/Profile.php
Line: 998


Its always line 998 or line 1012 - they seem the same line.


            AND posterTime>" . (time() - (time() % 86400))) or database_error(__FILE__, __LINE__);
      list ($post_count) = mysql_fetch_row($request);
      mysql_free_result($request);

      $memsettings[6] .= ' (' . $post_count . ' ' . $txt['postsper_today'] . ')';
   }
   // Posts: xxxx (yy.yy per day, zz today)
   elseif ($modSettings['postsPerDay'] == 3)
   {
      // Get the posts made today.
      $request = mysql_query("
         SELECT COUNT(ID_MSG)
         FROM {$db_prefix}messages
         WHERE ID_MEMBER=$memsettings[ID_MEMBER]
            AND posterTime>" . (time() - (time() % 86400))) or database_error(__FILE__, __LINE__);
      list ($post_count) = mysql_fetch_row($request);
      mysql_free_result($request);


I read about a screwed up download ? ? ?
I have downloaded twice.

Any thoughts?
Logged
Pages: 1 [2] 3 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1] View posts per day in profile « 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.051 seconds with 20 queries.