??? ??????????....
178 2005-10-06 07:28
Re: Integrating with external application (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
As I said I've been playing around with it a bit.
I could not find a native set cookie command for a soap server but you can add cookies in whatever language you are using and they arrive at the client.
The annoying part is that the soap client is not the web client so you have to pass two cookies back and forth....
Asfor the arrays: I don't know what you mean with arrays but you can always use a ComplexType with a series of values.
It is standard and it is at least handled by PHP.
179 2005-10-06 07:22
Re: HELP WITH MYSQL (1 replies, posted in PunBB 1.2 troubleshooting)
So if you have a DB then you don't need privileges to create another one.
You do need the privileges to create tables. And I bet you have them because otherwise your database would be useless.
If in doubt contact your host about it.
180 2005-10-05 08:40
Re: Integrating with external application (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I would forget about the extern.php.
I thought of it more as a guideline on how to interact with the PunBB system.
I am just sitting on a PHP/SOAP interface to PunBB that will be able to do a lot more than extern.php, like fetching topics, forum lists and so on and even allowing to post.
That way PunBB could serve as a backend only and everybody could do what he (and she ) wants on the frontend.
Of course it will always be a subset of the PunBB functionality but if you don't need more it will do the trick.
I am not sure how far I can take it, currently I am stuck with the cookies. There is no really good explanation on handling cookies with soap/php.
181 2005-10-05 08:18
Re: Bug? (7 replies, posted in PunBB 1.2 discussion)
1st: If you post any other text then it works OK?
Otherwise it looks like your permissions/paths are screwed up.
2nd: If this is a bug then it should be in the Bug Report forum
182 2005-10-04 21:14
Re: Suggestions (9 replies, posted in PunBB 1.2 discussion)
they are not viable options to install mods yet.
Especially since most people will have several mods, not only one.
I really thought for days about a way to solve that but I couldn't find anything clever...
183 2005-10-04 17:56
Re: Question About Releasing Mods (6 replies, posted in PunBB 1.2 discussion)
But punres *is* a central download site.....
184 2005-10-04 16:13
Re: Question About Releasing Mods (6 replies, posted in PunBB 1.2 discussion)
However, there is always punres.org.
I for one think it is more user friendly to have all mods available in one place.
After all the mods are an important factor that contributes to the good reputation of PunBB.
Now, if everybody has his own mods (and, Paul: Her mods as well! ) on separate sites it will be more difficult to find the right thing.
What is a good idea though is to have a place on your site where your mods are discussed a bit more in depth or wher people get encouraged to write their own.
My opinion....
185 2005-10-04 08:18
Re: Same user appears 3 times in the online list (44 replies, posted in PunBB 1.2 bug reports)
Or, to be totally safe, you can change line 182 in index.php
$result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
to
$result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 group by user_id ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
186 2005-10-03 16:40
Re: Say me all 1.2.8 working plugins ! (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
And some download links
One link should do:
http://www.punres.org
187 2005-10-03 15:08
Re: Say me all 1.2.8 working plugins ! (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
There are dozens of mods, nobody maintains a central list of them so you'll have to contact the authors - or hope that they will all reply here. Which I bet they will not, at least not all of them.....
You're right in that there should be a list.
However, at the speed Rickard currently spits out new versions it would be impossible to keep track of things I guess.
188 2005-10-03 15:05
Re: Integrating with external application (8 replies, posted in PunBB 1.2 modifications, plugins and integrations)
A.f.a.i.k. ther is no SDK, the only thing coming close to that is extern.php .
This does not do what you want but it might give you a good starting point to create one
189 2005-10-03 08:01
Re: Threaded/Nested Messaging (12 replies, posted in Programming)
Yes,
typing all the dummy entries is totally boring and takes too long..
So, table structure (which I have now) and 20-30 sets of data (representative if possible, yu know, with nested levels, answers to answers and so on...) would be kind.
190 2005-10-01 19:21
Re: Threaded/Nested Messaging (12 replies, posted in Programming)
Some sample entries please?
Like 20, 30?
Because really, that *is* the main work.
191 2005-10-01 08:02
Re: Threaded/Nested Messaging (12 replies, posted in Programming)
You are right about the $sb.
I told you, a rough sketch it was...
Otherwise it should work, I cannot see a problem.
If you can't get it running send me a dump of the structure and at least 20,30 entries to play with so I don't have to make a dummy database. This will take the most time for solving this I assume.
192 2005-10-01 07:59
Re: Show avatar... (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You want to show all avatars of all logged in users on the frontpage?
Do this:
index.php, line 182:
$result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
change to
$result = $db->query('SELECT o.user_id,u.use_avatar, ident FROM '.$db->prefix.'online o, '.$db->prefix.'users u WHERE u.id=o.user_id and idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
Go to line 186
if ($pun_user_online['user_id'] > 1)
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
replace with
{
if ($pun_config['o_avatars'] == '1' && $pun_user_online['use_avatar'] == '1' && $pun_user['show_avatars'] != '0')
{
if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$pun_user_online['user_id'].'.gif'))
$user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$pun_user_online['user_id'].'.gif" '.$img_size[3].' alt="" />';
else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$pun_user_online['user_id'].'.jpg'))
$user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$pun_user_online['user_id'].'.jpg" '.$img_size[3].' alt="" />';
else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$pun_user_online['user_id'].'.png'))
$user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$pun_user_online['user_id'].'.png" '.$img_size[3].' alt="" />';
}
$users[] = "\n\t\t\t\t".'<dd>'.$user_avatar.'<a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
}
But it looks really ugly I think.....
193 2005-10-01 07:43
Re: Little fun Idea.. :) (16 replies, posted in General discussion)
I agree.
I think in the long run it will inevitably lead to PunBB vs PunBB light, the latter missing all the real cool geek stuff.
This is not what Open Source is about imo.
However, Linus Torvalds is not an exceptionally poor man from what I know, meaning:
The profit you gain from OS development is always an indirect one. Somebody might have no clue how to install and pay you to do for it. Or somebody may invite you to speak at a congress because you are the mod wizard.From this income you can always donate a share to the project that enabled this income.
194 2005-09-30 17:47
Re: Little fun Idea.. :) (16 replies, posted in General discussion)
i said "it would be nice to have the last topic a the actual title of the topic since narly all i know of except phpbb, does this"
Sorry, but you said
-change the last post from being a time to title.
But maybe you meant something else ...
Can you explain how you mean this? Maybe it's easy to do. I'm always trying to tweak the whole thing to make it better...
the PM mod is not useless entirely.
I did not say it is useless for you.
I said it is totally and absolutely useless for me. Which I took as an example how views can differ and that I appreciate PunB having only the features that really everybody needs.
195 2005-09-30 11:26
Re: extern.php with utf8 db & utf8 wordpress, but iso display : a solution (7 replies, posted in PunBB 1.2 modifications, plugins and integrations)
No, not Mysql. PunBB.
It's in lang/YOURLANG/common.php in line 32:
'lang_encoding' => 'iso-8859-1',
Change that value to utf8 and you should be done.
196 2005-09-30 07:54
Re: Little fun Idea.. :) (16 replies, posted in General discussion)
Well for now when are trying to get rickard to do the obvious things.
-change the last post from being a time to title.
I agree, that would be nice.
However, it can very easily be done yourself. I did it on some of my boards, it's even too small to call it a mod.
First, open index.php and go to line 42:
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
Change this to
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, t.subject FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id
LEFT JOIN '.$db->prefix.'posts as p on p.id=f.last_post_id LEFT JOIN '.$db->prefix.'topics as t on p.topic_id=t.id
LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
Now find this around line 109
// If there is a last_post/last_poster.
if ($cur_forum['last_post'] != '')
$last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
and change it to:
if ($cur_forum['last_post'] != '')
$last_post = '<a href="viewtopic.tbi?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'" style="font-weight:bold">'.$cur_forum['subject'].'</a><br />'.
$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'<br />
<a href="viewtopic.tbi?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">';
This will show you both the subject and the date.
-add more language pack in the actual download, including french, spanish, german, and chinese
I asked Rickard for that and he said (and he is most probably right there) that once you do that everybody wants his/her/its language to be included. The multi-language download system will do it more efficiently: http://punbb.org/forums/viewtopic.php?id=8957
-convert the pm mod into an actual feature.
What I love about PunBB is that it does not fall for everybody wanting his favourite mod to become a feature
No offense meant, but f.e. I see no use for a PM at all, never did and never used it anywhere. So I really appreciate a board *without* it ....
I don't mean to start a discussion on how useful a PM is, it's just an example.
197 2005-09-30 07:40
Re: PunBB Internationalization (7 replies, posted in PunBB 1.2 discussion)
I will however not translate the downloads page here at punbb.org. Keeping that things up to date with multiple language versions will be hell. If people are unable to navigate to the downloads page and to find the file to download, so be it.
That shouldn't be the problem. The word "Download" is widely understood...
Also you can have sites in the respective languages linking directly to the download files.
I would have thought that when it comes to documentation, like the language packs, that would be down to the good will of translators. If people want to provide non English versions of the documentation I doubt anybody is going to try and stop them.
I think that internationalization requires more involvement of the community anyway.
I translated the documentation to German and that took me 5 hours. Not too much for an average life span.
I believe the key is just to make all these versions easily accessible. That would imply that either there is somebody responsible for each language on PunBB.org who takes care of an up to date documentation and the lang files - or everybody who wants makes up his (@Paul:I really mean "her" ) website to promote that language. This is now the case for Poland, Russia, France and Germany.
This way takes load from Rickards server as well as responsibility.
198 2005-09-30 07:29
Re: lost.. (1 replies, posted in PunBB 1.2 troubleshooting)
There is a documentation: http://punbb.org/docs/
Otherwise it would be helpful to know *what* stuff you don't get
199 2005-09-29 20:07
Re: PunBB Internationalization (7 replies, posted in PunBB 1.2 discussion)
Yeah, that's a point I didn't mention - the admin area.
But I already read someweher that somebody took care of it....
It wouldn't be much of a job to insert language file variables for the install script as I have to go through all the markup anyway if Rickard wants to do it. This is for version 1.3 of course not the current one. If making the install script multi language requires anymore than that then I will leave the rest to the professionals.
As I said: I already did it for 1.2.8 and it would be no science to adapt it for 1.3, so do not worry about that.
P.S. Dont forget "her" PunBB.
Oh, I thought she could take care of her PunBB herself. And it could do as well, to be safe on the PC side of things
200 2005-09-29 19:25
Topic: PunBB Internationalization (7 replies, posted in PunBB 1.2 discussion)
There is one thing that doesn't leave my mind for a while:
I think that PunBB would win a lot of popularity if it would be available in several languages.
And I don't mean the possibility to install language packs, I mean everything:
- Download page
- Installer
- Default language
all in the tongue of those interested.
The reasons why I think this would be a step ahead for PunBB:
1. There are many people out there who don't speak english, or not well enough
2. Even for those who do it is more convenient to have the interface in the language they speak natively.
3. Why should one go through all the procedure in English when his board is meant to run only in French/Spanish/Kisuaheli?
Think of all the big Open Source projects like Firefox or OpenOffice: They are available in the most exotic languages.
I wrote a German installer for PunBB and I was surprised how many people downloaded it although my site is new and not known too well yet.
(In Germany phpBB is the big thing, and VBulletin because ... they are available in German....)
My idea was:
- A system where a user can chose the language for "his" PunBB. The system will look if a corresponding download file exists already, if not create one by adding the wanted language file to the source and compress it, then deliver it for download, keeping a copy for the next person asking for it. No big magick.
- A multi language installer basing on language files like the rest of PunBB.
It exists, I wrote it and sent it to Rickard.
He does not seem to hate the idea, so what do you all think?