PDA

View Full Version : Using currentpoll module on another page


sully02
12-10-2004, 12:26 PM
I would like to use the current poll module on another page in my site. I'm still learning PHP (Translated: n00b) and the only ways I can think of would be to call the module (require_once) or to copy the code from currentpoll.php into the other php file.

There's one stipulation... Instead of using RAND like I'm using for the homepage, I'd like to have it set to a certain forum just for that page. If I'm not making sense, I can try to explain it better... I'd just like to know what the best way is to use the currentpoll on another page like I mentioned.

Brian
12-10-2004, 01:07 PM
Is this other page connected with vBulletin? If so, why not just integrate the CMPS with that page (there are instructions on how to do this in the Users' Manual).

Our Sponsors
 

sully02
12-10-2004, 06:41 PM
It's connected in the sense that it will use some of vBulletin's pages to do the makeup. However, I think it's a little complex to use the CMPS. What I'm doing is making team pages for each pro team, as my site is a sports forum site.

So it wouldn't be accessed by page=clubhouse

Instead, it'd be its own file with teams accessed via clubhouse.php?t=## (teamid)

I'm going to have stuff on there that's mostly my own, and one of the things I wanted was a poll from the team's forum on their team page. I asked because I could only use 2 modules from CMPS, the rest would be my own making (Those two modules being current poll and recent posts... Recent posts being from the team's forum, of course).