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?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Re:SEO for fireboard still not answered (1 viewing) (1) Guest
Go to bottom Favoured: 5
TOPIC: Re:SEO for fireboard still not answered
#32563
Re:SEO for fireboard still not answered 12 Months ago  
Glad to hear it worked for you. I updated all my code postings in this thread with the latest version of code and how-to so people won't be confused. Overwrite your english.ignore.php with the version I created for much better keyword generation.

If there's interest out there, I can post a version of this code for the main category page?
gomjabbar (User)
Senior Boarder
Posts: 112
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Gossper - One Forum to Rule Them All
 
The administrator has disabled public write access.  
#32565
Re:SEO for fireboard still not answered 12 Months ago  
Just a case of bad copy/paste on my part, sorry. Here's the modified function (also corrected above):

[code:1] function appendMetaTag( $name, $content ) {
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
for ($i = 0; $i _head['meta'][$i][0] == $name) $exist = 1;
}
if (!$exist)
$this->addMetaTag( $name , $content );
}[/code:1]
gomjabbar (User)
Senior Boarder
Posts: 112
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/28 19:49 By gomjabbar.
 
Gossper - One Forum to Rule Them All
 
The administrator has disabled public write access.  
#32568
Re:SEO for fireboard still not answered 12 Months ago  
Hmmmm I'm still having some issue.

Can you show which part of the existing code posted bellow i'm supposed to remove and replace with yours?

[code:1]function appendMetaTag( $name, $content ) {
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
for ($i = 0; $i _head['meta'][$i][0] == $name) {
$content = trim( htmlspecialchars( $content ) );
if ( $content ) {
if ( !$this->_head['meta'][$i][1] ) {
$this->_head['meta'][$i][1] = $content ;
} else {
$this->_head['meta'][$i][1] = $content .', '. $this->_head['meta'][$i][1];
}
}
return;
}
}
$this->addMetaTag( $name , $content );
}[/code:1]

Thank you again
DCB (User)
Junior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#32569
Re:SEO for fireboard still not answered 12 Months ago  
All of this code is the function that needs to be commented out and replaced.
gomjabbar (User)
Senior Boarder
Posts: 112
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Gossper - One Forum to Rule Them All
 
The administrator has disabled public write access.  
#32572
Re:SEO for fireboard still not answered 12 Months ago  
Hmmmmm...that's what I tried and it gives me a blank page.

This is what my code looks like for that section but gives me a blank page:

[code:1]/**
* @param string The value of the name attibute
* @param string The value of the content attibute to append to the existing
*/
function appendMetaTag( $name, $content ) {
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
for ($i = 0; $i _head['meta'][$i][0] == $name) $exist = 1;
}
if (!$exist)
$this->addMetaTag( $name , $content );
}
/**
* Adds a custom html string to the head block
* @param string The html to add to the head
*/[/code:1]
DCB (User)
Junior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/28 20:09 By DCB.
 
The administrator has disabled public write access.  
#32574
Re:SEO for fireboard still not answered 12 Months ago  
OK, I figured it out: bbcode is chewing out a bit of the code and it's infuriating. All code attached in a zip file.
File Attachment:
File Name: Meta_Tags_Mod.zip
File Size: 897
gomjabbar (User)
Senior Boarder
Posts: 112
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/28 20:24 By gomjabbar.
 
Gossper - One Forum to Rule Them All
 
The administrator has disabled public write access.  
#32575
Re:SEO for fireboard still not answered 12 Months ago  
gomjabbar wrote:
Ok, I figured it out: bbcode is chewing out bits of my code. Let's try this again:

function appendMetaTag( $name, $content ) {
$name = trim( htmlspecialchars( $name ) );
$n = count( $this->_head['meta'] );
for ($i = 0; $i _head['meta'][$i][0] == $name) $exist = 1;
}
if (!$exist)
$this->addMetaTag( $name , $content );
}


hmmm that looks like the same code. can you e-mail it to me perhaps since something seems to be lost when posting?
DCB (User)
Junior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/28 20:40 By DCB.
 
The administrator has disabled public write access.  
#32576
Re:SEO for fireboard still not answered 12 Months ago  
gomjabbar wrote:
OK, I figured it out: bbcode is chewing out a bit of the code and it's infuriating. All code attached in a zip file.
File Attachment:
File Name: Meta_Tags_Mod.zip
File Size: 897


Nice,

Any ideas on how to modify titles?

For example my descriptions now look nice an example here:
drinkcraftbeer.com/forum/beer/beer_faq.html

This looks great (obv still need to filter out common words but that's not a big deal)


meta name="description" content="Beer FAQ - Wondering if you guys could help a beer n00b out and also create a pretty cool FAQ.When shopping for a beer I have no idea what I am looking for maybe we could define typically what type of taste what to look for strength good examples of this kind of beer and what not. I think it would be a good thing to have some portions could include I am sure you can expandWhat is a Lager"

meta name="keywords" content="beer, faq, wondering, if, you, guys, could, help, a, beer, n00b, out, also, create, a, pretty, cool, faqwhen, shopping, for, a, beer, i, have, no, idea, what, i, am, looking, for, maybe, we, could, define, typically, what, type, of, taste, what, to, look, for, strength, good, examples, of, this, kind, of, beer, what, not, i, think, it, would, be, a, good, thing, to, have, some, portions, could, include, i, am, sure, you, can, expandwhat, is, a, lager"

This title though:

Drink Craft Beer - Craft Beer Events, Interviews, News, Ratings and Forum - Re:Beer FAQ - Drink Craft Beer

Certainly not a flaw in your code, but it would be great to be able to override that and put in the thread title before the site name or something like that.
DCB (User)
Junior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/28 20:51 By DCB.
 
The administrator has disabled public write access.  
#32580
Re:SEO for fireboard still not answered 12 Months ago  
I'm trying to figure out a way to override the page titling but it's tricky. For now, you can use this 'global' clean-up method:

1. Trim your site title in configuration.php. The shorter, the better.
2. in /com_fireboard/default/view.php replace:
if ($leaf->parent == 0) {
$mainframe->setPageTitle($fmessage->subject . ' - ' . $fbConfig['board_title']);
}

with:

if ($leaf->parent == 0) {
$mainframe->setPageTitle($fmessage->subject);
}

This will reduce clutter. You don't need the board title inside a thread page. Search engines are going to try to match the page content with your title and if your board title says Drunk Craft Beer but the thread is about pale ale, they'll mark you down some. Hope this helps.

Gom
gomjabbar (User)
Senior Boarder
Posts: 112
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Gossper - One Forum to Rule Them All
 
The administrator has disabled public write access.  
#32584
Re:SEO for fireboard still not answered 12 Months ago  
Cool,

We've been trying or best to improve SEO so every tips helps.
DCB (User)
Junior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top