This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

login name in submitreview & submitstory


avatar
fwebz 0
From: -
login name in submitreview & submitstory

submitstory and submitreview is for members only in my site i use javascript from "comments_post_form"

now i want when user submit a review or news "Your name:"

value get the member login name so member don't need to enter his name evrey tim he post new review or news...

i try $insert[login_name] as value for input author....but

$insert[login_name] not work in "submit_review" TEMPLATE any tips Smiling Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: login name in submitreview & submitstory
avatar
OP 0
From: -
login name in submitreview & submitstory

thank you Philipp Smiling Face
1 Re: login name in submitreview & submitstory
avatar
Administrator
1340
From: Vienna, Austria
login name in submitreview & submitstory

Add the following line after global $insert; in the submit_news or submit_review template:
$userdata = explode (":!:", base64_decode($_COOKIE[esselbachst]));


$userdata[0] contains now the username. You can use this variable everywhere in the template.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.