Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DevBox Work - Online Users Today, Latest Threads, Top Posters, Newest Members Details »»
DevBox Work - Online Users Today, Latest Threads, Top Posters, Newest Members
Version: 1.00, by Chroder Chroder is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-28-2004 Last Update: Never Installs: 33
 
No support by the author.

This is another one of my 'all in one' hacks, this time without the 'latest posts' part.

Features



  • Turn on/off each option. An individual setting
  • Alter the amount of rows to retrieve (ie. only get 10 recent threads)
  • Easy access to used SQL queries, so advanced users can alter the SQL to get extra information.
  • Uses phrase system
  • Fully customizable templates
  • Latest Threads can be from only forums you specify, or from forums that the current user has permission to see. Deleted threads are not shown.
  • Online Users Today shows invisible marks to those who can see them, and shows open/close tag (ie. admins are bold and italic).
  • Dates uses vbdate function, which uses your date string in vboptions
  • Installer for phrases and templates!
  • + more
Support
I can offer limited support for this hack. I wrote it for my forum, and its workin' pretty good. If you find any problems, post'em here and I might find some time to help you out. Just back up all your data before you apply anything, as goes with all hacks!

Demo
Online demo (with some template edits, I might add!): http://www.DevBoxForums.com

Notes
I didn't have the time to edit the default templates, so I don't think it's too pleasing out-of-the-box. If someone would like to spice it up a notch and submit it here, I'd be glad to include it in the actual package.

Installation
Upload devbox_work.php to your forum root path, as well as the devbox_install directory. Navigate your browser to devbox_install/install.php and follow onscreen instructions. You will need your database username and password simply for authentication to start the installer.

Should I install this hack? Is it buggy? Etc
I've been making the installer for a little while and I must've run it at least a dozen times throughout and I haven't had any errors. But thats only me. Before people can install it for themselves and see how it goes, I can't say much.

Troubleshooting / Common Problems
If you end up running the phrase step or template step more then once, you'll probably get mysql errors complaining about duplicate entries. You can go in phpMyAdmin into the phrase/template tables, sort by the primary key so oldest is first, and delete all the devbox related rows.


Template Variables
Since this hack is obviously lacking some default-template looks, I thought I'd go over all of the variables you can use. If you want more, you'll have to edit the SQL queries under 'Section 2'. All variables are accessed through the $data array. Example: $data[threadid]

  • Latest Threads
    • threadid - The ThreadID. Used in URL's mostly
    • title - Thread title
    • replycount - The number of replies the thread has
    • views - The number of views the thread has
    • lastposter - The username of the last poster
    • posterusername - The username of the thread starter
    • posteruserid - The UserID of the thread starter
    • forumid - The ForumID of the the forum the thread resides in
    • forumtitle - The forum name the thread resides in
  • Newest Members

    • userid - The UserID of the member. Usually used in URL's
    • username - The username of the member
    • date - The readable joindate of the user. If for some reason you wanted the timestamp, use joindate
    • posts - The number of posts this member has
    • opentag/closetag - The open/close HTML tags for this member. (ie. Admins are generally bold and italic)
  • Top Posters

    • userid - See above
    • username - See above
    • posts - See above
    • opentag/closetag - See above
  • Online Today

    • userid - See above
    • username - See above
    • invisible - The invisible mark shown next to invisible users. Set to '*' to members that are hidden users, and set to '' (nothing) to those who are not. Note: Hidden users are only shown on the list if the user viewing the page has permission to see them.
    • opentag/closetag - See above
Attachments



  • devbox_work.zip contains all the files neede
  • installer.gif is a screenshot of the install script

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 10-30-2004, 10:51 AM
Rick Sample Rick Sample is offline
 
Join Date: Apr 2004
Location: Ohio
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chroder
Out-of-the-box, yes. You'll have to modify the templates on your own if you want it to look like mine (On the side, that is). If I have time I'll write an addon that will make the side bar.
I have done this for you all.

First in FORUMHOME find:
$navbar

After add:
PHP Code:
<!--*** \/ COLUMN SETUP \/ ***-->
<
table cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top">
<!--*** /\ 
COLUMN SETUP /\ ***--> 
2nd in forumhome find:
<!-- / icons and login code -->

After add:
PHP Code:
<!--*** \/ COLUMN SETUP \/ ***-->
</
td><td valign="top" width="220" style="padding-left: 10px;">
<!--*** /\ 
COLUMN SETUP /\ ***-->
<!-- 
DEVBOX LATEST THREADS -->
<
table class="tborder" cellpadding="6" cellspacing="1" width="100%">
<
tbody>
    <
tr>
        <
td class="thead">
            <
a style="float:right" href="#top" onclick="return toggle_collapse('devbox_latest_threads')"><img id="collapseimg_devbox_latest_threads" src="db_style/buttons/collapse_thead.gif" alt="" border="0" /></a>

            
Latest Threads
        
</td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_devbox_latest_threads" style="">
    <
tr>
        <
td class="alt1">
            <
table cellspacing="0" cellpadding="0" width="100%">
            <
tr><td class="smallfont" style="padding-bottom:6px;padding-top:6px;border-bottom: 1px solid #C1D5ED">
<
tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
    <
tr>
        <
td class="alt2">&nbsp;</td>
        <
td class="alt1"><div class="smallfont">$threadbits</div></td>
    </
tr>
</
tbody>
            </
table>
        </
td>
    </
tr>
</
tbody>
</
table>

<!-- /
DEVBOX LATEST THREADS -->
<
br />


<
table class="tborder" cellpadding="6" cellspacing="1" width="100%">
<
tbody>
    <
tr>
        <
td class="thead">
            <
a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="db_style/buttons/collapse_thead.gif" alt="" border="0" /></a>
            
Forum Statistics
        
</td>
    </
tr>

</
tbody>
<
tbody id="collapseobj_forumhome_stats" style="">
    <
tr>
        <
td class="alt1" style="border: 1px solid #DFEAF6; border-top: none;">
        <
div class="smallfont">
           <
div>$vbphrase[threads]: $totalthreads</div>
            
$vbphrase[posts]: $totalposts</div>
            
$vbphrase[members]: $numbermembers</div>

        </
div>

        </
td>
    </
tr>
</
tbody>
</
table>

<
br />


<!-- 
DEVBOX TOP POSTERS -->
<
table class="tborder" cellpadding="6" cellspacing="1" width="100%">
<
tbody>
    <
tr>
        <
td class="thead">

            <
a style="float:right" href="#top" onclick="return toggle_collapse('devbox_top_posters')"><img id="collapseimg_devbox_top_posters" src="db_style/buttons/collapse_thead.gif" alt="" border="0" /></a>
            
Top Posters
        
</td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_devbox_top_posters" style="">
    <
tr>
        <
td class="alt1"><div class="smallfont"$devbox[top_posters]</td>
    </
tr>
</
tbody>
</
table>
<!-- /
DEVBOX TOP POSTERS -->
<
br />



<!-- 
DEVBOX NEWEST MEMBERS -->

<
table class="tborder" cellpadding="6" cellspacing="1" width="100%">
<
tbody>
    <
tr>
        <
td class="thead">
            <
a style="float:right" href="#top" onclick="return toggle_collapse('devbox_newest_members')"><img id="collapseimg_devbox_newest_members" src="db_style/buttons/collapse_thead.gif" alt="" border="0" /></a>
            
Newest Members
        
</td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_devbox_newest_members" style="">
    <
tr>

        <
td class="alt1"><div class="smallfont">$devbox[newest_members]</td>

    </
tr>
</
tbody>
</
table>
<!-- /
DEVBOX NEWEST MEMBERS -->
<
br /> 


http://www.detailcity.com/index.php?s=&styleid=17


**he didn't want all the stuff on the right side, the code I am realeasing will show Top posters, Site statistics, latest threads, newest members, etc.
Reply With Quote
  #53  
Old 10-31-2004, 02:33 PM
nansy nansy is offline
 
Join Date: Oct 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nansy
what is the problem

PHP Code:
$devbox_config = array( 'latest_threads'     => 'on',
                        
'latest_threads_num' => 10,

                        
'newest_members'     => 'on',
                        
'newest_members_num' => 5,

                        
'top_posters'        => 'on',
                        
'top_posters_num'    => 5,

                        
'online_today'       => 'on',

                        
'forum_ids'          => '2,3,5,6',
                       ); 
and i have error in line 180 !!!

how i can fix this problem

thanks
Reply With Quote
  #54  
Old 10-31-2004, 02:35 PM
Rick Sample Rick Sample is offline
 
Join Date: Apr 2004
Location: Ohio
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nansy

can you give me your sites address?
Reply With Quote
  #55  
Old 11-02-2004, 04:45 PM
nansy nansy is offline
 
Join Date: Oct 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have error in line 180 !!!

no body help my
Reply With Quote
  #56  
Old 11-04-2004, 07:24 AM
DariusMonsef DariusMonsef is offline
 
Join Date: Nov 2004
Location: US
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the line 180 error as well. Any ideas what is going on here?

Also where would I find this FORUMHOME thing??
Reply With Quote
  #57  
Old 11-27-2004, 10:20 PM
domelor domelor is offline
 
Join Date: Nov 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys the line 180 error is driving me crazy..... anyone can help?
Reply With Quote
  #58  
Old 11-30-2004, 10:57 PM
boo.3 boo.3 is offline
 
Join Date: Nov 2004
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what username and pass am i sopossed to use?
Reply With Quote
  #59  
Old 12-02-2004, 07:06 PM
Imperial Fritz Imperial Fritz is offline
 
Join Date: Dec 2003
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trying now.

Btw minor spelling error at the last step, last sentence: "Everything fron turning it off..."


EDIT:

Hm, do I have to manually do those replacements?

I get the same three errors (line 81 and 180) after following the install :ermm:
Reply With Quote
  #60  
Old 12-02-2004, 07:40 PM
Imperial Fritz Imperial Fritz is offline
 
Join Date: Dec 2003
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK. I looked again over the install and obviously I thought it will do the replacements on its own. So I did them and all worked. You should make it clear that these replacements have to be done by hand and place on a visible spot what file needs to be edited.

And I still get the errors with devbox_work.php

EDIT:

I think I found the problem - it's in us trying to open devbox_work.php as a page, whereas it's actually just a collection of functions that get included in the index.php page. There is no way it can be viewed separately. To change the settings you manually edit it and reupload it.
Reply With Quote
  #61  
Old 03-08-2005, 08:58 PM
Mla7a6 Mla7a6 is offline
 
Join Date: Apr 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi..

The script was running smoothly with me on my old version of VB (3.0.1).. but then I have decided to upgrade to 3.0.7.. and suddenly it stopped working..

any ideas?
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 05:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09456 seconds
  • Memory Usage 2,369KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete