tuyau45,
t'm working on it, please give me a few days to test it.
1 2005-04-06 13:34
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2005-04-06 13:26
Re: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
What is it for ?
Enables multilanguage support in admin control panel.
3 2005-04-05 11:31
Re: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Updated to SVN 159
4 2005-03-27 12:30
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Later this week i'll upload a new mod version. I hope most issues will be addressed
5 2005-03-27 08:12
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Do you plan (when the russians characters will be debuged) to Highligh the topics both in viewtopic.php and search.php ?
If you mean highlighting keywords in search.php when topics are shown as post excerpts, i don't think it's such useful.
These posts is only a filtered part of original messages and many times don't contain searched keywords. But i will consider such an implementation after encoding issues have been fixed.
Regards
6 2005-03-24 14:19
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hmm tt works here, i'm a bit confused
Give me some time to test it.
7 2005-03-23 16:08
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
adsh,
I've uploaded an updated mod, please try that too.
BTW i installed punbb + highlight mod using windows-1251 encoding, and tried some russian posts. In fact i've copied and paste messages from your own forum.
Well, it works here, highlighting Russian keywords
What's you apache/php versions ?
8 2005-03-23 08:20
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I think i know what cause those errors. I'm currently working on this and Russian encoding.
In the meantime, please re-download updated mod and try it for errors.
Regards
9 2005-03-22 17:20
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Oops sorry you're right adsh, it's a nasty bug
Re-download mod from same url and replace your current search.php, viewtopic.php files with those included in the archive.
Try it and post me a note...
10 2005-03-22 09:46
Re: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
And highlighting not working on NOT first search results pages.
Sorry but could you please explain what you mean ?
When user submit http://site/search.php?action=show_new there are many errors on the page
Hmm, i cannot see that behavior in my own intranet forum. Please tell me, did you install this mod manually or using included files ?
$subject = '<a href="viewtopic.php?id='.$search_set[$i]['tid'].(($hl != '') ? '&hl='.$hl : '').'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($search_set[$i]['poster']).'</span>';
As you can see in line 619 there is only a simple IF structure that checks if $hl var exists and is assigned, before using it. Even if this comparison fail, there is no reason for such an error.
Please double check mod installation and post here your findings. Also, are you using any other mods affecting search.php and viewtopic.php ?
According to encoding, unfortunately i cannot do any testing in Russian. All iso-8859-xx and many ANSI encodings i've tried like cp-1252, cp-1253, cp-1255, work fine here.
If any other mod user has any similar problems, please post here a note.
11 2005-03-21 09:37
Re: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Updated to SVN 153
12 2005-03-19 12:45
Topic: Search Results Highlighting MOD (23 replies, posted in PunBB 1.2 modifications, plugins and integrations)
##
## Mod title: Admin CP Localization
##
## Mod version: 1.0.3
## Works on PunBB: 1.2.4
## Based on latest 1.2.4 SVN (153)
## Release date: 2005-03-23
## Author: Sakis (aka SSB) (ssb@in.gr)
##
## Description: Searching keywords highlighting mod
##
## Affected files: search.php
## vewtopic.php
## your stylesheet
##
## Affects DB: No
##
## Notes: Coded with minimum changes to the original PunBB-files.
## It highlights all found keywords after a successful searching.
## Mod recognizes wildcard and highlights the whole maching words.
## It works fine with quoted text and code.
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
##
## Installation: Follow next steps to enable admin CP localization.
##
## Replace PunBB search.php, viewtopic.php files with those in mod archive
## Append the following line in \imports\Oxygen_cs.css or your own color scheme stylesheet
##
## SPAN.hlight {font-weight: bold; COLOR: #FF0000}
##
## That's all...
##
## If you want to apply this mod manually, there are two diff files included in archive.
##
This mod highlights all found keywords after a successful searching.
It recognizes wildcard (*), highlighting the whole maching words and works in quoted / code text too.
Highlighting color depends on a CSS entry, you can append in your own color scheme stylesheet.
For example, the next entry appended to style/imports/Oxygen_cs.css diplays keywords bold-red
SPAN.hlight {font-weight: bold; COLOR: #FF0000}
Thia mod has been tested with English amd foreign iso-8859-xx encodings and seems to work just fine.
It was not test extensively with UTF-8 though. If you find any bugs, please post me a note.
This mod works with latest PunBB (1.2.4) but it can be easily adapted to any previous and/or future version.
BTW i'd like to see this mod or any other similar, included in PunBB official code. IMHO searching results highlighting, is a must.
Regards
13 2005-03-19 08:57
Re: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Updated to latest PunBB 1.2.4 (SVN 151)
Only moderate.php changed, because the rest changes were already included from SVN
You can redownload it from the same link.
Regards
14 2005-03-16 16:05
Re: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Rickard, i hope you have your Internet access fixed soon
15 2005-03-16 15:16
Re: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
is there a file to make the mod manually if whe allready have other mod installed
It is possible to do that manually, but not suggested because of many changes.
If your installed mods don't change admin control panel, it's very easy, otherwise you have to use a diff tool, merging my changes to yours. With right tool (eg. Beyond Compare, ExamDiff Pro) it's not that difficult.
BTW i'm preparing a diff report to make things easier...
16 2005-03-16 13:45
Topic: Admin CP Localization Mod 1.0.0 (11 replies, posted in PunBB 1.2 modifications, plugins and integrations)
##
## Mod title: Admin CP Localization
##
## Mod version: 1.0.6
## Works with PunBB: 1.2.4
## Based on latest 1.2.4 SVN (159)
## Release date: 2005-04-05
## Author: Sakis (aka SSB) (ssb@in.gr)
##
## Description: Localization mod for PunBB administration control panel
##
## Affected files: \admin_bans.php
## \admin_categories.php
## \admin_censoring.php
## \admin_forums.php
## \admin_groups.php
## \admin_index.php
## \admin_loader.php
## \admin_maintenance.php
## \admin_options.php
## \admin_permissions.php
## \admin_prune.php
## \admin_ranks.php
## \admin_reports.php
## \admin_users.php
## \moderate.php {A few changes to enable IP stats localization)
## \include\common_admin.php {Used by Admin CP)
## \lang\English\common.php (Just the last four lines)
##
## New files: \lang\English\adm_bans.php
## \lang\English\adm_categories.php
## \lang\English\adm_censoring.php
## \lang\English\adm_common.php
## \lang\English\adm_forums.php
## \lang\English\adm_groups.php
## \lang\English\adm_index.php
## \lang\English\adm_maintenance.php
## \lang\English\adm_options.php
## \lang\English\adm_permissions.php
## \lang\English\adm_prune.php
## \lang\English\adm_ranks.php
## \lang\English\adm_reports.php
## \lang\English\adm_users.php
##
## Affects DB: No
##
## Notes: Coded with minimum changes to the original PunBB-files.
## A few messages have been recoded using sprintf() to
## format message as a single entity, thus giving translators
## more freedom.
##
## Upgrade: Upgrading modified PunBB isn't an easy task, because ot
## many changes in core files. I hope Rickard, PunBB author
## will include this mod in PunBB official code tree.
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
##
Installation: Follow next steps to enable admin CP localization.
1. Install PunBB 1.2.4 as usual.
2. Unzip MOD file in a temp directory
3. Copy all included php files in \Upload\ into PunBB root directory, overwriting existed files.
4. Copy all included files in \lang\ into PunBB \lang\English directory, overwriting existed files.
5. Copy \include\common_admin.php into PunBB \include\ directory, overwriting existed common_admin.php file.
When you create your own translations, copy as usual all lang\English\ files into your own lang\directory, including all new adm_xxxx.php language files.
If you find any missing messages, bugs or any odd behavior of this mod, please post me a note using PunBB forum, or directly to ssb@in.gr
PunBB Admin CP Localization mod, has been written based on latest 1.2.3 - SVN code.
Please read included readme.txt file for installation instructions.
I tried to keep changes to a minimum and follow PunBB official translation method as much as i could. Some messages have been recoded using sprintf() for better formating and translation freedom.
moderate.php has some changes too, to enable user IP / Hostname translation that was missing in official PunBB.
For the same reason, four lines have been appended to common.php language file.
Use it with a clean PunBB 1.2.4 installation. All included files are based on official latest 1.2.3 SVN code.
PS: Please give me some time to fix possible bugs, before use it in your stable forum.
Besides those bugs (if reported) I don't expect to change many things so you can start writing your tranlation.
I'm also waiting Rickard's comments and/or suggestions, before declare this mod final
If you find any bug, missing or misspelled entry, please post here a note.
Updates: Re-download update zip from same url
1.0.1
Added a missing button caption
Combined two similar strings
Changed files: admin_users.php, adm_users.php
1.0.2
Replaced admin/mod menu simple caption with sprintf formated string
Added missing string in censoring
Added missing string in admin_categories
Merged two similar strings in one
Changed files: include/common_admin.php, lang/English/common.php, admin_censoring.php, /lang/English/adm_censoring.php, admin_categories.php
1.0.3
Added missing time/date "current format" message
Changed files: admin_options.php, /lang/English/adm_options.php
1.0.4
Updated to PunBB 1.2.4 (SVN 151)
Changed files: moderate.php (the rest 1.2.4 changes were already included)
1.0.5
Updated to PunBB 1.2.4 (SVN 153)
Changed files: moderate.php, admin_index.php
1.0.6
Updated to PunBB 1.2.4 (SVN 159)
Thanks
17 2005-03-13 13:02
Topic: Possible bug in user groups administration (1 replies, posted in PunBB 1.2 bug reports)
Just noticed that it is possible to add a new group, with same name as an existing one. (PunBB 1.2.3)
I think it's a bug because code in admin_groups.php supposed it prevents such a case.
18 2005-03-12 15:15
Re: Question to Rickard (12 replies, posted in PunBB 1.2 discussion)
Hmm $lang_common includes only a few of those common strings. Most of the rest are in other lang sources.
For now, i don't use them at'all, saving all admin cp strings in adm_xxxx.php files. IMHO that makes it easier for anyone to include admin localization.
The only minor problem is that there will be some duplicate entries, i mean strings found in both forum and ACP lang files. Not big deal though... It can be fixed in a future revision if is necessary.
Thanks anyway
19 2005-03-12 12:17
Re: Question to Rickard (12 replies, posted in PunBB 1.2 discussion)
There are so many strings common in forum and admin CP !
I really don't know what to do with them. Do you think is better use already assigned ones in forum language or reassign them in an admin-only language file ?
For example, terms like forum, admin, go back, save, user, username, post etc., plus many error messages already exist in lang files used by forum itself.
Reassigning them in an admin CP specific language file is easier, because there is no need to include forum lang files and gives more freedom in translation, but... (there is always a ...but )
Any suggestion Rickard ?
20 2005-03-11 09:05
Re: Question to Rickard (12 replies, posted in PunBB 1.2 discussion)
I've updated to latest 1.3 dev and included all mods i did so far.
Almost 50% is done. I think, early next week it will be ready.
21 2005-03-10 10:30
Topic: Question to Rickard (12 replies, posted in PunBB 1.2 discussion)
Rickard,
I'm working on admin control panel multilanguage support and need some advice.
Is it preferable to use a single language file for the whole administration or use multiple files, same way forum works ?
There are many strings, common to all tasks. Messages like "Yes" "No" "Save" "Delete" etc. Currently i put them in a adm_common.php language file.
The rest messages are stored in multiple files, one per admin task. For example...
admin_categories.php uses adm_categories.php lang file and $lang_adm_categories array
I've started mod using stable 1.2.2 Do you think i should follow 1.3 tree ?
I'd appreciate any comments
Thanks
22 2005-03-09 12:29
Re: Search results highlighting (2 replies, posted in Feature requests)
That's OK Rickard, i'll consider writting a mod
23 2005-03-09 12:19
Topic: Admininstration multilanguage support (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I'm working on multilanguage support for Admin CP (version 1.2.2)
Currently using lang_adm_xxxx.php as language include (eg lang_adm_index.php).
$lang_adm_xxxx is strings array containing messages, same naming as that used in forum tranlation.
I hope, when finished, Rickard will use it for future PunBB versions.
Progress: Done!
Now i'm testing it for possible omissions or bugs. You have to wait for a while
Any comments or suggestions are welcome
24 2005-03-09 09:47
Topic: Search results highlighting (2 replies, posted in Feature requests)
Search string highlighting is very usefull.
Do you have any plans implementing that in a future update ?
25 2005-02-28 14:16
Re: 1.2.2 styling questions (6 replies, posted in PunBB 1.2 discussion)
When first tried that, it failed because i had a mistake in markup.
Now it works just fine,
BTW although i do like css and table-less design, reading and understanding someone's else work isn't an easy task.
I hope you will release some kind of PunBB styling guide
thanks Paul.