• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] SIDEBAR MODIFICATION

Started by ASDF,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ASDFTopic starter

HEY ALEXANDER,I JUST WANTED TO ASK THAT HOW CAN I REMOVE THE MY SUBSCRIPTION AND NEW USERS HEADING FROM THE SIDEBAR. I EVEN LOOKED IN FORUM FOR HELP BUT COULDN'T FIND THE SOLUTION. CAN YOU GUIDE ME THROUGH IT (NEED THE CODES.)
  •  

PHPVibe A.

Which theme? Please DO NOT write with uppercase, my eyes hurt from trying to read.

ASDFTopic starter

It's the latest version of phpvibe...3.6.
Not the brasil theme.
  •  

PHPVibe A.

Then it's tpl/main/sidebar-right.php

<div class="box-head">
<h4 class="box-heading"><?php echo _lang('My subscriptions'); ?></h4><a class="pull-right" href="<?php echo profile_url(user_id(), user_name()); ?>&sk=subscribed"><?php echo _("View all"); ?></a>
</div>



<div class="box-head">
<h4 class="box-heading"><?php echo _lang('New users'); ?></h4>
</div>

ASDFTopic starter

Thank you Alex,but can you tell me exactly what changes am i supposed to make to completely remove the both,my subscriptions and new users from side bar.
  •  

PHPVibe A.

They are both commented ... where they start...where they end...it's not that hard to just look :)

ASDFTopic starter

You mean i can't remove them,but modify.
  •  

PHPVibe A.

You can remove all the code...if you want.
From
/* start my  subscriptions */

to

/* end subscriptions */


All blocks are commented, where they start...where they end...

ASDFTopic starter

And what about the New users ...am i supposed to do the same thing...removing the whole code.
  •  

PHPVibe A.


ASDFTopic starter

Thank you Alexander, removed the my subscription but i am unable to remove the new users.
Like for the my subscriptions,can you tell me what am i supposed to do exactly.
Thank you.
  •  

PHPVibe A.

<?php $users = $cachedb->get_results("SELECT id,name,avatar FROM ".DB_PREFIX."users order by id desc limit 0,20");
if($users) {
$fnr = $cachedb->num_rows;
?>
<div class="box">
<div class="box-head">
<h4 class="box-heading"><?php echo _lang('New users'); ?></h4>
</div>
<div class="box-body">
<?php
if($fnr > 10) {
echo '<div class="scroll-items">';
}
foreach ($users as $user) {
echo '
<div class="populars">
<a class="pull-left" title="'.$user->name.'" href="'.profile_url($user->id , $user->name).'"><img src="'.thumb_fix($user->avatar, true, 27, 27).'" alt="'.$user->name.'" /></a>
<span class="pop-title"><a title="'.$user->name.'" href="'.profile_url($user->id , $user->name).'">'._cut(stripslashes($user->name), 13).'</a></span>';
echo '
<div class="clearfix"></div>
</div>
';
}

if($fnr > 10) {
echo '</div>';
}
echo '</div>
</div>
';
}
?>

ASDFTopic starter

  •  

Similar topics (7)