![]() |
custom page php question
im using the custom vb page for my site, so its forums/videos.php
im going to be adding videos so how can i make it so i dont need to add a template everytime...cause ive seen video.php?id=1 <-just something like that. any help is very much appreciated! |
How are you uploading the videos? Where are they being stored and with what sort of ids?
|
yea they are going to be my videos using the flv player from http://www.jeroenwijering.com/
every new video added will be something like forums/videos.php?id=1, forums/videos.php?id=2, forums/videos.php?id=3, etc. so all those ids, all i would be changing in the template is the .flv file name to play the video. |
i need help! i included the files so people have a better chance of helping me out.
forums/videos.php PHP Code:
vbulletin template name: videos PHP Code:
|
How are you planning to display your list of videos? You may already have this planned but I would create a database table to store the video information (i.e. size, and location). First I would say continue with making a mockup of how you envision the page to look with a list of videos. Let me know if this helps or if I'm way off base.
Jim |
Quote:
so each time I add a new video, I dont want to add another template, I just want to change the video link. |
still need help :(
|
You will need to add a table to the database to keep track of which ID is which video. Then you can simply query for the video and display it,
|
Quote:
|
All times are GMT. The time now is 11:38 PM. |
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:
|