![]() |
Here is a question:
Using the instructions given it took about 30 seconds to get an additional template driven page into my forum, which was nice :) Now I am fiddling around trying to get data from the database into a html table in the template and have hit a wall. Just for the sake of testing I am attempting to select all users from a specific user group and display their username in a table. So to do this after this line: Code:
$navbits[$parent] = 'Test Page'; Code:
$userlist = $db->query_read_slave("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE usergroupid = 2"); As an example if the select return 2 users (Bob & Dave) I want to render a table that looks like this: Code:
<table> |
Is it against the law to embed other websites into your own? because I got a complaint lol
|
It's not another website, it's one i own. I own www.mummybrain.com but want to open www.mummybrain.com/tickers/ inside looking like it's vB. Is that the best way to do this? All i really need is just the header, but thought this might be able to do it. But i can't copy and paste all the code, cos then it doesn't work.
|
Quote:
Quote:
|
Does anyone know how to insert $forumbits in test.php so that it will display some threads ??? (or any reason this wouldnt work ?)
edit: seems to be working now. |
Can I have the php pages set outside the forum root. Basically at the host root?
|
Amazing !
Works perfectly - even managed to get it into the Navbar :D |
Thank you to the original poster for providing this source code.
I have successfully installed the test page. Is there a way to only allow the test page to load if the user is logged in? I allow guests to browse my forums; but I do not want them to be able to browse my test page. Regards, Robert |
Quote:
|
I keep running into parse errors for some reason. I don't know why though since I've used this writeup before to add pages to another of my forums. On this other forum, I'm having issues. The forums are with different hosting companies. Would that make a difference?
The first error that I got said that there was a parse error due to an unexpected ~ on line 4. I took the tilde out and then it told me this: Code:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/v/e/r/vermontoutdoor/html/forum/writeups.php on line 8 Code:
// #################### DEFINE IMPORTANT CONSTANTS ####################### |
All times are GMT. The time now is 04:46 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:
|