• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] how can I move the fb count from sidebar to header

Started by ricardob24,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ricardob24Topic starter

how can I move the fb count from sidebar to header

thanks
Tomas Brito
  •  

Marius P.

Hi Tomas,

Let's take it step by step.
The fb-count was removed from sidebar because Fb is acting crazy this days, but if it works good for you (you showed me it gets updated, let's do this.

open tpl/UltimaTube/tpl.globals.php and find:

<div id="suggest-results">
      </ div>';



after this add:


       if(get_option('fb-fanpage') !== '') {
$nav .= '<div class="user-quick">
        <a href="http://facebook.com<?php echo get_option("fb-fanpage"); ?>" title=""><i class="icon-facebook-sign"><?php echo _fb_count(get_option('fb-fanpage')); ?> <?php echo _lang('Facebook fans');?>[/url]
        <>';
                                               }


Please make sure you change <> with a close div, I cannot type this here since this forum strips </ div> if written in one word.

This will basically add x Facebook fans link to your header, there may be issues with styling and spacing which you will need to correct after you choose the output and either by lowering the width of the search, or...if you tell how you plan to do this, I can guide your further.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ricardob24Topic starter

Hi Mario I was put the code like this:
<div id="suggest-results">
      <>
       
      ';
if(get_option('fb-fanpage') !== '') {
$nav .= '<div class="user-quick">
        <a href="http://facebook.com<?php echo get_option("fb-fanpage"); ?>" title=""><i class="icon-facebook-sign"><?php echo _fb_count(get_option('fb-fanpage')); ?> <?php echo _lang('Facebook fans');?>[/url]
        <>';
                                               }
   
      if(!is_user()) {
      $nav .= '   <div class="user-quick">
<a href="'.site_url().'login/" class="btn btn-default btn-small" original-title="Login">               
               '._lang("Upload").'           
               [/url]       
               <a href="'.site_url().'login/" class="btn btn-primary btn-small" original-title="Login">               
               '._lang("Sign in").'           
               [/url]
       <>


But show this error (Parse error: syntax error, unexpected T_STRING in /home/elitebok/public_html/tpl/UltimaTube/tpl.globals.php on line 131)

You can check and let me know.

Thanks
Tomas Brito
  •  

Marius P.

Sry,


   if(get_option('fb-fanpage') !== '') {
$nav .= '<div class="user-quick">
        <a href="http://facebook.com'.get_option("fb-fanpage").'" title=""><i class="icon-facebook-sign">'._fb_count(get_option('fb-fanpage')).' '._lang('Facebook fans').'[/url]
        </ div>';
                                               }



I've mixed two sources and forgot to strip the <?php tags.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

ricardob24Topic starter

Ok Mario

I was entrée the code: <div id="suggest-results">
      </div>';

if(get_option('fb-fanpage') !== '') {
$nav .= '<div class="user-quick">
        <a href="http://facebook.com'.get_option("fb-fanpage").'" title=""><i class="icon-facebook-sign">'._fb_count(get_option('fb-fanpage')).' '._lang('Facebook fans').'[/url]
        </ div>';
                                               }

   
      if(!is_user()) {
      $nav .= '   <div class="user-quick">
<a href="'.site_url().'login/" class="btn btn-default btn-small" original-title="Login">               
               '._lang("Upload").'   

but no the theme don't work check the attach file.
thanks
tomas brito
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 45663

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 73992

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 55772

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 4949

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 26056

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 9169

video,playlist,images, etc. (frontend) select all deselect all reselect all

Started by spirog


Replies: 3
Views: 8911