It's a really trivial fix, IIRC. I fixed it on KAW.
- Use @find to find the BBPocket object.
- Type &bbpocket [DB # of your bulletin boards] = [[DB # of the bbpocket].
- Great success.
These working commands are making reference to your bbpocket object by just using the DBREF# of bbpocket, but +bbnew doesn't have that. If you read it, it instead says v(bbpocket). You probably don't actually have an attribute called "bbpocket".
So, look at your BB Global and see stuff like CMD_+BBPOST-POST, see how there's a dbref in stuff like .. .
$+bbpost:@switch [hasattr(#159,bb_post_hdr_%#)]:[hasattr(#159,bb_post_bdy_%#)]=0:0,{@pemit %#=You do not have a bbpost in progress.},1:0,{@pemit %#=Your post is empty. Please add text with the '+bbwrite <text>' command or discard the posting with the '+bbtoss' command.},{&mess_lst...
But +bbnew (and the other bbnew command, as there are two), have:
CMD.BBNEW [#3]: $+bbnew:think [setr(0,first(iter(u([v(bbpocket)]/valid_groups,%#,read),switch(trim(u([v(bbpocket)]/unreadnums,%#,##)),,,##))))];@switch [words(r(0))]=0,@pemit %#=No unread messages on any board....
What's going on here is that it's looking for an attribute named "bbpocket" which does not actually exist. The easiest fix is to just give it that attribute.
Another fix is to manually put in the numbers for BBPocket.
A third fix is to turn v(bbopcket) into just bbpocket so anything that says "u(v(bbpocket)/blahblahblah) says u(bbpocket/blahblahblah), this would need BBPocket to be located inside or in the same room as BB global.
@Tez If you fixed it by replacing all the numbers, there are two commands to fix, &CMD.BBNEW and &CMD.BBNEW-BOARD. Maybe the issues that come up only sometimes are if you have only fixed one of the two.
If it doesn't work, just, paste this in there, but make sure &bbpocket exists on your BB Global:
&cmd.Bbnew BBDBREF= $+bbnew *:@switch member(u([v(bbpocket)]/valid_groups,%#,read),setr(0,u([v(bbpocket)]/get_group,setr(2,first(%0,/)))))=0,{@pemit %#=[switch(%q0,#-2,That group name is not specific enough.,You do not subscribe to that group.)]},{think [setq(4,member(get([v(bbpocket)]/groups),%q0))][setq(5,first(iter(u([v(bbpocket)]/unreadnums,%#,%q0),switch(gte(##,after(%0,/)),1,##))))];@switch [and(lte(%q5,words(get(%q0/MESS_LST))),isnum(%q5))]=0,{@pemit %#=No new messages beyond %q4/[setr(6,add(after(%0,/),0))] ([name(%q0)]/%q6).},{@pemit %#=[center(= [name(%q0)] =,78,=)]%r[ljust(Message: %q4/%q5[switch(u([v(bbpocket)]/fn_timeout_close,index(setr(3,get(%q0/HDR_[extract(get(%q0/MESS_LST),%q5,1)])),|,5,1)),1,{%b(timeout warning)})],35)]Posted[space(8)]Author%r[ljust(index(%q3,|,1,1),35)][ljust(index(%q3,|,2,1),14)][mid([index(%q3,|,3,1)][ifelse(and(hasattr(%q0,anonymous),hasflag(%#,wizard)),%b\([name(index(%q3,|,4,1))]\),)],0,29)]%r[repeat(-,78)]%r[get(%q0/BDY_[extract(get(%q0/MESS_LST),%q5,1)])]%r[repeat(=,78)]; &bb_read %#=[setunion(get(%#/bb_read),[extract(get(%q0/MESS_LST),%q5,1)])]}}; @wait 2={&bb_read %#=[setinter(get(%#/bb_read),get([v(bbpocket)]/master_lst))]}}}}
&Cmd.BBNew-Board BBDBREF = $+bbnew *:@switch member(u([v(bbpocket)]/valid_groups,%#,read),setr(0,u([v(bbpocket)]/get_group,setr(2,first(%0,/)))))=0,{@pemit %#=[switch(%q0,#-2,That group name is not specific enough.,You do not subscribe to that group.)]},{think [setq(4,member(get([v(bbpocket)]/groups),%q0))][setq(5,first(iter(u([v(bbpocket)]/unreadnums,%#,%q0),switch(gte(##,after(%0,/)),1,##))))];@switch [and(lte(%q5,words(get(%q0/MESS_LST))),isnum(%q5))]=0,{@pemit %#=No new messages beyond %q4/[setr(6,add(after(%0,/),0))] ([name(%q0)]/%q6).},{@pemit %#=[center(= [name(%q0)] =,78,=)]%r[ljust(Message: %q4/%q5[switch(u([v(bbpocket)]/fn_timeout_close,index(setr(3,get(%q0/HDR_[extract(get(%q0/MESS_LST),%q5,1)])),|,5,1)),1,{%b(timeout warning)})],35)]Posted[space(8)]Author%r[ljust(index(%q3,|,1,1),35)][ljust(index(%q3,|,2,1),14)][mid([index(%q3,|,3,1)][ifelse(and(hasattr(%q0,anonymous),hasflag(%#,wizard)),%b\([name(index(%q3,|,4,1))]\),)],0,29)]%r[repeat(-,78)]%r[get(%q0/BDY_[extract(get(%q0/MESS_LST),%q5,1)])]%r[repeat(=,78)]; &bb_read %#=[setunion(get(%#/bb_read),[extract(get(%q0/MESS_LST),%q5,1)])]}}; @wait 2={&bb_read %#=[setinter(get(%#/bb_read),get([v(bbpocket)]/master_lst))]}}}}