The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am trying to get this to work right.
Code:
<if condition="$thread['forumid'] == 32"><div style="margin-top: 7px;"><a href="http://www.exposethemusic.com/forums/t$lyrics[threadid]/">$lyrics[title] Lyrics</a></div></if> PHP Code:
If I use a print_r on $lyrics it spits out the array at the top of the page. So I know the query works. print_r($lyrics['title']); spits out the correct title to. What isn't working is when I use the variable in the template. It just shows up blank where the variable output is suppose to be. Any idea why? |
#2
|
|||
|
|||
![]()
What template are you using it in? And you should have to query the thread table, as this is already done and the info is put in $thread array.
|
#3
|
||||
|
||||
![]()
postbit
I'm not sure how I would compare the post title of one forum with the post title of another one to make sure they are the same based on the thread you are in without a query. It very well could be possible but I have no idea how. --------------- Added [DATE]1192824968[/DATE] at [TIME]1192824968[/TIME] --------------- Anyone else have any idea? Like I said, the query works fine and the variable has the array in it but it won't work when used in a template ![]() |
#4
|
||||
|
||||
![]() PHP Code:
I've tried $GLOBALS[lyrics] in the template but no luck either. What am I missing here? All I want to do is use $lyrics within postbit |
#5
|
|||
|
|||
![]()
I am not really sure what you are doing. The thread you are pulling is different then the one you that the post belongs too? It seems you like you have some issues with database normalization, if that is the case.
I am just trying to get this efficient as possible for you. |
#6
|
||||
|
||||
![]()
Add a plugin to postbit_display_complete
PHP Code:
|
#7
|
||||
|
||||
![]() Quote:
http://www.exposethemusic.com/forums/t644/ Those two threads are the same. What I am trying to do is if you are in f32 I am taking the thread title of the thread you are in and searching f34 to see if the exact same thread exists. If it does then I want to link to that thread. Quote:
Thanks this worked ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|