The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to show extra fields from node table in template?
I'm upgrading the template of a very old vbulletin installation. However I need to use the "oldid" field in the new node table to display the correct image on each forum (since those images are named after the old id of the forums). How can I extract this information? I can see the data in the node table under the "oldid" field but is there a way to extract this field in the template so I can use it?
I'm working on the display_Forums_item template Thank you. |
#2
|
||||
|
||||
I checked the code and it looks like the "oldid" is not exposed in the forum node object in the display_Forums_item template.
You could try: {vb:raw forum.oldid} but I doubt it has a value. But it wouldn't hurt to try. Maybe oldid isn't there for me because I don't have and old id |
#3
|
|||
|
|||
Yeah I tried that and came out empty.
I had to expose the oldid in order to be able to use it so ended up modifying the core It's not ideal but I couldn't find any other way around that (I don't know why you wouldn't expose the old id if it's there in the table anyways). I modified node.php to include the oldid in the return array for the channel nodes Now I can use it from the templates. |
#4
|
||||
|
||||
You might want to create an enhancement request in JIRA to officially fix it.
http://tracker.vbulletin.com/secure/...91&issuetype=4 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|