1
nachenko
Re: problem with $xoopsDB->prefix()
  • 2008/3/27 14:52

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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") ;



2
nachenko
Re: News Module columns
  • 2008/1/30 13:31

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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.



3
nachenko
Re: Pico - can't figure out how to use it
  • 2008/1/17 22:15

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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.



4
nachenko
Re: Controlling members out of XOOPS
  • 2008/1/16 11:31

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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.



5
nachenko
Re: Controlling members out of XOOPS
  • 2008/1/16 10:26

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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



6
nachenko
Re: Gray box around center blocks
  • 2008/1/8 0:02

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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}



7
nachenko
Re: Smarty template with php in it
  • 2007/12/28 10:20

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I think your problem is the "else" statement.

It should be

} else {



8
nachenko
Re: convert 2.0.16 XOOPS XM back to Normal XOOPS
  • 2007/12/19 11:17

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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



9
nachenko
Re: Would you know where 2.3 info is because
  • 2007/12/18 13:58

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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.



10
nachenko
Re: Would you know where 2.3 info is because
  • 2007/12/18 13:22

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


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 »



Login

Who's Online

191 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

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

Latest GitHub Commits