Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-16-2014, 11:59 AM
Zantox Zantox is offline
 
Join Date: Nov 2012
Location: USA
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Search Posts By Usergroups

Hey Everyone,

I'm looking for a "Staff Post Tracker" or "Dev Tracker", but not one likethis mod.

I've been searching around for awhile, and I'm trying to find one thats not going to cost a big chunk of change. I'm sure theres some other people looking for one as well.

I've found these 2 simple modifications to search.php, but didn't really have much success with them as they were designed for vB 3.6
PHP Code:
if ($vbulletin->GPC['searchuser'] == 'devtracker') { $userids '1,5,10,43'; } 
Or:
PHP Code:
 if ( $vbulletin->GPC['searchuser'] == 'devtracker' )
      {
         
$aDevGroups = Array ( 12);
         
$q 'SELECT posts, userid, username FROM `' TABLE_PREFIX 'user` where usergroupid IN ( ' implode ','$aDevGroups ) . ') ';
         foreach ( 
$aDevGroups as $nDevGroup )
            
$q .= ' OR concat( membergroupids,"," ) LIKE "%' $nDevGroup ',%"';
      }
      else 
I've been hoping for a plugin, template modification, or full out mod that can basically perform the same thing as a search.php search, but simply displaying the posts of a usergroup.

And I'm sure it can't be too hard, I just can't seem to wrap my head around it for some reason
Reply With Quote
  #2  
Old 01-16-2014, 09:13 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is wrong with the Staff Tracker mod you linked to?
Reply With Quote
  #3  
Old 01-17-2014, 02:13 AM
Zantox Zantox is offline
 
Join Date: Nov 2012
Location: USA
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Modification simply displays a small status icon type image in the postbit that shows if a member of a paticular usergroup posted in that thread, then allows you to jump staff posts.

What I need is a single page that shows all posts (like when you click Find Latest Posts on a profile), but it displays for multiple users (being the staff usergroups), showing posts in all forums that aren't private.

--------------- Added [DATE]1389939838[/DATE] at [TIME]1389939838[/TIME] ---------------

Does anyone else have any ideas about this?

--------------- Added [DATE]1389939944[/DATE] at [TIME]1389939944[/TIME] ---------------

I guess this is an example of what I'm looking for:
http://www.swtor.com/community/devtracker.php

--------------- Added [DATE]1389944837[/DATE] at [TIME]1389944837[/TIME] ---------------

I've also found this, which is a devtracker.php script for vBulletin 3.8. It is "supposedly" what's on the SWTOR website. But it is missing 2 template files. I tried installation on a 4.2 vBulletin and got a database error about invalid sql...

Any help appreciated.


PHP Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''DevTracker');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
        
'devtracker','dev_post'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################





// #############################################################################
// draw navbar
if ($page=="" || $page==0)
$page=1;

$pmin = ($page-1) * 30;
$pmax $page 30;

$navbits = array();
$navbits[''] = "Dev Tracker";
$navbits construct_navbits($navbits);
$dev_posts $db->query_read('SELECT post_parsed.pagetext_html AS posttext, post.userid AS userid, post.postid, post.threadid, post.username AS username, thread.title AS title, forum.forumid, forum.title as forum_name, post.dateline AS dateline
FROM post, post_parsed, user, thread, forum
WHERE post.userid = user.userid
AND post.threadid = thread.threadid
AND post.postid = post_parsed.postid
AND thread.forumid = forum.forumid
AND user.usergroupid = 10
AND forum.forumid NOT IN(3,12,13,14,17,19,20,21,22)
ORDER BY post.dateline DESC
LIMIT '
.$pmin.', '.$pmax);
$count 0;
while (
$dev_post $db->fetch_array($dev_posts))
{
  if (
$count == 0){
    
$alt_type "alt1";
  } else {
    
$alt_type "alt2";
  }
$dev_post[posttext] = str_replace('<td class="alt2" style="border:1px inset">','<td class="alt2" style="font-size:10px ;border:1px inset">',$dev_post[posttext]);
$date_posted date("m-d-Y"$dev_post[dateline]);
$time_posted date("h:i A"$dev_post[dateline]);
eval(
'$stuff .= "' fetch_template('dev_post') . '";');
$count++;
}

$pages $count 30;
$page_text "";
for (
$i 1$i $pages$i++){
  
$page_text .= "$i ";
}

//$stuff .= "<br/>Page: $page_text";

eval('$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('devtracker') . '");');

?>
Reply With Quote
  #4  
Old 06-11-2014, 05:53 AM
Zantox Zantox is offline
 
Join Date: Nov 2012
Location: USA
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(Edit: Nevermind)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06511 seconds
  • Memory Usage 2,220KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete