Featured post in portal page?
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #8
RE: Featured post in portal page?
Didn't read the full thread, but are not WP feature posts similar to MyBB stickies?

If so, you can try to modify the portal.php, edit the while function.

Not right but the idea would be this (if somebody gets it -.-u):

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$threads = $stickies = '';
while($annoucment = $db->fetch_array($query))
{
...
if($annoucment['sticky'])
{
eval('$stickies .= "'.$templates->get('...').'";');
}
else
{
eval('$threads .= "'.$templates->get('...').'";');
}
}
$threads = $stickies.$threads;
unset($stickies);


That is pretty much what I did for my portal (since I already control what threads are shown in it, there is no way all stickies will appear as portal news even if there are in the same forum).

Hope that helps.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
08-12-2012 05:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Featured post in portal page? - nier3 - 08-10-2012, 08:23 PM
RE: Featured post in portal page? - RateU - 08-11-2012, 06:41 AM
RE: Featured post in portal page? - nier3 - 08-11-2012, 10:05 PM
RE: Featured post in portal page? - RateU - 08-12-2012, 05:10 AM
RE: Featured post in portal page? - nier3 - 08-12-2012, 06:34 AM
RE: Featured post in portal page? - RateU - 08-12-2012, 06:52 AM
RE: Featured post in portal page? - Sama34 - 08-12-2012 05:42 PM
RE: Featured post in portal page? - nier3 - 08-12-2012, 07:56 PM
RE: Featured post in portal page? - nier3 - 08-12-2012, 09:33 PM
RE: Featured post in portal page? - RateU - 08-13-2012, 02:13 AM
RE: Featured post in portal page? - Sama34 - 08-13-2012, 03:34 AM
RE: Featured post in portal page? - nier3 - 08-18-2012, 07:55 PM

 Standard Tools
Forum Jump: