How do I move the phpbbseo image link

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators


How do I move the phpbbseo image link

Postby Stokerpiller » Wed Mar 05, 2008 9:22 am

Hello

I would like to move the phpbb-seo image link down under this:
[ Time : 0.114s | 14 Queries | GZIP : Off ]

How can this be done?
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 124
Joined: Thu May 24, 2007 6:46 pm

Advertisement

Postby HB » Thu Mar 06, 2008 12:33 pm

Move this statement within overall_header.html:

Code: Select all
<!-- IF DEBUG_OUTPUT --><br />{DEBUG_OUTPUT}<!-- ENDIF -->
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1019
Joined: Mon Oct 16, 2006 2:25 am

Postby Stokerpiller » Thu Mar 06, 2008 2:54 pm

Sorry, I didn't get that?
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 124
Joined: Thu May 24, 2007 6:46 pm

Postby MathieuM. » Thu Mar 06, 2008 7:10 pm

Hi,

You must find it in overall_footer.html :wink:


Mathieu.
User avatar
MathieuM.
phpBB SEO Team
phpBB SEO Team
 
Posts: 999
Joined: Sun Feb 10, 2008 9:33 pm
Location: Rhône-Alpes

Postby HB » Thu Mar 06, 2008 10:02 pm

Oops, that's what I meant... footer. :oops:
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1019
Joined: Mon Oct 16, 2006 2:25 am

Postby Stokerpiller » Thu Mar 06, 2008 10:06 pm

Well, that much I figured out :D

The thing is that I cant find the seo.png in overall_footer.html
Therefore I cant figure out where to move the debug output to get the result of seo.png down under that?
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 124
Joined: Thu May 24, 2007 6:46 pm

Postby MathieuM. » Thu Mar 06, 2008 10:20 pm

You won't find the phpbb-seo.png in overall_footer.html. It's in "phpbb_seo/phpbb_seo_class.php" :

Code: Select all
if ($img) {
         $output = '<div style="padding-top:5px; text-align: middle"><a href="http://www.phpbb-seo.com/" title="' . ( strpos($config['default_lang'], 'fr') !== false  ?  'Optimisation du R&eacute;f&eacute;rencement' : 'Search Engine Optimization') . '"><img src="' . $this->seo_path['phpbb_url'] . 'images/phpbb-seo.png" alt="phpBB SEO"/></a></div>';
      } else {
         $output = '<div style="padding-top:5px" text-align: middle"><a href="http://www.phpbb-seo.com/" title="' . ( strpos($config['default_lang'], 'fr') !== false  ?  'Optimisation du R&eacute;f&eacute;rencement' : 'Search Engine Optimization') . '">phpBB SEO</a></div>';
      }



Mathieu.
User avatar
MathieuM.
phpBB SEO Team
phpBB SEO Team
 
Posts: 999
Joined: Sun Feb 10, 2008 9:33 pm
Location: Rhône-Alpes

Postby TomaS » Sat Mar 08, 2008 1:48 pm

you can delet this part and add link in footer as write HB
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center
TomaS
PR2
PR2
 
Posts: 229
Joined: Fri Jun 08, 2007 1:22 am

Postby Stokerpiller » Mon Mar 10, 2008 11:45 am

Well, deleting only that part resulted in a debug error.

My code look like this:
Code: Select all
   function seo_end($return = false, $img = true) {
      global $user, $config;
  if ($img) {
         $output = '<br /><a href="http://www.phpbb-seo.com/" title="' . ( strpos($config['default_lang'], 'fr') !== false  ?  'Optimisation du R&eacute;f&eacute;rencement' : 'Search Engine Optimization') . '"><img src="' . $this->seo_path['phpbb_url'] . 'images/phpbb-seo.png" alt="phpBB SEO"/></a>';
      } else {
         $output = '<br /><a href="http://www.phpbb-seo.com/" title="' . ( strpos($config['default_lang'], 'fr') !== false  ?  'Optimisation du R&eacute;f&eacute;rencement' : 'Search Engine Optimization') . '">phpBB SEO</a>';
      }
      if ($return) {
         return $output;
      } else {
         $user->lang['TRANSLATION_INFO'] .= $output;
      }
      return;
   }


If I delete this part:
Code: Select all
if ($img) {
         $output = '<br /><a href="http://www.phpbb-seo.com/" title="' . ( strpos($config['default_lang'], 'fr') !== false  ?  'Optimisation du R&eacute;f&eacute;rencement' : 'Search Engine Optimization') . '"><img src="' . $this->seo_path['phpbb_url'] . 'images/phpbb-seo.png" alt="phpBB SEO"/></a>';
      } else {
         $output = '<br /><a href="http://www.phpbb-seo.com/" title="' . ( strpos($config['default_lang'], 'fr') !== false  ?  'Optimisation du R&eacute;f&eacute;rencement' : 'Search Engine Optimization') . '">phpBB SEO</a>';
      }
      if ($return) {
         return $output;
      } else {
         $user->lang['TRANSLATION_INFO'] .= $output;
      }
It seems to be working fine.
Am I right about that?
Off course I am replacing it with a link in the footer.
You have done a great job with this SEO mod :D
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 124
Joined: Thu May 24, 2007 6:46 pm

Postby dcz » Wed Mar 12, 2008 2:16 pm

Using :

Code: Select all
function seo_end($return = false, $img = false) {


is enough to switch for a text link instead of the image link if you prefer.

++
dcz
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 17678
Joined: Fri Apr 28, 2006 9:03 pm

Postby Stokerpiller » Wed Mar 12, 2008 3:09 pm

Thanks for Your help.
I got it to work the way I wanted now :D
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 124
Joined: Thu May 24, 2007 6:46 pm


Return to Advanced SEO URL




Who is online

Users browsing this forum: Google [Bot] and 4 guests