XF 1.3 Images not showing

Bob_R

Active member
Today (mid afternoon EST) I moved my Xenforo from the /forums to the root.

I did the rewrite in the .htaccess

I'm noticing many images aren't showing. If you right click the image URL is blahblahblah.com/forums

???

Did I miss something in my move. Or, does it take time to index, etc...

Thanks!

EDIT: After the above, I installed a portal. So, that's the home page and the forums are showing /forums but it's actually in the root.
 
Last edited:
I just thought of something. When I was at vBulletin I was using the add-on/mod that would import the pictures from let's say google and make the URL .../forums/images/imported/thename.jpg

So, I had the imported directory under the images directory within my forums folder.

Can I just create a directory under the XenForo root and place the directory and folders there?
 
a picture is worth a thousand words......

2.jpg


The above image URL should be http://www.talkclassicrock.com/images/imported/2009/06/2.jpg

If you click the link above you'll see the pic.

But, on my site it renders http://www.talkclassicrock.com/forums/images/imported/2009/06/2.jpg

The "forums" subdirectory shows even though I moved xenforo to the root and there is no such directory in my FTP structure.
 
Did you change your forum URL in your admn panel? I know thats a simple question but usually the solution is simple. I would not edit your htaccess.
 
Image tags in posts always use an absolute URL. You would need to use a rewrite to change those URLs up a level (which is presumably the same rewrite that you would use for the forums themselves, though I don't see that working).
 
Did you change your forum URL in your admn panel? I know thats a simple question but usually the solution is simple. I would not edit your htaccess.

See screenshots.

I have the board URL with no /forums (it's installed in the root)
 

Attachments

  • Screen shot 2014-06-28 at 9.03.09 AM.webp
    Screen shot 2014-06-28 at 9.03.09 AM.webp
    10.6 KB · Views: 8
  • Screen shot 2014-06-28 at 9.03.00 AM.webp
    Screen shot 2014-06-28 at 9.03.00 AM.webp
    6 KB · Views: 9
Image tags in posts always use an absolute URL. You would need to use a rewrite to change those URLs up a level (which is presumably the same rewrite that you would use for the forums themselves, though I don't see that working).

This is the rewrite added in the .htaccess of the root

PHP:
RewriteRule ^forums/(.*)?$ /$1 [R=301,L]

Installed XenForo in root. There is no longer a forums directory.

Please advise.
 
Last edited:
You could do it with a simple query, just replacing http://www.talkclassicrock.com/forums/images with http://www.talkclassicrock.com/images.

There are several examples posted in that thread how to do those queries on the post table.
 
It's 3:40 PM here feels like midnight.

Tried many different variations to the query all return Missing value in form!

Any ideas on a solution to the Missing value in form! error?

Can Kier's add-on be used for my dilemma and what would be the parameters (what would be the inputted fields)?

TY!
 
Try this:
Code:
UPDATE xf_post SET message = REPLACE(message,'talkclassicrock.com/forums/images','talkclassicrock.com/images');

Take a backup first.
 
I got it dude! Long story short you have to select/highlight the text and wish for the best. Eventually it works.

Thank you and everyone else in this thread for your assistance!
 
Back
Top Bottom