vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Page 2 of 4
FirstFirst 1 2 3 4 LastLast
Results 16 to 30 of 47

two simple template mods for vBulletin SEO

This is a discussion on two simple template mods for vBulletin SEO within the Template Modifications forums, part of the vBulletin SEO Discussion category; For similar threads, set both to YES : AdminCP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread ...

  1. #16
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    For similar threads, set both to YES:

    AdminCP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread Search

    AdminCP -> vBulletin Options -> Thread Display Options (showthread) -> Show Similar Threads

  2. #17
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,737
    Blog Entries
    1

    Re: two simple template mods for vBulletin SEO

    Quote Originally Posted by ConqSoft
    For similar threads, set both to YES:

    AdminCP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread Search

    AdminCP -> vBulletin Options -> Thread Display Options (showthread) -> Show Similar Threads
    I have that done. Here is what I was referring to..
    Here's another:

    Turn on the "similar threads" function. Good SEO and natural keyword inclusion is just one of the reasons to use it. You can also insert the thread title again here. Instead of the standard "Similar Threads" heading, just change it to: "Similar Threads for: title-of-thread".
    I am trying to figure out how to get my thread title down there by "similar threads". I know it shouldnt be very difficult, but everywhere I try to insert it, I simply get the word "array" showing up.

  3. #18
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    Edit template: showthread_similarthreads

    Look for:
    Code:
    $vbphrase[similar_threads]
    
    Replace with:
    Code:
    $vbphrase[similar_threads] for: $thread[title]
    

  4. #19
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,737
    Blog Entries
    1

    Re: two simple template mods for vBulletin SEO

    many thanks. I was in the right area, but I was simply adding $thread.

    Oh well, thats an improvement on my knowledge of this stuff from a few months ago. Before, I never would have been able to even find the right template.

  5. #20
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    Related to this. Does anyone have any ideas on a query to update all post titles to be "RE: [thread title]" if they don't already have a title?

    EDIT: Got it: two simple template mods for vBulletin SEO
    Last edited by Keith Cohen; 12-26-2005 at 10:48 PM.

  6. #21
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,737
    Blog Entries
    1

    Re: two simple template mods for vBulletin SEO

    Quote Originally Posted by ConqSoft
    Related to this. Does anyone have any ideas on a query to update all post titles to be "RE: [thread title]" if they don't already have a title?
    I would like to see that as well.

    Also have another question. For threads with multiple pages, would it be beneficial to take the code that says "page 2,3,4,etc...."?

  7. #22
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    Ok, I got it.

    *** WARNING: USE AT YOUR OWN RISK. MAKE A BACKUP OF YOUR DATABASE FIRST. MAYBE TWO TO BE SAFE. NOT RESPONSIBLE. ***

    This worked for me to update all the old post titles to "Re: [thread title]" if they were currently blank. If you have a lot of posts this can take a while to execute. I have about 365k posts and it took about 10 minutes.

    The query:
    Code:
    UPDATE post SET post.title = concat("Re: ",(SELECT thread.title FROM thread WHERE thread.threadid = post.threadid)) WHERE post.title = ""
    
    After thinking about this more, I think this may not work well for sites that use Threaded or Hybrid modes, since the post title will be set to "Re: [thread title]", when it may be in response to a specific post in the thread and that post may have a different title. I haven't investigated this; I'm just theorizing.

    I ONLY use linear mode on my site anyway, so it doesn't affect me.
    Last edited by Keith Cohen; 12-27-2005 at 02:39 PM.

  8. #23
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    13,923

    Re: two simple template mods for vBulletin SEO

    Quote Originally Posted by ConqSoft
    *** WARNING: USE AT YOUR OWN RISK. MAKE A BACKUP OF YOUR DATABASE FIRST. MAYBE TWO TO BE SAFE. NOT RESPONSIBLE. ***

    This worked for me to update all the old post titles to "Re: [thread title]" if they were currently blank. If you have a lot of posts this can take a while to execute. I have about 365k posts and it took about 10 minutes.

    The query:
    Code:
    UPDATE post SET post.title = concat("Re: ",(SELECT thread.title FROM thread WHERE thread.threadid = post.threadid)) WHERE post.title = ""
    
    Great idea! I'll do this soon.
    Juan Muriente / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  9. #24
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550

    Re: two simple template mods for vBulletin SEO

    Perhaps it is better to implement a template mod instead of changing the database content.

    Edit postbit template
    FIND:
    <if condition="$show['messageicon'] OR $post['title']">
    <!-- icon and title -->
    <div class="smallfont">
    <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
    <if condition="$post['title']"><strong>$post[title]</strong></if>
    </div>
    <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
    <!-- / icon and title -->
    </if>
    REPLACE WITH:
    <!-- icon and title -->
    <div class="smallfont">
    <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
    <if condition="$post['title']"><strong>$post[title]</strong><else /><strong>Re: $thread[title]</strong></if>
    </div>
    <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
    <!-- / icon and title -->
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  10. #25
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    Wouldn't that also require additional edits to make it show on the Printable version and the Archive version?

    Plus, I think the database method needs to be used to make Threaded and Hybrid modes look correct doesn't it? (Otherwise, wouldn't Jelsoft have used the same method, instead of using additional database space to store the post titles?)

  11. #26
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,550

    Re: two simple template mods for vBulletin SEO

    Yes, sure - further template modifications will be required for this.

    What I meant is that it will be harder to perforum "undo" or "modify" after the database modification.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  12. #27
    Senior Member
    Real Name
    FAA Zooman
    Join Date
    Dec 2005
    Location
    Cumbria, UK
    Posts
    208

    Re: two simple template mods for vBulletin SEO

    An error occurred while attempting to execute your query. The following information was returned.
    error number: 1146
    error desc: Table 'hfuk.post' doesn't exist
    OK it needs my database prefix in it but where?

  13. #28
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    Replace [tableprefix] with your table prefix:
    Code:
    UPDATE [tableprefix]post SET [tableprefix]post.title = concat("Re: ",(SELECT [tableprefix]thread.title FROM [tableprefix]thread WHERE [tableprefix]thread.threadid = [tableprefix]post.threadid)) WHERE [tableprefix]post.title = ""
    

  14. #29
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147

    Re: two simple template mods for vBulletin SEO

    Also, see my edit to my original query post regarding Threaded and Hybrid modes.

  15. #30
    Senior Member
    Real Name
    FAA Zooman
    Join Date
    Dec 2005
    Location
    Cumbria, UK
    Posts
    208

    Re: two simple template mods for vBulletin SEO

    As i to only use linear too I will retry

Similar Threads

  1. Replies: 20
    Last Post: 05-28-2006, 02:51 PM
  2. Replies: 2
    Last Post: 11-20-2005, 06:40 PM
  3. the archives SEO
    By acers in forum General Discussion
    Replies: 11
    Last Post: 07-29-2005, 01:18 AM