PDA

View Full Version : 2 questions about latest posts


rstan
07-04-2004, 01:21 AM
1. How can I pull the last post from a selected number of forums? I have 4 forums that I want to pull from...It doesnt show the last post from each forum I have in the admin panel..If there are two newer posts in the same forum it will leave one of the forums i have selected out and replace it with the newer post from a different forum. I just want the last post from each forum I have in the admin panel.

2. I have completely customized my portal. On the homepage the last post temp comes up under my home page.....Is there a way I can call it from inside my homepage template? Really the only thing Im useing the portal system for is the latest posts and the ease of adding pages..

Brian
07-04-2004, 01:26 AM
1). That would require a bit of hacking/work.

2). Sorry, but I have no idea what you're asking here...

Our Sponsors
 

rstan
07-04-2004, 01:35 AM
Ive already hacked the hell out of it.....

rstan
07-04-2004, 01:39 AM
You can see where it should be and where it comes up.......the top of the page being the home template set at complete width...can I call the latesttopics template from inside of another template instead of turning it on and off etc in the admin panel..

Our Sponsors
 

Brian
07-04-2004, 01:39 AM
Well for one thing, you need to restore the copyright (or purchase a branding free license) before you start asking for support.

rstan
07-04-2004, 01:42 AM
sure whats the branding licence fee and where do i get it?

Brian
07-04-2004, 01:50 AM
A branding free license is $39.99 and can be purchased here (http://www.vbadvanced.com/products.php?do=productdownload&p=4).

rstan
07-04-2004, 01:53 AM
There ya go....

Brian
07-04-2004, 02:00 AM
You would need to move the $home[leftblocks] or $home[rightblocks] variable (depending on which column you have the latest topics in) into a seperate table cell, wherever you would like the latest topics to appear.

rstan
07-04-2004, 02:56 AM
That gets it where it should be if I use my template in adv_portal. But if I do that the other pages have that template, plus whatever page content under....I guess I can use html pages for the rest of the content....unless there is something else i can do?

Brian
07-04-2004, 03:06 AM
Place the $home[centerblocks] variable somewhere else in the template (wherever you want your page content to appear).

rstan
07-06-2004, 02:03 AM
That will work for what im trying to do...thanks Brian.....Any Idea about getting latesttopics to pull only the last thread from each specified forum?

Brian
07-06-2004, 11:30 AM
That would be a little more difficult... The best way would probably be to completely restructure that query there and have it pull the last post information from the fourm table.