31
Setaseta
Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 10:13

  • Setaseta

  • Just popping in

  • Posts: 23

  • Since: 2003/5/5 2


Hey there.
I installed your cool forum upgrade on my test site, and it worked perfectly, but when I installed it to the main site, it went bonkers - it didn't screw up anything major, but the "new private forum post", "old private forum post" "mark all forums read", "mark all posts read", the user group thing in the posts, and the pm button all refuse to show up.

I'm too ignorant about php to even contemplate trying to find the error. Can anybody please help me either fix it or get the old forum back?

32
Vict0r
Re: Newbb Pro (attachments, mark read ...)
  • 2004/3/8 11:49

  • Vict0r

  • Just popping in

  • Posts: 18

  • Since: 2004/3/7 1


This is what I get in php debug:

Notice: Undefined index: 1 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 8 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 16 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 17 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 18 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 13 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 14 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 7 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 9 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 15 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 4 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Undefined index: 5 in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 155

Notice: Use of undefined constant _MD_PRIVATEFORUM_NEWPOSTS - assumed '_MD_PRIVATEFORUM_NEWPOSTS' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 216

Notice: Use of undefined constant _MD_PRIVATEFORUM_NONEWPOSTS - assumed '_MD_PRIVATEFORUM_NONEWPOSTS' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/index.php on line 216

2.When I click on a category:

Notice: Undefined index: mark_read in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewforum.php on line 37

Notice: Undefined variable: topic_att in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewforum.php on line 302

Notice: Undefined variable: topic_sticky in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewforum.php on line 302

3.When I click on a topic in that category:

Notice: Use of undefined constant D - assumed 'D' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/rules/xoops_version.php on line 4

Notice: Use of undefined constant I - assumed 'I' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/rules/xoops_version.php on line 4

Notice: Undefined variable: g in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 45

Notice: Undefined variable: g in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 45

Notice: Undefined variable: g in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 45

Notice: Undefined variable: g in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 45

Notice: Undefined variable: g in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 45

Notice: Undefined variable: g in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 45

Notice: Use of undefined constant _MD_GROUPS - assumed '_MD_GROUPS' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 401

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/rules/language/english/modinfo.php:6) in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewtopic.php on line 413

4.When I go back:

Notice: Undefined index: mark_read in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewforum.php on line 37

Notice: Use of undefined constant D - assumed 'D' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/rules/xoops_version.php on line 4

Notice: Use of undefined constant I - assumed 'I' in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/rules/xoops_version.php on line 4

Notice: Undefined variable: topic_att in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewforum.php on line 302

Notice: Undefined variable: topic_sticky in /usr/local/psa/home/vhosts/irc-sofia.net/httpdocs/modules/newbb/viewforum.php on line 302

I hope that helps.. Thank you for your prompt responses.. I wasn't expecting such a fast answer

Victor


33
samuels
Re: Newbb Pro (attachments, mark read ...)
  • 2004/3/8 14:11

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@Vict0r
Have you refreshed the module?

34
JackJ
Re: Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 19:45

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Setaseta

assuming you updated your system files and the module itself in system admin/modules you may find you need to overwrite your "template" newbb files on the server.

I use the x2t template, and the files did not overwrite. This is what I had to do, I copied the code from the html files in the newbb template folder to the matching files in my default template. If you are not sure about "templates" see the XOOPS "Wiki Home" link to the left.

After doing this my extra features showed up..

35
Vict0r
Re: Newbb Pro (attachments, mark read ...)
  • 2004/3/8 19:49

  • Vict0r

  • Just popping in

  • Posts: 18

  • Since: 2004/3/7 1


yes, I did refresh the modul.. and I refreshed it again right now and still it doesn't work..

possible problems might be that I haven't overwritten all the files (but I don't know where to look to find out)

another problem might be that I haven't properly ran the two .php files.. for the upgrade (I ran them once in modules/ than in modules/newbb and than finally I found out that the correct place was /)..

other than that I have done everything as you described it..

maybe I can send you a copy of my installation and you can take a quick look at it.. I would really like to get that fixed :).. let me know what's good for you..

and thank you again for helping me

Victor

36
svaha
Re: Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 20:19

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Thanks Jack,
I had also blank screens and some things not showing up, though I got no error from php debug. I use Zaja themes with Zaja template, so I thought this might be the problem. I'll check this out
Aloha

37
Setaseta
Re: Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 21:32

  • Setaseta

  • Just popping in

  • Posts: 23

  • Since: 2003/5/5 2


@JackJ:

Updating the templates seemed to solve almost all the problems, BUT!
The "groups" and "pm" and "profile" buttons do not show up. Have any idea why?

38
JackJ
Re: Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 21:52

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


these are called from the file "newbb_thread.html", I would double check you updated that one, should look like this:

Quote:

<!-- start comment post -->
<tr>
<td class="head"><a id="forumpost<{$topic_post.post_id}>"></a>

<{$topic_post.poster_uname}>
</td>
<td class="head"><div class="comDate"><span class="comDateCaption"><{$lang_postedon}></span> <{$topic_post.post_date}></div></td>
</tr>
<tr>

<{if $topic_post.poster_uid != 0}>

<td class="odd">

<div class="comUserRank"><div class="comUserRankText"><{$topic_post.poster_rank_title}></div><{$topic_post.poster_rank_image}></div><img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" alt="" /><div class="comUserStat"><span class="comUserStatCaption"><{$lang_joined}>:</span> <{$topic_post.poster_regdate}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_from}>:</span> <{$topic_post.poster_from}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_posts}>:</span> <{$topic_post.poster_postnum}></div>

<div class="comUserStat">
<span class="comUserStatCaption">Groups:</span> <br>
<{$topic_post.poster_groups}>
</div>

<div class="comUserStatus"><{$topic_post.poster_status}></div></td>

<{else}>

<td class="odd"> </td>

<{/if}>
<td class="odd">
<div class="comTitle"><{$topic_post.post_title}></div><div class="comText"><{$topic_post.post_text}></div>
</td>

</tr>

<tr>
<td class="even">

<a href="javascript:openWithSelfMain('<{$xoops_url}>/pmlite.php?send2=1&to_userid=<{$topic_post.poster_uid}>','pmlite', 480, 430);">
<img src="<{$xoops_url}>/images/icons/pm.gif" alt="<{$topic_post.poster_sendpmtext}>" /></a>

<a href='<{$xoops_url}>/userinfo.php?uid=<{$topic_post.poster_uid}>'><img src="<{$xoops_url}>/images/icons/profile.gif" alt="Ver perfil "/></a>
</td>

<{if $xoops_isadmin == true}>

<td class="even" align="right">
<a href="edit.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$topic_order}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href='delete.php?forum=<{$forum_id}>&topic_id=<{$topic_id}>&post_id=<{$topic_post.post_id}>&viewmode=<{$topic_viewmode}>&order=<{$topic_order}>'><img src="<{$xoops_url}>/images/icons/delete.gif" alt="<{$lang_delete}>" /></a><a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$topic_order}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
</td>

<{elseif $xoops_isuser == true && $xoops_userid == $topic_post.poster_uid}>

<td class="even" align="right">
<a href="edit.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$topic_order}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a>

<a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$topic_order}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>




</td>



<{elseif $viewer_can_post == true}>

<td class="even" align="right">
<a href='reply.php?forum=<{$forum_id}>&post_id=<{$topic_post.post_id}>&topic_id=<{$topic_id}>&viewmode=<{$topic_viewmode}>&order=<{$topic_order}>'><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>


</td>

<{else}>

<td class="even"> </td>

<{/if}>


</tr>

<!-- end comment post -->

39
Setaseta
Re: Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 21:57

  • Setaseta

  • Just popping in

  • Posts: 23

  • Since: 2003/5/5 2


@JackJ:
It worked, thanks!

@samuels:
This is an awesome improvement!

How about making a function for the forum admin module that will allow you to change the forum order? I know you can do it with the categories already, but I don't think it's possible with the forums. :)

Thank you again.

40
JackJ
Re: Green envelopes broken? No "Mark All as Read"?
  • 2004/3/8 21:59

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


hello svaha

hows it going, long time no see...

still on the life prolonging health diet of chocolate and hambugers..

Login

Who's Online

131 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 131


more...

Donat-O-Meter

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

Latest GitHub Commits