21
teibaz
Minor bug in $reservedTables
  • 2006/11/19 15:55

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Hi,
in htdocs\modules\system\admin\modulesadmin\modulesadmin.php on line 133 & on line 531 there are defined the same variable - $reservedTables which has duplicated entries. My first suggestion is to set this variable once for all, and second write reserved tables in alphabet so that wouldn't be dublicated entries (as is now).



22
teibaz
more flexible xoops?
  • 2006/7/7 9:18

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Hi, last two or three weeks I developed my project based on Xoops. I changed some things in it and want to know your ideas about that. (I just suggest to pay attention to this, not to do this)

1. Redirect page.
I definately hate it so i made a constant USE_REDIRECT. In my project this const is 'false' So, i just send headers to needed page. One more thing with this, sometimes at the end of url (for ex. https://xoops.org/?) we can see '?'. I pregmatche it and kill :) i think we don't need it, yea?

2. Directory structure.
Why there are several cache dirs? Now:
ROOT_DIR/templates_c
ROOT_DIR/cache

first one is for smarty, second for xoops, but all in all both are for cache, so i do this:
ROOT_DIR/cache/temp
ROOT_DIR/cache/templates_c


3. Modules directory
I changed my modules directory 'name' because of more friendly url. There could be several ways: to use mod_rewrite (not all users can do that) or to change modules directory name. I created 'XOOPS_MODDIR_NAME' and used it instead of 'modules'.

4. CSS and IMAGES
I put them just into root dir in IMAGES and CSS directories. xoops.css too. I just separated html, css, images files, because now they are just mixed in themes. (actualy, i named themes into layout, because i use them like my layouts, not as themes).

This part is mostly for structure and naming.. I made core changes to generate cute keywords, description or title. Few SEO things like URL constructing and so on.. Why i said, that this is just offer and not TODO list items.. Because a lot of users couldn't upgrade theirs XOOPS to such version. Because almost all modules needs fixes and so on.. I made changes in news, newsbb and several other modules, but we have lost of them.. In other hand, now i can have SEO friendly urls like (in news)

http://PROJECT_URL/PROJECT_SPECIFIC/news/my-super-duper-news.html

just for thinking..



23
teibaz
Re: Xoops 2.2.3: smarty read error: block_...
  • 2006/1/12 20:02

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


OK, lets start step-by-step

open phpMyAdmin (pma)
select your database
select '{xoops_prefix}_tplfile' table
now you can see tables structure
at the bottom of page there is block 'Indexes' take a look at it.
There should be three rows and the row where in Field is value 'tpl_file(10)' you should delete.

Then it should everything work propertly

Cheers



24
teibaz
Re: Custon block with google links
  • 2006/1/10 14:56

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


i think you should use htmlspecialshars or url encode.

simple, if in this place instead of / would be
"& # 4 7 ;" (without spaces and quotes) and instead of * would be "& # 4 2 ;" (without spaces and quotes) everything would be fine



25
teibaz
Re: PHP errors
  • 2006/1/9 15:33

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


actualy it isn't a solution. It shouldn't be such things in normal code, but.. in this way...



26
teibaz
Re: Fit to screen ??
  • 2006/1/9 15:32

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Quote:

nonpulse wrote:
Quote:

m0nty wrote:
1. you can if you use a dynamic width % instead of fixed width..

where can I make these changes??


in your themes dir. For example
<table style="width:100%">
  <
tr>
    <
td>
      
content
    
</td>
  </
tr>
</
table>

instead of

<table style="width:500px">


where 500 could be any number



27
teibaz
Re: Xoops 2.2.3: smarty read error: block_...
  • 2006/1/9 6:25

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


i recomend to do this before installation. In other way you can delete this INDEX condition in phpMyAdmin



28
teibaz
Re: xoops 2.2.3 - problems with custom blocks being blank
  • 2006/1/7 10:06

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


Quote:

dwhitten wrote:
Getting this error in the blocks:

Warning: Smarty error: unable to read resource: "db:faqs_context.html" in /home/horse/public_html/x/class/smarty/Smarty.class.php on line 1084


Maybe this will help you?

You can do this after your installation in phpMyAdmin too



29
teibaz
Xoops 2.2.3: smarty read error: block_...
  • 2006/1/7 9:57

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


So,
just fresh installed XOOPS 2.2.3 and.. Smarty could not read block resources..

Windows
Apache 1.3.34
PHP 4.4.1
MySQL 4.1.15

perhaps because of MySQL version (i guess) there is an error in one query, which should return source, but return false.. I lost a hour while i found it :/ Problem is in html\install\sql\mysql.structure.sql file 486 line:

KEY tpl_tplset (tpl_tplset,tpl_file(10))


I was bored to find out why this line gets false, but if we delete this line it should work perfect and then blocks will be visible again.

Cheers,
teibaz



30
teibaz
Re: problems with template switching. need solution.
  • 2005/10/3 14:24

  • teibaz

  • Not too shy to talk

  • Posts: 103

  • Since: 2004/6/13


sorry, but.. what about hardcoding blocks into template? I need them, because even if i use all blocks: left, center-left, center, center-right & right - it's not enough for me, that i could put them in different template places.. i realy need to hardcode two or more blocks, for ex menu or login box..




TopTop
« 1 2 (3) 4 5 6 ... 8 »



Login

Who's Online

78 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 78


more...

Donat-O-Meter

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

Latest GitHub Commits