81
antifmradio
Re: Showing more then 1 article news on mainpage

Quote:

sailjapan wrote:
Quote:
It would nice to be able choose a default user-group to display.

Or just have it stay where you'd set it before clicking on submit would make even more sense...

i second this one




82
antifmradio
Re: Showing more then 1 article news on mainpage

ok there we go
i got it working

the problem was that in the admin>blocks area i cant see the block because it was only set for ADMIN to see
meanwhile admin>blocks keeps defaulting to show me what REGISTERED members can see

got it and thanks



83
antifmradio
Re: Showing more then 1 article news on mainpage

ok i have NO idea how to make this work

i enabled it after installing the module
but i still see only ONE article on mainpage.

What block does this work inside of?
where are the settings?



84
antifmradio
Re: Showing more then 1 article news on mainpage

thanks sailjapan but your link goes tohttp://http/



85
antifmradio
Showing more then 1 article news on mainpage

So i have the NEWS module 1.56 on my site
When i set it to show a SPOTLITE article on the mainpage
it will show JUST ONE article
a teaser of text below
and then links to the other recent articles below that

however,
what if i wanted to show say 5 teaser articles on the mainpage?




86
antifmradio
Re: random image in header? possable or no?

i completely get more confused with each answer on this
and its not you mboyden
forgive me
im really good at HTML and some PHP

but for some reason i am completely NOT getting this at all so hear me out

i need to place this
<img src="<{php}> echo getRndImgURL('random'); <{/php}>" alt="" width="158" height="116" />


in my header at the location where i want the images to show up

the folder where the images are located is called
RANDOM

the location of this folder is right now inside a specific theme folder
"geometric_red"

Now just before the code above i post pasted, i need to place this code

<{php}>
function 
getRndImgURL($path) { // Display Random Image from File Path
    
$i 0;
    
$dir = @opendir(XOOPS_ROOT_PATH.'/themes/random/'.$GLOBALS['xoopsConfig']['theme_set'].'/'.$path);
    while ( 
false !== ($filename readdir($dir)) ) {
        if ( 
preg_match("/(.gif|.jpg|.png)$/"$filename) ) { // image filter
            
$images[$i] = $filename;
            
$i++;
        }
    }
    
closedir($dir);
    
mt_srand( (double)microtime() * 1000000 );
    
$choice array_rand($images);
    return 
XOOPS_URL.'/themes/random/'.$GLOBALS['xoopsConfig']['theme_set'].'/'.$path.'/'.$images[$choice];
}
<{/
php}>



is this correct?
please see where the $dir is specified in the second code here.

Was i supposed to change it to match? or not.

Im looking at the code you pasted just now but im just no getting it
i have a code very similar to it and it works on another site ( not XOOPS ) that i administer for someone else.
its works and calls exactly the same way

create a subdirectory called " random "
in "random " place an index.php file with the code in it.
goto the page where you want to rotate images
call "index.php" using an "image source" function




the problem i am having doing that is
i cant for the life of me get my "theme.html" to call am image source in the header of this file



87
antifmradio
Re: random image in header? possable or no?

Quote:

mboyden wrote:
clear as mud?

clear as mud?


i guess not.
here is what i ended up with
i took the insert code and placed it in the header section of theme.html
then i went to just before that code still in theme.html
and pasted the other part of the code.

This is the way it layed out exactly
<img src="<{php}> echo getRndImgURL('headimages'); <{/php}>" alt="" width="730" height="150" /><br />
                <
img src="<{php}> echo getRndImgURL('headimages'); <{/php}>" alt="" width="730" height="150" />

but for some reason
when i goto my page
i see the header but NO images in it
i just see the box or table the header is supposed to sit in

nothing else on the page shows below the header
its all blank with its background color showing



88
antifmradio
Re: random image in header? possable or no?

ok i messed up somewhere
i dont get what i did wrong

my code starts with
<php>
and ends with
?>

so i change the ends to have
the smary coes instaed but i think that didnt work
cause my entire page and site went blank

I came back here and used the example above changing

$dir = @opendir(XOOPS_ROOT_PATH.'/themes/
to
$dir = @opendir(XOOPS_ROOT_PATH.'/themes/headimages/

and
return XOOPS_URL.'/themes/
with
return XOOPS_URL.'/themes/headimages

Now i am alittle stupmed because i took this new code
and placed it directly in the header area of theme.html
just after it i placed the " call " code
which is the same code as above
This is it <img src="<{php}> echo getRndImgURL('img/sidebar'); <{/php}>" alt="" width="158" height="116" /></div>

but it didnt work


Am i placing the original code in the wrong plac?
and if so, where does it go in theme.html
cause obviously i need to place the CALL code in the header area



89
antifmradio
Re: Notifications.php showing BLANK on all themes

bump
still need help with this one

just to give more info

i have NEVER edited the notifications.php file



90
antifmradio
Re: templates not skins? Need help on differance please

does that mean a Template has more basic functionality?

Also. I have a Template downloaded
Is there a XOOPS version restriction ( non compatibility ) for using templates?

Im using XOOPS 2.0.18.1

in the meantime im going to look in those folders you mentioned of the downloaded template.
Thanks JAV


...just looked in there but
the only thing in the MODULES folder is
XOOPS_ROOT\modules\system




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



Login

Who's Online

246 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 246


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