![]() |
Help show more than one result.
So I'm working on creating a mod for music base sites. I am trying to show the output for all of the latest mixtapes that was posted. I can get the one to show. But the rest doesn't show. Maybe I messed up some where in the code. Here is what I got.
PHP Code:
PHP Code:
PHP Code:
|
You need to register your template for use in another template: https://vborg.vbsupport.ru/showthread.php?t=228078
Save your template into a variable then preregister that variable into the main template. The variable will contain the HTML and parsed template syntax ready for use in the main template. Btw: You should wrap: PHP Code:
|
Am I putting this before my while statment, or would it be smarter to try using the foreach. I'm guessing my issue is all in my php page.
|
I think I've mistaken what you're trying to do.
You want: {vb:raw vbmusic_latest} To contain the contents of the HTML you posted in your first post? Assuming it's a template, PHP Code:
|
Yes, {vb:raw vbmusic_latest} contains all of the html.
Negative on showing up though. I'm guessing I have to do a foreach statement. |
Lol no.
Are you sure $vbmusic_latest contains the proper HTML? PHP Code:
|
after pasting this. I see NULL. No I know some where I'm messing up with registering the template to show.
|
Your code doesn't show $vbmusic_latest being registered at all. ;)
|
PHP Code:
1. The vbmusic_latest template still doesn't show. 2. For each album id, I want to display that album. I've looked through the original vb files. The closest would be foreach, but I'm lost now. |
1) Let's work on getting you to actually show your template first. :)
You really should look at that article I posted, because you're still doing it all wrong. PHP Code:
|
All times are GMT. The time now is 10:41 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:
|