Recent posts user preference

Started by miseryshining, March 19, 2007, 05:37:32 PM

Previous topic - Next topic

miseryshining

Quote from: Angelotus on January 04, 2008, 03:12:13 PM
Is there a way to add more options to the dropdown list that chooses the nr of recent topics?

just look inside the Profile.template.php file (in the Themes/default dir) and search for:

<option ',($context['user']['recentPosts']['nrofPosts'] == 5 ? 'SELECTED' : ''),'>5</option>
<option ',($context['user']['recentPosts']['nrofPosts'] == 10 || !isset($context['user']['recentPosts']['nrofPosts']) ? 'SELECTED' : ''),'>10</option>
<option ',($context['user']['recentPosts']['nrofPosts'] == 15 ? 'SELECTED' : ''),'>15</option>
<option ',($context['user']['recentPosts']['nrofPosts'] == 20 ? 'SELECTED' : ''),'>20</option>
<option ',($context['user']['recentPosts']['nrofPosts'] == 25 ? 'SELECTED' : ''),'>25</option>


im sure you'll figure it from there ;)

Apostaganha

Quote from: Apostaganha on January 06, 2008, 01:48:04 PM
Im getting this error:


8: Undefined index: is_read
Ficheiro: /home/apostaga/public_html/forum/Themes/default/Recent.template.php (eval?)
Linha: 159



Can someone help me on this one?

Thanks in advance!


:(

miseryshining

Quote from: Apostaganha on January 07, 2008, 01:09:35 PM
Quote from: Apostaganha on January 06, 2008, 01:48:04 PM
Im getting this error:


8: Undefined index: is_read
Ficheiro: /home/apostaga/public_html/forum/Themes/default/Recent.template.php (eval?)
Linha: 159



Can someone help me on this one?

Thanks in advance!



:(

haha, its not like your forum is breaking down because of this error, but I'll fix it in the next package release :-)

Kazos

Hey, im a complete SMF/Php nub and need help ^^ Could someone explain to me where i put the:

require_once('SSI.php');
if (function_exists('ssi_recentPostsPref')) ssi_recentPostsPref();


code so that it displays above all of the other Categories.

Thanks to anyonehow helps ^^

miseryshining

Quote from: Kazos on January 12, 2008, 07:16:23 PM
Hey, im a complete SMF/Php nub and need help ^^ Could someone explain to me where i put the:

require_once('SSI.php');
if (function_exists('ssi_recentPostsPref')) ssi_recentPostsPref();


code so that it displays above all of the other Categories.

Thanks to anyonehow helps ^^

it depends a bit on the theme(s) you're using but you in your BoardIndex.template.php file you should find something like this:


/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first = true;
foreach ($context['categories'] as $category)


you could paste the code above that.

Rohanx

After installation this addon I get error when I push on characteristics and options Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/site/public_html/forum/Sources/ModSettings.php on line 335

Parse error: syntax error, unexpected $end, expecting ')' in /home/site/public_html/forum/Sources/ModSettings.php on line 335


335 string // Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWait),

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Rohanx


miseryshining

Quote from: Rohanx on January 17, 2008, 08:11:26 AM
After installation this addon I get error when I push on characteristics and options Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/site/public_html/forum/Sources/ModSettings.php on line 335

Parse error: syntax error, unexpected $end, expecting ')' in /home/site/public_html/forum/Sources/ModSettings.php on line 335


335 string // Who can do it.... and who is restricted by time limits?
array('int', 'karmaMinPosts'),
array('float', 'karmaWait),


recent posts mod doesnt change that part of the code, but obviously there's an ' missing after karmaWait

i updated the package with some bug fixes, upped the version to 2.4:
-the recent topics action wasnt displaying real member names
-fixed undefined indexes
-now in zip package since tar.gz caused some problems for some users.

Rohanx

Sorry for stupid question but I can't found any menu for this addon an admin panel...

P.S. thanks, for so fast fix!

Angelotus

Me to, how can I change the way recent posts are shown in default for all users?

YourLocalNerd

I've tried downloading the most recent version from 2 different location and both come up as corrupt files.

This is the file I am attempting to download: http://custom.simplemachines.org/mods/index.php?action=download;mod=654;id=41851

Help would greatly be appreciated!

miseryshining

Quote from: Rohanx on January 17, 2008, 01:05:13 PM
Sorry for stupid question but I can't found any menu for this addon an admin panel...

P.S. thanks, for so fast fix!

there's an option under "features and options" => "user preferences".

for the default theme (and most others) there's an option under "current theme" => "Use recent topics mode instead on board index"

Quote from: YourLocalNerd on January 21, 2008, 11:34:26 AM
I've tried downloading the most recent version from 2 different location and both come up as corrupt files.

This is the file I am attempting to download: http://custom.simplemachines.org/mods/index.php?action=download;mod=654;id=41851

Help would greatly be appreciated!

The file got corrupted due to the recent SMF server outage i think. i re-uploaded version 2.4 (which was lost as well).

YourLocalNerd

Thanks for the quick reply and awesome mod!  Works as advertised!

goran

I have tried to install this mod but the test failed for the file SSI.php ??

miseryshining

Quote from: goran on January 23, 2008, 11:53:26 AM
I have tried to install this mod but the test failed for the file SSI.php ??

2 possibilities:

1. you use an SMF version other then 1.1
2. another mod has altered the SSI.php file.

goran

I am using 114. So how can I found out which mod makes problems?

miseryshining

Quote from: goran on January 23, 2008, 05:08:39 PM
I am using 114. So how can I found out which mod makes problems?

uninstall all mods one by one and try to install recent posts mod after it :-)

JaGuR123

Quote from: miseryshining on January 24, 2008, 04:44:30 AM
Quote from: goran on January 23, 2008, 05:08:39 PM
I am using 114. So how can I found out which mod makes problems?

uninstall all mods one by one and try to install recent posts mod after it :-)

Lol

:P

kamili34


Advertisement: