The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
My site forums are located at.. www.mysite.com/forums
But the homepage (www.mysite.com/index.php) is running a basic php/html news system. On the homepage how would i show the latest posts in the form and other details? Its outside the actual forum root so i do not know how it would work I also need to know how to make an external php file to show the user profile info (latest user posts etc).. something like www.mysite.com/showprofile.php?username=admin (shows admins profile info) |
#2
|
||||
|
||||
![]()
You will have to do a query in your php page in order to get the latest posts. You can go find a modification that does the latest posts and just use the same query and templates to spit out the information on your page. You'll need to include global.php, just do it like this:
PHP Code:
|
#3
|
|||
|
|||
![]()
hmm, i just ask the same question also
https://vborg.vbsupport.ru/showthrea...12#post1809212 Maybe we can help out each other. |
#4
|
|||
|
|||
![]()
Do a search for displaying content on external page. There are ones for logging in and displaying the stats.
|
#5
|
|||
|
|||
![]()
I followed that method exactly and just got a blank page? that guide was made in 2004, surley it won't work with the newest vb version?
|
#6
|
||||
|
||||
![]()
Yes, it works with the newest version. If you have a blank page, then you did something wrong. You may post your code here - just make sure you put php or html (depending) tags around your code.
|
#7
|
|||
|
|||
![]()
Lynne, thanks for this help
![]() forum is located at mysite.com/forums this script is located at mysite.com/file/vbtest/test.php and the .html is in that folder too. test.php file code.. PHP Code:
HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">My Custom Page Title</td> </tr> <tr> <td class="alt1">Other Bluff...</td> </tr> </table> $footer </body> </html> |
#8
|
||||
|
||||
![]()
This line does not look correct according to where you said your test site was located:
PHP Code:
Also, what you posted and said you saved as "test_mytesttemplate1.html" is not supposed to be a file. It is supposed to be a template named "test_mytesttemplate1" |
#9
|
|||
|
|||
![]()
Ahh! worked perfect thanks
![]() I made a html page instead of a template! ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|