![]() |
Hmm.. Try thread.replycount instead of just replycount
EDIT: That will work, though you'll need to make it alias to something else so that you can read the resultant variable. Try thread.replycount AS comments Then in the template the variable will be $news[comments] EDIT2: To clarify the query will read as follows when you're done. SELECT thread.threadid, thread.replycount AS comments, postusername, postuserid, ...and so on... |
Yuppers. That work.
And i'm just about done with the other part now too. Just need to finish linking it somewhere. :) Edit 1: Ok, found the syndication needed to be turned on was the external javascript. I wasn't getting anythign with the xml on. http://ahazi.org/index.php?page=pastnews <--- But link at bottom is not working and i'm not seeing the link you talked about showing up either in the forums. |
Oops, sorry.
We've got so many hacks running around on EN World it's hard to remember what the default features are.. The external javascript is kicked out by the hack in this thread https://vborg.vbsupport.ru/showthread.php?t=59776 If you want to encourage people to syndicate your news I'd recommend it. |
Just when you think everything's fine the file goes haywire when the month wraps over. New version uploaded. This one doesn't rely on the MySQL Unix Timestamp function but instead uses strtotime(); to find the UNIX timestamp for the start of each of the last 8 days (including today).
|
Quote:
I tried this: PHP Code:
PHP Code:
**It also seems to be showing them in the wrong order (yesterday's first followed by today's underneath*** I would like it to only display one digest at a time, updated daily, which includes all news posts from the last X number of days (instead of one digest a day displaying just items from that day) is that easily possible? |
Quote:
1. Get the range of days (possibly using $_REQUEST or $_POST so that users can look stuff up). 2. Use strtotime() to convert the range to Unix timestamps. 3. Run the query, putting the posts into an array sorted by time. 4. Divide the array up by days within the range. 5. Further divide by categories 6. Assemble it. Doing it this way would save a LOT of queries. |
BTW, to be honest, this should be a default feature of vba_cmps IMO
|
Great Michael! It worked.
I just had to change my forum.icon to forum.fhbanner. That was different from the pervious version also. :) |
Quote:
That isn't intended to sound demanding at all, merely inquisitive. |
Hmm. Is there an easy way to have it just display the title of the thread in the news forum and have that title link to the article?
|
All times are GMT. The time now is 07:01 AM. |
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:
|