Imagehosting image thumbnails disappear after refreshing the page in Forums - javascript

I'm creating forum on my site and I'm facing an issue while posting bb image code links.
This was also the issue when I installed phpbb forum.
When I create a new thread consisting of images from other image-hosting sites, the thumbnails of images are showing on the forum only for the first time. As soon as I refresh the page, the thumbnails are replaced with broken image icon. But the page still redirects to the correct image-hosting page.
This is how it looks after refreshing the page:
This is what I get after Inspect element.
In the above image the first anchor tag is working but in the second anchor tag it added "pagespeed.ic.vCpxnjVn6L.webp".
Thanks

Found the solution.
Added the following code in .htaccess file in root directory.
ModPagespeed off
ModPagespeedDisallow http://sitename/*

Related

How to load the previous URL in HTML when creating a website using HTML files?

I have edited a website template that contains HTML files. However, when I click the back button in any browser, I get a blank white page. I see the previous URL in the browser, but it doesn't fully load until I press F5. What specific code can I add to my HTML that will load the previous page? Would I add this code to each HTML file? As I am new to HTML, a very specific answer would be very much appreciated. Thank you!

Download property in HTML tag not working with BLOB file

I am working on a project on my website Click here to go to project site,
but after inputting all the needed information, the download element does not work. Here is the code for the download link: The download may work on this website, but it doesn't work on my website, which is strange.
<a id="down" href="blob:http://veryblankwhitepaper.weebly.com/8d869eaa-5bce-4326-9dff-dd0b50286a84" download="filename.txt">DOWNLOAD</a>
For some reason, when I click this, nothing happens.
If you want, you can see the javascript here.
Scroll down to the scripts within the "/text-file-generator.html"
(I put all the scripts for my pages in one file)
Edit1: If I take the element out of the div that it is in, it seems to work, but I want it to still be in the div.
Your scripts change the link too quickly. Try adding a setTimeout function for half a second when you click the link. This should allow it to download.

joomla! + roksprocket multilanguage issue

Hi and thanks in advance for any help.
I'm working on a multilanguage joomla! website that runs some roksprocket mosaic modules positioned right after single article content.
When I navigate the site by using the default language everything works great, but when I switch to a non-default language I experience URL problems with content loaded inside the roksprocket module by the "load more" button or by the filtering tags.
The first block of visible items, loaded with the page, link to the correct articles. But when I filter the items or click the load more button, the new loaded articles links are not working. Default language tags are automatically added to the url of the links. So I get:
www.mysiteurl.com/default_language_tag/alias_of_the_current_page_tag/category_tag/article_tag
This happens both with and without SEF URLS activated.
I would try to avoid these added tags by cutting them out from the html with javascript, but I don't know what is triggered after the loading of the new content.
Any suggestion?
Thanks a lot for your answers.

How to direct main page (index) from sub-folder page (image out)

My photo gallery site has thousands of html pages, most of them are only with large photos. That is when clicking small thumb, opens a new window with large photos.
This large view html pages has no navigations. I want to add 'home' and 'back to artist' navigation in these html pages.
www.mysite.tld/gallery/artist/name/event/(here stored large images and its html pages)
this same structure goes for other artist names too.
I am using dreamweaver templates. In template, to go back folder, I added..
Back to Main
..(here artist main folder)/(artist index).html
but when saving this template as html to different folder, this "../index.html" changes to "../../../index.html" which goes to main website index page :/
I can simply type ../index.html in one page but the site has many artist folders with same structure.
so how to direct/link to artist page from its sub-folder html pages. Using javascript or any scripts?
Really sorry for this big message. Please dont down-vote because of my stupid question. Thank You.
EDIT :
I tried History back() Method but that's not working because if users come from search engine, there's no history to go back to main artist page.
In simple. You click a page from google and in that landed page (large image here), you need a navigation to visit the main gallery page with other images in small thumbs or to say event gallery page (which present in up-directory in my site). So to navigate to main gallery page, I am stuck here for "how to". May be I need to do in php or something :/
One way of resolving this is to use absolute paths instead of relative paths. Absolute paths start with /.
I'd suggest adding Dreamweaver as a tag to your question, to get the attention of Dreamweaver users who may recognise your situation and can help.

Shadowbox.js downloads html files instead of displaying them in an iframe

I'm pulling my hair out over this one. I'm using a very simple version of shadowbox - it works correctly when I'm using images but when I use a URL to display in the modal, it will open a blank shadowbox and then download the html link in the href as a file to my downloads folder.
<a class="galleryItem" rel="shadowbox[Gallery];height=165;width=640;player=iframe;" href="/Bios/MR.html" title="MR">
And the simple init is just this:
$(document).ready(function() {
Shadowbox.init({
player: "iframe",
handleOversize: "drag"
});
});
I've tried so many variations of the options at this point and I'm stuck.
This one has been resolved - I left out one detail I didn't think was relevant at the time but I was on an O365 environment and changing the file extensions from .html to .aspx fixed the issue. I'm answering my own question because I hope this can help someone else.

Categories

Resources