vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Attachments in blogs

This is a discussion on Attachments in blogs within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I just noticed after trying to upload an attachment in a blog entry that i get an invalid URL for ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-30-2008, 11:30 AM
Junior Member
 
Real Name: Jason
Join Date: Jan 2008
Posts: 3
Attachments in blogs

I just noticed after trying to upload an attachment in a blog entry that i get an invalid URL for the attachment.

I have the exact issue noted at Attachments in blogs - where it looks to have been fixed (i see it is working on this board anyway)

I have the latest version of vBSEO, vBulletin (Beta 4) and the latest version of vBulletin Blogs.

Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-30-2008, 12:45 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
Please try to modify functions_vbseo.php file:
FIND:
PHP Code:
$find_user_ids$find_blog_ids$find_blogcat_ids 
REPLACE WITH:
PHP Code:
$find_user_ids$find_blog_ids$find_blogcat_ids$find_blogatt_ids 
FIND:
PHP Code:
$find_user_ids $find_blog_ids $find_blogcat_ids 
REPLACE WITH:
PHP Code:
$find_user_ids $find_blog_ids $find_blogcat_ids $find_blogatt_ids 
FIND:
PHP Code:
$find_blog_ids $matches[1]; 
EDIT ADD ABOVE (not "replace with"):
PHP Code:
            if(preg_match_all('#'.$matchpre2.'blog_attachment\.'.VBSEO_VB_EXT.'\?[^"]*?attachmentid=(\d+)#'$newtext$matches))
                
$find_blogatt_ids $matches[1]; 
FIND:
PHP Code:
$g_cache['battach'][$aid] = $att
ADD BELOW:
PHP Code:
            if($find_blogatt_ids)
                
vbseo_get_blogatt_info($find_blogatt_ids); 
and functions_vbseo_vb.php file

FIND:
PHP Code:
function vbseo_get_blog_cats($ids
ADD ABOVE:
PHP Code:
function vbseo_get_blogatt_info($ids)
{
    global 
$g_cache;

    if (!
is_array($ids)) $ids = array($ids);
    
$lookupids = array();
    foreach(
$ids as $id)
    {
        if (isset(
$g_cache['battach'][$id])) continue;
        
$lookupids[$id]++;
    }

    if (empty(
$lookupids))
        return;

    
$db vbseo_get_db();
    
$db->vbseodb_select_db();
    
$rid $db->vbseodb_query($q="
            select attachmentid, blogid, userid, filename, dateline
            from " 
vbseo_tbl_prefix('blog') . "blog_attachment
            where
                attachmentid in (" 
join(','array_keys($lookupids)) . ")
        "
);

    if (
$rid)
    {
        while (
$bl = @$db->funcs['fetch_assoc']($rid))
        
$g_cache['battach'][$bl['attachmentid']] = $bl;
        
$db->vbseodb_free_result($rid);
    }
    return;


EDIT
in functions_vbseo_createurl.php file:
FIND:
PHP Code:
$blogid $g_cache['battach'][$attid]['blogid']; 
add below:
PHP Code:
        if(!$blogid)
            return 
''
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.


Last edited by Oleg Ignatiuk; 01-30-2008 at 03:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-30-2008, 01:15 PM
Junior Member
 
Real Name: Jason
Join Date: Jan 2008
Posts: 3
Thanks for your speedy reply Oleg, i made the adjustments you suggested but unfortunately it did not fix the problem.

The attachment issue remains unchanged, and now a new problem has surfaced.

Individual blog posts are no longer accessible, after following your edits the URLs are now
Code:
%user_name%/-a.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-30-2008, 01:51 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
Can you provide ftp/admincp access via support ticket for troubleshooting?
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 01-30-2008, 03:03 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
An update: one of the code edits should be "added above" (not "replace with").
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 01-30-2008, 03:54 PM
Junior Member
 
Real Name: Jason
Join Date: Jan 2008
Posts: 3
Thanks for your assistance, all the links appear to be working fine now.

Just one final tiny thing, when you upload an attachment to a blog post it shows
Code:
Array (     [0] => 12 )
(where 12 is the attachment number) at the top of the window. Is there a quick change i can do to tidy that up?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 01-30-2008, 04:02 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,449
Blog Entries: 1
That should be fixed now.
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
change /forums/blogs to /blogs magmf URL Rewrite Settings 31 02-08-2008 11:20 AM
Blog rewrite error 500 with CRR blogs.php => /blogs/ class101 Bug Reporting 5 12-24-2007 03:17 PM
attachments woodysfj40 Troubleshooting 1 12-16-2007 07:11 PM
Attachments in blogs Elmer Bug Reporting 5 11-28-2007 08:21 PM
How to get /blogs instead of /forum/blogs Doug Nelson General Discussion 2 11-20-2007 01:04 AM


All times are GMT -4. The time now is 01:12 PM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.