Recent Topics

How do i send logged in user id in back office widget settings for disp=useritems

Started by on Oct 08, 2018 – Contents updated: Oct 10, 2018

Oct 08, 2018 11:41    

Hello,
Am creating my post section in forum to allow logged in user access post created by them. Using widget , am adding menu , link type selected "Any URL", in URL sending[ base_ur]l/?disp=useritems&user_ID=??.

  1. Here how do set logged in user id.
    2 . Also i selected "Hightlight current" but it is not highlighting the selected menu
    3 .And how do i restrict this menu only for logged in user.
    Please help

Thanks
Kalavathi

Oct 08, 2018 21:23

Am creating my post section in forum to allow logged in user access post created by them. Using widget , am adding menu , link type selected "Any URL", in URL sending[ base_ur]l/?disp=useritems&user_ID=??.

Not sure what you mean but user permissions control precisely which post can be viewed, does this not work in the forum skin?

Oct 09, 2018 04:52

i think you have not understood my question correctly. am trying to upload image which support my question but it upload is failed . Do we have any criteria to upload image?
Let me put in simple way consider am a forum user i have created few topics my agenda is to provide menu say "My post" when user clicks that list out the topics created by them.

Oct 09, 2018 11:24

OK think I've got it. Will respond soon :)

Hope this helps

As for failure to upload images you would have to give lots more detail. If you still have problems instigate a new post starting with your version number

Oct 09, 2018 11:48

https://b2evolution.net/?disp=useritems&user_ID=??? for this request disp and user_ID are input parameters for user_ID we need to pass logged in user id that is challenge here.
Please look into below steps you may get clear understanding of my question
login to back office
forums->widgets->menu->add widget->Menu Item Widgets->Menu link
you will get form : in param block
Link Type: ->Any url
URL : https://b2evolution.net/?disp=useritems&user_ID=??? (THIS WILL BE THE INPUT FOR URL FIELD)
My question here how do i pass logged in user id in this set up.
Attached screenshot for your reference

Thanks

Oct 09, 2018 15:37

Working on it :) for hours :(

Oct 09, 2018 22:08

@kalavathi We are going to make a change to allow to call ?disp=useritems without a user_ID param and in that case it will display the posts of the current user.

Oct 09, 2018 22:33

Hi @fplanque

Is it not possible to pass a parameter value to [&user_ID=] other than a number?

Oct 09, 2018 23:06

Yes but it's harder and creates a less clean URL.

Oct 10, 2018 12:37

I am not sure of what you mean. Please make an effort to write in proper English.

You will have to upgrade to b2evo 6.10.4 or 6.10.5... (not sure yet in which version the new feature will be available)..

This post has 5 feedbacks awaiting moderation...


Form is loading...

free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.