News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SimplePortal

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

Previous topic - Next topic

Dwev

Tried both variations (from urkalot and Chen Zhen) and this time I simply don't see anything.

The block is visible, but the image isn't.

Could it be that the CSS on the site is overriding something?

lurkalot

Quote from: Dwev on September 11, 2019, 02:55:17 AM
Tried both (form urkalot and Chen Zhen) and this time I simply don't see anything.

The block is visible, but the image isn't.

Could it be that the CSS on the site is overriding something?

This might be a stupid question, and please disregard if it is,  but you have switched the block on?  I'm assuming you have to with this portal.

Arantor

Quote from: Dwev on September 11, 2019, 02:55:17 AM
Tried both variations (from urkalot and Chen Zhen) and this time I simply don't see anything.

The block is visible, but the image isn't.

Could it be that the CSS on the site is overriding something?

Is your site HTTPS and the image link to HTTP? If so that won't work (the image proxy doesn't naturally attach to portal blocks)

@rjen

If you provide the link to the actual site that may help understanding the issue.
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

sirfpsycho

Hi, using simple portal. I added Top Posters. But it counts all the topic and post both. I want to show only Topic posters count and its username. But currently it is counting replies in topic too.

Also in Topic posters, I want  my custom icon instead of avatar. Like 1st topic posters has cup icon. 2nd has another icon like this screenshot. Which mod can be used for it?

Dwev

#5445
Sorry for the late reply, I was abroad and internet over there wasn't very good.

The site is https, and so is https://www.w3schools.com/tags/smiley.gif
And yes, the block is turned on (the block is visible, the content isn't).

And it can be seen here: (link removed).
(bottom right on the front page, the name of the block is "Test")

If I use an inspector on that block I see that the code there is correct:
<img src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley face" style="height: 2.625em;width: 2.625em;">

I tried it also with an image on the server off the site, still no dice.

Edit: link removed as requested by OP.

Arantor

The sp-right column has a class of lastpost, and the default theme is set to hide images in .lastpost img, so it's hidden.

sirfpsycho


Dwev

Quote from: Arantor on September 21, 2019, 07:15:40 AM
The sp-right column has a class of lastpost, and the default theme is set to hide images in .lastpost img, so it's hidden.

Thanks, thought that I was going crazy.
(by the way, I just made the block invisible again, so no point in looking there anymore)

@ Arantor (or anyone else): I suppose that it's this bit in index.css?


.topic_table td.lastpost
{
background-image: none;
}


@ sirfpsycho: sorry, don't the answer to your question, otherwise I would give it right away.

Arantor

No, it's the bit that says .lastpost img and contains 'visibility: none'.

sirfpsycho


sirfpsycho

I have two more issue.

2) Right Block, In Recent Posts/Topics, It shows like:

New post by Cole

But if any user reply in new post it shows the replier name at the last but it should show the topic starter name. How to fix?

3) In Top Poster section, Avatar is not showing. Uploaded avatar is showing fine but avatar added via url is not showing.
It goes like this:
sitename.com/avatars/avatar-url.gif

that is why it is not showing. how to fix it?

sirfpsycho


Chen Zhen


For some of what you requested, you may find something useful in the plugins & blocks section of the Simple Portal archive.
ref.
https://simpleportal.net/index.php?board=55.0

Try "Advanced Unread Posts" which includes a php file that you can edit for specifics if needed.
This way you won't need to tamper directly with the SP source code or templates.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

sirfpsycho

Quote from: Chen Zhen on September 26, 2019, 04:40:02 PM

For some of what you requested, you may find something useful in the plugins & blocks section of the Simple Portal archive.
ref.
https://simpleportal.net/index.php?board=55.0

Try "Advanced Unread Posts" which includes a php file that you can edit for specifics if needed.
This way you won't need to tamper directly with the SP source code or templates.

I installed Advanced Unread Posts, but it still shows the commenters name at the end. But is must show topic author name.

sirfpsycho

Quote from: sirfpsycho on September 20, 2019, 09:43:09 AM
Hi, using simple portal. I added Top Posters. But it counts all the topic and post both. I want to show only Topic posters count and its username. But currently it is counting replies in topic too.

Also in Topic posters, I want  my custom icon instead of avatar. Like 1st topic posters has cup icon. 2nd has another icon like this screenshot. Which mod can be used for it?

@Chen Zhen, what about this post?

KBExit

I'm looking to see if I can add a block to a board and not have it show up in the topic?

I looked at the "Custom Display Options: " and haven't been able to accomplish this.
The value I entered is "-~action|post, -~action|topic, -~action|display" but I'm not accomplishing this result.

KBExit

Quote from: KBExit on September 28, 2019, 02:12:20 PM
I'm looking to see if I can add a block to a board and not have it show up in the topic?

I looked at the "Custom Display Options: " and haven't been able to accomplish this.
The value I entered is "-~action|post, -~action|topic, -~action|display" but I'm not accomplishing this result.

Looks like I cannot edit my post...
Anyways I fixed it!
-~action|post,-~action|post2,-~topic
Worked!

sirfpsycho

any help for me please  O:)

KBExit

Quote from: sirfpsycho on September 23, 2019, 01:11:48 AM
I have two more issue.

2) Right Block, In Recent Posts/Topics, It shows like:

New post by Cole

But if any user reply in new post it shows the replier name at the last but it should show the topic starter name. How to fix?

3) In Top Poster section, Avatar is not showing. Uploaded avatar is showing fine but avatar added via url is not showing.
It goes like this:
sitename.com/avatars/avatar-url.gif

that is why it is not showing. how to fix it?

On the topic for the recent posts / topics block...
By any chance, are you already using the board news block? If not, I can probably help you modify the board news block since it retains the "original author" for each post instead of who replied last.

Edit:
Actually, have you taken a look into the PortalBlocks.php in the sources directory? You can modify each block that's standard in SimplePortal there to your liking if you understand PHP decently.

Advertisement: