DrogoNevets
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Header image by sessionThat’s fair thank you.
Whilst I am an experienced web dev, i am more JS (Full stack) rather than PHP so quite new to WP.
I have settled for my solution, minus the starting of the session, which i have done for me using a plugin I found that is somewhat more complex and handles options better (not that I need it to for my [i]very[/li] simple use case)
Thanks again everyone!
Forum: Developing with WordPress
In reply to: Header image by sessionReading more into this, what are people’s thoughts on this solution?
Forum: Developing with WordPress
In reply to: Header image by sessionNah, WP doesn’t do sessions by default
But we get qa cookie called
wordpress_810f47eaf36d5ac275fd99257b16f899
which presumably is the WP session?I was hoping to not have to create a session manually
Forum: Developing with WordPress
In reply to: Header image by sessionThat is correct. Just making sure tehre wasn’t a built in function somewhere for it.
Thanks
Forum: Developing with WordPress
In reply to: Header image by sessionI’ve created my own function to do it the themes functions.php
Can someone tell me if I have done it in a really awful way etc please?
function get_session_header_image() { if(!session_id()) { session_start(); } if(!ISSET($_SESSION['header_image'])) { $_SESSION['header_image'] = get_header_image(); } echo $_SESSION['header_image']; }
- This reply was modified 6 years, 5 months ago by DrogoNevets.
Forum: Developing with WordPress
In reply to: Header image by sessionI have modified the theme to my own ends.
this is a question around the header image functionality that comes within wordpress not the theme.
the function call to set the image is
<?php header_image(); ?>
What I am after is getting that to return the same value per session, if it requires an override of the function that is fine, just wondering if this is built in functionality/best place to add it, etc
Drogo
brilliant, thanks
that is correct, I have posted here: https://usersultra.com/support/forums/topic/protect-postpage/
Hi I have switched to the twenty fifteen theme (only default one i had installed) and it still is not working
please feel free to use the URL provided previously
Cheers
Steve
Hi,
Just installed curl and all is working, except the post/page protection…..an unauthenticated user can still see the postexample: https://www.saxophony.org/member-posts
Any ideas?
Steve
any way of getting around the “facebook needs curl” issue for testing? will install it as want social login, but at work and dont have the key file to ssh to the box
Never mind, sorted it, had to enable it in settings – just testing now
Hi that’s brilliant,
I have just updated but I cannot see how to set my individual pages as protected?Steve
Forum: Fixing WordPress
In reply to: Sub-sitebut what does the URL of going to said category page look like?
i want it to be nice and user firendlyIE https://www.ariderstale.co.uk/trip
rather than
https://www.ariderstale.co.uk/?category=2Forum: Fixing WordPress
In reply to: Sub-siteno not at all
in fact i dont want it to be
i want the trip only pages to show just the trip posts
but the main blog to show all the trip posts as well as all my other postsbut i want to access the trip side of things from a seperate URL (I dont have access to the routing rules though)
does that make sense??