The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
How are you uploading the videos? Where are they being stored and with what sort of ids?
|
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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:
|
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
Quote:
so each time I add a new video, I dont want to add another template, I just want to change the video link. |
#7
|
|||
|
|||
still need help
|
#8
|
||||
|
||||
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,
|
#9
|
|||
|
|||
if only i knew how to do that =[
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|