Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Latest XX Threads on Forumhome Page Details »»
Latest XX Threads on Forumhome Page
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-07-2002 Last Update: Never Installs: 118
 
No support by the author.

This hack will add your latest xx threads to your forum home page.
The good part is that you can do all this with only 1 query.

The following options are available:
- number of threads displayed
- alternating background color (same like the showthread view)
- thread's title (with link)
- thread's title lenght (just in case you use it in a small table)
- thread's icon
- thread's date and time
- thread's starter (with link)
- thread's no. of views
- thread's no. of replies

[high]The hack uses each forum's permissions.[/high]
In other words, if you have a private forum, your private threads will not show unless you have permissions to view them.

ESTIMATED INSTALL TIME: 5 minutes
REQUESTED BY: Nobody
TESTED IN VERSION: 2.2.7

To download the latest version of this hack, click below:

Show Your Support

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

Comments
  #22  
Old 09-28-2002, 08:16 PM
K.Michael K.Michael is offline
 
Join Date: Dec 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how I can get it to show :
- last ÕÕ threads in forum's 1,2,3,4
- last ÕÕ threads in all forum's excluding 6,7,8
- last XX threads in forum 9 and all subforum's

:bored: ?
Reply With Quote
  #23  
Old 09-28-2002, 09:32 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello Michael, you can use something like that:
Code:
$firstgrouparray = array(2, 3, 4);
$secondgrouparray = array(5 ,9);
if (in_array($thread['forumid'], $firstgrouparray)) {
  eval("\$firstgroupbits .= \"".gettemplate('forumhome_threadbits')."\";");
} elseif (in_array($thread['forumid'], $secondgrouparray)) {
  eval("\$secondgroupbits .= \"".gettemplate('forumhome_threadbits')."\";");
} elseif (!in_array($thread['forumid'], $firstgrouparray) and !in_array($thread['forumid'], $secondgrouparray)) {
  eval("\$threadbits .= \"".gettemplate('forumhome_threadbits')."\";");
} else {
  $firstgroupbits ='';
  $secondgroupbits = '';
  $threadbits = '';
}
play with it the way you like.
Reply With Quote
  #24  
Old 09-29-2002, 11:02 AM
K.Michael K.Michael is offline
 
Join Date: Dec 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

10õ!
idea is clear!
Reply With Quote
  #25  
Old 09-29-2002, 11:04 AM
MultiSync MultiSync is offline
 
Join Date: Sep 2002
Location: Canada
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by stark427
Nice hack
I'd like to ask something...

I don't like the cells to be one under the other like this :

-
-
-
-
-
-

I would like them to be like 2 or 3 of them in each line... like this:

- - -
- - -
- - -

this way we have 9 latest threads which take more space horizontally and less verticaly.
I would also like this to be cetralised and not aligned at the left side of the board/page.

I guess I would have to put the $threadbits in a table and then centralise the table? (align=center)? Right?

could anyone help me with these modifications??

thanx in advance
Is there a way to do that TECK?
Reply With Quote
  #26  
Old 09-29-2002, 11:17 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is a way.

and for both of you k michael and you multisync.. are you that lazy to click the install button??
how do you pretend to ask information if you dont even bother to click install???
you have no respect for someone else's work. period.
Reply With Quote
  #27  
Old 09-30-2002, 03:14 AM
jaxper jaxper is offline
 
Join Date: Sep 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack!

Is there any way to display all this on the first page -- that is not the first page of the forum but a home page right before the forum that has nothing to do with vbulletin yet? Will I need to set all variables from scratch?

Jax.
Reply With Quote
  #28  
Old 09-30-2002, 03:16 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello jaxper, you cant do this, since it uses the forums perms.
just make a php file, is alot easier...
Reply With Quote
  #29  
Old 09-30-2002, 03:18 AM
jaxper jaxper is offline
 
Join Date: Sep 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So what would by query be in the php file? I guess I need to consult that lovely database schematic that vbulletin provides
Reply With Quote
  #30  
Old 10-02-2002, 06:52 AM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks TECK ... I have been wanting this, but gosh ... my
forumhome is getting a bit cluttered ... *installs anyway*.



Destee
Reply With Quote
  #31  
Old 10-02-2002, 08:25 PM
Antorz Antorz is offline
 
Join Date: Jan 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!

Thanks, great hack!


Sorry about contacting you on msn, won't happen again..


As for my question, I was trying to setup your hack with a few modifications...


Basicaly I want to make it exactly like you have on your second screenshot..

This is the code I have in there right now trying to accomplish that..

PHP Code:
<table cellpadding="0" cellspacing="0" border="0" bgcolor="{categorybackcolor}" width="100%" align="center">
    <
tr>
        <
td>
            <
table cellpadding="4" cellspacing="1" border="0" width="100%">
                <
tr>
                    <
td bgcolor="{categorybackcolor}" colspan="1">
                        <
table cellpadding="0" cellspacing="0" border="0" width="100%">
                            <
tr>
                                <
td bgcolor="{categorybackcolor}">
                <
B><normalfont>Statistics</normalfont></B></td>
                            </
tr>
                        </
table>
                         </
td>
                </
tr>
                <
tr>
                    

                    <
TD bgcolor="{secondaltcolor}" width="100%">
            <
smallfont>
<
b>Top 5 New Thread Replys:</b>
<
hr>

<
table>
<
tr>
<
td width=65%><smallfont>Thread Names:</smallfont></td>
<
td width=25%><smallfont>Last Posters:</smallfont></td>
<
td width="10%"><smallfont>Replies:</smallfont></td>
<
td align="right"><smallfont>Views:</smallfont></td>
</
tr>
<
tr>
<
td width=65%><smallfont> <a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"><b>$thread[title]</b></a></smallfont></td>
<
td width=25%><smallfont><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a></smallfont></td>
<
td width="10%"><smallfont>$thread[views]</smallfont></td>
<
td align="right"><smallfont>$thread[replycount]</smallfont></td>
</
tr>
</
table>
            </
smallfont></td>
                </
tr>
                </
table

I'm not sure what I'm doing wrong, if it's coding in the index.php or in the threadbits template..

Basicaly it just takes that table, and for each "latest XXX thread" it makes a whole new 'complete' table for it...




Any support would be greatly apreciated.
Thanks
-Antorz
Reply With Quote
Reply

Thread Tools

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 06:54 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.06088 seconds
  • Memory Usage 2,330KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)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