Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2014, 09:30 AM
toon79 toon79 is offline
 
Join Date: Jun 2007
Location: Sheffield UK
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VBSEO Uninstall and Linked Images

I had a blog for quite some year which I used to post some of the more interesting on-topic stuff posted at the forum, as the images were linked there since the removal of VBSEO none of the images will appear.

http://illustration-design.blogspot....strations.html

Is there a rewrite anyone knows of that I could add to the htaccess file that would relink all these images, bearing in mind there's probable 1000's over the year, relinking each one would take a long time.

Is there a simpler solution anyone here knows about?

Thanks
Reply With Quote
  #2  
Old 04-13-2014, 02:09 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I recall, I believe dbseo has the ability to rewrite attachments as well which appears to be where these images are from. You should be able to do this with their free version.
Reply With Quote
  #3  
Old 04-14-2014, 07:23 AM
toon79 toon79 is offline
 
Join Date: Jun 2007
Location: Sheffield UK
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried to install it and after the .htaccess change the whole site gives a 404 even the home page domain.
Reply With Quote
  #4  
Old 04-14-2014, 08:54 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the current link to the images in that blog post? Is the attachment id in that link vbseo generated?
Reply With Quote
  #5  
Old 04-14-2014, 09:06 AM
toon79 toon79 is offline
 
Join Date: Jun 2007
Location: Sheffield UK
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The link is

estetica-design-forum.com/attachments/illustration-graphic-design/8394d1343305301-rubens-scarelli-nike-illustrations-dfe8307a9fec2b0aac7124108c69f9b8.jpg

--------------- Added [DATE]1397470069[/DATE] at [TIME]1397470069[/TIME] ---------------

Actual image is now located at:

estetica-design-forum.com/attachment.php?attachmentid=8395&d=1343305326
Reply With Quote
  #6  
Old 04-14-2014, 09:56 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add this to the Rewrite Rules in your .htaccess:
Code:
RewriteRule ^attachments/(.*)/([0-9]*)d([0-9]*)(.*)$ http://www.estetica-design-forum.com/attachment.php?attachmentid=$2&d=$3 [R=301,L]
Reply With Quote
Благодарность от:
toon79
  #7  
Old 04-14-2014, 10:20 AM
toon79 toon79 is offline
 
Join Date: Jun 2007
Location: Sheffield UK
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the fix that's great. I don't suppose you know how to get the members to rewrite?

They were estetica-design-forum.com/members/craig7777.html

But now they are now:

estetica-design-forum.com/member.php?16270-Craig7777
Reply With Quote
  #8  
Old 04-14-2014, 10:36 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since you chose not to show the userid in the vBSEO url, that's not easily done. All you have to go on in the URL is the Username. You'd need to write a php script to query the database for the userid to go with the username. Then have the .htaccess redirect to that file, get the userid from the database, and then redirect to the correct URL.
Reply With Quote
  #9  
Old 04-14-2014, 10:46 AM
toon79 toon79 is offline
 
Join Date: Jun 2007
Location: Sheffield UK
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
Since you chose not to show the userid in the vBSEO url, that's not easily done. All you have to go on in the URL is the Username. You'd need to write a php script to query the database for the userid to go with the username. Then have the .htaccess redirect to that file, get the userid from the database, and then redirect to the correct URL.
Ah thanks, I understand a little better now.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13218 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete