xoops forums

Forum Index


Board index » All Posts (nachenko)




nachenko

Quite a regular
Posted on: 2008/3/27 14:52
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#1

Re: problem with $xoopsDB->prefix()

Why don't you put the prefixed table name in a variable instead of executing the prefix method twice?

Like this:

$ventas_table = $xoopsDB->prefix('ventas');

then

$result = $xoopsDB->queryF("SELECT v_venta_nro FROM $ventas_table WHERE id = (SELECT MAX(id) FROM $ventas_table LIMIT 1 )ORDER BY id DESC") ;


nachenko

Quite a regular
Posted on: 2008/1/30 13:31
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#2

Re: News Module columns

The bold code by qcorek is the key. You could set cell width if you could detect the first column, the second...

If you could set a "column counter".

And you can.

check "counter" in the Smarty manual. You'll get how to set a counter and use it in your template.


nachenko

Quite a regular
Posted on: 2008/1/17 22:15
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#3

Re: Pico - can't figure out how to use it

Well, for that subject Mastop Publish can do the job, but if youwant to keep trying with Pico, some GIJoe's modules require Altsys (another GIJoe stuff) to be installed. Check Pico's readme for references to Altsys.


nachenko

Quite a regular
Posted on: 2008/1/16 11:31
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#4

Re: Controlling members out of XOOPS

try evaluating user this way:

if (is_object($xoopsUser))

This is taken form a real website:

Quote:
if (!is_object($xoopsUser)) {
redirect_header('javascript: history.back(1);', 3, _NOPERM);
}


You can see it in action clicking on this link:

http://www.sinestesia2007.info/forms/congress_form.php

then try login as test / test and try again.


nachenko

Quite a regular
Posted on: 2008/1/16 10:26
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#5

Re: Controlling members out of XOOPS

You need mainfile to get XOOPS config, and header.php to get the $xoopsUser object and session control


nachenko

Quite a regular
Posted on: 2008/1/8 0:02
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#6

Re: Gray box around center blocks

This border is a "fieldset" tag in the center template. The title is into a "legend" tag". Just open the center block template file in your theme folder and edit it.

If you want to hide the border and title witohut editing center template, you can do it modifying the CSS in your theme "style.css" file:

#centercolumn fieldset {border: none}
#centercolumn legend {display: none}


nachenko

Quite a regular
Posted on: 2007/12/28 10:20
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#7

Re: Smarty template with php in it

I think your problem is the "else" statement.

It should be

} else {


nachenko

Quite a regular
Posted on: 2007/12/19 11:17
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#8

Re: convert 2.0.16 XOOPS XM back to Normal XOOPS

Activate debug console, then copy the whole database, or activate debug console directly into the new database, and tell us what happens.


nachenko

Quite a regular
Posted on: 2007/12/18 13:58
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#9

Re: Would you know where 2.3 info is because

Stefan88, Profile module is not in the core for Drupal. I mean ,it's in the main distribution, it's a "Core - Optional category" module, but you can deactivate it as any other module. If you want to compare on flexibility and you want XOOPS to win, don't compare to Drupal.


nachenko

Quite a regular
Posted on: 2007/12/18 13:22
nachenko
nachenko (Show more)
Quite a regular
Posts: 356
Since: 2005/1/18
#10

Re: Would you know where 2.3 info is because

Tricky question.

I'll tell you where Drupal sucks the first time: theming. This is one of the worst surprises you'll get from it. You're making amazing changes on the site without writing a single line of code, then suddenly you have to code a big fat lot overriding some osbcure theming function you didn't know it existed, just to add a linebreak somewhere. Oh, you will love Smarty after that and talk pests about PHPTemplate, no matter how much Drupallers defend it.

Drupal is also heavier than Xoops, doing many more database queries and requesting more memory for some tasks.

But as an application, it gives you all the features you could ever need for your day-to-day job on the site, and the taxonomy+CCK gives you amazing tools to change content structure "on the fly". You'll never get short on features with it.

That's the truth. Breeze on content management, horrible pain for theming. Once you beat theming, everything works like a charm.



TopTop
(1) 2 3 4 ... 27 »