SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

Paul_Pauline

Hi Guyz.

Does anyone have a code that would pull images at random from the attachments folder and display them, say five at a time in a block, without the need to install some kind of gallery system ?

I already use the "Display LAST Attachments", which is shipped with the portal, I would like to display RANDOM ones as well, in a seperate block if this is possible.

Thanks, Paul.
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

madman71

Sinan,

You coded my Random attachment banner for me.
I think i'd rather you use portal instead of my random banner now. SP are far superior :)   There is a difference between the code you wrote for my random attachment banner and the recent attachment block in your SP.  The recent attachments in SP lead directly to the attachment itself, in my random attachment banner, the thumbnails lead directly to the post.  Is there a simple piece of code that i can add to SP that will enable the attachments to lead to the post where they are found and not directly to the attachment?
If it takes a lot of coding to do this, dont worry about it.

Thanks again for all of your support

madman71

Quote from: Paul_Pauline on May 14, 2010, 04:14:16 AM
Hi Guyz.

Does anyone have a code that would pull images at random from the attachments folder and display them, say five at a time in a block, without the need to install some kind of gallery system ?

I already use the "Display LAST Attachments", which is shipped with the portal, I would like to display RANDOM ones as well, in a seperate block if this is possible.

Thanks, Paul.

Paul,

a mod that i had made for me does this.  See my sig for link.
**NOTE***
m not sure if it will conflict with SP

kierjr

Quote from: madman71 on May 12, 2010, 11:28:16 AM
kierjr,

give me a link to your site. I'll take a look at the css code

hxxp:www.kiejr.com/4um [nonactive]

Paul_Pauline



Paul,

a mod that i had made for me does this.  See my sig for link.
**NOTE***
m not sure if it will conflict with SP
[/quote]

Hi, thanks for the link, I should have stated that i'm running 1.1.11, and can't imagine that I will be going over to the 2 series, it offers nothing I need that 1.1.xx doesn't provide.

I've always been a great believer in "If it ain't broke, don't fix it"  ;)

I love Simple Portal, it's a shame that support seems to have dried up, not only here but on their own site  too :(
"In every life, no matter how full or empty one's purse, there is tragedy. It is the one promise life always fulfills.
Happiness is a gift and the trick is not to expect it, but to delight in it when it comes and to add to other people's store of it."
Pauline was one of those rare people who increased the store of happiness in the world.

madman71

Kierjr,

in the theme directory that you are using, find the "style.css"

in style.css, search for:
.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited {
color: #fff;
text-decoration: none;



replace it with:

.catbg a:link, .catbg a:visited, .catbg2 a:link, .catbg2 a:visited {
color: #000;
text-decoration: none;



that should do it

Angelina Belle

Quote from: Darkred35 on May 10, 2010, 09:13:57 PM
We are using a custom theme  AS316. We need to know how to add the forum button. However, we are not good with computers, so if you could put this in laymen terms it would be greatly appreciated.

You will see that SimplePortal adds the forum button to the default theme, but that you will need to add it to any other themes, unless you are using a Curve-based theme with SMF 2.x.

There are very good instructions at SimplePortal.net in the theme tutorials.
This one probably has what you need: http://simpleportal.net/index.php?topic=148.0
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

InfoStrides

I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?

Afro

Quote from: TheInfostrides.Com on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?

You see that pop up registration javascript on your forum, you might want to remove it.
it makes me leave the forum after one page load.
i m sure it does the same thing to so many other people.
it does not increase registration in any way, rather it annoys people.

@topic

what page did you create that you want to hide from guests ?

Angelina Belle

You can use the permissions settings.
If you are not logged in, you are part of membergoup "Guest"
So click on " [ Select permissions for each group ] " and uncheck "Guest".
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Afro

Go to admin cpanel >> pages {under simple portal config} >> select the page you created >> edit it and click on the "Select permissions for each group"  .. give permissions there..

The_Wii_Nes_Boy

#3271
In the news block the [code] tags are getting broke if the are to long, how can I fixed this?

Angelina Belle

If you want to show [code], you have to write it like this : [nobbc][code][/nobbc].

What do you mean by "getting broke" if they are too long?
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

The_Wii_Nes_Boy

If the news block is set to 100 characters and the post is say 120 and the [/code] from the bbc tags is in the last 20 characters then the code box gets broken, it never used to so I'd like to fix it so it does not get broke.

Achilles.

#3274
Edit: Fixed.

- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

Afro

Quote from: Achilles. on May 22, 2010, 05:47:19 AM
I've install SimplePortal 2.3.2. it works perfectly fine, however only me (the admin) can see the Welcome message, Recent topics.. Try going to my website: www.skimus.com --> I believe that I've enabled it to be viewed by guests and other users.

i can see SP as a guest on your forum.

Achilles.

Quote from: Afro on May 22, 2010, 05:53:37 AM
Quote from: Achilles. on May 22, 2010, 05:47:19 AM
I've install SimplePortal 2.3.2. it works perfectly fine, however only me (the admin) can see the Welcome message, Recent topics.. Try going to my website: www.skimus.com --> I believe that I've enabled it to be viewed by guests and other users.

i can see SP as a guest on your forum.

Yeah, I've fixed it. I did something and it worked.. so yeah, :)

- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

InfoStrides

Quote from: Afro on May 20, 2010, 08:47:12 AM
Quote from: TheInfostrides.Com on May 20, 2010, 07:56:44 AM
I created a page with SP and want the page to be accessible after login. Please, how do I achieve it?

You see that pop up registration javascript on your forum, you might want to remove it.
it makes me leave the forum after one page load.
i m sure it does the same thing to so many other people.
it does not increase registration in any way, rather it annoys people.

@topic

what page did you create that you want to hide from guests ?

Thank you for your feedback. I have improved on it. Please check and drop your comment.

The forum is not yet live.

InfoStrides

Quote from: Afro on May 20, 2010, 08:55:08 AM
Go to admin cpanel >> pages {under simple portal config} >> select the page you created >> edit it and click on the "Select permissions for each group"  .. give permissions there..

Thanks. it worked.

InfoStrides

Quote from: AngelinaBelle on May 20, 2010, 08:47:45 AM
You can use the permissions settings.
If you are not logged in, you are part of membergoup "Guest"
So click on " [ Select permissions for each group ] " and uncheck "Guest".

Thanks. It worked.

Advertisement: