726

(12 replies, posted in Programming)

No , i mean the Apache send header with content-type charset
and with html we send content-type

but the header charset is override the html charset that make a problem with my local Apache and my web site Apache
the first one send with header charset=windows-1256 and with html charset=iso-8859-1

my web site Apache not send charset but with html charset=iso-8859-1

so the first (local) take charset=windows-1256 not charset=iso-8859-1

when backup my database and import it localy i have this posts like that

& # 1585 & # 1585 & # 1585  .....

i correct my local apache config by remove

AddDefaultCharset WINDOWS-1256
to force it not send charset=windows-1256 and to Apache are same now

mmmm i have trouble with my mind to understand what exactly happen sad

727

(12 replies, posted in Programming)

what is the difference

if i send in header

header('Content-Type: text/html; charset=iso-8859-1');

and in html

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

and what is the effect if i send in header Charset=windows-1252 , in html  charset=iso-8859-1

if i purchase another one of mouse pad, my wife will killing me
i have a drawer full with it.

20$ in my country mean 20*60=1200 Lira
my sallery in month about 15000 = 250$ = 3000$ in year.
a mouse pad here about 50 lira =1$ , this is a Currency problem.

BTW i am an Accountant wink

mmmm too far from here sad

730

(5 replies, posted in PunBB 1.2 discussion)

hi
when i include my home page
  include/common.php'
is must add in end the of page ?

$db->close();

to close database as like in footer.php of forum ?

is this possible : yes ,my site use user profile outside PunBB forum and use same style.css

is this hard to make : no, this site well help you, search for "Front Page" or "Home" or "News"

punbb is best for mod, and like another Forums features ,about (90%)
for me PunBB is fast , easy an beautiful
You can start.

732

(3 replies, posted in PunBB 1.2 troubleshooting)

i am use o_base_url or url_root with parser.php to build link smiles images when i call parse_message from my home page or other pages are not in forum dirctory.

733

(3 replies, posted in PunBB 1.2 troubleshooting)

some functions i build in my mods not need to use database, but need o_base_url because is like as pun_root kind.

OK, no problem, i added url_root to my confog.php, Thanks

visit my web site www.parmaja.com

why put base_url option in table in db
instead in config.php

when i want to use base_url i must connect to database!

c='t';
x='My Bu'.c.c;
print x;

"Tizi" is filthy word in arabic . :-0

it not a bug ist a  Troubleshooting, sorry for rash post.

my Troubleshoot
i want to give my home page header and my Mods (Addons) as like in forum, i mean the Navigateor

Home | User list | Rules | Search | Profile | Logout

so, i include a header.php as like use it in forum (need some includes also) and work good but :

the forum is in      www.parmaja.com/forum/
my home page from www.parmaja.com/index.php
all link an NAV are reefer to root link
for User list
www.parmaja.com/userlist.php
not to
www.parmaja.com/forum/userlist.php

and style sheet has this problem
all url link broken when include part of forum from outside of forum like

www.parmaja.com/fileman my file manager is also need same header of forum

that mean if i want to build addon (mod) for forum PunBB that force me to upload index.php of File Manager into a forum directory.

thanks

ver 1.1.2

loose style sheet when call Header.php ,
when build my home page to show same header from PunBB

line 124 file header.php

<link rel="stylesheet" type="text/css" href="style/<?php echo $style.'.css' ?>">

to

<link rel="stylesheet" type="text/css" href="<?php echo $pun_config['o_base_url'].'/style/'.$style.'.css' ?>">

739

(18 replies, posted in PunBB 1.2 discussion)

in my country said

What is delicious than the honey
it's free vinegar smile

yes
it's good for me, and like another arabic Forums.

you can download the patches from
http://www.parmaja.com/downloads/punbb- … atches.zip

version 1.1.2
file parser.php

body of $pattern must add 2 new tage to accept right to left reading [rtl] and left to right [ltr]
line 206

                     '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s',
                     '#\[ltr\]\n?(.*?)\[/ltr\]\n?#s',
                     '#\[rtl\]\n?(.*?)\[/rtl\]\n?#s'
           );



line 215 body of $replace

                     '<span style="color: $1">$2</span>',
           '<p dir="ltr">$1</p>',
           '<p dir="rtl">$1</p>');

there is no arabic CODE , code tag always must be Left to right.
version 1.1.2
file parser.php
line 325

from   
$message .= '<br><br></span><table style="width: 95%"
to
$message .= '<br><br></span><table dir="ltr" style="width: 95%"

thank a lots,
i uploaded the new file to my site.
if there is any mistakes or problems with translation post a message in this board.

download Arabic language from

http://www.parmaja.com/downloads/punbb-1.1.5-ar.zip

746

(6 replies, posted in Feature requests)

yes, but in www.delphipages.com
if you post Answer, there is a link bottom of message (Accept Answer) visible to Owner of the Question to accept and incrase Level

I would be lazy about coding

wink
me too
i work in php and can add this futrure as mod.

747

(6 replies, posted in Feature requests)

pettan said what i mean
for programmers forums , there a Question and many Asnwers
but one or more answer ar correct and many of post it's trivial just for incrase Rank level

748

(6 replies, posted in Feature requests)

hi
this is my first post
i search in internet for Forum with this: Simple , light, no images for fast load ,many options , Multi languages
it take 4 day when i found PubBB ,Hahaha OK it's my dream
especially easy translating to Arabic language because it support Rtl direction

now my requests

many of user post dummy Message like , hi, wellcome , etc...
thies users post like that for take more ranking and get to Super user with no answers,

i want to add More rules to ranking user like click on link

Accept Answers

bottom of Message
if not then not incrase the rank Level

my i can write a mod for that, if i have a time

thanks