1

Topic: Two blogs

I have two templates in one Datingsite, and on the first one, I wants blogs from members ( tree kind of group id's) AND an "Editor" (group id 9) to be shown on this particular template.
Ond the second template, I wants only blogs from a "Secretary" (groups id 8) to be shown on that particular second template.
I have tryed witd different IF-sentenses with both "member-id", "group-id" and "loggedin-group_id", in header (dark_yellowish) around {latest_blogs:limit="3",cache_name="xxx"} but nothing works.

Witch tag should I use to control witch group-id's blog that shall be shown?

Last edited by Freja (2008-02-09 09:49:24)

- From the beginning I was intelligent, but since I learn something every day, I'm sure I'll end up wise as well -

2

Re: Two blogs

Hey. You don't have to use any "<!-- IF" statments in .tpl 'cause reason in .php
I did this little tweak for you.
http://www.zhunussov.com/uploads/extensions_latest_blogs_gr_tweak.zip

Now you can choose also: group_id and banned_group_id. But don't forget to name your caches for system not to confuse results.
Try it at first template:
{latest_blogs:banned_group_id=8, cache_name="for_first_template"} - all blogs will be shown exepting 8.

and at second: {latest_blogs:group_id=8, chace_name="secretary_only"} - only group_id=8 will be shown.

Actually it's a good way to have editorial column (especially when you have several editors) and kind of site news with ability to hear comments (despite of News).

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

3

Re: Two blogs

And I didn't touch .tpl file in archive so do not consider it as the part of the mod and keep your own.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

4

Re: Two blogs

Thank you thank you! Look forward trying it later today smile

- From the beginning I was intelligent, but since I learn something every day, I'm sure I'll end up wise as well -

5

Re: Two blogs

ohh..it works perfect!  smile

- From the beginning I was intelligent, but since I learn something every day, I'm sure I'll end up wise as well -

6

Re: Two blogs

Hello Radioact, do you think you could do this to ext.new_blogs too, just as easy and quick as you did with ext.latest_blog ...? smile
I would like so much to show blogs (ext.new_blogs) from group 8 on frontpage insted (or perhaps together with) latest blog (this ext.lates_blog is modified by you to only show group 8)....
I have tryed my self, but with no succes...ofcause...

Last edited by Freja (2008-05-06 13:25:13)

- From the beginning I was intelligent, but since I learn something every day, I'm sure I'll end up wise as well -