| Author |
Message |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Sun Nov 25, 2007 2:12 pm |
|
Well i already tried 1 but its a bit of a pain in the ass, especially within larger threads where you have to search for the post that contains the 'offtopic' subject.
And with 'pull back' you mean, only use the original thread post subject for the title for every post? If so, yes that would be a better solution i think. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Sun Nov 25, 2007 2:33 pm |
|
this might help get you closer:
| Code: |
if ($p) {
$p = intval($p);
$sql = 'SELECT a.post_subject AS post_subject, a.post_id AS post_id, post_text, topic_id FROM ' . $prefix . '_bbposts_text a, '
. $prefix . '_bbposts b WHERE a.post_id = b.post_id AND a.post_id=\'' . $p . '\'';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$asDTText['subject'] = $row['post_subject'];
$asDTText['text'] = $row['post_text'];
$sql = 'SELECT post_subject FROM ' . $prefix . '_bbposts_text a, ' . $prefix . '_bbposts b '
. 'WHERE a.post_id = b.post_id AND b.topic_id = \'' . intval($row['topic_id']) . '\' '
. 'ORDER BY a.post_id ASC LIMIT 1';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$asDTText['subject'] = $row['post_subject'];
$newpagetitle = $asDTText['subject'] . $dt_sDelim . $asDTText['text'];
|
But, it is not returning exactly what you are wanting in terms of format. Just look at how I got rid of the "empty subject" code and added a bit more to the original SQL to pull in the original thread topic. |
| |
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Fri Nov 30, 2007 5:15 pm |
|
Eya, sorry for the late reply Montego, hadnt got time to look at it.
I now applied it and it works perfectly, a big thnx for that
Although i dont really understand those sql queries/code.
I did add in a new, how do you call this, global function(?) and 'steal' of the phpBB bull title
$dt_bull = ' • ';
Just to seperate the domain title from everything in front of it, example;
Forums • website name or
Topic name - Forum section • website name |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Fri Nov 30, 2007 7:13 pm |
|
Wouldn't you have just done:
$dt_sDelim = ' • ';
? |
| |
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Sat Dec 01, 2007 7:08 am |
|
Yep could have done that but I use the ' - ' as well, im only using that 'bullit' to seperate the sitename from the rest, just as a little visual cue no SEO practise whatsoever
Edit: And i couldnt find anything about the 'dynamic descriptions', cause you mentioned it was on nukeSEO somewhere, is there a discussion topic about it? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Sat Dec 01, 2007 9:48 am |
|
No, what I was saying is that it makes much more sense to do both dynamic page titles AND the dynamic meta tags at the same time and within the nukeSEO tool. Kguske agrees and intends on creating that in his next version. It has not been released yet... not even sure its status at the moment. |
| |
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Sat Dec 01, 2007 11:20 am |
|
Aah ke, thought it was in full development
But will there be a combined version as with 'dynamic titles' or isnt that decided yet? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Sat Dec 01, 2007 11:33 am |
|
| warren-the-ape wrote: |
Aah ke, thought it was in full development
But will there be a combined version as with 'dynamic titles' or isnt that decided yet? |
That is exactly what I mean. Both of these great tools ( ) deal with HTML that is between the HEAD tags and also are for SEO purposes, so it just makes sense to me (and others - see the poll at nukeSEO.com). |
| |
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Mon Dec 03, 2007 4:57 am |
|
Hmm i cant find that poll on nukeSEO do you have a link? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Mon Dec 03, 2007 7:14 am |
|
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Mon Dec 03, 2007 10:20 am |
|
thnx, heheheh indeed, its a pretty lost battle
Dont even know what i should expect from 'Additional search engines (submission, results)' ? (is that the sitemap stuff, im not into nukeseo's package at all).
Btw what metadata are you personally interested in? I can imagine that the 'description' -tag has your highest (and perhaps only) interest?
I think my next (personal) step on our forum would be to update/upgrade the semantics, adding a few various heading tags to the frontpage and forum and perhaps write a new 'site navigation' -block, replacing the standard junk for more appropriate semantic (ul/li) markup. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Mon Dec 03, 2007 9:57 pm |
|
I am specifically interested in dynamic page titles, meta keywords and meta description.
IMO, what is absolutely essential about nukeSEO, is the ability to dynamically generate a Google sitemap. Simply give the sitemap URL to Google's sitemap tool and it will pull the latest-and-greatest automatically even as your site's content evolves. It really helps with the crawling of your site.
Since I did ShortLinks, DynamicTitles and nukeSEO all at the same time, it is hard to tell exactly what pulled me up from 1 to 4 in PageRank but I was, for the longest time, in no-man's SEO land... There are things yet that I can do to help even further I feel, but those are to come... |
| |
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Tue Dec 04, 2007 6:15 am |
|
Well, "Content is King" as some wise folks say So it might as well be your content responsible for it instead of other improvements.
Although i do believe that dynamic titles and structured links help supporting that content I think i'll soon have a look at that sitemap add-on, and give it a go.
But wouldnt the 'meta keywords' be a bit useless? I mean most big search engines like google just ignore them, and i could also imagine that it would be hard to auto-generate keywords for a specific page? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 952
|
Posted:
Tue Dec 04, 2007 7:34 am |
|
| warren-the-ape wrote: |
| But wouldnt the 'meta keywords' be a bit useless? I mean most big search engines like google just ignore them |
Do you have specific references that I could review with proof of this? Thx.
| Quote: |
| i could also imagine that it would be hard to auto-generate keywords for a specific page? |
It can be done and a few folks have actually incorporated the concept into a form of shortlinks, but I would need to go back and dig up the references. (Can't remember if it was in these forums or Raven's where the thread was.) |
| |
|
|
 |
warren-the-ape
Newbie


Joined: Nov 16, 2007
Posts: 17
|
Posted:
Tue Dec 04, 2007 10:41 am |
|
|
|
 |
|
|