Results 1 to 8 of 8

Thread: Select the thread you want displayed on the main CPMS page?

  1. #1
    Join Date
    Feb 2005
    Posts
    10

    Default Select the thread you want displayed on the main CPMS page?

    Is there a way to select which posts you would like displayed on the main CPMS page? I mean, is there a way I could somehow select certain threads in my Forum, no matter where that thread is located, to be displayed on my main CPMS page?

    As of right now, I have 2 forums that show on the main page. But I'd actually like to select threads from other forums to be displayed on my main page, hope this makes sense.

    Thanks.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Select the thread you want displayed on the main CPMS page?

    The news and latest threads modules both give you options to select specific threads to display.

  3. #3
    Join Date
    Feb 2005
    Posts
    10

    Default Re: Select the thread you want displayed on the main CPMS page?

    I've looked everywhere for it, I must be blind. Could you point me in the right direction? I'm so happy it's there, but I'm just not seeing it.

    Thanks for the help!
    Steve

  4. #4
    Join Date
    Feb 2005
    Posts
    10

    Default Re: Select the thread you want displayed on the main CPMS page?

    Hmmm...

    Actually, I think I found it. Is it this?
    Here you may select specific threads to be displayed with this module. Please note that this setting will override the setting below for a forum to pull these threads from.

    If so, the threads are in a random sort, is there a way to arrange them from newest to oldest?

    Thanks.

  5. #5
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Select the thread you want displayed on the main CPMS page?

    Yes, that is the correct option. The threads are sorted by oldest first though, not randomly.

  6. #6
    Join Date
    Feb 2005
    Posts
    10

    Default Re: Select the thread you want displayed on the main CPMS page?

    Quote Originally Posted by Brian View Post
    Yes, that is the correct option. The threads are sorted by oldest first though, not randomly.
    OK, well...if I click last thread, it is definitely not the newest in that particular Forum. Any ideas? It's very random.

    Thanks again for the help.
    Steve

  7. #7
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Select the thread you want displayed on the main CPMS page?

    Well then, I stand corrected. Apparently they are not ordered by anything, but the forums I checked here happened to be close enough that it looked like they were. If you'll look in your admincp/vba_cmps_admin.php file for this code:
    PHP Code:
            $getthreadids $db->query_read("SELECT threadid FROM " TABLE_PREFIX "thread WHERE forumid = $forumid LIMIT " . ($pagedata['minlimit'] - 1) . ", $pagedata[perpage]");
            while (
    $threadid $db->fetch_array($getthreadids))
            {
                
    $tids[] = $threadid['threadid'];
            }

            if (!empty(
    $tids))
            {
                
    // Get selected ids
                
    if (!empty($threadids))
                {
                    foreach (
    $threadids AS $threadid => $firstpostid)
                    {
                        
    $selectedthreads[] = $threadid;
                    }
                }

                
    $getthreads $db->query_read("SELECT threadid, title, postusername, firstpostid, pollid FROM " TABLE_PREFIX "thread WHERE threadid IN(" implode(','$tids) . ")"); 
    Replace with this:
    PHP Code:
            $getthreadids $db->query_read("SELECT threadid FROM " TABLE_PREFIX "thread WHERE forumid = $forumid ORDER BY lastpost DESC LIMIT " . ($pagedata['minlimit'] - 1) . ", $pagedata[perpage]");
            while (
    $threadid $db->fetch_array($getthreadids))
            {
                
    $tids[] = $threadid['threadid'];
            }

            if (!empty(
    $tids))
            {
                
    // Get selected ids
                
    if (!empty($threadids))
                {
                    foreach (
    $threadids AS $threadid => $firstpostid)
                    {
                        
    $selectedthreads[] = $threadid;
                    }
                }

                
    $getthreads $db->query_read("SELECT threadid, title, postusername, firstpostid, pollid FROM " TABLE_PREFIX "thread WHERE threadid IN(" implode(','$tids) . ") ORDER BY lastpost DESC"); 
    And that should order them by the last post and match up with the threads in the normal forum.

  8. #8
    Join Date
    Feb 2005
    Posts
    10

    Default Re: Select the thread you want displayed on the main CPMS page?

    Thanks Brian!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Promoting a thread to front News Page from Thread Tools
    By moses in forum "How Do I..." Questions
    Replies: 4
    Last Post: 08-02-2006, 04:46 AM
  2. Custom Page Content - Can't select
    By convergent in forum Troubleshooting & Problems
    Replies: 3
    Last Post: 06-06-2006, 09:50 PM
  3. Wrong News thread displayed
    By bitg in forum Troubleshooting & Problems
    Replies: 2
    Last Post: 03-23-2006, 09:56 PM
  4. How do I remove the main cpms menu bar?
    By NOok in forum "How Do I..." Questions
    Replies: 1
    Last Post: 12-17-2005, 02:04 AM
  5. Replies: 4
    Last Post: 08-18-2005, 03:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •