Approved on main page

Post your suggestions for the script here.

Approved on main page

Postby Saszoo » Sun Jul 29, 2007 12:51 am

sorry for the bad title of this topic... :oops:

What I thought would be cool was to have a main page where all the admin posted news items would go, ALONG with all the news items of other users which the admin (me :lol: ) had approved.
The clue is I still want the news items posted by other users to show up in domain.com/username wether or not they had been approved.
Any ideas?
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Re: Approved on main page

Postby FI-DD » Tue Jul 31, 2007 7:51 pm

Saszoo wrote:What I thought would be cool was to have a main page where all the admin posted news items would go, ALONG with all the news items of other users which the admin (me :lol: ) had approved.

I don't understand. :oops:

The script shows all approved news items (posted by you or your users) by default. What's the difference to your suggestion?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Wed Aug 01, 2007 12:26 am

What about the protected post thing?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Saszoo » Wed Aug 01, 2007 8:56 pm

Ok, maybe I'm wrong, which is likely since it's too long since I was working with this script.
What I was "afraid of", and the reason for my post, is that I thought that if I installed the approved plugin, the news users posted would not be viewable if I didn't approve them.
That's not what I want. I do want their news to be displayed wether I approve them or not, but if I don't approve them, they will only show in something like domain.tld/username.
If I do approve them, they will in addition show on the main page alongside "my" news.

Sorry for not making myself clear, not my native language and so on... :wink:
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby FI-DD » Wed Aug 01, 2007 10:04 pm

Ok, you want to show only approved news on your main page. That's the default setting - nothing to change in this area.

And you want to show approved and unapproved news on the user's page. We have to make some changes to achieve this.

1. Open show_users.php and add this to the include code:
Code: Select all
$show_unapproved = true;


2. Open inc/show.news.php and change this:
Code: Select all
   if (!$is_logged_in or $is_logged_in and $member['level'] == 4){
      $where[] = 'hidden = 0';
      $where[] = 'and';
   }


to this:
Code: Select all
   if(!$show_unapproved){
      if (!$is_logged_in or $is_logged_in and $member['level'] == 4){
         $where[] = 'hidden = 0';
         $where[] = 'and';
      }
   }
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Saszoo » Wed Aug 01, 2007 10:15 pm

Very nice, thank you :)
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

somthing strange...

Postby samiro » Sat May 23, 2009 4:48 pm

I have a big problem!!!
All the news - even the unapproved ... are shown in my homepage.... (for me [admin] and for gusts...)

What can I do - or check?
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby FI-DD » Sat May 23, 2009 6:50 pm

Go to the "news"-table in the database and check the "hidden"-field of an unapproved article. What does it say?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby samiro » Sat May 23, 2009 8:51 pm

this what i see...
Attachments
2.JPG
(180.97 KiB) Downloaded 90 times
1.JPG
(228.51 KiB) Downloaded 84 times
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL

Postby Ned Flanders » Fri Jun 26, 2009 1:58 pm

FI-DD wrote:Go to the "news"-table in the database and check the "hidden"-field of an unapproved article. What does it say?


Hi, I'm having the vrey same problem: unapproved articles are just being published. My hidden field is showing "1" for unapproved articles (and 0 for approved ones). Hmmm annoying.

System settings seem okay:
Approve news
Writer's stories must be approved first Yes

And cache have also been cleared...
User avatar
Ned Flanders
 
Posts: 55
Joined: Mon May 11, 2009 10:28 pm
Location: Holy Kingdom

unapproved news showing solved

Postby Ned Flanders » Fri Jun 26, 2009 2:11 pm

Ned Flanders wrote:
FI-DD wrote:Go to the "news"-table in the database and check the "hidden"-field of an unapproved article. What does it say?


Hi, I'm having the vrey same problem: unapproved articles are just being published. My hidden field is showing "1" for unapproved articles (and 0 for approved ones). Hmmm annoying.

System settings seem okay:
Approve news
Writer's stories must be approved first Yes

And cache have also been cleared...


Just logout, that's it :lol:
User avatar
Ned Flanders
 
Posts: 55
Joined: Mon May 11, 2009 10:28 pm
Location: Holy Kingdom

Postby scottdallas » Sat Jun 27, 2009 12:16 pm

lol that IS most likely it.. an age old question solved by a simple log out (too bad i can never log out anymore without clearing my history and cache.. can someone help me figure that out? im sure im just forgetting something someone posted to fix this over the years)
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby samiro » Sun Jun 28, 2009 5:36 pm

All the news - even the unapproved ... are shown in my homepage.... (for me [admin] and for gusts...)
even if i log out...
User avatar
samiro
 
Posts: 103
Joined: Sun Apr 20, 2008 1:52 pm
Location: IL


Return to Suggestions



Who is online

Users browsing this forum: No registered users and 0 guests

cron