Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Re:[SOLVED] Latest posts (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:[SOLVED] Latest posts
#24638
[SOLVED] Latest posts 1 Year, 2 Months ago  
Hi all,

i found a bug & the answer for the latest posts showing on the mainpage of the board. The only posts showing there are the public ones. If you compare it with the feature 'recent posts' you'll find different topics (if you use # userlevels)

My solution for this:

edit 'recentposts.php' (components/templates/default/plugin/recentposts)

and replace following lines (line 88 and following):

$query = "select gid from #__users where id=$my->id";
$database->setQuery($query);
$database->loadResult();
$group_id = (int)$database->loadObjectList();

with:

$query = "select gid from #__users where id=$my->id";
$database->setQuery($query);
$group_id = $database->loadResult();
if (!$group_id > 0) {
$group_id = 0;
}

now recent posts will change according to userlevel

comments are welcome
blowdoof (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/09/26 11:13 By blowdoof. Reason: mark as solved
 
The administrator has disabled public write access.  
#24749
Re:[SOLVED] Latest posts 1 Year, 2 Months ago  
Thank you very much for the suggestion. I was wondering my the staff area on my website was showing up even when not logged in!
sonofmore (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Game Hosting Reviews
Logged Logged
 
 
The administrator has disabled public write access.  
#24751
Re:[SOLVED] Latest posts 1 Year, 2 Months ago  
I've just noticed that even after copying and pasting your suggested code that when not logged into the system with any account (unregistered user) the "protected" threads are still visible. I highly recommend that all site administrators disable the recent posts feature until you can throughly test this out and confirm the proper security results.
sonofmore (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Game Hosting Reviews
Logged Logged
 
 
The administrator has disabled public write access.  
#24780
Re:[SOLVED] Latest posts 1 Year, 2 Months ago  
Checking on 2 different boards the userlevels seems to work fine with the recent posts. Even working with 3 different levels...

Can you post or pm me an example?
blowdoof (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#24783
Re:[SOLVED] Latest posts 1 Year, 2 Months ago  
I've pm'ed you regarding this matter. Thanks!
sonofmore (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Game Hosting Reviews
Logged Logged
 
 
The administrator has disabled public write access.  
#24788
Re:[SOLVED] Latest posts 1 Year, 2 Months ago  
Whoops, I had forgot to set the permissions correctly in the admin panel on one of the sections that was previously having this issue. Everything seems to be working just fine now. You can disregard my private message. Sorry about the confusion!
sonofmore (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Game Hosting Reviews
Logged Logged
 
 
The administrator has disabled public write access.  
#24838
Re:[SOLVED] Latest posts 1 Year, 2 Months ago  
No problem, glad it works !
blowdoof (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#27147
Re:[SOLVED] Latest posts 1 Year, 1 Month ago  
This is not working here, nothing change, any other idea ?

EDIT: ok this fix works greatly however think to check that in fireboard > plugins > Recent Post Settings > Show Category you have all the needed forum ids present to be sure here is what i put in (adviced by Florut) :
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50
frodon2 (User)
Senior Boarder
Posts: 104
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: France Birthdate: 1980-00-00
Logged Logged
 
Last Edit: 2007/10/12 16:29 By frodon2.
 
The administrator has disabled public write access.  
#28926
Re:[SOLVED] Latest posts 1 Year, 1 Month ago  
Thanks for the solution. it solved at least one of my problems.

best regards
Christian
Almgren (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Computer geek and nature photograper, all in one.
babylon5.homeftp.net for my personal web site
 
The administrator has disabled public write access.  
#32641
Re:[SOLVED] Latest posts 1 Year ago  
I already have tried editing recentposts.php as blowdoof has suggested but it gives the same problem. Show Latest Posts link gives an empty list for all time frames.

I also have modified Show Category settings as frodon2 has suggested and has entered all our forum category IDs but it still doesn't work.

Any more suggestions? Your help will greatly be appreciated.

aBiSh (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top