265051
Anonymous
Re: Forum error
  • 2004/4/1 13:33

  • Anonymous

  • Posts: 0

  • Since:


Did you have an Backup of your Database?

If
{
deinstall the newbb delete copy clean to your site do install and look if it`s work, restore you`re Databse ( only the bb_ tables ), if the error occures than you have an Error in your data`s
}
else
{
make a backup of your Database and start again reading this post
}



265052
Mithrandir
Re: Trouble Modifying Themes

Well, it IS a little tricky to keep the definitions apart. Themes, templates, caching, compiling, database and templates_c...

But once you get to know them, it's rather logical.



265053
jrc
Re: Trouble Modifying Themes
  • 2004/4/1 13:22

  • jrc

  • Just popping in

  • Posts: 6

  • Since: 2002/10/27


Thank you!!!

I trully thought I was going insane... checked caching options etc... missed this completely, now the image size is correct and my sanity is back...

Thank you!

John



265054
Mithrandir
Re: Looking For A FAQ Module

Tried WF-FAQ? I think it is a cross between the normal FAQ and WF-Sections



265055
Guido83
Re: Forum error
  • 2004/4/1 13:13

  • Guido83

  • Just popping in

  • Posts: 60

  • Since: 2003/12/7


It happened suddenly. Is this fixable, or have I lost all posts etc.?



265056
ibzan
Re: Multilingo for the bookstore?
  • 2004/4/1 13:09

  • ibzan

  • Just popping in

  • Posts: 48

  • Since: 2003/8/31


Did you re-initialize the module?

Chris



265057
Catzwolf
Re: How to use Spaw within your modules. Examples
  • 2004/4/1 13:02

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Ok believe me or not, it is actually quite easy to implement this and I am sure after I explain it a bit better you'll end up kick yourselfs (Or me lol).

Lets take the News module as an example here:

First of all there is only 1 file that need to be edited on the admin side of the news module:

xoops_root/modules/news/admin/storyform.inc

At or around line 31 (right after include XOOPS_ROOT_PATH."/include/xoopscodes.php";)

Insert or add these lines:
$module_handler = &xoops_gethandler('module');
$module = &$module_handler->getByDirname('spaw');

if (
is_object($module) && $module->getVar('isactive'))
{
    include_once 
XOOPS_ROOT_PATH "/modules/spaw/spaw_control.class.php";
}

What this bit does is to say if the spaw module is installed and it is active, then include it in the code, else ignore and move on

Next look for these lines of code (around lines 84):
echo "</p><p><b>"._AM_INTROTEXT."</b><br /><br />n";
xoopsCodeTarea("hometext"6015);
xoopsSmilies("hometext");

xoopsCodeTarea("bodytext"60152);
xoopsSmilies("bodytext");


The bits of code we want to change are:
xoopsCodeTarea("hometext"6015);
xoopsSmilies("hometext");

xoopsCodeTarea("bodytext"60152);
xoopsSmilies("bodytext");


And these must be replaced with:
$sw = new SPAW_Wysiwyghometext$hometext'en''full''default''99%''600px' );
$sw -> show();

$sw = new SPAW_Wysiwyg'bodytext'$bodytext'en''full''default''99%''600px' );
$sw -> show();


If you do not want to use the spaw editor for the $hometext then don't replace the code for that.

We have another file to edit and this time you will find it at:

xoops_root/class/xoopstory.php

The reason we are changing this file is to stop XOOPS converting linebreak to < br /> as this will add extra lines when displaying your story.

Look for the function hometext($format="Show") around line 298:

And the bit of code we are after is this line here at line 311

case "Show":
$hometext $myts->makeTareaData4Show($this->hometext,$html,$smiley,$xcodes);
break;


we need to change this to use an updated function in the $myts class now to use this properly, so change the above to:
$hometext $myts->makeTareaData4Show($this->hometext,$html,$smiley,$xcodes,1$breaks0);


The number after $xcodes is to allow images and the number after that will stop the line break conversion, just change this number to a '1' to allow line break conversion.

Do the same for the function bodytext($format="Show") as you did here.

So really, you change where you would edit the bodytext of your module and where it will display the bodytext of your module.

This example is for modules that do not use XoopsForm class.

Hope this helps in some way



265058
bennie
Re: first page of the portal
  • 2004/4/1 13:01

  • bennie

  • Just popping in

  • Posts: 40

  • Since: 2003/7/3 1


go to adminpage / prefs / general prefs and set module for start page, i think it's the 5 from the top.

i don't now about youre second question, hope somone els can help you out there.

good luck,
Ben



265059
Anonymous
Re: Forum error
  • 2004/4/1 13:00

  • Anonymous

  • Posts: 0

  • Since:


Did this happens suddenly or did you add some hacks for the newbb or somethere?

Just an error means no Data`s available...



265060
KubaZ
Re: Ramdon Scrolling Images
  • 2004/4/1 12:58

  • KubaZ

  • Just popping in

  • Posts: 37

  • Since: 2002/10/9


it can.. I have a question : how many diffrent trains you have. You can do a module or the simple way you make an another block (with <marquee> code..) and in groups you set privileges to registered user. (anonymous user don't see that new block)

p.s. make a module.. no that module won't be good.. and usefull for community i think







Login

Who's Online

177 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits