1
tgotch
Newbb "New Topic"
  • 2005/4/7 3:24

  • tgotch

  • Just popping in

  • Posts: 66

  • Since: 2005/1/31


Hi,
Does anyone know if there is a way to have the "new topic" button (or reply button for that matter) appear for unregistered users? Possibly have it re-direct to log-in page. I think it is kinda confusing for a new and/or un-registered user to know how to post a new topic...

2
-DJNZ-
Re: Newbb "New Topic"
  • 2005/4/7 3:36

  • -DJNZ-

  • Just popping in

  • Posts: 30

  • Since: 2005/1/11


You could do it by editing the templates, but the HTML to display the images is generated outside the template so even this is not as easy as it should be.

3
m0nty
Re: Newbb "New Topic"
  • 2005/4/7 4:10

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


open newbb/viewforum.php

find (line 116 or thereabouts):

$xoopsTpl->assign('forum_post_or_register'"");


replace with

$xoopsTpl->assign('forum_post_or_register''.XOOPS_URL.'/user.php?xoops_redirect='.htmlspecialchars($xoopsRequestUri).'">'.$t_new.'');


save & close viewforum.php

open newbb/viewtopic.php

find on line 213 or thereabouts

$show_reg 0;


add below

$t_reply newbb_displayImage($forumImage['t_reply'], _MD_POSTREPLY);


find (on line 222 or thereabouts)

$xoopsTpl->assign('forum_post_or_register''');


replace with

$xoopsTpl->assign('forum_reply''.XOOPS_URL.'/user.php?xoops_redirect='.htmlspecialchars($xoopsRequestUri).'">'.$t_reply.'');
    
$xoopsTpl->assign('forum_post_or_register''.XOOPS_URL.'/user.php?xoops_redirect='.htmlspecialchars($xoopsRequestUri).'">'.$t_new.'');


hope this is what you mean..

remember to make a backup of those files before editing just in case

4
tgotch
Re: Newbb "New Topic"
  • 2005/4/8 1:54

  • tgotch

  • Just popping in

  • Posts: 66

  • Since: 2005/1/31


Yep. Thanks, works like a charm...

Login

Who's Online

198 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits