The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
a bit reluctant to post this...
Hi folks,
Like the thread title says I'm feeling a bit reluctant to post this as I'm imagining I'll get a whole load of replies along the lines of "use the search!". Anyway, I'm currently in the process of designing a new custom homepage for forums owned by my associate (not registered here) and I've installed this [hack] to give me the basic outline. The page will be mostly static except for the inclusion of posts from 3 announcements forums (the site is irish dance based and needs 1 general, 1 for feis events and 1 for shows) and I'm wondering how I would go about including them. The feis announcements would be the main focus showing a limited version of the post with the other 2 in the right hand column showing only the thread name linking to the threads. I would need to be able to limit the number of threads showing for each of these as well. I'd imagine I'll have to create a whole new set of custom templates for this which I'm more than happy to do, I'm just stumped as to where to start with the actual coding. If anybody can point me at a how-to or anything else which may help it would be much appreciated, I've had a look at the current portal systems available but they seem a little too complex for our needs. Cheers, Robert |
#2
|
||||
|
||||
I would go with either vBindex or vbAdvanced for this. They have what you need already built in. It would be more trouble than it's probably worth to do it all from scratch.
|
#3
|
|||
|
|||
Quote:
Cheers, Robert |
#4
|
|||
|
|||
Could nobody even point me at which files to look at copying code from? Or would this infringe on copyright?
|
#5
|
|||
|
|||
OK I guess not then...
|
#6
|
|||
|
|||
Quote:
- How do I write PHP to query the mySQL database to pull threads from a few different forums? There is no place in the vBulletin code that would be appropriate for you to copy from-- the way that forumdisplay works is more complex and quite a bit different from the simple sort of pull you want to accomplish here. Where do you start coding? On the home page that you've created. You don't really need to create templates for it unless you want to. PHP Code:
Honestly it would take a few pages to explain everything you want to do. I think that's why Boofo suggested you start with one of the portals and pick it apart. |
#7
|
|||
|
|||
Quote:
As far as the templates are concerned I'd like to create new ones in order to seperate the homepage and the forums a bit. I can see that this will get complex, I just don't want to step on anyone's toes by taking their work and pulling it apart. I've got basic PHP and MySQL knowledge and see this as an opportunity to help build on that as well. Time to get my hands dirty I think Many thanks, Robert |
#8
|
|||
|
|||
Quote:
I just meant you don't have to template the code if you don't want to. You can have it output HTML straight from the PHP without going through the template system. If you do this first, it makes the coding a bit easier.. then once you've got it working how you want it, move the HTML parts into a template. I don't think there is any harm in examining someone else's code to learn how to do things. Good luck! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|