The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
|||
|
|||
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:
|
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
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:
|
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
Lol no.
Are you sure $vbmusic_latest contains the proper HTML? PHP Code:
|
#7
|
|||
|
|||
after pasting this. I see NULL. No I know some where I'm messing up with registering the template to show.
|
#8
|
|||
|
|||
Your code doesn't show $vbmusic_latest being registered at all.
|
#9
|
|||
|
|||
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. |
#10
|
|||
|
|||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|