CZ Forums_Scroll with phpBB groups custom change

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   CZ Forums_Scroll with phpBB groups custom change
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
Arouund 12 months ago O tried all diff forum scroll blocks, the basic CZ scrollling forums block suited our needs best.
I did make couple changes,
To be able to show posrers details only when logged on (SEO and privacy reasons)

At the moment it doesnt show hidden forums, good. What I would like it to be able to do is show these forumss when logged in and at thee pernission level that the member is alogged in at.
I think it is in these lines somewhere thu I cannot work out how to get it to do so.
(I have included the changes I made mentioned above)
Could u show me the code to be anle to do this please
$result1 = $db->sql_query("SELECT
t.topic_id, t.topic_last_post_id, t.topic_title,
f.forum_name, f.forum_id,
u.username, u.user_id,
p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y') as post_time
/* changed above line to remove time of post
p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y at %T') as post_time
*/
FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f
LEFT JOIN ".$prefix."_bbposts p ON (p.post_id = t.topic_last_post_id)
LEFT JOIN ".$prefix."_users u ON (u.user_id = p.poster_id)
/* below line if removed shows all posts....if 0 changed to 1 shows private posts */
WHERE t.forum_id=f.forum_id AND f.auth_view=0
ORDER BY t.topic_last_post_id DESC
/* Find which forums are visible for this user doesnt work
        //
        $is_auth_ary = array();
        $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);
  */     
/*this edits # of messages in block */
LIMIT 10");
while(list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id, $username, $user_id, $poster_id, $post_time) = $db->sql_fetchrow($result1)) {
$topic_title=parseEmoticons($topic_title);
$content .= "<img src=\"themes/$cz_theme/forums/images/icon_minipost.gif\" border=\"0\" alt=\"\"><a href=\"modules.php?name=Forums&amp;file=viewtopic&amp;p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\"><b> $topic_title </b></a><br><font class=\"content\"><i>Last post by <A HREF=\"forum-userprofile-.html$poster_id\"STYLE=\"text-decoration: none\"> $username </a> in <a href=\"modules.php?name=Forums&amp;file=viewforum&amp;f=$forum_id\">$forum_name</a> on $post_time</i></font><br><br>";
////above line edited to remove link to posters details


To enable showing posts at a permission level at which the logged in member has would be a very worth while addition for if or when the updated version is released.


Back to top Reply with quote
#2   
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
Bump...Anyone?



Back to top Reply with quote
#3   
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
No one able to help out?



Back to top Reply with quote
#4   
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
Surely the concept of showing latest posts in the scrollling forums block in such a manner that it shows alll lastest posts accordingly to a members logged on permissions is a good idea?
I have looked around for the last 9 months or so for a scrolling block that will do this and are very suprised to find there is not one.
From my very limited knowledge of coding, this could be done one of 2 ways
1/ using some sort of code like if (is_user($user))
2/ manually adding the id of the hiden forums and adding the above
Neither of the above can I get to work correctly.



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Ok here is a changed block give it a shot and let me know how it goes.

UPDATED: Released to public.
[ Register or login to view links on this board. ]




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: CZ Forums_Scroll custom change
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
We are on the right track
When
admin is logged on admin can see in the block All lastest posts including hidden members only and Another Sections for administration plus all the others All Good.

When a guest is viewing They cant see them All Good

When a member is logged on and has permission to see both hidden sections they can see them All good

When member is logged on with permission just to see Members section Doesnt show , this same as a not logged on Not good lol
When this member then goes into forums index he can see and access the members section

I was just about to bump this again lol
Where the members /forums/search links in the old one? good idea.



Back to top Reply with quote
#7   re: CZ Forums_Scroll custom change
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
The above was a quick look yest morning, loging in separatly as Admin, moderator, ordinary member and not logged in
I had a quick look at the code in the new version, I cant code but get the impression that it works off groups built in the forum cp???
I do have 2 groups,
the regist members are not in the members group (these also have acess to private members forums)
and the modertors (these haveaccess to admin and member forums) are not in the moderators group, They have been made as mod as regist members intead as they the mod different public sections.
So I am wondering if this is why I got the resaults posted above???
Working long hrs on site at the moment so if I get time will see if this is the case later.
Or if u could reply please?



Back to top Reply with quote
#8   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
More then likely thats why they got the view they got. It runs off of the phpbb groups systm which is what is used to control the view of the posts.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: CZ Forums_Scroll custom change
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
Had a better look little while ago
I went thru members list and added them to the apprioate groups then gave those groups permissions to veiw the apropiate sections of the forums
Done
Not quite what I was looking for but does the job just as well
The only thing I didnt count on was each member was sent an email notifing them of the addition to a group lol icon_eek.gif
I have taken the liberty to make a few custom hacks to customise for our site
Remove link to members details (member privacy SEO stuff)
Changed links to html links and a few other cosmetic bits and pieces.
can veiw [ Register or login to view links on this board. ]
uploaded below



Back to top Reply with quote
#10   re: CZ Forums_Scroll custom change
Steptoe
CZ Newbie
Steptoe has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Oct 17, 2005
0.00 posts per day
Posts: 29
Points: 827
   
Been looking thru phpmyadmin in bb_user-group and couple others...
Im getting myself a bit "lost" and confused
If a new user completes registarion how does one make it so that they are automatically also added to a group? say members with a gruop id of 7 This group has access to a members only forum.
Or would it be better to add a new enrty in _users or somehere that would then automatically put them in group id 7 upon registration confirmation.?

Is there a script one can that would put all current members into group 7 id and would this send out emails saying they have been added?



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum