291291
gruessle
Re: Left block does not disappear when empty.
  • 2003/10/7 6:14

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20



it is working thank you.
And a special thank you because you are not just helping but also teaching.



291292
hsalazar
Re: Left block does not disappear when empty.
  • 2003/10/7 6:03

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


gruessle:

This is not a fix, since the persistence of the left block has nothing wrong: it's just the way the theme is done. Assume here we're talking about the default theme; then you'll be able to apply this logic to other themes.

If you open the file theme.html in the theme Default, you'll notice that the TD showing the right column is in the inside of a conditional declaration:

<{if $xoops_showrblock == 1}>

      <
td id="rightcolumn">
        <!-- 
Start right blocks loop -->
        <{foreach 
item=block from=$xoops_rblocks}>
          <{include 
file="default/theme_blockright.html"}>
        <{/foreach}>
        <!-- 
End right blocks loop -->
      </
td>

      <{/if}>

This tells us that this particular TD will show if and only if the variable $xoops_showrblock has a value of 1.

If you look at the TD holding the left column:

<td id="leftcolumn">
        <!-- 
Start left blocks loop -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="default/theme_blockleft.html"}>
        <{/foreach}>
        <!-- 
End left blocks loop -->

      </
td>


... you'll see there's no condition, so the TD appears even if it contains nothing.

How can we change this behavior? We need to enclose this TD in its own conditional, something like:

<{if $xoops_lblocks ""}>
      <
td id="leftcolumn">
        <!-- 
Start left blocks loop -->
        <{foreach 
item=block from=$xoops_lblocks}>
          <{include 
file="default/theme_blockleft.html"}>
        <{/foreach}>
        <!-- 
End left blocks loop -->

      </
td>
      <{/if}>

What we're saying here is: if the array $xoops_lblocks has some content, display the TD.

This should work, at least from the perspective of logic. If it doesn't please tell us in this same thread, in order to further explore the issue.

Cheers.



291293
gruessle
SqMail BUG
  • 2003/10/7 6:01

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


Since I have installed sqmail in the User Menu - next to the Inbox with in brackets I see pm & sqmail added up number of messages, even if the messages have already been marked read in pm or sqmail.

Germany type long sentence, sorry about that.



291294
gruessle
Re: Can i login both xoops and sqmail?
  • 2003/10/7 5:54

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20


I would like that too



291295
Mitch
Re: Some help with xoops
  • 2003/10/7 5:53

  • Mitch

  • Just popping in

  • Posts: 7

  • Since: 2003/10/7


well the main problem is that, well you know how you choose blocks and can chose were u want to put them, when i chose blocks i have heaps of option for top page, but when i want to setup all latest forum posts and affiliates on news and forums i dont get the options at all for them, like there is half the options in the rest than there is in default page.

www.above-performance.oz-hosting.net/xoops/

im gunna make a domain later but first i want the page going, and also with other articles (renamed reviews) i want it to go streight to reviews without crossing that other articles section, is this possible? Anyway could people add me msn and help me i would really apreciate this because i have big plans for this site. Anyway thanks.

Oh and im not gunna be using that theme i just changed it to see if it effected my problem, basicly i want the page setup exacally the same ashttp://www.ausfx.com (which i half own and wanto leave for my own page) if anyone can do this i would gladly give them admin control to config my XOOPS



291296
Mithrandir
Re: Some help with xoops

Administration Menu -> System Admin -> Preferences -> General Preferences -> Module for your start page: Select News

How do you want your XOOPS to look like? What's your site URL so we can take a look?

/Mithrandir



291297
gruessle
Left block does not disappear when empty.
  • 2003/10/7 5:33

  • gruessle

  • Friend of XOOPS

  • Posts: 348

  • Since: 2003/9/20



If there is nothing in the right block, it will disappear but not the left block.

Is there a fix for that?

Thanx



291298
gstarrett
Re: Need update query help
  • 2003/10/7 5:31

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Alright... since no one noticed my post who could answer, I figured it out myself. If there's anything that will cause trouble down the line, please advise, but this seems to work properly.

Note that I'm not checking the return values because they will return 0 when there are no photos / comments to update.

This is from xoopsgallery/classes/AlbumDB.php, Line 89:
if (fs_is_dir("$dir/$oldName")) {
    
$success fs_rename("$dir/$oldName""$dir/$newName");
    if (!
$success) {
        return 
0;
    }
    
$xoopsgalleryimage_handler =& xoops_getmodulehandler('image');

    
// Update xoopsgallery_image.image_albumdir with new album name
    
$sql sprintf("UPDATE %s SET image_albumdir='%s' WHERE image_albumdir='%s'"$xoopsgalleryimage_handler->db->prefix('xoopsgallery_image'), $newName$oldName);
    
$result $xoopsgalleryimage_handler->db->queryF($sql);
    
    
// Update xoopscomments.com_extraparams with new album name
    
$sql sprintf("UPDATE %s SET com_exparams=REPLACE(com_exparams, 'albumName=%s&', 'albumName=%s&') WHERE com_exparams LIKE '%%albumName=%s%%' AND com_modid=%d"$xoopsgalleryimage_handler->db->prefix('xoopscomments'), $oldName$newName$oldName$GLOBALS['xoopsModule']->getVar('mid'));
    
$result $xoopsgalleryimage_handler->db->queryF($sql);
}




291299
PatrickW
Re: Creating a menu in the main menu
  • 2003/10/7 5:17

  • PatrickW

  • Just popping in

  • Posts: 40

  • Since: 2003/8/29


Hi,

Maybe there went something wrong with installing the Imenu module. I can only have 1 big main title and in there just links. Is this correct? I really like to be able to have more big main menu titles with sub ones in it.

Patrick



291300
Mitch
Some help with xoops
  • 2003/10/7 4:52

  • Mitch

  • Just popping in

  • Posts: 7

  • Since: 2003/10/7


I am having some trouble getting the moduals to look like i want them and the home page to direct to news, i know some people here are so experienced it would only take them a few seconds to fix this, i would be extremely grateful for anyhelp people could give me, my msn is supersaiyan2goku@hotmail.com could someone please contact me and show me how to do these few things. Thankyou.







Login

Who's Online

221 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 221


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