Results 1 to 10 of 10

pretty looking url in blog posts

This is a discussion on pretty looking url in blog posts within the Troubleshooting forums, part of the vBSEO SEO Plugin category; You know the thing I mean. When you put a URL in a post it comes up as the title ...

  1. #1
    Member
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times

    Question pretty looking url in blog posts

    You know the thing I mean. When you put a URL in a post it comes up as the title of the page. If you put the url in a new blog article it stays as a URL.

    Why is this?

    How can I change it on my forum blog so that the title gets written in place of the URL ?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    please try this modification (it will be included in the next vBSEO version):
    1. add new plugin in vB admincp:
    hookname: blog_fpdata_presave
    code:
    PHP Code:
    if(defined('VBSEO_ENABLED'))
    vbseo_complete_sec('blog_fpdata_presave'); 
    2. modify functions_vbseo_hook.php file:
    FIND:
    PHP Code:
    $clean_redir = ($sec == 'newpost_process') || ($sec == 'postdata_presave'
    REPLACE WITH:
    PHP Code:
        $clean_redir = ($sec == 'newpost_process') || ($sec == 'postdata_presave') || ($sec == 'blog_fpdata_presave'); 

    FIND:
    PHP Code:
        $newpost_name = (($sec == 'newpost_process') || ($sec == 'newpost_complete')) ? 'newpost' 'edit'
    REPLACE WITH:
    PHP Code:
        $newpost_name 
            (
    $sec == 'blog_fpdata_presave') ? 'blog' : ( (($sec == 'newpost_process') || ($sec == 'newpost_complete')) ? 'newpost' 'edit' ); 

  3. #3
    Member
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times
    Hi Oleg,

    I've created a new plugin under the product VBSEO with the hook location blog_fpdata_presave
    I've then modified functions_vbseo_hook.php as instructed. Still no joy at present. Can you advise further?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Please try to use "blog_data_start" hook instead of "blog_fpdata_presave" (both in admincp and file modification).

  5. #5
    Member
    Real Name
    Optrex
    Join Date
    Sep 2006
    Location
    UK
    Posts
    64
    Liked
    0 times
    Hi Oleg,

    I've changed the hook location to blog_data_start, as suggested. It seems to be randowm know in what it changes. Some URL's have changed to their page title and some have not.

    I hope the feedback helps

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Is there a way to reproduce it consistently (it seems to work fine for me so far) - may be specific URL included in a message?

  7. #7
    Member
    Real Name
    BotMan
    Join Date
    Jan 2008
    Posts
    34
    Liked
    0 times
    Blog Entries
    2
    I would like to see this work also, any way to get screenshots of the admincp?

    I think that is where I am failing I do not fully understand where to make this hook hook up to or under I shoudl say,,,

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You should open vB admincp->Plugins & Products->Add New Plugin. Select "blog_data_start" for "Hook Location", define any title and enter the code specified above for "Plugin PHP Code" input field, then save it.

  9. #9
    Member
    Real Name
    BotMan
    Join Date
    Jan 2008
    Posts
    34
    Liked
    0 times
    Blog Entries
    2
    I have used this now for a while and I forgot to tell you Thank you Oleg, sorry about that. It is working and I thank you for your support!

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You are welcome

Similar Threads

  1. FlyffWorld.com - Pretty Damn Large Forum, Testing VBSEO
    By Tor in forum Analysis: Traffic & SERPS
    Replies: 12
    Last Post: 02-15-2008, 10:01 AM
  2. Pretty old ... green one says Hello :)
    By matyjasz in forum Introduce Yourself
    Replies: 2
    Last Post: 09-29-2007, 09:14 PM
  3. Yahoo's pretty active, but no love
    By COlson87 in forum Analysis: Traffic & SERPS
    Replies: 5
    Last Post: 07-14-2006, 08:04 AM
  4. I thought this was pretty funny
    By BamaStangGuy in forum Analysis: Traffic & SERPS
    Replies: 2
    Last Post: 05-31-2006, 01:00 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •