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?
Re:SEO for fireboard still not answered (1 viewing) (1) Guest
Go to bottom Favoured: 5
TOPIC: Re:SEO for fireboard still not answered
#55754
Re:For J1.5 3 Months, 3 Weeks ago  
kingBT wrote:
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


Thx a lot!

Can this be taken AS-IS or does it require further work?
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1212
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.  
#55755
Re:For J1.5 3 Months, 3 Weeks ago  
AS-IS... BUT I`ll make improvements if I learn more...
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.  
#55757
Re:For J1.5 3 Months, 3 Weeks ago  
kingBT wrote:
AS-IS... BUT I`ll make improvements if I learn more...

Perfect! Thx a lot. This is the last 'new feature' I will commit.

Any bugs you find and are able to fix during the RC1 period can easily by made.

Thx!
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1212
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.  
#55758
Re:SEO for fireboard still not answered 3 Months, 3 Weeks ago  
ok dumb question, but is this for joomla 1.0x or just j1.5
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.  
#55759
Re:SEO for fireboard still not answered 3 Months, 3 Weeks ago  
amorosso wrote:
ok dumb question, but is this for joomla 1.0x or just j1.5

Both and will be in the 1.0.5RC1 build
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1212
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.  
#55924
Re:SEO for fireboard still not answered 3 Months, 3 Weeks ago  
rickert wrote:
how about this:

Code:

//set page title if on Mambo 4.5.2+

// 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 PAGETITLE
   // Filter Re: from the subject of the first message on the page
   $metasubj = str_replace("Re:","",$fmessage->subject);

   //Set pagetitle with subject followed by sitename
   $mainframe->setPageTitleAlias($metasubj. ' - ' . $GLOBALS['mosConfig_sitename']);

   // 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));

   // Set description to stripped subject and messagetext
   $mainframe->addMetaTag( 'description' , $metasubj . ' - ' . $metapost);

   //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);

   //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));
}



By the way:

The setPageTitleAlias function is a function I created earlier on for my Joomla content
It simply sets the pagetitle to the string that is passed (in stead of adding the sitename in front like setpagetitle does). I copied and modified setpagetitle (from joomla.php). Maybe you should solve this in another way.

Code:

// 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; 
    } 
}



@rickert:

I like your solution overall. Clean design and good filtering. However it does not work with J1.5 and I simply don't have the time to rework this at this time for RC1.

@kingBT:

Took you solution for now but did some cleanup around J1.5 detection. While it works, it creates some not so nice Descriptions and duplication. It keep the Meta unique at the cost of duplicate content inside the description and keyword section, As it uses the subject over and over in view.php

I have to do some more testing, but will most likely have to make more changes to this. Nothing ever comes easy - does it?
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1212
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.  
#56245
Re:SEO for fireboard still not answered 3 Months, 3 Weeks ago  
@fxstein
rickert`s solution is the best for posts in view.php but needs to be rewriten to filter tags, ilegal caracters and I think it would take to much time. This solution would be one for FB 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
 
The best things are the things for free
 
The administrator has disabled public write access.  
#60249
Re:SEO for fireboard still not answered 1 Month, 3 Weeks ago  
did this fix get put into RC-1? as my site just got indexed and all my meta descriptions are the meta description of my main site still.

I am using SH404SEF RC-1 and J1.5.6







Support_Forum
Hydroxy Technologies Corporation announces production to begin in china. " Hydroxy Technologies Corporation has acquired an interest in a manufacturing ...
www.viecofuel.com/Support_Forum/?catid=5&func=credits - 16k - Cached - Similar pages - Note this

1_Welcome_New_Members_-_Who_I_Am | New_Members
- Oct 12
Vancouver Island ECO Fuel, Your Canadian Source for HHO Hydrogen On Demand Systems. Proud Dealer of Hydroxy Technologies Corporation and their Alexis Cell.
www.viecofuel.com/New_Members/1_Welcome_...bers_-_Who_I_Am.html - 26k - Cached - Similar pages - Note this

5_Remack_Boosters_loves_the_VMU | General_Disscussion
Vancouver Island ECO Fuel, Your Canadian Source for HHO Hydrogen On Demand Systems. Proud Dealer of Hydroxy Technologies Corporation and their Alexis Cell.
www.viecofuel.com/General_Disscussion/5_...s_loves_the_VMU.html - 30k - Cached - Similar pages - Note this
colinjlyon (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/10/14 05:25 By colinjlyon.
 
The administrator has disabled public write access.  
#60399
Re:SEO for fireboard still not answered 1 Month, 2 Weeks ago  
The meta description for posts is build like this:
site name description - post title - post reply title etc.
I realised that the best solution is to heve only the first 100-200 caracters from post in the post meta description.

rickert solution is great but must be written for FB 1.0.5+
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.  
#60419
Re:SEO for fireboard still not answered 1 Month, 2 Weeks ago  
well if you go to this post at joomseo, they have done it but have not answered how to do it. i cant seem to figure it out in their configuration but i do have joomseo running and it no workey like their site.

i realize the meta information for the title is drawn from the post, but i want the meta "description" and "keywords" to be comprised from the message text in the first post of the topic that the user starts.

here is my post from joomseo, but still check it out.

did you ever figure this one out? im having troubles with trying to get the _meta_ de_script_ion to _link_ to the message text in the post. it seems to be working on this site, if you view the html on this page in the head you will notice

Code: :


meta content="I have just upgraded to fire board 1. 0.
3. Everything seems okay. However, the headings in each forum
have changed. Whereas they used to show the..."
name="description"




that's the string of text in the first post....
colinjlyon (User)
Junior Boarder
Posts: 36
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top