Page 1 of 1

[Problem?] Categories...

PostPosted: Tue May 30, 2006 7:36 am
Author: phDaemon
When you make a new category named "General", on 1.4.0, it renames it to "General Admin" for some wierd reason.

ANyone else gets this?

Thanks.

PostPosted: Tue May 30, 2006 7:52 am
Author: Adrian Rea
I do not mean this rudely but you have posted a number of issues tht just do not happen on other installs. how did you upload it? unzipping on site, or at home?

A fresh install may be better

A

PostPosted: Tue May 30, 2006 8:41 am
Author: phDaemon
Not being rude at all, i also develop software and i understand completely.

I unzipped in my computer ( using winrar ). I uploaded using FlashFXP. it was a fresh installed taken directly from this site. I did not add any modifications exept for the Olympus Login, which is mostly a stlyling modification, and only affects login.php

The styles were also directly taken from this site.

EDIT:

I did do the upgrades from im_phpBB_2017 all the way to 2.0.20 but i am a php programmer so i am pretty sure i didnt make mistakes, besides i used the premodded files ( sheer lazyness ).

PostPosted: Wed May 31, 2006 12:40 pm
Author: phDaemon
ok, aparently this bug is also in beta 1.4.1 and has been submited.

PostPosted: Wed May 31, 2006 1:34 pm
Author: Adrian Rea
Then I eat my words :)

A

PostPosted: Wed May 31, 2006 2:02 pm
Author: phDaemon
Hehehe, np, glad i could help spot it <img>

PostPosted: Wed May 31, 2006 2:05 pm
Author: Adrian Rea
This got me thinking, and you know that means trouble! I first went and checked the 141 and yes the same happens. 'This can't be right!' I said to myself so I searched the entire 140 download and foound 3 "General Admin" references.
Code: Select all
C:_integramod140_install_instuctionsintegramod_install_guide_page2.htm        1         <span>General Admin</span> </th>1 match in C:_integramod140_install_instuctionsintegramod_install_guide_page2.htmC:_integramod140installschemasmysql_basic.sql        1  INSERT INTO `phpbb_blocks` (`bid`, `title`, `content`, `bposition`, `weight`, `active`, `blockfile`, `view`, `layout`, `cache`, `cache_time`, `block_bbcode_uid`, `type`, `border`, `titlebar`, `background`, `local`, `groups`) VALUES (19, 'Install and Configure Integramod 1.4.0', '<h1>Fresh Install for Integramod 1.4.0 </h1>rnrn<h2>Abbreviations used in this documentation:</h2>rnrnxxxxxx = wild card pattern .. those who are used to it its like "*" in most OS''s<br><br>rnchmod = name of command to change file permissions<br><br>rnhttp://www.yoursite.com = to be replaced with the name of your web site<br><br>rnACP = Admin Control Panel<br><br>rn<br>rn<h2>Requirements:</h2>rnrn<ol>rn    <lh><h3>In order to install IntegraMOD on your host server, you will require</h3></lh>rn    <li>A database source, which is MySQL3 or MySQL4 compliant. If you also have editing features like PHPMyAdmin - this may be helpful but not essential.</li><br><br>rn    <li>A host server with PHP Scripting 4.x. Please note IntegraMOD does not currently run on PHP5 enabled hosts</li><br><br>rn    <li>A server space of at least 50Mb You may wish to consider more if you plan of providing</li><br>rn         - Multiple styles<br>rn         - File storage<br>rn         - Pictures<br>rn         - Attachments<br>rn</ul>rn</ol>rn<h2>Install:</h2>rnrn<ol>rn<li> Upload all the files from the directory trunk (retaining the directory structure)<br>rn   to "public_html" or a sub directory (e.g. /forum/) on your web server</li>rn<br><br>rn<li>If your running on a *nix based OS or IIS widdows service<br>rn   Change the permissions of the following directories and files:<br>rn<Table>rn    <tr><td>chmod</td></tr>rn    <tr><td>Setting</td><td>Directory or file name</td></tr>rn    <tr><td>777</td><td>album_mod/upload</td></tr>rn    <tr><td>777</td><td>album_mod/upload/cache</td></tr>rn    <tr><td>777</td><td>backup</td></tr>rn    <tr><td>777</td><td>cache</td></tr>rn    <tr><td>666</td><td>cache/attach_config.php</td></tr>rn    <tr><td>777</td><td>files</td></tr>rn    <tr><td>777</td><td>files/thumbs</td></tr>rn    <tr><td>777</td><td>images/avatars</td></tr>rn    <tr><td>777</td><td>images/smiles</td></tr>rn    <tr><td>777</td><td>includes/cache_tpls</td></tr>rn    <tr><td>666</td><td>includes/def_auth.php</td></tr>rn    <tr><td>666</td><td>includes/def_icons.php</td></tr>rn    <tr><td>666</td><td>includes/def_qbar.php</td></tr>rn    <tr><td>666</td><td>includes/def_themes.php</td></tr>rn    <tr><td>666</td><td>includes/def_tree.php</td></tr>rn    <tr><td>666</td><td>includes/def_words.php</td></tr>rn    <tr><td>666</td><td>includes/phpbb_security.php</td></tr>rn    <tr><td>666</td><td>language/lang_xxxxxx/lang_contact_faq.php</td></tr>rn    <tr><td>666</td><td>language/lang_xxxxxx/lang_extend_xxxxxx .php</td></tr>rn    <tr><td>666</td><td>language/lang_xxxxxx/lang_faq.php</td></tr>rn    <tr><td>666</td><td>language/lang_xxxxxx/lang_faq_attach.php</td></tr>rn    <tr><td>666</td><td>language/lang_xxxxxx/lang_prillian_faq.php</td></tr>rn    <tr><td>777</td><td>modules</td></tr>rn    <tr><td>777</td><td>modules/cache</td></tr>rn    <tr><td>777</td><td>modules/cache/explain</td></tr>rn    <tr><td>777</td><td>pafiledb/cache</td></tr>rn    <tr><td>777</td><td>pafiledb/cache/templates</td></tr>rn    <tr><td>777</td><td>pafiledb/cache/templates/xxxxxx</td></tr>rn    <tr><td>777</td><td>pafiledb/cache/templates/xxxxxx/admin</td></tr>rn    <tr><td>777</td><td>pafiledb/images/screenshots</td></tr>rn    <tr><td>777</td><td>pafiledb/uploads</td></tr>rn    <tr><td>777</td><td>profilcp/def</td></tr>rn    <tr><td>666</td><td>profilcp/def/def_userxxxxxx.php</td></tr>rn    <tr><td>666</td><td>templates/xxxxxx/sub_templates.cfg</td></tr>rn    <tr><td>777</td><td>var_cache</td></tr>rn    <tr><td>666</td><td>config.php</td></tr>rn</table><br><br>rn<li>Create an empty Msql DataBase</li>rn<br><br>rn<li> Create a mySql DataBase User and assign their password</li>rn<br><br>rn<li> Add user to the DataBase with ALL privilages</li>rn<br><br>rn<li> Using your web browser<br>rn   visit the location where you uploaded the files with the addition of "install/install.php"<br>rn   (without the quotes)<br>rn   e.g: [url=http://www.yoursite.com/forum/install/install.php]http://www.yoursite.com/forum/install/install.php[/url]</li>rn<br><br>rn<li> Fill out the necessary information in the installation page and submit the page<br>rn   (be sure that the information you specified are correct.<br>rn   Wrong information can result to your forum not accessible or nothing is displayed when it is accessed).</li>rn<br><br>rn<li> Click Finish Installation. (You will be redirected to the logon screen .. but don''t login yet</li>rn<br><br>rn<li> Follow the steps in installing the new prillian messenger. </li>rn<br><br>rn<li> Delete the directory "install".<br>rn   Do not just rename this directory. It is mandatory that this directory be deleted.</li>rn<br><br>rn<li> Delete the directory "prill_install".<br>rn    Do not just rename this directory. It is mandatory that this directory be deleted.</li>rn<br><br>rn<li> Change the permissions on config.php AND includes/phpbb_security.php to be writeable only by yourself (664).</li>rn<br><br>rn<li>  Using your web browser,<br>rn      Go to [url=http://www.yoursite.com]http://www.yoursite.com[/url]<br>rn      Login using the details you fill in in the installation screen</li>rn<br><br>rn<li> Fill in remaining registration details for your account</li>rn<br><br>rn<li> Click on Admin in the menu bar (or "Go to Administration Panel" at the bottom of the page)</li>rn<br><br>rn<li> it will ask you for your log in details again. you need to fill this in every session that you go to the ACP</li>rn<br><br>rn</ul>rn</ol>rnYou are now ready to Configure your system<br>rn<br>rn<h2>Basic Configuration:</h2>rnEnter the Admin control panel<br>rnYou will be asked for your log in details again.<br>rnYou need to fill this in every session that you go to the ACP as a security measure<br>rnrn<b>.: Security :.</b> :: <b>Special</b> -- This is the section which you have to edit whenever you add in new Admins and moderators so that the system doesn''t think that its been hacked. Change these settings to suit how you want to secure your site.<br>rn<br>rn<b>Attachments</b> :: <b>Management</b> -- Change these settings to how you''d like to allow attachments to msgs in your forum<br>rn<br>rn<b>Download</b> :: <b>Configuration</b> -- Setup your download limits and banned extentions in here<br>rn<br>rn<b>Extentions</b> :: <b>Extention Control</b> -- Check the extentions default set and add, remove as you want, need.<br>rn<br>rn<b>Extentions</b> :: <b>Special catagories</b> -- Set your settings for images in as attachments<br>rn<br>rn<b>eXtreme Styles</b> :: <b>Configuration</b> -- <b>Show on left frame</b> -- You can select what items to show on left frame in admin control panel.<br>rn                                                                                            (I generally select all the panel;s to show in left panel)<br>rn                                                                                            Set Default template directory to fisubice<br>rn                                                                                            Make sure that "set Add tpl filenames in html" is set to No.<br>rn                                                      -- <b>FTP configuration</b> -- Click on set host''s links and set path links<br>rn                                                                                            This will enable you to help keep track of what versions your running<br>rn                                                                                            Click on submit<br>rn<br>rn                   :: <b>Styles Management</b> -- <b>Set default style</b> -- Switch all users to use an IntegraMOD 1.3.x compatible style.<br>rn                                                                                            NOTE: It is recommended to uninstall all those styles that are NOT IntegraMOD 1.3.x compatible.<br>rn                                                          -- <b>Manage Cache</b> -- Click clear cache for all templates<br>rn                                                                                        -- Click compile cache for all templates<br>rn<br>rn<b>Forum Admin</b> :: <b>Spellcheck</b> --  Build your dictionaries (Remember part1 then part2) of each language you wish to support<br>rn                                                  NOTE: The Dictionaries take up a lot of DB Space. (approx 4-5mb each language)<br>rn                                                  Delete the /spelling/xxxxxx.dic Files once you''ve built your Dictionarys<br>rn<br>rn<b>General Admin</b> :: <b>Configuration</b> -- Set your Site Name, Description, and default language. Signature content settings, and Avatar settings</br>rn<br>rn                            :: <b>Optomize DB</b> -- Enable Cron: and set to how often you''d like your DB to be optomized<br>rn<br>rn                          :: <b>Rating System</b> -- Set rating system active to Yes.<br>rn                                                          If you do not want to have the rating system active in your forum, just leave it to no.<br>rn                                                          If you do NOT enable it, remove the link from the board navigation block through <b>General Admin</b> :: <b>Qbar</b><br>rn<br>rn<b>IM Portal</b> :: <b>Blocks Management</b> -- The cache for the following blocks must be set to No(disabled)<br>rn                                                           <b>Board Navigation</b><br>rn                                                           <b>IntegraNews</b><br>rn                                                           <b>Recent Topics</b><br>rn                                                           <b>Who is Online</b><br>rn<br>rn                    :: <b>Delete Cache Files</b> -- This will delete the cache files for the blocks<br>rn<br>rn                    :: <b>Portal Configuration</b> -- This is where you set the variables for IMPortal and Blocks eg:Scrolling links in links block<br>rn<br>rn<b>Links</b> :: <b>Configuration</b> -- Don''t forget to update the values for your own forum<br>rn<br>rn<b>News Admin</b> :: <b>Configuration</b> -- <b>News Mod Base URL</b> to the exact URL of your portal.php<br>rn                                                   (e.g. [url=http://www.mysite.com/forum/portal.php]http://www.mysite.com/forum/portal.php[/url])<br>rn<br>rn                                                -- <b>News Mod Index File</b> to portal.php<br>rn<br>rn<b>Photo Album</b> :: <b>Configuration</b> -- Set image Size maximums to what you want<br>rn<br>rn<b>Prillian</b> :: <b>Configuration</b> -- Finalize the settings for your Prillian installation.<br>rn                                                e.g: to Disable Prillian:-<br>rn                                                <b>Enable Instant Messaging System</b> No<br>rn                                                <b>Enable Network Messaging system</b> No<br>rn                                                <b>Over ride user settings </b> Yes<br>rn<br>rn<b>Pseudocron</b> :: <b>Cron Configuration</b> -- <b>Enable Pseudocron</b> Yes (To enable the sending of digests)<br>rn<br>rnOnce you''ve done these then feel free to familurize yourself with the rest of the Admin controls you have at your command..rn<br>rnEnjoy using <b>Integramod</b> <s><img><s>rn<br>', 'c', 1, 0, '', 0, 2, 0, 1000, '', 0, 1, 1, 1, 1, '');2 matches in C:_integramod140installschemasmysql_basic.sqlC:_integramod140languagelang_englishlang_admin.php        1  $lang['General'] = 'General Admin';1 match in C:_integramod140languagelang_englishlang_admin.phpTOTAL:    4 matches in 3 files  (2805 other files without matches not listed)
which led me to see that it was picking up the lang key. to test it make a forum Ban_explain <img> hehehe!

This then leads me to think this is not a bug but a design build. I now wonder is there a switch to 'localise titles', if not - do we change the lang keys or disable this 'feature'?!

A

PostPosted: Wed May 31, 2006 2:21 pm
Author: phDaemon
So then its assigning any 'General' string the $lang['General'] value?

so anything that has a lang_key on it will be replaced by the actual value. this is very wierd.

May i ask what caused it to happen? which modification did you do?

Thanks ( This is very strange indeed as how you said it is only localized and does not affect outside the admin panel ) lol

PostPosted: Wed May 31, 2006 2:47 pm
Author: Adrian Rea
In fact this is a very useful function for some. It is like the IMPortal block can be linked to a lang key so that if a site is viewed in one language, the forum or block is understood by its title. Like News and Nieuws on the portal block, it allows the reader to know what is inside, even if it is not all in their language.

Unfortunately this has a limited value and I think we need to look at how to progress. I have made comment in the 141 forums.

For now, a quick fix is to edit language/lang_english/lang_admin.php Find
Code: Select all
$lang['General'] = 'General Admin';
Rplace with
Code: Select all
$lang['General'] = 'General';
but remember this will change your left column in ACP a little

A

PostPosted: Wed May 31, 2006 3:00 pm
Author: phDaemon
Well, i wont need to change it for now, lets see what else i stumble upon <img>

PostPosted: Wed May 31, 2006 3:08 pm
Author: Adrian Rea
<img>

A

PostPosted: Wed May 31, 2006 3:48 pm
Author: tmotley
Heh, I tinkered around with it. Check out what happens when you create a category and name it with a plain number like 12... <img>

PostPosted: Wed May 31, 2006 4:38 pm
Author: phDaemon
Hahahahaha, wow thats rich. GMT + ( Forum name here )

pretty good lol
<img>

seems something aught to be done about it afterall

Re: [BUG]Categories...

PostPosted: Thu Jun 01, 2006 3:55 am
Author: Michaelo
Simply put if a word is assigned in lang_admin.php it must be considered restricted when it comes to naming forums/categories i.e. is has become a system language variableà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

Note Numbers are also restricted so use (in post above) 12_ and set up a language variable for 12_ = 12

A function checks to see if a forum/category name is a language variable and if so it replaces it with the corresponding language value. As General is already a system language variable it cannot be reusedà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

To over come this or any other naming problem simple name the Category or Forum Name_ (note the trailing _)
For example] [color=brown]Forum Name = General_
Place a language value of $lang['General_'] = 'General'; in the lang_admin.php file.


This way other languages can assign a value for generalà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

PostPosted: Thu Jun 01, 2006 6:07 am
Author: phDaemon
You cant do that because if you name the forum 'General_' it will show up in the index page as General_ not as 'General'

this only happens in the admin panel...in other words, the lang keys are localized to the ACP but not to a certain module itself.

PostPosted: Thu Jun 01, 2006 6:12 am
Author: Adrian Rea
Duh, I did not see that! Grrrrr. yes, you are right this is only happening in the ACP, I knew something was not right. So we need to look at this a a bug but not desperate.

A

PostPosted: Thu Jun 01, 2006 6:29 am
Author: phDaemon
no wories :)

PostPosted: Thu Jun 01, 2006 4:59 pm
Author: Michaelo
Naming the category General_ and adding the language variable General_ = à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€¹Ã…“General only fixes the admin bug but the viewforums reverts to the language variable General_ so the fix is ineffectiveà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ Back to the drawing board ;) Just a thought :D

Re: [BUG]Categories...

PostPosted: Thu Jun 01, 2006 6:45 pm
Author: Michaelo
A small dilemma aka catch22à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

If I allow the setting of categories/forums name to what are in effect restricted names I will have to disable language name lookup for admin forumsà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ so for now, to allow such names as General, or numbered forums as 1,2,3,ect. Follow the next edit.

Code: Select all
 Open])) $res = $lang[$res];And replace [url=with]with://if[/url] (isset($lang[$res])) $res = $lang[$res];  


This will remove the lookup for matching words but I dont know if it will have any side effectsà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

A simpler solution would be to use names such as:
General Forum
Forum 1, Forum 2 etcà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

I am not convinced everyone would support this action so for now I won't add it to beta... On the other hand the aforementioned function may be of little use... thoughtsà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ <!-- s]

[color=red]This is not a bug its more a trade-offà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

Mike

Re: [NOT A BUG] Categories...

PostPosted: Fri Jun 02, 2006 2:52 am
Author: Michaelo
See [url=http]for more info...[/url]

PostPosted: Fri Jun 02, 2006 3:35 am
Author: tmotley
Oh sure, tempt us by posting a link to a private forum... <img>

PostPosted: Fri Jun 02, 2006 6:21 am
Author: phDaemon
Well....i guess i consider it a bug because the lang problem should be localized but isnt.
Code: Select all
 if (isset($lang[$res])) $res = $lang[$res];  


Why not put that code somewhere else where it should not affect the entire CH modification?

also the link...

Sorry, but only users granted special access can read topics in this forum.

I still dont know exactly what purpose the code provides because the whole thing about lang is that anyone can change it....unless you also want the name of the forums to change depending on lang? then again, we already know that doesnt work...

Just my two cents.

Re: [Problem?] Categories...

PostPosted: Fri Jun 02, 2006 2:48 pm
Author: Michaelo
Here is the post... Did not realise it was a private forum...

I have gone all the way back to 1.3.2 and the same code exists in all versionsà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ This is not a bug! Read onà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

Languages]
French: $lang['General'] = 'Administration GÃÂÂ ©nÃÂÂ ©rale';
English: $lang['General'] = 'General Admin';

[color=green]Code]
if (isset($lang[$res])) $res = $lang[$res];

It can be seen from the above that certain words have been assigned to admin menu headers being common to all languages these have in very real sense become restricted or reserved.

Now if I disable the function to allow the user to use words that appear in the lang_admin file I screw up the intended language replace functionalityà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

You may have noticed quite a few of the phpbb default language items use this_word_is, the underscore help to avoid this problemà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

[color=darkblue]So in support of calling this a bugà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ Emphasising with _ (underscore) should have been done at the outset and the problem would have been eliminated but as this happened some time ago changing it now would require a lot of work and may not be worth the hassle when all the user has to do is use another nameà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦


I give upà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ whatever it is it isnt a bug :)

PostPosted: Sat Jun 03, 2006 1:49 pm
Author: phDaemon
So, what can you do to fix it? just comment out that line? what "bad" effects will that have?

PostPosted: Sat Jun 03, 2006 7:34 pm
Author: Michaelo
There are only a few names used in the admin that we can't use but we only need make slight changes and we don't have a problem... On the next revision I will insist on using the underscore for all admin language variables so this problem wont occur again but till then we have to refrain from using them or perhaps individual sites may choose to comment out the line either way its not idealà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

One other standard, which has become lax, is the use of capitalisation for language variable i.e. people are using mixed case again this does not made the debugging any simplerà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

Mike