1
chefry
Problem with newbb 2 4.03
  • 2013/4/19 3:08

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


XOOPS Version XOOPS 2.5.6-RC1
PHP Version 5.3.5
mySQL Version 5.5.8
Server API apache2handler
OS WINNT

in view forums you see

Quote:
_MD_FORUMHOME » Popular Forums » What's New! [Digest]


and i believe it relates to /newbb/templates/newbb_viewforum.html

on line 5

Quote:

but i don't know how to fix it.

can someone check this?

2
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/19 3:16

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


ok, i just did the newbb43_rev10109_irmtfan_2013_02_11.zip - ZIP archive, unpacked size 1 983 058 bytes

update and it fixed the above problem but caused another

on the index page you see the following

Resized Image

3
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/19 3:37

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


using the new "maintenace" feature i cleared the caches and session tables.

now I have this on the left

Resized Image


this on the right

Resized Image


you can enter the forum and see the list of articles

but if you click on the last post link on the index page, or go into the forum and click on an article to view, you get a white page

4
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/19 4:17

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I switched to the Alfred version and some icons are not displaying properly

The Alfred version looks for the ranks gifs in

uploads/ranks/ranks/

2.5.6 has then in

uploads/ranks/

The Alfred version also looks for the icons from

root/images/subjects/

but it looks for them in

modules/newbb/templates/images/icon/

once you move everything to the right places, all the display problems are gone

Mamba, can you report this to the German Xoops site, please?

5
irmtfan
Re: Problem with newbb 2 4.03
  • 2013/4/20 2:44

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Thank you chefry for test and feedback.
It will help a lot to solve issues in modules.
Actually newbb is the heart of any community website but it had many bugs. I found more than 250 bugs in the last 1 year with the help of communities in xoops.org and xoops.ir and some other websites.

About Alfred version:
what version of Alfred are you using?
I believe he solved this bug in the latest revisions.
http://svn.code.sf.net/p/xoops/svn/XoopsModules/newbb/branches/alfred

and his website:
http://www.simple-xoops.de/projekt/2:1-Forum_-_newBB.html

About irmtfan version:
1- if you dont like those shadows in boxes (which shows the unread forums-topics) you can remove them in \modules\newbb\templates\css\language\english\style.css
.topic-read {
}
.
topic-new {
box-shadowinset 0px 10px 10px 0px rgba(0000.5);
}
.
forum-read {
}
.
forum-new {
box-shadowinset 0px 10px 10px 0px rgba(0000.5);
}

2- about white pages please turn the php debug on and let us know if you have any error/warning?

also for any upgrade dont forget to remove caches:
Quote:

To Upgrade from older newbb versions 1.x 2.x 3.0.x
==========================
1- close your website. (highly recommended) be sure you be logged in.
2- get a backup from your old newbb database.(all XOOPSPREFIX_bb_* tables)
3- get a backup from your old newbb/images directory to save your custom old images. Also get a backup from any changes you done in files.
4- IF EXIST get a backup from your old newbb/include/plugin.php
5- delete your old newbb folder located in modules (or rename it to newbb_old)
6- IF EXIST delete old newbb folder (templates) in htdocs/themes/default/modules/newbb AND htdocs/themes/YOUR_THEME/modules/newbb (or rename it to newbb_old)
7- upload the newbb to htdocs/modules/newbb (upload the compressed file and decompressed via Cpanel is the best way to insure all files are correctly uploaded)
8- go to your admin -> system -> modules -> newbb -> upgrade (important: wait until you see the report page)
9- go to system -> maintenance -> clear all caches
10- change the default settings to your desired in the module preferences and newbb/include/plugin.php and IF EXIST based on your old back-upped plugin.php. Set the permissions in newbb -> admin -> permission for all groups one by one. pay attention that webmasters group has all accesses regardless of permissions. using a non webmaster test account is recommended to test the permissions for each group.
11 - dont forget to open your website again.


6
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/20 7:04

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I was using the latest version of Alfred directly from the German website.

He had posted an answer here but it didn't work for me

After bouncing back and forth between cbb and the various versions of newbb all afternoon, trying to get something to work with my database, I scrapped the whole idea, installed your version and cut n pasted all the old content from the live site.

Thanks for the instructions on how to get rid of those shadow boxes.

Will you be continuing to update the buttons? I like those new blue buttons, but they aren't everywhere yet (Preview, Submit, Cancel)

7
irmtfan
Re: Problem with newbb 2 4.03
  • 2013/4/20 11:37

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


About Alfred versions:
The issue with ranks should be solved but i dont know if there are others especially in functionality.

About upgrade from an old newbb version:

Being able to correctly upgrade from older versions, is the most important process in testing modules.
It is especially important for newbb as a very old and great module.
Therefore It would be highly appreciated if you could test upgrade from older newbb versions (your old database) to the latest one and report issues or bugs.
So please do not give up and do not copy/paste posts or topics manually but try to upgrade instead.
If something goes wrong just let us know your Xoops,php,mysql and importantly your old newbb version.

Quote:

Will you be continuing to update the buttons? I like those new blue buttons, but they aren't everywhere yet (Preview, Submit, Cancel)


those (Preview, Submit, Cancel) buttons in forms are part of the xoops core. you can change the style in YOURSITE/xoops.css

it is just some css3 codes i copy pasted from somewhere:
input[type=submit], input[type=reset], input[type=button], .xo-formbuttons, .formButtonbutton {
background#407DC7;
background-image: -webkit-gradient(linear00%, 0100%, from(#407DC7), to(#4279B8));
background-image: -webkit-linear-gradient(top#407DC7, #4279B8);
background-image: -moz-linear-gradient(top#407DC7, #4279B8);
background-image: -ms-linear-gradient(top#407DC7, #4279B8);
background-image: -o-linear-gradient(top#407DC7, #4279B8);
border-width1px;
colorwhite;
padding4px 4px;
text-shadow0 1px 0 gray;
border-colorwhite #A1C1E6 #2B4763 #A1C1E6;
border-stylesolid;
border-radius5px;
box-shadow0 1px 7px #080808;
font-weightbold;
}
.
formButton:hover {
box-shadow0 1px 5px #222;
}
.
formButton:active {
box-shadowinset 0 1px 7px #565656;
border-colorwhite #a1c1e6 black #a1c1e6;
font-weightnormal;
}


you can find many css3 button sample codes like this:
http://jsfiddle.net/VTLmj/

8
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/20 12:20

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


unfortunately. i've already finished the cut n paste route

but in the spirit of cooperation i'll backup the new database and start again. detailing all problems

9
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/20 13:22

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14



XOOPS Version XOOPS 2.5.6-RC1
PHP Version 5.3.5
mySQL Version 5.5.8
Server API apache2handler
OS WINNT

Uninstalled
Version : 4.3
Author : Marko Schmuck (predator) / D.J. (phppp) / Alfred(dhcst)
Credits : NewBB 2 developed by Marko Schmuck (predator) / D.J. (phppp) / Alfred(dhcst)
Licence : GNU GPL 2.0
XOOPS Community Bulletin Board

the most recent download by irmtfan

deleted modules/newbb

cleared caches

installed newbb from XOOPS2_mod_cbb_3.08_phppp.zip

debug in module preferences turned on

debug in system preferences turn on

Xoops Poll Module: Available
ImageMagicK: Not available
NetPBM: Not available
GD1 library: Not available
GD2 library: Autodetected: bundled (2.0.34 compatible)
Path for attachment storing: C:/xampp/htdocs/uploads/newbb/ ( Available )
Path for attached image thumbs: C:/xampp/htdocs/uploads/newbb/thumbs/ ( Available )

on the user side forum index, under last post shows _AM_NEWBB_NOTOPIC

using phpmyadmin sql query inserted all data from old sql file

board statistics now at Total Topics 116 | Total Posts 118 | Total Views 68713

permissions set to all

_AM_NEWBB_NOTOPIC showing in Last Post for all diretories

when looking at the topic list in viewforum.php

top of page shows
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\modules\newbb\viewforum.php on line 122

fonts are now increased to about 150% of normal size

ERRORS

Unknown: Assigning the return value of new by reference is deprecated in file /modules/newbb/class/user.php line 84
Unknown: Assigning the return value of new by reference is deprecated in file /modules/newbb/include/functions.php line 377
Unknown: Assigning the return value of new by reference is deprecated in file /modules/newbb/include/functions.php line 391

FOLLOWING Alfreds instructions

Delete newbb folder
clear caches

copy to folder XOOPS2_mod_newbb_4.02_RC_alfred

i get the following error in update in red

Table 'xxx.xxxx_bb_type_tmp' doesn't exist

Xoops Debug info
Notice: Constant _MI_THEMESET already defined in file /modules/newbb/language/english/modinfo.php line 275
Warning: The link information is not set for 'NewbbCategoryHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbForumHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbTopicHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbTopicHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbPostHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbPostHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbReportHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbRateHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbReadtopicHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbReadforumHandler' yet. in file /class/model/sync.php line 62


info shows as

Version : 4.03
Author : D.J. (phppp) / Alfred(dhcst)
Credits : NewBB 2 developed by Marko Schmuck (predator) and D.J. (phppp)
Licence : GNU General Public License (GPL) see LICENSE
XOOPS Community Bulletin Board

board statistics
Total Topics 116 | Total Posts 118 | Total Views 68707

module still shows in modules page as CBB, not NewBB

on the user side

Last Post colume shows icon1.gif, icon3.gif, etc as text, not the graphic. I already mentioned about the subdir changes that need to be made. I won't bother doing it now

if there is no post in the forum Last Post shows _AM_NEWBB_NOTOPIC

in viewforum.php

Notice: Constant _MI_THEMESET already defined in file /modules/newbb/language/english/modinfo.php line 275

Warning: Smarty error: unable to read resource: "db:newbb_notification_select.html" in file /class/smarty/Smarty.class.php line 1094

_MD_FORUMHOME » in the breadcrumb


Posts show ok, except for missing graphics

The breadcrumb shows _MD_FORUMHOME »

The breadcrumb on the New Post page shows %s Forum Index

when i click on submit the center column is white with a pink strip across the top.

the post does not show in the forum


Deleting subdir
clear cache

copying Alfred 4.2
$modversion['version'] = 4.2;


on install screen after install
Notice: Constant _MI_MAX_IMAGE_WIDTH already defined in file /modules/newbb/language/english/modinfo.php line 67
Notice: Constant _MI_MAX_IMAGE_WIDTH_DESC already defined in file /modules/newbb/language/english/modinfo.php line 68

Warning: The link information is not set for 'NewbbCategoryHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbForumHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbTopicHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbTopicHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbPostHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbPostHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbReportHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbRateHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbReadtopicHandler' yet. in file /class/model/sync.php line 62
Warning: The link information is not set for 'NewbbReadforumHandler' yet. in file /class/model/sync.php line 62


Version : 4.2
Author : Marko Schmuck (predator) / D.J. (phppp) / Alfred(dhcst)
Credits : NewBB 2 developed by Marko Schmuck (predator) / D.J. (phppp) / Alfred(dhcst)
Licence : GNU GPL 2.0
XOOPS Community Bulletin Board

on backend, has new layout and graphics

Minimum PHP required: 5.2 (your version is 5.3.5)
MYSQL minimum version required: 5.0.7 (your version is 5.5.8)
Minimum XOOPS required: 2.5 (your version is 2.5.6-RC1)
Minimum ModuleAdmin required: 1.1 (your version is 1.1)
The folder 'C:/xampp/htdocs/uploads/newbb/' exists
The folder 'C:/xampp/htdocs/uploads/newbb/' must be with a chmod '755' (it's now set on 777).'
The folder 'C:/xampp/htdocs/uploads/newbb/thumbs/' exists
The folder 'C:/xampp/htdocs/uploads/newbb/thumbs/' must be with a chmod '755' (it's now set on 777).'


board statistics
Total Topics: 117
Total Posts: 118
Total Views: 68708


Main page showing icon names, not graphics


_AM_NEWBB_NOTOPIC problem is gone

Going into a category there is no list of articles

Using the Last post link I can see an article

_MD_SEARCHTOPIC shows in the search box

Notice: Constant _MI_MAX_IMAGE_WIDTH already defined in file /modules/newbb/language/english/modinfo.php line 67
Notice: Constant _MI_MAX_IMAGE_WIDTH_DESC already defined in file /modules/newbb/language/english/modinfo.php line 68
Notice: Use of undefined constant _MD_SHARE_WONG - assumed '_MD_SHARE_WONG' in file /modules/newbb/class/post.php line 527

when i click on submit the center column is white with a pink strip across the top.

the post does not show in the forum


10
chefry
Re: Problem with newbb 2 4.03
  • 2013/4/20 13:47

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I'm an idiot, i know

Can someone show me what code to replace and where to get the forum "Preview", "Submit" and "Cancel" buttons to show blue like the rest in the forum?

I can't find anything in any stylesheets i looked at

Login

Who's Online

302 user(s) are online (205 user(s) are browsing Support Forums)


Members: 0


Guests: 302


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