61
rossb
RESOLVED: Newbb 4.3 "post text insert error" after import CBB 3.08 Forum
  • 2012/6/30 17:10

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Xoops 2.54, newbb 4.03

On virgin install of newbb 4.3
can create topics, posts
can reply to posts

After importing forum from CBB 3.08
cannot create topics, posts
cannot reply to posts

ERROR: "post text insert error"
Debug: no errors, no depreciated

This is independent of whether I use Backpack to import entire forum.
OR use MySql to import only fields: xoops_bb_posts, xoops_bb_posts_text

I CAN see the posts. USERS are correct since user database imported first.

Any clues how to debug this?

Has anyone successfully imported CBB 3.08 forum to newbb 4.3? MySql fields are identical for both versions.



62
rossb
Re: Left (menu) block, split <{$block.content}> items to separate lines?
  • 2012/1/20 16:08

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks playsome!

that is all it took.

from:

/* in main.css */
td#leftcolumn a
{
color: #FFFFFF;
font-weight: normal;
}

to:

/* Override, later included css file */
td#leftcolumn a
{
width: inherit;
padding-left: 10px;
color: #FFFFFF;
font-weight: normal;
display: block;
}

The width: inherit was necessary to prevent left column width from returning to defaults.



63
rossb
Left (menu) block, split <{$block.content}> items to separate lines?
  • 2012/1/19 23:46

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Greetings;

My theme left block loop is thus:

<!-- LEFT BLOCKS -->
<{foreach item=block from=$xoops_lblocks}> <div class="<{cycle values="blockTitle"}>"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div> <br />
<img src="<{$xoops_imageurl}>images/line.gif" width="184" height="1" alt="" />
<{/foreach}>

resulting in menu links all on one line, wrapping within css determined box:

Administration Menu View Account Edit Account Notifications Inbox Logout

I would like to render:

Administration Menu<br />
View Account<br />
Edit<br />
Account<br />
Notifications<br />
Inbox<br />
Logout<br />

..or some other method to split to one link per line.

Ideas?

Thanks;
Bill






64
rossb
Re: Article & Xoops 2.5.0
  • 2012/1/19 23:17

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks;

This also works:

/etc/php.ini: change to "error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED"

ie; add: & ~E_DEPRECATED

This turns the problem from error to nag

FYI, I am using Xoops-2.54 and XOOPS2_mod_article_2.00.RC_phppp which is working, thus far on non-production site.



65
rossb
Re: Article & Xoops 2.5.0
  • 2012/1/19 0:57

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Have also run into this:

Assigning the return value of new by reference is deprecated in file /modules/article/include/functions.php line 115:

$category_handler =& xoops_getModuleHandler("category", $GLOBALS["artdirname"]);
$criteria =& new CriteriaCompo("1", 1); <--- Line 115

Anybody fixed it yet?



66
rossb
Re: Parse and replace keywords prior to final output?
  • 2010/3/27 15:35

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


I decided to take another, more general (xoops independent) approach. Files are at:

http://www.nazisociopaths.org/KeyWords.tar.gz

Assuming you have set up your templates for Overlib:

Create a definitions file of format:

definition;popup text;

Modify paths and value of definitions file in:

DisableKeyWords.sh, EnableKeyWords.sh

EnableKeywords will:

- create Keywords.js (include in XOOPS theme template before header)

- traverse the directories specified, parsing *.htm, replace all keywords in definitions file, creating equivalent *.htp files with overlib popup code. *.htm file are NOT modified. Your pages must reference the parsed *.htp files.

DisableKeyWords.sh just copies original *.htm as *.htp, thereby disabling keywords.

Enjoy. This is unsupported and I will not be answering questions.




67
rossb
Re: Parse and replace keywords prior to final output?
  • 2010/3/23 22:49

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Thanks, but...

Client side java not the way to go. Need to search and replace for a lot of keywords. If done prior to final render, cache will minimize work. If done by some sort of pre-process step such as shell (awk/sed regex script), need to run once, any time a content file is updated.




68
rossb
Parse and replace keywords prior to final output?
  • 2010/3/23 17:54

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

I am using overlib for pupup definitions of words, as shown on this site:

http://www.nazisociopaths.org/modules/article/view.article.php/c1/34

You can do a "view source" to see what overlib requires...

The process of inserting the definitions is cumbersome and I want to automate this by creating a module to automatically (based on selected modules) parse for keywords (definitions) and replace with the appropriate overlib link.

The module will have checkboxes to select which module outputs should be parsed, keywords, definitions and overlib style settings.

I need a pointer regarding where in the final XOOPS rendering code I should do the search and replace.

Also need advice on how to do the equivalent of:

<!--#include virtual="/Files/AboutBR.htm"-->

so include files are also parsed...

Yea, I know, newbie...

Or, if this is too much, pointers on how to do a shell script or application to pre-process the files...

Thanks;
Bill



69
rossb
HOWTO: Display Explorer style directory tree - noob
  • 2007/9/17 16:38

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

I have a directory tree of static pdf files that I would like users to be able to browse by expanding/collapsing folder icons in the left pane, select a file which will then be displayed in center pane.

After a day of search, no modules for this and no XOOPS php code snippets.

It appears I must do some coding and am a noob. Any pointers greatly appreciated.

Curently, I am using the Article 1.0 module and iframes. Modifying index.php and templates appears to be an option.

Feedback?
Thanks;
Bill



70
rossb
Help - Flash Banner (NewsTicker.swf) not workinh in subpage
  • 2006/8/28 18:29

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

Xoops: 2.0.15
Article 0.96
php 4.3.9
mysql 4.1.2

Good page:

http://www.nazisociopaths.org/modules/article/

Error page:

http://www.nazisociopaths.org/modules/article/view.article.php/c4/19

Problem: When I am viewing any article, the flash News Ticker (Newsticker.swf) stops working. It does not seem to be for lack of required files since httpd/error_log shows no errors.

The banner works OK when not viewing an article.

The html in the banner area seems identical for both pages. The difference seems to be that the non-error page is served directly, the error page is served by view.article.php/c4/19.

Suggestions?

Thanks;
Bill




TopTop
« 1 ... 4 5 6 (7)



Login

Who's Online

173 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 173


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