vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-14-2005, 06:06 PM
sandman sandman is offline
Junior Member
 
Join Date: Oct 2005
Posts: 8
Default Block between 1st and 2nd News Blocks?

I was hoping to stuff an add block between the 1st and second news blocks on the main page, much like the hack to add a section between the first and second postbit. I looked at it and it seems that the post bit works as the template is called over and over as long as there is posts. There you can test for the post number and stuff the ad if its called for. In the news block its just a variable in the template with the actual building taking place in news.php. I looked at that file and found the loop that calls the news forum database location untill the max news count is set. I figure here would be the place to insert the ad code. Also here is where my coding skills end.

Could I add a new $getnews in an if statment in the loop that tests for the loop count right after the database query for the same variable?

Basically the add would become part of the first news bit that was queried.

Maybe something like...(Added right before the while loop that contains "$newscount++;"

Code:
if ($newscount == 0){$getnews = 'Add code or text here';}
Would this push the data I want onto the stack?

Let me know if I'm on track or not.

Thanks!
__________________
Planet 4x4
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
News Block Issue offline Troubleshooting / "How do I..." Questions 3 05-14-2005 11:32 AM
Avatar in news block. bigcurt Troubleshooting / "How do I..." Questions 6 02-26-2005 01:00 AM
news block - doesnt show up tercede Troubleshooting / "How do I..." Questions 2 02-13-2005 03:35 AM


All times are GMT -4. The time now is 03:35 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.