Twittext.com – blogging platform for Twitter users

This project has great potential to be a source of high traffic from Google and Twitter and user-written content on various topics in many languages

What is this project about?
With Twittext you can publish text, write your blog, or just read texts from people you follow on Twitter. In just three clicks (login, new text, publish), you can publish your text on the web and share it on Twitter. Screenshots from the application can be seen at this link…

Twittext.com – blogging platform for Twitter users

how to get users with usermeta include array of an array

i have a user_meta for users that them is array like below:

user_saved_posts = [31289,31482,27641] 

and i want to get users that their user_meta include an item of an array like below:

goal_posts = [31289,31422,77641,41289,21482,17641] 

if user have an item of goal_posts array must returned them. i use below code but this code worked if i have a value for search in user_meta

$  args = [         'meta_query' => [             [                 [                     'key' => 'saved_posts',                     'value' => sprintf(':"%s";', 31289),                     'compare' => 'LIKE'                 ]             ]         ]     ];     get_users($  args); 

Redirect users from admin pages the optimal solution

On two different sites I use two somewhat different solutions. Are they different in terms of security and performance? Which is better? Are there even better ones?

Solution 1.

/** Redirect users from admin pages if not administrators **/ add_action( 'admin_init', function() {     if( ! current_user_can( 'manage_options' ) && ( ! wp_doing_ajax() ) ) {         wp_safe_redirect( site_url() );         exit;     } } ); 

Solution 2.

/** Redirect users from admin pages if not administrators **/ add_action( 'admin_init', function() {     if( ! in_array( 'administrator', wp_get_current_user()->roles ) ) {         wp_redirect( get_bloginfo( 'wpurl' ) );         exit;     } } ); 

In Multisite the users profile picture keeps disappearing for “the other site”

I have the following setup: Site A with Domain A and Site B with Domain B

Site A is set to be the main site.

The users’ profile pictures have all been set via Site A and therefore Domain A. They do show under "Network Admin > Users", but they don’t show under "Site B > Users".

If I now set an image for profile XYZ under "Site B > Users", the URL for that profile pic changes to Domain B in the users table and there is no image anymore displayed for profile XYZ under Network Admin nor under Site A.

Any idea what the issue might be and is there a way around that?

Lock out all WordPress Administrators except two specific users

I used the snippet below to lock out all administrators and editors except myself

if ( is_user_logged_in() ){     $  current_user = wp_get_current_user() ;     if ( in_array( 'administrator', (array) $  current_user->roles ) || in_array( 'editor', (array) $  current_user->roles )) {         if ($  current_user->user_login != 'sheila' ){             wp_logout();             return new WP_Error( 'login_again_please', 'Please log in again' );         }     } } 

When I try to add a second user in the second if statement we are both locked out:

if ( is_user_logged_in() ){     $  current_user = wp_get_current_user() ;     if ( in_array( 'administrator', (array) $  current_user->roles ) || in_array( 'editor', (array) $  current_user->roles )) {         if (($  current_user->user_login != 'john' ) || ($  current_user->user_login != 'sheila' ){             wp_logout();             return new WP_Error( 'login_again_please', 'Please log in again' );         }     } } 

How do I fix the above snippet to allow two administrators/editors with specific usernames to login or can I have an alternative with the same outcome?

❤️‍20% discount(2 users) GSA SER Site Lists❤️‍ / Real-Time – Dropbox Auto-Sync

GSA SER Site List | GSA SER Verified lists

Free Trial Limit has reached. Coupons will be generated for new users

Drop a Message and We will send you an exclusive coupon

First 5 customers(only 2 Users left) => 20% discount

Next 10 customers => 15% discount

Users using our Free trial at this time => 10% discount

Pricing

⚡⚡⚡ Place your Order at https://gsaserlists.com ⚡⚡⚡

Secure Payments Powered by WarriorPlus

Details:

– Folders:

  • All Scraped URLs
  • Low OBL(outbound links<100)
  • Submitted Targets
  • Verified Targets
  • Contextual Targets Added on 11 March. 2021 


– GSA Captcha Breaker Compatible
– Updating in Real-Time Using Dropbox (set once and forget)
– Dedupe Domains (Not URLs!) each 5 Minutes
– .Edu & .Gov Domains Included
– Scraping and Identifying around 1,000,000 Links Each Day

10 March. 2021


18 March. 2021


23 March. 2021

“All Scraped Urls” Folder Details:
UPDATES are Real-Time

Note: ⚡If you are using our site lists, to get higher LPM & VPM, use “All Scraped Urls” and “Submitted Targets” Folders⚡

Currently we are working on Verified Targets and Contextual Targets(Added on 11 March. 2021) to increase the quantity and quality of those links. to get higher LPM & VPM in GSA SER take a look at above Note.

PLEASE SEND US FEEDBACK SO WE CAN IMPROVE THE QUALITY (Number of threads + LPM & VPM Included)

Users (erroneously) type a short URL in the Google search box instead of the address bar. How to make it navigate instead of showing search results?

I’m using a URL shortener to publish pronounceable URLs for my pages so I can tell people something like, "Visit mydomain.com/slug to solve that problem." If people go to the address bar of their browser and enter mydomain.com/slug URL there, then the shortened URL works, and it redirects them to the intended destination page. But if a non-technical user goes to the Google search page and enters mydomain.com/slug into the search box there, apparently, Google apparently isn’t smart enough to recognize that they typed in a URL. It tries instead to search for the URL as keywords and comes back with a list of search results.

When I click "New Tab" in my browser, I know the difference between the address bar and the search box, but many non-technical users don’t, and Google gives the same instructions in both places. Both locations claim to accept both search terms and URLs, but apparently they have different logic for determining which is which. For them to behave differently and not follow the URL when it’s typed into the search box instead of the browser address bar seems to be a fatal flaw in the entire concept of shortened URLs – unless there’s something else I can do to make them work regardless of which field someone types them into. Certainly I can’t be the only one facing this.

What can I do to teach Google that my shortened URL is indeed a URL and when someone types it in the search box, it should go to the place where that URL redirects to?

Monthly summary of active users based on a start/end date roster

I have a table that dictates who was on a project, from a startdate to an enddate. I’d like some help writing a query that will return the number of "active" users at the end of every month, for the past 12 months.

CREATE TABLE `roster` (   `id` int(11) NOT NULL,   `user_id` int(11) DEFAULT NULL,   `project_id` int(11) DEFAULT NULL,   `start_date` datetime NOT NULL,   `end_date` datetime NOT NULL,   `closed_date` datetime DEFAULT NULL,   PRIMARY KEY (`id`) ); 
id  user_id project_id  start_date  end_date    closed_date 1   1   1   2019-05-27 00:00:00 2021-02-01 00:00:00 NULL 2   2   2   2020-05-27 00:00:00 2021-02-01 00:00:00 2020-02-05 00:00:00 3   3   3   2020-05-27 00:00:00 2024-02-01 00:00:00 2020-02-05 00:00:00 

And the result would be something that shows how many distinct users had an active project within each month (only since the start of this year).

So for the dataset above, we can see that all 3 projects were "active" in the month January 2021, because the end date is in the future.

2020-01-31 | 3 

The last bit of complexity is that sometimes a project can be closed before the EndDate and I’d like to exclude any users who’s endDate is in the future but the project has actually closed.

For example in the dataset above, the third project has a end date of Feb 2024, however the project closed in Feb 2021. So technically the person was active in 2021 Jan and Feb, but not March.

p.s Hoping to get an answer in Postgres (I’m using Redshift)

Free❤️‍(1 month access-limited: 2 users left) GSA SER Site Lists/Real-Time Updates/Dropbox Auto-Sync

GSA SER Site List | GSA SER Verified list

❤️‍❤️‍Just another 2 Users can join our 1 month Free Trial. Hurry up…..❤️‍❤️‍

The price after the Trial is $ 24.99/month

3 months Access: $ 69.99

6 months Access: $ 139.99

Hi Guys,
As We are Testing our new scraping system, We want to give Dropbox free access to GSA SER forum`s members.
So if you are interested in checking our site lists which are grouped by Platforms(Using GSA SER Platform Identifier) for free(No joking!) just PM me and send me your Dropbox Email.
I will add your Email in Dropbox in less than 12 hours.

PLEASE SEND US FEEDBACK SO WE CAN IMPROVE THE QUALITY (Number of threads + LPM & VPM Included)

Details:

– Folders:

  • All Scraped URLs
  • Low OBL(outbound links<100)
  • Submitted Targets
  • Verified Targets
  • Contextual Targets Added on 11 March. 2021 

– GSA Captcha Breaker Compatible
– Updating in Real-Time Using Dropbox (set once and forget)
– Dedupe Domains (Not URLs!) each 10 Minutes
– Scraping and Identifying around 1,000,000 Links Each Day

10 March. 2021


18 March. 2021

“All Scraped Urls” Folder Details:
UPDATES are Real-Time

Note: ⚡If you are using our site lists, to get higher LPM & VPM, use “All Scraped Urls” and “Submitted Targets” Folders⚡

Currently we are working on Verified Targets and Contextual Targets(Added on 11 March. 2021) to increase the quantity and quality of those links. So it’s OK if these two folders are small. They will become bigger in two weeks. to get higher LPM & VPM in GSA SER take a look at above Note.

wp_register_script() and wp_register_style() 4th parameter (version) not working for logged out users

I’m enqueuing scripts and styles from functions.php in my custom theme. The 4th parameter is the version number. It’s working only for logged in users.

wp_register_script( 'my-handle', get_stylesheet_directory_uri( __FILE__ ) . '/js/my-script.js', array( '' ), filemtime( get_stylesheet_directory( __FILE__ ) . '/js/my-script.js' ), true ); wp_enqueue_script( 'my-handle' ); 

Logged in:

<script src="https://mysite.com.local/path/to/my-script.js?ver=1614637944" type="text/javascript"></script> 

Logged out:

<script src="https://mercury.photo/wp-content/plugins/instagram-feed/js/sbi-scripts.min.js" id="sb_instagram_scripts-js" type="text/javascript"></script> 

Caching plugin on the live site is LiteSpeed Cache. The local dev site uses no caching. Same output on both sites.