• 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)