Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
SEO for fireboard still not answered (1 viewing) (1) Guest
Go to bottom Favoured: 5
TOPIC: SEO for fireboard still not answered
#54759
Re:SEO for fireboard still not answered 4 Months ago  
kingBT wrote:
I`ll like to see these seo hacks in FB 1.0.5 final.
BUT this code must be modified to avoid double meta description , and other doube meta


Like with adding a thread id?
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1211
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
 
The administrator has disabled public write access.  
#54761
Re:SEO for fireboard still not answered 4 Months ago  
SEO improvemenrs in FB 1.0.5:
-component:title(present), description, keywords
-topic: title(present), description, keywords
-categories: title (can be taken from DB ), description (can be taken from DB ), keywords
-category listings: title, description, keywords
About the hack from rickert from post #54077 I must say that I tested it in FB1.0.5NB5 and worked 90%. 90% because there was a duplicate description problem...
...and
Code:

//Set pagetitle with subject followed by sitename 
   $mainframe->setPageTitleAlias($metasubj. ' - ' . $GLOBALS['mosConfig_sitename']);
// setPagetitleAlias - function sets the title of the  
// page to tile_alias  
function setPagetitleAlias( $title_alias=null ) {  
    if (@$GLOBALS['mosConfig_pagetitles']) {  
            $title_alias = trim( htmlspecialchars( $title_alias ) );  
         $title_alias = stripslashes($title_alias);  
            $this->_head['title'] = $title_alias;  
    }  
}


Didn`t work it said Jsite : setPagetitleAlias not defined.

I want to add that the speed problem of FB is not so big / important like the SEO one. Because if google doesn`t see U, U don`t exist.

@fxstein
About the duplicate meta description?
If that... I`m talking about the double metadescription from page source, for example:
Code:


<meta name="description" content="FireBoard, FireMessage home. Commercial and Free Joomla templates, Joomla 1.5 Templates, Joomla Resources, Tutorials and news..." />
<meta name="keywords" content="joomla!,joomla, joomla templates, free joomla templates, fireboard, firemessage, best of joomla, joomla tutorials, joomla books" />
<meta name="description" content="Forum BoJ! - SEO for fireboard still not answered for community, is this possible" />

kingBT (User)
FB Quality & Testing Team
Senior Boarder
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Romania
Logged Logged
 
Last Edit: 2008/07/29 19:41 By kingBT.
 
The best things are the things for free
 
The administrator has disabled public write access.  
#54852
Re:SEO for fireboard still not answered 4 Months ago  
Hi, can anyone tell me how to remove the Re: on all replys. It seems that this is killing me with google. It comes up with tons of duplacated stuff.
amorosso (User)
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#54859
Re:SEO for fireboard still not answered 4 Months ago  
amorosso wrote:
Hi, can anyone tell me how to remove the Re: on all replys. It seems that this is killing me with google. It comes up with tons of duplacated stuff.

The Re: are not the problem, the duplicate URLs are. This has been fixed to a great part in the upcoming 1.0.5 release.
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1211
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
Last Edit: 2008/07/31 10:42 By fxstein.
 
 
The administrator has disabled public write access.  
#54897
For J1.5 4 Months ago  
This is for J1.5 for no duplicate meta description.
Code:

// if view = flat and first message on page OR if view = threaded 
if (($view == "flat" && floor($mmm-1/$limit) == ($mmm-1)/$limit) || $view == "threaded") 

   // BUILD DESCRIPTION METATAG 
   //Strip bbcode, newlines and returns from messagetext  
   $pattern = array('/[b](.*?)[/b]/is','/[i](.*?)[/i]/is','/[u](.*?)[/u]/is','/[img(.*?)[/img]/is','/[url](.*?)[/url]/is','/[url=(.*?)](.*?)[/url]/is','/[nr]/'); 
   $replace = array('$1','$1','$1',' ','$1','$2',' '); 
   $metapost = preg_replace($pattern, $replace, substr($fmessage->message,0,400)); 
 
   //BUILD KEYWORDS METATAG 
   //initialize metakeys 
   $mosConfig_MetaKeys = ''; 
 
   // Strip any character from subject and messagetext except a-z, A-Z and 0-9 
   $metapost = preg_replace('/[^a-z .A-Z0-9s]/',' ', $metapost); 
   //$metasubj = preg_replace('/[^a-z .A-Z0-9s]/',' ', $metasubj); 
   
   // Set description to stripped subject and messagetext 
   //$mainframe->addMetaTag( 'description' , $metasubj . ' - ' . $metapost);
   $document =& JFactory::getDocument();
   $cur = $document->get( 'description' );
   $document->setDescription($cur . ' - ' . $fmessage->subject . ' - ' . $metapost );
 
   //set page title
   if ($leaf->parent == 0) {
   $mainframe->setPageTitle($fmessage->subject . ' - ' . $fbConfig->board_title);
   }
 
   //Build array with suggested keywords and build array with keywords to be ignored 
   $keyarray = explode (' ' , $metasubj . ' ' . $metapost); 
   $search_ignore = array(); 
   @include "$mosConfig_absolute_path/language/$mosConfig_lang.ignore.php"; 
   foreach ($keyarray as $keytest) 
   { 
      $keytest = str_replace('.' , '', strtolower(trim($keytest))); 
      // Add to keywords metatag if length > 3 AND not to be ignored 
      if ($keytest && strlen($keytest)>3 && !in_array( $keytest, $search_ignore ))  
         $metakey .= $keytest . ', '; 
   } 
   if ($metakey)  
      $mainframe->addMetaTag( 'keywords' , substr ($metakey, 0, -2)); 
}

kingBT (User)
FB Quality & Testing Team
Senior Boarder
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Romania
Logged Logged
 
Last Edit: 2008/08/01 19:19 By kingBT.
 
The best things are the things for free
 
The administrator has disabled public write access.  
#54921
Re:SEO for fireboard still not answered 4 Months ago  
now where would I put this code in.
amorosso (User)
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#55690
Re:For J1.5 3 Months, 3 Weeks ago  
kingBT wrote:
This is for J1.5 for no duplicate meta description.
Code:

// if view = flat and first message on page OR if view = threaded 
if (($view == "flat" && floor($mmm-1/$limit) == ($mmm-1)/$limit) || $view == "threaded") 

   // BUILD DESCRIPTION METATAG 
   //Strip bbcode, newlines and returns from messagetext  
   $pattern = array('/[b](.*?)[/b]/is','/[i](.*?)[/i]/is','/[u](.*?)[/u]/is','/[img(.*?)[/img]/is','/[url](.*?)[/url]/is','/[url=(.*?)](.*?)[/url]/is','/[nr]/'); 
   $replace = array('$1','$1','$1',' ','$1','$2',' '); 
   $metapost = preg_replace($pattern, $replace, substr($fmessage->message,0,400)); 
 
   //BUILD KEYWORDS METATAG 
   //initialize metakeys 
   $mosConfig_MetaKeys = ''; 
 
   // Strip any character from subject and messagetext except a-z, A-Z and 0-9 
   $metapost = preg_replace('/[^a-z .A-Z0-9s]/',' ', $metapost); 
   //$metasubj = preg_replace('/[^a-z .A-Z0-9s]/',' ', $metasubj); 
   
   // Set description to stripped subject and messagetext 
   //$mainframe->addMetaTag( 'description' , $metasubj . ' - ' . $metapost);
   $document =& JFactory::getDocument();
   $cur = $document->get( 'description' );
   $document->setDescription($cur . ' - ' . $fmessage->subject . ' - ' . $metapost );
 
   //set page title
   if ($leaf->parent == 0) {
   $mainframe->setPageTitle($fmessage->subject . ' - ' . $fbConfig->board_title);
   }
 
   //Build array with suggested keywords and build array with keywords to be ignored 
   $keyarray = explode (' ' , $metasubj . ' ' . $metapost); 
   $search_ignore = array(); 
   @include "$mosConfig_absolute_path/language/$mosConfig_lang.ignore.php"; 
   foreach ($keyarray as $keytest) 
   { 
      $keytest = str_replace('.' , '', strtolower(trim($keytest))); 
      // Add to keywords metatag if length > 3 AND not to be ignored 
      if ($keytest && strlen($keytest)>3 && !in_array( $keytest, $search_ignore ))  
         $metakey .= $keytest . ', '; 
   } 
   if ($metakey)  
      $mainframe->addMetaTag( 'keywords' , substr ($metakey, 0, -2)); 
}



Need your help here if you want this in 1.0.5. This is the last thing I will add before we close the release.
I am very short on time so I hope you can answer a few questions:

1.) I have not had the time to read the entire thread. Is this piece of code the final or a portion of the solution?
2.) Where does it go the way you have written it? file name and line numbers
3.) What makes it J1.5 specific?

Thx!
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1211
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
 
The administrator has disabled public write access.  
#55711
Re:For J1.5 3 Months, 3 Weeks ago  
OK I`ll post everything... needed for meta... and the files needed to be modified
kingBT (User)
FB Quality & Testing Team
Senior Boarder
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Romania
Logged Logged
 
The best things are the things for free
 
The administrator has disabled public write access.  
#55714
Re:For J1.5 3 Months, 3 Weeks ago  
Hi
#1) This code is NOT a solution because ilegal caracters (like quotes for eample), urls, tags are not filtered AND because of this the meta description could be negative afected (destroied).
#2) I`ve made somne minor additions for listcat, showcat, latestx, view files so that description and keywords are added.
#3) The description and generator tags must be J1.5 native for J1.5, else there will be duplicate description and generator tags (about generator tag not the case in FB only in sobi etc).

I`ll test this additions with FB NB10 and then post here (files, lines, codes)
BUT there must be added a joomla version detection so that the native J1.5 code won`t affect J1.0.X.
kingBT (User)
FB Quality & Testing Team
Senior Boarder
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Romania
Logged Logged
 
The best things are the things for free
 
The administrator has disabled public write access.  
#55718
Re:For J1.5 3 Months, 3 Weeks ago  
Here is the patch for meta description & keywords:
-native J1.5 & J1.0.X;
-meta description & keywords for latestx (default_ex), listcat (default_ex), showcat (default_ex) & view.

This is a very anemic patch but does the work.
File Attachment:
File Name: components-4fa581234014ff21288f4fc14ec6aedd.zip
File Size: 28262
kingBT (User)
FB Quality & Testing Team
Senior Boarder
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Romania
Logged Logged
 
The best things are the things for free
 
The administrator has disabled public write access.  
Go to top