App development - Lobby functionality optimisation Programming Mobile Development by manmohan419 I'm currently working on enhancing the user experience for the <snipped> app, and I've run into a bit of a roadblock. I'm trying to optimize the game lobby to ensure smooth navigation and quick loading times, especially as our user base continues to grow. However, I'm finding that even with various optimizations in place, there's still a … Display specific html tag on specific pages Programming Web Development by ianhaneybs I want to display different html tags on the php page they are visiting, for example on the homepage and the computer shop basildon page I want the html tag `<section class="testimonal-two pt-0">` and on all other pages I want the code `<section class="testimonal-two">` Below is the code I have so far and it works… 'We'll Know We Have AGI When >50% of the GDP is Generated by AI' Community Center by Johannes C. **Physicist and former NASA-engineer Anthony Scondary shares his vision of an AGI-powered future that enables a better quality of life for all people.** ![agi-talks-as.jpg](https://static.daniweb.com/attachments/4/7db39c590186c17e12db71989a532436.jpg) ## About Anthony Scodary ## ![anthony-scodary.jpg](https://static.daniweb.com/… Re: Do email clients respect CSP? Programming Web Development by Dani I'm also realizing that my question is specific to CORS, not CSP, but I can make the presumption (or shall I never assume?) that they are both either supported or not supported. Re: App development - Lobby functionality optimisation Programming Mobile Development by Salem I suppose the first thing to answer would be whether the bottleneck is client or server side. Re: App development - Lobby functionality optimisation Programming Mobile Development by Dani Better caching strategies? I don't have any experience with app development, but for web development, I use Redis for these kinds of things. Re: App development - Lobby functionality optimisation Programming Mobile Development by toneewa What I like to do is write code, even if it's not working or even correct syntax. This will help illustrate what the idea or thought is. Please paint us some sort of pseudo code of your design. Not optimized: class App { function start() { showLoadingScreen() loadLobbyDataFromServer() // This might take … Re: Display specific html tag on specific pages Programming Web Development by ianhaneybs Just got it working with the following code <?php $currentpage = $_SERVER['REQUEST_URI']; if($currentpage=="/" || $currentpage=="/index.php" || $currentpage=="/index" || $currentpage=="" || $currentpage=="/computer-shop-basildon.php" || $currentpage=="/… Re: Display specific html tag on specific pages Programming Web Development by Dani Glad you got it figured out. Here is a cleaner way of presenting the above code so it doesn't look so messy: <?php // Retrieve the current page $currentpage = $_SERVER['REQUEST_URI']; // Most pages have this CSS class $class = 'testimonial-two'; // Array of pages $array = array( '/',… Re: Display specific html tag on specific pages Programming Web Development by ianhaneybs Thank you so much for the code Dani, that does look a lot cleaner and better than what I have This is me venting Community Center Meta DaniWeb by Dani This is definitely not a targeted attack at *anyone*. Please take it just as me having a bad day and venting. I'm kinda tired of people constantly telling me that I'm the reason that DaniWeb traffic has tanked over the years. And if only I had done this differently. Or done that differently. Or listened to members more about this. Or listened to… Re: This is me venting Community Center Meta DaniWeb by Dani > what was missing was a programming hub of news / forum / interviews I have always been a strong proponent of having editorial (news, tutorials, interviews, etc.) complement the user-generated forum discussions. In the past, well over 50% of our gross revenue from advertising went straight into paying for staff writers. IMHO we used to have … What's the most unexpected hobby or interest you have outside of coding? Community Center Geeks' Lounge by Dani I asked ChatGPT for some interesting conversation starters and it suggested this. However, the more I think about it, the less I can come up with something! I enjoy walks on nature trails, but hiking is *huge* amongst techies in the Bay Area. My husband plays DDR regularly for exercise, but that has a cult following amongst nerdy people. He enjoys … Trying to create a lan-to-lan vpn between two differents networks Hardware and Software Networking by seb_081 Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in … HTML Image Embedding Issue Programming Web Development by khan zain "I'm attempting to embed an image in my HTML page, but it's not showing up. I've checked the file path, and it seems correct. Below is the code I'm using. Any insights on why the image isn't displaying as expected?"" <!DOCTYPE html> <html lang=""en""> <head> <meta… Re: What's the most unexpected hobby or interest you have outside of coding? Community Center Geeks' Lounge by Dani > Dani I believe that the LLM that you asked to give you ideas about a topic , was correct about the engagement such a topic would have , but not how it would work in the real world. These kind of topics are great to engage people but not to interact , and interaction is what forums is about. I assume that what you're getting at is that, … HTML Navigation Menu Alignment Issue Programming Web Development by khan zain "I'm working on a navigation menu for my HTML page, but it's not behaving as expected. The links aren't aligning properly, and the styling seems a bit wonky. I've included the code below. Can anyone help me figure out what's causing this navigation headache? This my Code <!DOCTYPE html> <html lang="&… Hi everyone, I'm prestigetinting Community Center Say Hello! by prestigetinting Hello Re: Hi everyone, I'm prestigetinting Community Center Say Hello! by Reverend Jim Hello, and welcome to Daniweb. Hi everyone, I'm jacobss Community Center Say Hello! by jacobss hey! Re: Hi everyone, I'm jacobss Community Center Say Hello! by Reverend Jim Hello, and welcome to Daniweb. Re: Hi everyone, I'm jacobss Community Center Say Hello! by Dani Hello and welcome to DaniWeb! Thanks for joining. Hi everyone, I'm Danish_17 Community Center Say Hello! by Danish_17 Source Re: Hi everyone, I'm Danish_17 Community Center Say Hello! by pritaeas Welcome. Re: Hi everyone, I'm jacobss Community Center Say Hello! by TG Hunter Hello)) Hi everyone, I'm clarawilliams Community Center Say Hello! by clarawilliams As a seasoned marketing professional with a keen eye for technology trends, I excel in amplifying the presence and profitability of custom software development companies, and Artificial Intelligence development companies. With a solid background in digital marketing strategies and a deep understanding of the tech landscape, Clara crafts compelling … Re: Hi everyone, I'm clarawilliams Community Center Say Hello! by pritaeas Welcome. Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner The way I see it is that the email address in question is one inputted by the submitter. What if this question is not asked ? So I'm seeing if in the back end PHP file, the email address in question is not anything entered by submitter but simply one with the correct @site.com ending. That way should slip "under the radar" and submitted … Re: Video is not the main content of the page Digital Media Digital Marketing Search Engine Strategies by Dani Yes, if the page does not contain video content, then remove `itemscope itemtype="http://schema.org/VideoObject"` I'm so sorry for not responding sooner. I just saw your post now. Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim Hey David, You should not pretend to send an email from `x@gmail.com` as this is spoofing. I forward all forms from a website from a generic email such as `forms@` or `enquiry@` (`@yourlocaldomain.com`) Emails have basic checks done on them, which is why your spoofing fails, you are trying to say `X@gmail.com` sent an email but gmail didn'…