The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
5 latest articles
I have the article hack (vb2) on my site, and wanted to include '5 latest articles' on the vbhome lite page. I can't seem to get it to work though, and was hoping someone could tell me what I'm missing.
This is the PHP I added to the index.php. Its based on the '10 latest threads': PHP Code:
The index however only gives me the single latest addition, not 5. The kbbit template is: PHP Code:
help? |
#2
|
||||
|
||||
what are the 2 opening brackets ( one just below kkbits=''; and the matching one at the end ) for ?
|
#3
|
|||
|
|||
I'm not sure, but that's how the vbhomelite latest threads seem to work. I just copied that piece of code and changed the code to work with the articles
|
#4
|
|||
|
|||
Turns out the latest threads had an IF statement there. So i removed those brackets and it still works, but still only 1 article, instead of 5
|
#5
|
||||
|
||||
Perhaps its because you only have one article which matches this criteria. Run the query in phpmyadmin to see how many results it returns.
Also do you have the $kbits variable in the home_kheader? |
#6
|
||||
|
||||
Ok just a shot in the dark, but try this for the php code:
Not too certain if it would help any though. PHP Code:
|
#7
|
||||
|
||||
Well I think the problem is if you have $kbits in the home_kbheader template. if so just move the:
PHP Code:
|
#8
|
|||
|
|||
5 - I owe you one, that worked perfectly! Shows once again that I should stay way from php code myself
Only way you could make me happier is if I could get my hands on the link directory with subsection code. I think i remember you mentioning you had that... Dean, haven't tried your suggestion but I'm sure it'd work too, thanks |
#9
|
||||
|
||||
Good luck with whatever you're coding
|
#10
|
||||
|
||||
No problem, glad I could help
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|