Smileys & Attachments option not showing - Really could use a bit of help please

Started by MartyHunter, June 21, 2023, 10:17:57 AM

Previous topic - Next topic

MartyHunter

Sorry am not sure if I understood your first question. Equivalent content type? It looks like a link to a specific post/reply under a topic (as opposed to just being a link to a topic). Is that what you meant?

.htaccess file contents are:

RewriteEngine On
RewriteBase /
Redirect /index.htm /forum.thehunterslife.com/

# SMF rewrites for vBulletin after vBSEO removed (including forum directory)
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)#[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?showthread.php$ https://forum.thehunterslife.com/index.php?topic=%1.msg%2#msg%2 [NE,L,R=301]

RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?showthread.php$ https://forum.thehunterslife.com/index.php?topic=%1.0 [L,R=301]

RewriteCond %{QUERY_STRING} ^f=([0-9]+)&page=[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^f=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?forumdisplay.php$ https://forum.thehunterslife.com/index.php?board=%1.0 [L,R=301]

RewriteCond %{QUERY_STRING} ^do=newthread.f=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?newthread.php$ https://forum.thehunterslife.com/index.php?board=%1.0 [L,R=301]


# SMF rewrite for cms author
RewriteCond %{QUERY_STRING} ^author/([0-9]+)-.*/?$ [OR]
RewriteCond %{QUERY_STRING} ^r=author/([0-9]+)-.*/?$
RewriteRule ^cms/list.php$ https://forum.thehunterslife.com/index.php?action=profile;u=%1? [L,R=301]

# SMF rewrite for calendar
RewriteRule ^calendar\.php https://forum.thehunterslife.com/index.php?action=calendar? [L,R=301]

# Rewrite all non-existent directories and folders to https://forum.thehunterslife.com/index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ https://forum.thehunterslife.com/index.php? [QSD,L,R=301]

<FilesMatch \.php$>
        SetHandler proxy:fcgi://hqb1ejsk2lyo-php73
</FilesMatch>

Re the error referring to line 55 of that file on server (init.php). Lines 54 and 55 read as follows:

// initialize the data registry
$vbulletin =& new vB_Registry();

thanks for trying to help, really annoying this as people often use these links to specific posts to get related content on complex topics, so they are darn useful!

GL700Wing

Quote from: MartyHunter on September 18, 2023, 11:18:30 AMSorry am not sure if I understood your first question. Equivalent content type? It looks like a link to a specific post/reply under a topic (as opposed to just being a link to a topic). Is that what you meant?
OK - I've worked out that you need to add another rule to your .htaccess file:

Find:
# SMF rewrites for vBulletin after vBSEO removed (including forum directory)Add After:
RewriteCond %{QUERY_STRING} ^p=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?showthread.php$ https://forum.thehunterslife.com/index.php?msg=%1 [L,R=301]


QuoteRe the error referring to line 55 of that file on server (init.php). Lines 54 and 55 read as follows:
This indicates to me that you still have the vBulletin forum software installed and running and in situations like this it only creates confusion.  To ensure that SMF is the only active forum software I'd suggest that you either take a backup of the vBulletin  'forums' directory/folder and then delete it, or rename it to something else (eg, 'vb.forums').
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

MartyHunter

Thank you.

I did as you said, I deleted the old "forums" subfolder which I had forgotten was sat on the server taking up space (1.4GB!) and I added those two lines of code into the .htaccess file.

That second example link which wasnt working is now working so I am hoping that's solved it. I will have a check around for any others but fingers crossed it's sorted.

One point I maybe should have mentioned (maybe not relevant if your instructions above fixed it) is that the new forum is at forums.domain.com, yet the .htaccess file is in the public_html folder (which in my mind is not in the right place to impact on the files in the forums.domain.com folder. But I am probably talking trash as it seems to work so far!
Thanks again. I will make as solved and re-open if I notice any more problems.

GL700Wing

Quote from: MartyHunter on September 20, 2023, 09:37:55 PMI did as you said, I deleted the old "forums" subfolder which I had forgotten was sat on the server taking up space (1.4GB!) and I added those two lines of code into the .htaccess file.
Great - you've got some more disk space and hopefully solved the last redirection issue.

QuoteThat second example link which wasnt working is now working so I am hoping that's solved it. I will have a check around for any others but fingers crossed it's sorted.
I actually checked the forum I migrated from vBulletin a few years ago and even though I couldn't find any links like the one you had that wasn't working I was able to work out the extra rule you needed.

That said, I did find a few links that weren't redirecting correctly and I had to change one of the existing rules - for your site you need to change the following:
From:
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)#[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?showthread.php$ https://forum.thehunterslife.com/index.php?topic=%1.msg%2#msg%2 [NE,L,R=301]
To:
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)#[0-9]+(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&page=[0-9]+&p=([0-9]+)(.*)?/?$ [OR]
RewriteCond %{QUERY_STRING} ^t=([0-9]+)&p=([0-9]+)(.*)?/?$
RewriteRule ^(forums)?/?showthread.php$ https://forum.thehunterslife.com/index.php?topic=%1.msg%2#msg%2 [NE,L,R=301]

QuoteOne point I maybe should have mentioned (maybe not relevant if your instructions above fixed it) is that the new forum is at forums.domain.com, yet the .htaccess file is in the public_html folder (which in my mind is not in the right place to impact on the files in the forums.domain.com folder.
This is where this .htacecss file is on my migrated forum and it has always worked so I figure it's in the right location for my situation. If you want you could move it to sub-domain folder/directory and see if it still works there ...

QuoteThanks again. I will make as solved and re-open if I notice any more problems.
You're welcome ...
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

MartyHunter

Thanks, you're a diamond. I've made that adjustment too and those two links are still working so hopefully all will be well. Will post back if any further problems are spotted. Extremely grateful for the help here.

Advertisement: