Search Results for 'test'
-
Search Results
-
Hi all,
I’ve been doing a test run today to import my old phpBB board to bbpress, and it worked surprisingly well (as in: the whole process finished without hanging).
In the end, though, I do have a number of problems, and I was wondering if anyone doing a similar import was able to solve them.
– The old board has thousands of registered users (many of them spammers :/ ), and I didn’t want to clutter my WordPress install with all those accounts, especially since it’s a multisite install and I’m mainly migrating the board for archiving purposes. So I didn’t check the “import user accounts” box, but now all user names are just “Anonymous”. Any way to migrate the user names without the accounts?
– It seems like quoted posts are broken, as the “bbcode_quote” tag isn’t applied where it should be.
– Smilies aren’t imported properly. The relative path to the smilies is lost, and when there’s more than one smiley in a row, only the first one has an image tag.
– [img] tags aren’t being properly converted either. Or rather the conversion seems to work ok, but after the actual link, the [img] code, which bbpress can’t read, is retained for some reason.
– Like I said, overall conversion seemed to work well, but cluttered the error log with hundreds of these messages:
PHP Warning: Trying to access array offset on value of type bool in /wp-content/plugins/bbpress/includes/admin/parser.php on line 1289
Anything to worry about?
– I understand that no attachments are imported by default, but maybe someone found a workaround?
Thanks!
I cannot subscribe to group forums.
When clicking “subscribe”, nothing happens.
I created a private test forum. In this test forum, subscribe works just fine, i.e. the link changes to “unsubscribe”.https://metaphorum.org
WP 6.7.2
Astra, Astra Pro. I did not try with a standard theme because it works on my test forum.
bbpress: 2.6.12
BuddyPress: 14.3.4Hi, I’ve recently installed bbpress for a new site and am currently setting it up. I’ve encountered a problem which is that none of my forum pages are showing the title.
I’m using the Astra theme and title show on my other webpages, so I don’t believe I have it disabled anywhere, which means I can’t figure out why it’s hidden!
I have bbstylepack and can’t find anything there for showing/hiding titles (I’ve hidden the breadcrumbs, but that’s not what I’m meaning).
This is my forum page (you can click into the test forums and test topics and see there are no titles on any of the pages)
https://www.triptathlon.com/forums/But you can see on my holding pages there are titles; for example:
https://www.triptathlon.com/shop-2/
https://www.triptathlon.com/groups/Any idea why the page titles are displaying on my pages but not my forum pages? It makes things hard to follow without the title there, particularly for topic pages. All I can think is there’s something somewhere hiding in the settings for my theme, but the only places I’ve found have the page titles set to show….
This has worked for many years and just now it screwed up.
I attach an image. The box where you point to the image appears. I go and get the image and in the box appears there has been a critical error on this website.
bbPpress Version 2.6.12
Latest WP
bbPress Enable TinyMCE Visual Tab Version 1.0.1Thanks if anyone knows about this. Searching this, there are hundreds of support requests all over the place for a ‘critical error on this website’, but it only here that it appears. The rest of the site functions normally.
Perhaps someone will find it useful. This code does not load the system and saves the result in temporary storage.
// Function to fetch the latest image from a topic async function fetchLatestImageFromTopic(topicUrl) { // Check if there is cached data and if it is fresh let cachedData = localStorage.getItem('latestImageData'); let cachedTimestamp = localStorage.getItem('latestImageTimestamp'); const cacheLifetime = 24 * 60 * 60 * 1000; // 24 hours // If there is cached data and it's fresh, display it if (cachedData && cachedTimestamp && (Date.now() - cachedTimestamp < cacheLifetime)) { document.getElementById('latest-image-container').innerHTML = cachedData; return; } // Request to the server to get the topic data try { const response = await fetch(topicUrl); if (!response.ok) throw new Error('Page load error'); const text = await response.text(); const parser = new DOMParser(); const doc = parser.parseFromString(text, 'text/html'); // Extract all replies in the topic const replies = Array.from(doc.querySelectorAll('.bbp-reply')); let latestImage = null; let latestDate = 0; let heading = ''; let description = ''; // Loop through all replies and find the freshest image for (let reply of replies) { const postDate = new Date(reply.querySelector('.bbp-post-meta .bbp-post-date').textContent).getTime(); const img = reply.querySelector('img'); if (img && postDate > latestDate) { latestImage = img; latestDate = postDate; heading = reply.querySelector('h3') ? reply.querySelector('h3').innerText : ''; description = reply.textContent.trim().replace(heading, '').trim(); } } // If an image is found, create HTML content if (latestImage) { const imgSrc = latestImage.getAttribute('src'); const imgAlt = latestImage.getAttribute('alt') || ''; const outputHtml = <div style="text-align: center;"> ${heading ? <code><h3>${heading}</h3></code> : ''} <img src="${imgSrc}" alt="${imgAlt}" /> ${description ? <code><p>${description}</p></code> : ''} </div> ; // Save the data in local storage localStorage.setItem('latestImageData', outputHtml); localStorage.setItem('latestImageTimestamp', Date.now()); // Display the result on the page document.getElementById('latest-image-container').innerHTML = outputHtml; } else { document.getElementById('latest-image-container').innerHTML = '<p>No images found.</p>'; } } catch (error) { console.error('Error:', error); } } // Call the function with the topic URL fetchLatestImageFromTopic('https://www - yours - topic');
How This Code Works:
Cache Check:First, we check if there is any cached data in localStorage.
If the data exists and is still fresh (within the last 24 hours), we display it on the page.
Server Request:
If there is no cache or it’s outdated, we send an AJAX request to the server to retrieve the topic data.
We only need to parse the HTML content to extract images and publication dates.
Finding the Freshest Image:
We loop through all the replies and extract the image and publication date.
If the date of the current reply is more recent than the previous one, we update the image and data.
Caching the Result:
After finding the freshest image and associated content, we save the result in localStorage so we don’t need to make repeated requests.
Displaying the Result:
We display the result on the page, including the image, heading (if available), and description.
Where to Place This Code?
HTML: Insert this code within a <script> block on the page where you want to display the image.I was trying to use the Latest Activity (style pack) Widget with a specific Forum Id in a sidebar and in a custom widget area. The problem I ran into was that the options to customize the widget in the custom widget area will not open up. I did also try and use the Widget multiple times within the sidebar and ran into the same issue.
My WordPress and bbpress are current, I also have the style pack plugin. My site is built using Divi.
https://iowaminiz.com/membership-forum/Is there a conflict if the Latest Activity Widget is used more than once and is there a workaround?
Thanks.
Hello. I run a site where I use the theme Blog FSE. BBPress does not work with this theme. It works fine with Twentysixteen, for example. Is there any way to solve this so that BBPress can work with Blog FSE so I don’t have to change themes? My knowledge of PHP is low and I have a visual impairment and therefore it is quite difficult to work too much in PHP code.
Latest WordPress and BBPress versions.
Advanced Editor Tools + BBPRESS
I’ve read this topic, but it’s still unresolved, so I’d like to ask a new question here.
I’m currently installing and testing it, but it won’t load in the BBPRESS text area. Is there a way to set it?
I’m looking to add a creative “broken screen” effect to my bbPress forum. The idea is to make it look like the screen is cracked, either when someone first enters the forum or after performing a specific action.
I’m unsure of the best way to achieve this. Should I use custom CSS or JavaScript to create the effect? Or is there a plugin or feature in bbPress that could help with this?
Any suggestions will be very helpful for me.
Example page: Broken Screen
I’ve explored custom CSS and JavaScript options, and also checked out the following resources:
https://wordpress.org/plugins/Even after going through these, I’m still unsure of the best way to achieve the effect.