Page 1 of 1
Append Session ID
Posted: Sat Feb 19, 2005 7:41 am
by Darksat
Anyone here know how do I apply append_sid() to this view private messages URL in this script.
http://www.aaitechnologies.co.uk/chat/v ... .php?t=164
Posted: Sat Feb 19, 2005 8:04 am
by feyd
just a thought: call append_sid() with the url.
Posted: Sat Feb 19, 2005 8:36 am
by jonemo
somewhere you must have
Code: Select all
$templaet_assign_vars(
'SOMETHING' => 'privmsg.php?folder=inbox'
)
where SOMETHING is something else
replace it with
Code: Select all
$templaet_assign_vars(
'SOMETHING' => append_sid('privmsg.php?folder=inbox')
)
no, i have not read the whole page, but this should roughly be it.
Posted: Sat Feb 19, 2005 8:37 am
by Darksat
Ok, where exactly would that be.
its a standard PHPBB install, (well actually it has quite a few mods)
isnt there any way to paste it ito the existing code.
Posted: Sat Feb 19, 2005 1:29 pm
by jonemo
show us the existing code and we will help you, you just show the template. that's worth nochting. somewhere in the includes/page_header.php in your php installation you will find
'U_PRIVATEMSGS_POPUP' =>
show me whats written around the place where you find this.
Posted: Mon Feb 21, 2005 9:48 am
by Darksat
Code: Select all
'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),
'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'),
'U_SEARCH' => append_sid('search.'.$phpEx),
Posted: Mon Feb 21, 2005 10:30 am
by Darksat
I think I have fixed it.
Will putting
in this line, eg
Code: Select all
<a class="mainmenu" href=forum/{U_PRIVATEMSGS}/><B>Private Message</B>
append a session id to the link.
I think it will.
Posted: Mon Feb 21, 2005 10:37 am
by feyd
if that is located in the template data, it should be processed, yes.
I would suggest placing quotes around the value of the attribute though.