• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] how to show ads and stats to visitors

Started by tesladisk,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tesladiskTopic starter

hi i want to ask how can i show ads and stats to visitors in 3.5
the stats no longer show in the home page in 3.5
but most important is the ads i must to be loged in to see them
wait for your reply thanks
please some detail in code i must change total noob here :-[ :) :)
  •  

PHPVibe A.

Where do you wish to place them?

This is the code:
<?php if(is_user()) { ?>

<ul class="statistics">
				    			<li>
				    				<div class="top-info">
					    				<a href="#" title="" class="blue-square"><i class="icon-film"></i></a>
					    				<strong><?php echo _count('videos'); ?></strong>
					    			</div>
									<div class="progress progress-micro"><div class="bar" style="width: 40%;"></div></div>
									<span><?php echo _lang('Videos');?></span>
				    			</li>
								<li>
				    				<div class="top-info">
					    				<a href="#" title="" class="sea-square"><i class="icon-group"></i></a>
					    				<strong><?php echo _count('users'); ?></strong>
					    			</div>
									<div class="progress progress-micro"><div class="bar" style="width: 40%;"></div></div>
									<span><?php echo _lang('Members');?></span>
				    			</li>
				    			<li>
				    				<div class="top-info">
					    				<a href="#" title="" class="red-square"><i class="icon-eye-open"></i></a>
					    				<strong><?php echo _count('videos','views',true ); ?></strong>
					    			</div>
									<div class="progress progress-micro"><div class="bar" style="width: 40%;"></div></div>
									<span><?php echo _lang('Video views');?></span>
				    			</li>
				    			<li>
				    				<div class="top-info">
					    				<a href="#" title="" class="green-square"><i class="icon-ok"></i></a>
					    				<strong><?php echo _count('likes' ); ?></strong>
					    			</div>
									<div class="progress progress-micro"><div class="bar" style="width: 40%;"></div></div>
									<span><?php echo _lang('Video likes');?></span>
				    			</li>
				    			<li>
				    				<div class="top-info">
					    				<a href="#" title="" class="purple-square"><i class="icon-fast-forward"></i></a>
					    				<strong><?php echo _count('playlists' ); ?></strong>
					    			</div>
									<div class="progress progress-micro"><div class="bar" style="width: 40%;"></div></div>
									<span><?php echo _lang('Playlists');?></span>
				    			</li>
							
				    		</ul>

<?php } ?>

tesladiskTopic starter

i want the stats at the home page
also i manage to see some of the ads after a few refresh but the home page ads not showing at the left  sidebar is any other way to place ads on left and right sidebar in home page and in left and right sidebar when a visitor browse channels and most viewed featured videos etc.
thanks
  •  

PHPVibe A.

Hi, then then code should go in home.php in tpl/main, not sure about any css changes, have to test it.

When you create an ad with a new spot, it provides the php code to ads, you can put it in sidebar.php or sidebar-right.php in the location you want it to show up.

Ex:

<?php echo _ad('0','my-cutom-position'); ?>

videonavy

Good guide... but in the future release, make the existing ads editable.
  •  

PHPVibe A.

That's the plan, but it was an fast build, we are extending it with this upcoming patch.

videonavy

Quote from: Alexander on
That's the plan, but it was an fast build, we are extending it with this upcoming patch.

Great!
  •  

Similar topics (7)