161
trspice
Getting a weird error message when installing BOOX
  • 2007/4/4 21:03

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I get this error message when installing BOOX does anyone have a solution?
Ñ™1 .æ1 ..Ø™1admin—´Ù™1blocks´Ú™1class—´Û™1images´Ü™1includeÝ™1languageá™1 sqlâ™1 templatesä™1.projectM—´ý™1Pxoops_version.php§² is not a valid SQL!

Unable to install booxError(s):


Using
Xoops 2.016
PHP 4.4
Mysql 4.0

I went to instantzero.com for help with no reply and herve-thouzard's forum is closed on this.
There's nothing but science....
The Reggae Album



162
trspice
Re: Please adivise
  • 2007/4/2 20:57

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


So is there any assistance on this? Should this be post in the Core Hack forum?
There's nothing but science....
The Reggae Album



163
trspice
Re: Please adivise
  • 2007/4/1 15:25

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Maybe I should change the question to 'How do I fix this'. My initial changes are wotking fine. Here is what I ultimately want to achieve;

I installed the Blcksadmin module ( I think by PHPPP)

1. When I click the Administration menu I go directly to the blocksadmin module's index which displays nicely, just the custom blocks along with the group permissions so I can set access permissions without going through system > groups. All other modules are listed separately so the block list is not cluttered and confusing.

2. I placed a form button at the top of the Blocksadmin module's header that takes me to the System > blocksadmin page where I have removed the original blocks list and now just the 'Add New Block' form is displayed. (This is what I originally asked advise. It works fine)

3. I only use Left - Center - Right columns so I removed the bottom center columns from the display ( the blocksadmin module didn't have those either) and shifted the list positions of the Block Type drop list in the Add New Block form. (This is where I now have errors but not destructive)

4. I put an insert in the Groups table of the database which now automatically give new block and module access to anonymous group. It is very rare that I have a content I don't want them to see so it reduces the work and frustration to remember to set this.

I felt this was a neccessary hack (for me) and searched many sites to find this as I thought others (including the creators of Blocksadmin which started the whole idea) would want this as it seem so much more organized and simpler.

See the images of the chnages here

I have a test area on my server setup so you can see exactly how it is working and get a better understanding. If you are willing I'll PM the access. Just let me know.
There's nothing but science....
The Reggae Album



164
trspice
Re: Please adivise
  • 2007/4/1 5:42

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I did some additional hack and now notice some errors which strangely does not stop the system from functioning but needs fixing;

The 'Block Type' drop list on the Add new block form starts with 'Side Block - Left and I moved Center Block - Center to that position so it now looks like this and fuctions correctly;

Center Block - Center
Side Block - Left
Side Block - Right
Center Block - Left
Center Block - Right

I edited files;
include/common.php
[color=CC0000define("XOOPS_CENTERBLOCK_CENTER",0);
    
define("XOOPS_SIDEBLOCK_LEFT",1);
    
define("XOOPS_SIDEBLOCK_RIGHT",2);
    
define("XOOPS_SIDEBLOCK_BOTH",3);[/color]
    
define("XOOPS_CENTERBLOCK_LEFT",4);
    
define("XOOPS_CENTERBLOCK_RIGHT",5);
    
define("XOOPS_CENTERBLOCK_ALL",6);
 [
color=CC0000]  /* define("XOOPS_CENTERBLOCK_BOTTOMLEFT",7); */
   /* define("XOOPS_CENTERBLOCK_BOTTOMRIGHT",8); */
   /* define("XOOPS_CENTERBLOCK_BOTTOM",9); */ 
[/color]
    
define("XOOPS_BLOCK_INVISIBLE",0);
    
define("XOOPS_BLOCK_VISIBLE",1);
    
define("XOOPS_MATCH_START",0);
    
define("XOOPS_MATCH_END",1);
    
define("XOOPS_MATCH_EQUAL",2);
    
define("XOOPS_MATCH_CONTAIN",3);
    
define("SMARTY_DIR"XOOPS_ROOT_PATH."/class/smarty/");
    
define("XOOPS_CACHE_PATH"XOOPS_ROOT_PATH."/cache");
    
define("XOOPS_UPLOAD_PATH"XOOPS_ROOT_PATH."/uploads");
    
define("XOOPS_THEME_PATH"XOOPS_ROOT_PATH."/themes");
    
define("XOOPS_COMPILE_PATH"XOOPS_ROOT_PATH."/templates_c");
    
define("XOOPS_THEME_URL"XOOPS_URL."/themes");
    
define("XOOPS_UPLOAD_URL"XOOPS_URL."/uploads");


modules/system/admin/blocksadmin/blockform.php
$side_select = new XoopsFormSelect(_AM_BLKTYPE"bside"$block['side']);
$side_select->addOptionArray(array(=> [color=CC0000]_AM_CBCENTER=> _AM_SBLEFT=> _AM_SBRIGHT=> _AM_CBLEFT=> _AM_CBRIGHT,[/color] ));


The errors are

1. When I upload the changed files all the existing blocks switch positions.
- Center blocks move to the right
- right blocks move to the left
- Left blocks move to the center
When I switch them to the correct positions with the radio select they stay and display properly.

2. In the Groups settings;
- No center blocks show. Just the title 'Center'
- All the center blocks show in the right list (though they display correctly on the pages)
- Left block list display correct but they also duplicate in the right list (These also show correctly on the pages)
Resized Image

The blocksadmin list shows all blocks in their correct position.

I looked at files in modules/system/admin/groups but didn't see any obvious line to edit. It is probably there but I don't know how to interpret it.

Can anyone assist with this? Thanks.
There's nothing but science....
The Reggae Album



165
trspice
Re: Need hack to allow Annonymous default permission
  • 2007/3/31 23:07

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Well I seem to have solved it and no errors yet. I edited install/makedata.php like this
$tables = array();

    
// data for table 'groups_users_link'

    
$dbm->insert('groups_users_link'" VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 1)");
    
$dbm->insert('groups_users_link'" VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", 1)");
    [
color=990000]$dbm->insert('groups_users_link'" VALUES (0, ".$gruops['XOOPS_GROUP_ANONYMOUS'].", 1)");[/color]


I added the line in red. I had to reinstall to make it work but I suppose it can be done by editing the database which I don't have the skills to do. Maybe someone can post the insert method for the database.

Please advise if this will cause a problem with other modules or just generally.
There's nothing but science....
The Reggae Album



166
trspice
Need hack to allow Annonymous default permission
  • 2007/3/31 22:26

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I want to allow the annoymous group default access rights to new blocks and modules when they are created without having to manually modify the group. The same way the system does for registered users.

Has anyone done this? Can it be done simply? Thanks
There's nothing but science....
The Reggae Album



167
trspice
Re: Seeking a hack!
  • 2007/3/31 1:00

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


David, I greatly appreciate your assistance. You are correct that I just needed to put - none - after all the titles and it won't show on the pages but does in the admin.

Though i would still like to see an option to do this added to the add new block form. Maybe the core group will consider it as it seems to be a popular request. (based on the links you posted)

Many thanks
There's nothing but science....
The Reggae Album



168
trspice
Re: Seeking a hack!
  • 2007/3/30 21:52

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


David, thanks. The hack does remove the title but now I have blocks in admin with title 'none' and I have to click edit to figure which is which. This is half the hack I want.

The logic suggested by Herko seems to be what I need since XOOPS will take the command from the text in brackets but then in admin I will see the text following. If only I knew how to write such code.
There's nothing but science....
The Reggae Album



169
trspice
Re: Seeking a hack!
  • 2007/3/30 19:59

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Thanks for the replies but I don't know how to write the logic suggested.
There's nothing but science....
The Reggae Album



170
trspice
Seeking a hack!
  • 2007/3/30 16:32

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I would like to have a checkbox within the 'Add New Block' form that gives the the option to turn off block title for selected blocks. I still want to be able to enter a title since it identifies the block in the block list.

Please see the image as an example
Resized Image

The option wouldn't just remove the text but block out the entire div so there would not be a gap or the style of the div showing.
There's nothing but science....
The Reggae Album




TopTop
« 1 ... 14 15 16 (17) 18 19 »



Login

Who's Online

269 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 269


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits