Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 812
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Stickied Topics

Started by swtdivalove, October 30, 2009, 11:08:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

swtdivalove

I'm needing a way for a sticky topic to stay at the top of the portal on the front page.

Nathaniel

Well, this same question has been asked numerous times. Try searching the forums...

What exactly are you trying to order with stickied topics at the top? Ie. Articles or blocks? If blocks, then which block type?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

swtdivalove

I need to keep one particular stickied topic at the top of the portal page.  It's pulled from a news thread.

So, I'm not trying to order the sticky topics, but I do need one to stay at the top of the portal.

Nathaniel

Quote from: Nathaniel on October 30, 2009, 11:16:08 PM
What exactly are you trying to order with stickied topics at the top? Ie. Articles or blocks? If blocks, then which block type?

I need to know if you are using Articles/Board News block/whatever you are using to show those topics. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

swtdivalove


Nathaniel

Find the code below in your 'PortalBlocks.php' file, in the sp_boardNews function.
ORDER BY t.id_first_msg DESC

Replace with this code:
ORDER BY t.is_sticky DESC, t.id_first_msg DESC
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

swtdivalove


Eliana Tamerin

Did you empty your cache first?
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

swtdivalove

Yes, I even closed my browser and tried again.

Eliana Tamerin

Not browser cache. SMF 2 makes use of caching to cut down on bandwidth costs. Admin > Maintenance > Routine has the option to empty the forum cache.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

swtdivalove

Yep... I did both, restarted browser and it is still not happening.

swtdivalove


Nathaniel

That edit does work, its just that the find code occurs twice within the PortalBlocks.php file, you have to change both occurances.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

swtdivalove

Working like a charm now!  Thank you!