AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Solved] Widget based on conditionals logged in and more than 1 post

3 Posts
2 Users
0 Reactions
1,482 Views
Posts: 13
 saeb
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@saeb)
Eminent Member
Joined: 5 years ago
[#16697]

Looking to use a plugin for the wordpress side that supports conditionals. Plausibly this or similar https://wordpress.org/plugins/if-widget/

Is there a variable for number of user posts? In an ideal world the user would be logged in but also have a minimum of 1 post before the widget would be visible. Wordpress side is no issue but it is the wpforo post count check that I would like to incorporate.

If not, any other ideas. Thanks.


2 Replies
Robert
Posts: 10716
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago

@saeb,

I'm sorry but I don't have any idea for this. I'd suggest you contact the If Widget plugin developers and ask them add some IF statement for wpForo. Here is the PHP script, which returns the number of current login user posts:

WPF()->current_object['user']['posts']

Posts: 13
 saeb
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@saeb)
Eminent Member
Joined: 5 years ago

@robert

Thank you, I appreciate the feedback.


Share: