Creating phpBB3 cookies ?
Posted September 29th 2012, 3:17pm
Is there a function or a way to create cookies in phpbb3 ?
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Creating phpBB3 cookies ?
Posted September 29th 2012, 3:36pm
phpBB3 uses the PHP setcookie() function: http://us2.php.net/manual/en/function.setcookie.php
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Creating phpBB3 cookies ?
Posted September 29th 2012, 6:16pm
Dion said:
phpBB3 uses the PHP setcookie() function: http://us2.php.net/manual/en/function.setcookie.php

is there any way to use it in javascript ?
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Creating phpBB3 cookies ?
Posted September 29th 2012, 6:44pm
Sure! All the standard javascript methods for cookies will work in phpBB3 templates. In fact, if you check your cookies for this site, you'll find one named ddbb3. That's a cookie I am setting through javascript in the templates to save the font size and profile position when viewing posts.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357

Who is online

Users browsing this forum: No registered users and 0 guests