The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
query with left join and grouping.
I have two tables, "custom_droplinks_cat" and "custom_droplinks".
Below is the tables' layout. I hope it is easy to understand. Code:
---------------------------------------- | Table: custom_droplinks_cat ---------------------------------------- | catid: 1 | title: Test Category 1 ---------------------------------------- | catid: 2 | title: Test Category 2 ---------------------------------------- ---------------------------------------- | Table: custom_droplinks ---------------------------------------- | linkid: 1 | title: Test Link 1 | catid: 1 ---------------------------------------- | linkid: 2 | title: Test Link 2 | catid: 1 ---------------------------------------- | linkid: 3 | title: Test Link 4 | catid: 2 ---------------------------------------- | linkid: 4 | title: Test Link 4 | catid: 2 ---------------------------------------- I don't want to ask more than I need to so I'll just ask "How do I make "Test Category" bold then place "Test Link" immediately after followed by a break (br />)? PHP Code:
I want the result to be Code:
Test Category 1 Test Link 1 Test Link 2 Test Category 2 Test Link 3 Test Link 4 |
#2
|
|||
|
|||
A basic example on how you could do this:
PHP Code:
|
#3
|
|||
|
|||
Thanks for answering my question. I'm going to try it out soon.
|
#4
|
|||
|
|||
I thought I could apply the solution Marco gave me to the real query but I can't get it to work.
Here is the actual code PHP Code:
|
#5
|
|||
|
|||
Please post the actually code, i don't want to go decode your XML.
Also telling what is not working might also help. |
#6
|
|||
|
|||
In the screenshot "Test1" is supposed to have "vBulletin" and "Test2" is supposed to have "Xen Web".
I'm not sure if this code snippet will suffice but I don't want to post all the code as it may be overwhelming. PHP Code:
Edit: I think I may have to do two separate queries. |
#7
|
|||
|
|||
I figured out the mistake and I fixed it.
Thanks Marco for atleast making an effort to help. I ran into another problem but I got it situated. I'm posting the working code here for two reasons. One is if I lose the code and the other is for other people to look at. I wanted to use "left join" but the query got to be too complicated for me. PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|