81
mvandam
Re: blank page during installation under linux when I confirm db settings!!!
  • 2003/11/24 1:27

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Please turn on PHP debugging and see if you get some error messages. Also see the XOOPS wiki documentation about 'Troubleshooting a Blank Page'.

Have you tested on you linux platform whether MySQL is working properly on its own (i.e. using the MySQL command line interface or phpmyadmin or something)?



82
mvandam
Re: Error in Kernel (urgente) 2.0.5
  • 2003/11/19 19:11

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


WHERE uid IN (1,2,3)

WHERE uname IN ('tom', 'dick', 'larry')

It is true that you don't want the quote around the whole brackets, but if you are using strings you'll need the quote around each element individually.

I guess you can force other parts of the code to put the quotes around the string elements, but I wonder if it would be better to have this built into the criteria class:

if (is_array($value)) {
return "('" . join("','", $value) . "')";
} else {
return "'$value'";
}

Also, I wonder if instead of just putting quotes (') around $value if we should pass it through $xoopsDB->quoteString???



83
mvandam
Re: Notification Options Block Help
  • 2003/11/19 8:29

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


a) go to forum administration and enable *inline* style notifications; go to news administration and disable notifications

b) go to blocks administration and make the notifiction block not visible (notifications will still be shown in the main region of forums)

Also have a look athttp://wiki.xoops.org/wakka.php?wakka=XoopsNotificationSystem



84
mvandam
Re: site name missing
  • 2003/11/18 10:03

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Is this the only config option you can't change? If so, read on; if not, it is probably something else.

Did you install with 'fantastico'? If so, search the forums here for 'fantastico' and you'll find there is a bit of an issue with this installer and a few versions of xoops. If you did use fantastico, you may want to consider the possibility of installing XOOPS yourself via the XOOPS installer (if possible with your hoster). Otherwise you may need to get your hands dirty with a little bit of MySQL to fix a couple of errors made by fantastico.

[EDIT: I've just added a FAQ for the Fantastico issue on the wiki as it has come up several times now.]



85
mvandam
Re: Cutting out the Geeky stuff!
  • 2003/11/18 8:42

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Quote:

Now, to the point here: If someone was to patch the News module to do this, what happens to the templates with the old <{$story.morelink}>? How does a template designer know that the old morelink is depricated and the 6 others take it's place other than by comparing versions of templates?


This is an important point. There are already a lot of themes out there... I don't know how many 'template sets' exist with replacements for the 'news article' but I'm sure there are quite a few. If the news module suddenly stops providing 'story.morelink', then all these templates "break". I guess for a limited time, both the story.morelink and also the split up version could be provided. The story.morelink could be documented (in the list of variables for the template/module) as deprecated, maybe set to expire in e.g. 6-12 months (at which point it will not be provided by the news module) so template designers would know not to use it. Perhaps the list of variables could include a version number. Then, templates could indicate which version of the variable list they support. Then e.g. the module installer/updated could easily identify mismatches (perhaps giving the option of trying anyways) in module-variable-list-version and template-version. Hmmm....



86
mvandam
Re: Cutting out the Geeky stuff!
  • 2003/11/18 8:35

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Horacio,

I think we agree on everything here, though maybe I wasn't all that clear:

Quote:

1) First of all, the PHP templates are cached in templates_c and the HTML templates are in the database, so retrieving them shouldn't be a problem. The loss of performance when retrieving a PHP template would occur only the first time the template is invoked, but then the same is true of the HTML template. Or am I mistaken?
...
3) If you use all the variables and then limit their display by handling the HTML template, and if we assume you don't lose performance because you left the PHP file alone, isn't it true that we'd need to consider also the minimal but real loss of performance created by the retrieval of variables that won't be used? In this matter, I think we'd need an efficiency guru to try both approaches (control in the PHP files against control in the HTML files) and get hard numbers about performance.


I think these issues are related. When you retrieve one record e.g. for a news article, then all data associated with that article (in the articles table) are essentially "free". Thus it makes sense just to get everything. But some related data from other tables is not so free. For example, the article contains the ID number of the poster, but not his/her username. The username must be retrieved separately. (Separate retrieval can still occur in the same query though, which complicates performance estimates.) Thus for all the data in the article table, we can err on the side of just getting all the info. For data outside the article table, maybe there is a performance argument for configurability. But note that 'getting' the configuration information to see which variables to retrieve is going to take one query (assuming config info is stored in the database) so this penalty must be weighed against potential savings. This must be done EVERY time the page is shown. i.e. Which fields to display can't (I don't think) be cached in the template.

Anyways, I also don't want to get in a discussion about this. There are some performance tradeoffs and I think we can't say too much without full testing in a deployed site.

Quote:

2) I'd have to agree the HTML templates are a great place to define WHAT to show and WHERE/HOW to show it. However, the first question has to do with the definition of the application's behavior, while the second has to do with the presentation layer. And my take here is that graphic designers should only be concerned about the presentation layer.
...
4) Having said all this, I wouldn't really want to start a discussion about this matter, so I rest my case just saying I'd like the definition of variables to be in the hands of the site manager and the definition of the presentation layer in the hands of the site designer.


Again, I think these are somewhat related. I think the PHP code should generate smarty variables for some given set of data then the templates choose which ones to actually use. (As many have pointed out, certain *current* smarty variables *should* be more granular in certain cases, so templates can achieve the desired control without hacking PHP code.) And as some have suggested, multiple standard templates could be provided. This makes it easy for the admin to choose a 'corporate' look or a 'gamer site' look for example.

I completely agree that the webmaster is not in general a designer. But if the webmaster gets to control via checkboxes which smarty variables are defined, then the designer needs to be a programmer - i.e. the template must handle every case of whether the variable is defined or not defined. As gstarrett and Draven have mentioned, the module could provide a document listing all the smarty variables defined for each particle page (and block). Then template designers are free to choose from this list when designing templates. The module would have to provide a list of variables that is relatively 'complete' and provides nearly everything that designers could want to display.



87
mvandam
Re: Cutting out the Geeky stuff!
  • 2003/11/17 22:59

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


hsalazar [edit: and some others who posted since I started writing this ],

I think you have found what is the key point here. A lot of things (such as new topic and title) are intertwined at the level of PHP such that they aren't assigned to different variables. If they were, this will make a lot of things more customizable.

I *do* think the template is the place for a lot of these things. e.g. If you don't want the author of the story, then the template is where to remove it - I think you don't want to have config options to enable/disable every single variable. This would be easier for admin, but will really slow down the display of many things. IMHO, templates should control not only how things are shown (visual presentation), but also WHICH information to show.

But certain things like smilies etc. do not fall into this class. This is part of the 'textsanitizer'. It seems there is an issue of providing each piece of data as a separate variable, but also separating the various 'transforms' that are applied to each of those variables. In most modules, there is only one major piece of text that gets transformed (e.g. with smilies, bbcode, etc...). If this can be enabled/disabled at the whole-site level as well as per-module level, this might be sufficient. These options will be invoked when displaying the item, and also when showing the 'edit' form (i.e. we need to hide the smilies and smilies checkbox when they have been disabled).

Anyways, very happy to see this thread... I think it addresses not only the immediate issue of certain particular options that we'd like to have control over, but also the general issue of design and more complete separation of php data manipulation and presentation.



88
mvandam
Re: theme.html problem!
  • 2003/11/17 22:37

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Herko, yes, you are right. Anyways, I don't think it would be the source of those errors because I believe that error page should only come up if there is a PHP error, not something wrong in the HTML.



89
mvandam
Re: Mantis Bug Tracker and Search.php
  • 2003/11/17 22:29

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Hmmm, this sounds like perhaps a bug. I ported mantis, so I'll have a look into this. Thanks for the description of the behaviour so far, makes it easier to track down. Please post if you find anything else and I'll post my own results too.

Thanks!



90
mvandam
Re: Recent Downloads - php include
  • 2003/11/17 21:19

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Quote:

is there any available code that will do this for me at all :s

Not that I'm aware of, but maybe someone else knows of something...




TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 21 »



Login

Who's Online

183 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 183


more...

Donat-O-Meter

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

Latest GitHub Commits