1
dokks
Re: How do you select less than five articles for news?
  • 2004/6/22 15:18

  • dokks

  • Just popping in

  • Posts: 4

  • Since: 2004/5/13


Thanks for the information. I took a look at that and I believe that is just the template for the selection of the topic catagory and the number to show of that catagory.

I'm well and truly stumped on this one. LOL.



2
dokks
How do you select less than five articles for news?
  • 2004/6/22 14:00

  • dokks

  • Just popping in

  • Posts: 4

  • Since: 2004/5/13


I've searched, but can't seem to find an answer. I am trying to setup my site to only display one news item at a time on the main page.

I took a look at modules/news/index.php and changed

for ( $i 5$i <= 30$i $i ) {
       
$sel '';
        if (
$i == $xoopsOption['storynum']) {
            
$sel ' selected="selected"';
        }
        
$storynum_options .= '<option value="'.$i.'"'.$sel.'>'.$i.'</option>';

    }


to

// Changed to allow for only one story to be selected
//   for ( $i = 5; $i <= 30; $i = $i + 5 ) {
   
for ( $i 1$i <= 30$i $i ) {
       
$sel '';
        if (
$i == $xoopsOption['storynum']) {
            
$sel ' selected="selected"';
        }
        
$storynum_options .= '<option value="'.$i.'"'.$sel.'>'.$i.'</option>';

    }


I then cleared the cache on my browser and the website and went to admin, but still only have the option to select to display news items in increments of 5, starting at 5.

I also tried brute force:

// Test to see if this alters selection ability
// for ( $i = 1; $i <= 30; $i = $i + 5 ) {
//       $sel = '';
//        if ($i == $xoopsOption['storynum']) {
//            $sel = ' selected="selected"';
//        }
                
$i 1;
                
$sel '1';
        
$storynum_options .= '<option value="'.$i.'"'.$sel.'>'.$i.'</option>';

//    }


No luck though.

Any hints?



3
dokks
Re: Avatar, Images
  • 2004/5/24 14:07

  • dokks

  • Just popping in

  • Posts: 4

  • Since: 2004/5/13


As far as I know there is not currently any way to catagorize avatars into groups.

Due to the way that XOOPS handles them (it renames them as you upload them from the image manager) you must use the admin options to upload them.

I have looked at hacking the avatar system on my site, but have found the easiest way is to simply create html pages with tables of avatars and the path for my users to "upload" their own.



4
dokks
Re: Blank Image Manager
  • 2004/5/13 15:17

  • dokks

  • Just popping in

  • Posts: 4

  • Since: 2004/5/13


Very odd, I too am on Surrpass Hosting and have the same issue ....




TopTop



Login

Who's Online

138 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 138


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