![]() |
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. |
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:
|
This version can use for vbb 3.0 ????
|
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! |
I'd sugest asking in the support thread for that hack. IIRC they may be in forums/globa.php and not in a template.
|
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
|
Quote:
EDIT: And I do not see it anywhere in global.php |
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. |
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 |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|