vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

mccollin 08-25-2003 02:30 PM

NTLDR,

I don't know if I asked you this before, but do you know how to make the news page give you a page listing at the bottom like vBulletin does. This would be kind of a news archive. So, you'd set how many news items you wanted on the page.. fine, but then be able to let the user go back in time.

Another idea that I'd like to exploit is to subhead the news by Date.... so you get.

Monday, August 25, 2003

News Headline 1

Story.................
.......................

News Headline 2

Story..................
.........................

Sunday, August 24, 2003

News Headline 3

Story.....................

<< Page 1 <> 2, 3, 4, Next >>

Something like this. If I could figure out the page thing first, that would be way cool.... Can we exploit the code and template that vBulletin uses to do this bit? Thanks.

NTLDR 08-25-2003 03:02 PM

For the page navagation you can use the getpagenav() (Pretty sure thats what its called in vB2) function which generates the page navagtion links (Page 1, 2, 3 Last >>).

Also it will require and edit to the news query and a few extra variables. Alot of the vB files have this (memberlist.php, showthread.php, forumdisplay.php for example). I don't think it would be too hard to do and may include this as standard for v3.0.0.

For grouping by date, you would need to store the last date (without the time) and compare it the next time round the loop, if its different then update the last date and add the header to the template.

Here is an example of what I mean:

PHP Code:

$lastdate 0;
while(
$news $DB_site->fetch_array($newsposts)) {
    
$date vbdate($dateformat$news['dateline']);

    if (
$lastdate != $date) {
        
$lastdate vbdate($dateformat$news['dateline'];
        
$newsbits .= 'header code/template call here';
    }
    
// rest of script 


kid_ttvn 09-08-2003 07:45 AM

This version can use for vbb 3.0 ????

StrykerContact 09-09-2003 02:53 AM

I cannot find where the hell in the templates or anywhere the "Quick User CP Links in the menu when logged in" is! I HAVE LOOKED VERY HARD THEY ARE NOWHERE!!! Lol this is very fustrating because I want to edit those links. Please tell me where I can edit those.

Thanks in advance, and btw great job on the hack!

NTLDR 09-09-2003 01:35 PM

I'd sugest asking in the support thread for that hack. IIRC they may be in forums/globa.php and not in a template.

StrykerContact 09-09-2003 09:06 PM

I'm sorry but what do you mean support thread for that hack? I don't think it was an add on it came with your hack and the support thread is THIS thread, excuse me if I'm wrong please correct me if I am. I'll check it out. Thanks

StrykerContact 09-09-2003 09:10 PM

Quote:

08-05-02 at 01:35 AM NTLDR said this in Post #1
[B][HIGH]vBindex v2.1[/HIGH]

[HIGH]Features[/HIGH]
[LIST][*]Latest Threads;[*]News & Polls (taken from a specified news and a poll forum), with vBcode, Smilies and news posters avatar;[*]Quick User CP Links in the menu when logged in;

I will support all addons for vBindex v2 that are either posted by myself or are included in the distribution zip file unless otherwise stated. I cannot guarentee that I can provide support on any other addons.

[HIGH]Support/Feekback[/HIGH]

Please provide me with any feekback you have on this hack, I will be continuing to support this hack here only, unless otherwise arranged. Should you have a question about this hack, please post it in this thread
Yes, I checked it out, Quick User CP Links in the menu when logged in is a FEATURE. You said you provide support in this thread, why am I now being told to go to another thread. You did make the hack right? Please forgive me if this sounds a bit hostile but by all means it is not. Thanks in advance.

EDIT: And I do not see it anywhere in global.php

NTLDR 09-10-2003 09:32 PM

Sorry, I thought you were reffering to another hack that switches between a registeration and user cp link in the header.

Look in the home_welcome_logout template IIRC.

StrykerContact 09-10-2003 11:17 PM

Thanks, I found it, but I asked a friend to give me the info since VBorg was down for the day, but if I didn't find it this answer would have helped. Thanks a lot. Btw is there anyway in the news script I can make a <br> space between news posts, and also show the username of the person who posted that news.

Thanks

NTLDR 09-11-2003 09:18 AM

The new posters username appears by default. To split the new blocks up you need to edit the home_news and home_newsbit templates.


All times are GMT. The time now is 09:00 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.02192 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete