Diferior CMS on steroids
+1369 / 2338582 ( online 11 )

Choose which pages ...


Forum posts: 98
p2pmylife (Talks a lot) @ 08 11 09 - 10:08:39
Hi,

First thanks for your great work, this CMS is unique and I believe in, most of them do not propose an integrated tracker so its a good point, most searched.

Well, i have problem, I just dont want visitors can see all posts dealing with the tracker, i mean if iam a visitor i just can see blog news and so on but NOT the last uploaded torrent for example.

Can i do this ? If its yes how ? o_O

Thanks for your attention,

P2PMyLife.com
Forum posts: 98
p2pmylife (Talks a lot) @ 08 11 09 - 10:30:20 (edited 08 11 09 - 14:05:00)
I've find a (temporary) solution (not the best i think) but it work :

Insert this line :

{if (isset($smarty.session.logged) && $smarty.session.logged===true) || $posts[p].lid=="xxxxx" }

At ~30 before „<div class=“post_holder{if isset ( $start_page )..."

And {/if} at the line ~98 after the </div>.

In this file : „blog.tpl.php“.

In the test, xxxxx is the name of your blog categories (of your choice) you want to see on your mainpage when you're not logged ...

Now the last torrents cannot appear on the main page when you are a visitor ! ;)

If you have a better solution, your welcome !

Thanks.
Avatar
Blog posts: 11
Added downloads: 2
Comments: 18
Forum posts: 573
UnrealX (Lead code monkey) @ 08 11 09 - 14:47:48
Well, I'm glad you managed to sort this out yourself ;)