41
karuna
Image auto resize in newbb
  • 2004/6/14 13:56

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


change the class/module.textsanitizer.php

Quote:

$replacements[] = '<img src="\\3" align="\\2" alt="" />';
$replacements[] = '<img src="\\1" alt="" />';




Quote:
$replacements[] = "<img onmouseover=\"if(this.resized) this.style.cursor='hand';\" onclick=\"if(this.resized) window.open('\\3')\"; src=\"\\3\" onload=\"if(this.width>screen.width*0.5) {this.resized=true; this.width=screen.width*0.5; this.alt='open new window';}\" border=0 align=\"\\2\" alt=\"\" /> <br />";
$replacements[] = "<img onmouseover=\"if(this.resized) this.style.cursor='hand';\" onclick=\"if(this.resized) window.open('\\1')\"; src=\"\\1\" onload=\"if(this.width>screen.width*0.5) {this.resized=true; this.width=screen.width*0.5; this.alt='open new window';}\" border=0 alt=\"\" /><br />";


but is didn't works well if use the align=right or align=left~

and you can change the templates/newbb_thread.html like this for ie~

Quote:
<div class="comText"> <{$topic_post.post_text}></div>


Quote:
<div class="comText"> <table style="TABLE-LAYOUT: fixed; WORD-WRAP: break-word"> <tr><td><{$topic_post.post_text}></tr></td></table></div>



42
karuna
How to post this url correct
  • 2004/6/13 6:08

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


http :// zhaoyi6222 .www .84g .com/ cuowu.htm

http://zhaoyi6222.www.84g.com/cuowu.htm



Quote:
http://zhaoyi6222.www.84g.com/cuowu.htm


http://zhaoyi6222.www.84g.com/cuowu.htm

http://zhaoyi6222.www.84g.com/cuowu.htm


it seems realy hard to post this url correctly~



43
karuna
Re: How to put center blocks below news' items
  • 2004/6/12 21:44

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


hi

you should edit the theme.html



44
karuna
Re: Different content in Top page for registered/unregistered visitor?
  • 2004/6/9 11:55

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


If you mean a block in the theme

you can use
<{if !$xoops_isuser}>
<{else}>
<{/if}>




45
karuna
Re: How to automatic send a message to the new member~
  • 2004/6/8 12:22

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Hi

thanks for your response. i will try.

i don't like such message too, but too many user ignore the rule, post in the wrong forum

so i am looking for a better way to let them have a look at the rule



46
karuna
How to automatic send a message to the new member~
  • 2004/6/8 9:39

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Hi
i'd like to send every new member a message after a member regested to inform them the site rule or something else.

How to implement this?

Thanks



47
karuna
Re: hi why this $xoopsDB->query does not works?
  • 2004/6/7 15:21

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Quote:

marcan wrote:
HI karuna !

Try this :

if ( $result $xoopsDB->queryF($sql) )

queryF instead of query.

Cheers !


Thanks. it's ok now~~

it cost me 2 hours --;;



48
karuna
hi why this $xoopsDB->query does not works?
  • 2004/6/7 15:05

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Quote:
<?php

include 'mainfile.php';
$sql = 'UPDATE bnb_groups_users_link SET groupid = 5 WHERE uid=3 AND groupid=2';
if ( $result = $xoopsDB->query($sql) )
{
echo "success";
}
else
echo "failed";

?>


i allways got failed



49
karuna
Re: site hacked
  • 2004/6/4 17:30

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


I think this is more probable due to the server's security.



50
karuna
any way to get a log of newbb
  • 2004/6/4 17:27

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


Hi
i'd like to get a log of newbb such as who deleted a post or who locked a post or something. Is there any way?

Thanks




TopTop
« 1 2 3 4 (5) 6 7 8 ... 16 »



Login

Who's Online

202 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 202


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