hi everyone
i want to customize new thread and new reply so it would be a pop up window and add only simple fuctions
can anyone help me?
anyone?
can someone help me????
You can add simple modification to your new reply and new thread links like below:
<a href="javascript:window.open('<link for new thread/new reply','title for new therad/new reply','width=500,height=500')"><Your New Thread/New Reply text></a>
or do you want to remove all the stuff (header & footer) and only have new thread/reply section ?
(2013-07-04, 03:36 PM)ksr Wrote: [ -> ]You can add simple modification to your new reply and new thread links like below:
<a href="javascript:window.open('<link for new thread/new reply','title for new therad/new reply','width=500,height=500')"><Your New Thread/New Reply text></a>
or do you want to remove all the stuff (header & footer) and only have new thread/reply section ?
where i have to add the code?
Forum Display Templates >>
forumdisplay_newthread template code can be similar to below
<a href="newthread.php?fid={$fid}"><img src="{$theme['imglangdir']}/newthread.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>
you can replace above content with code like below
<a href="javascript:window.open('newthread.php?fid={$fid}','{$lang->post_thread}','width=500,height=500')"><img src="{$theme['imglangdir']}/newthread.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>
similarly in
Show Thread Templates >>
showthread_newreply template
you can replace code like below
<a href="newreply.php?tid={$tid}"><img src="{$theme['imglangdir']}/newreply.gif" alt="{$lang->post_reply_img}" title="{$lang->post_reply_img}" /></a>
with below
<a href="javascript:window.open('newreply.php?tid={$tid}','{$lang->post_reply_img}','width=500,height=500')"><img src="{$theme['imglangdir']}/newreply.gif" alt="{$lang->post_reply_img}" title="{$lang->post_reply_img}" /></a>
(2013-07-04, 06:26 PM)last_angel Wrote: [ -> ] (2013-07-04, 03:36 PM)ksr Wrote: [ -> ]You can add simple modification to your new reply and new thread links like below:
<a href="javascript:window.open('<link for new thread/new reply','title for new therad/new reply','width=500,height=500')"><Your New Thread/New Reply text></a>
or do you want to remove all the stuff (header & footer) and only have new thread/reply section ?
where i have to add the code?
Go to your theme's templates --> Forum DisplayTemplates ---> forum display_newthread
BTW Good job .m. thanks for time. (Pls: I'm on mobile.)
(2013-07-04, 06:42 PM).m. Wrote: [ -> ]Forum Display Templates >> forumdisplay_newthread template code can be similar to below
<a href="newthread.php?fid={$fid}"><img src="{$theme['imglangdir']}/newthread.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>
you can replace above content with code like below
<a href="javascript:window.open('newthread.php?fid={$fid}','{$lang->post_thread}','width=500,height=500')"><img src="{$theme['imglangdir']}/newthread.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>
similarly in
Show Thread Templates >> showthread_newreply template
you can replace code like below
<a href="newreply.php?tid={$tid}"><img src="{$theme['imglangdir']}/newreply.gif" alt="{$lang->post_reply_img}" title="{$lang->post_reply_img}" /></a>
with below
<a href="javascript:window.open('newreply.php?tid={$tid}','{$lang->post_reply_img}','width=500,height=500')"><img src="{$theme['imglangdir']}/newreply.gif" alt="{$lang->post_reply_img}" title="{$lang->post_reply_img}" /></a>
i want also to remove the footer and header just the newthread and this to be certain dimensions not movable
(2013-07-04, 07:00 PM)last_angel Wrote: [ -> ]i want also to remove the footer and header just the newthread and this to be certain dimensions not movable
So for that,
Goto
New Thread Templates=>
newthread.
Find
{$header}
and delete that line.
In the same template find
{$footer}
and delete that line.