Results 1 to 2 of 2

Thread: forum-wide user and admin news

  1. #1
    Join Date
    Jul 2010
    Posts
    5

    Lightbulb forum-wide user and admin news

    Hi, i made a small mod to news.php

    this mod allows me to submit to front page any item on any forum changin its icon, OR show news posted my members on a specific forum

    You should change both iconid
    * the first one should be the iconid that only specific groups can select (like mods) (it will search for all threads with this iconid)

    * the second one is a public icon, so the module will search for threads on specific forum with specific icon

    Code:
                                    FROM " . TABLE_PREFIX . "thread AS thread
                                    WHERE visible = 1
                                            AND open != 10
    then added the first line and changed the next two ones:
    Code:
     					AND iconid = 15
     					 OR (thread.forumid IN(" . implode(',', $mods['inforums']) . ")
     					 " . iif(!empty($newstids), ' OR threadid IN(' . implode(',', $newstids) . ')') . " AND iconid = 16
    Yet, im not sure how nice this will play on the DD BB

    This is bassed of: http://www.vbadvanced.com/forum/showthread.php?t=5193

    im open to sugestions, specially adding this to the settings menu

  2. #2

    Default

    Thanks this is just what I need. It works great on vBulletin 4.1.3

    I created the extra icon by following the instructions in the other post but I just need to use threads chosen by admins so in news.php below:

    PHP Code:
    FROM " . TABLE_PREFIX . "thread AS thread
                                    WHERE visible 
    1
                                            
    AND open != 10 
    I only added

    PHP Code:
    AND iconid 15 
    I didn't need to make any other changes.

    ==============

    Update..

    I only got it to show one post. So couldnt get it to work properly..

    THEN - I dicovered the News module feature that lets you go through and choose which threads you want to display.

    Perfect for what I need.
    Last edited by MelH; 08-08-2011 at 11:55 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Admin post as other user in vBa Dynamics entry?
    By ncangler in forum Module & Modification Discussion & Requests
    Replies: 6
    Last Post: 11-08-2007, 04:07 PM
  2. Replies: 1
    Last Post: 03-22-2007, 02:20 PM
  3. admin and mod news only
    By arcanium in forum "How Do I..." Questions
    Replies: 3
    Last Post: 02-21-2006, 10:50 PM
  4. Thread toolbar too wide after CMPS added to forum pages
    By DougM in forum Troubleshooting / "How do I..." Questions
    Replies: 3
    Last Post: 04-16-2005, 06:51 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
  •