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 login or register.

* Who's Online

  • Dot Guests: 536
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: simple Category list block ?  (Read 5177 times)

0 Members and 1 Guest are viewing this topic.

Offline barbar

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
simple Category list block ?
« on: January 12, 2011, 11:49:17 PM »
is this a feature already? i see a "top boards" block but i want it arranged alphabetically , preferably with number of posts on the side. is there such a block out there arleady?thank you
« Last Edit: January 13, 2011, 03:33:48 AM by barbar »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: simple Category list block ?
« Reply #1 on: January 13, 2011, 11:40:34 AM »
There is not a block to deal with forum categories.
 
You want a "top categories" block? or a "list all boards in block along with number of posts?"
 
This was a quick block for our founder to write, because it relies on ssi_topBoards.
 
You could take a copy of ssi_topBoards, rename it to categoryBoardPosts or some such thing, and mostly just change the SQL statement.
 
To do this, you will require just a little knowledge of php and SQL. But that's not rocket science.
 
After you've got that part working, you'll want take a copy of sp_topBoards, rename it, put it in a custom php block, and get it to call your function categoryBoardPosts instead of ssi_topBoards.
 
This is not such a bad project, if you only ever change one line at a time. It's a good way to learn.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline barbar

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: simple Category list block ?
« Reply #2 on: January 13, 2011, 11:27:42 PM »
What i want is really simple but im finding it very hard to explain.  I just want to be able to post links to pages in my site within a block, that way i can just do it the long simple way and just put the go to the url of that page and copy paste on the list but not having it appear as a url though since it defeats the purpose and is not clean looking. Very similar to a navigation menu but i choose what pages and what kind of name appears in the block list, for example
discussion - each link takes me to the url of that page and the list is on a side block
blogs
funnies

im not sure if this is already easily doable now, like smf links or something.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: simple Category list block ?
« Reply #3 on: January 14, 2011, 08:14:12 AM »
If it is simple, then it will be simple to explain.
 
You just want a list of links?
Just like you could do with a BBC or HTML block?
You don't want it to automatically figure out for itself which posts to pull from a Category?
 
Something like:
 
Read this post first!
Unread
Replies
 
Which was done with

[url=http://simpleportal.net/index.php?topic=7452.0]Read this post first![/url]
[url=http://simpleportal.net/index.php?action=unread]Unread[/url]
[url=http://simpleportal.net/index.php?action=unreadreplies]Replies[/url]
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline barbar

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: simple Category list block ?
« Reply #4 on: January 17, 2011, 07:55:24 AM »
sorry for the late reply. i had been very exhausted from using the computer lol. yes i think that is what i want,
for example, a link in a block like a colored word "articles" which is underlined (like in how vertical menus are with clickable words or phrases) then when someone clicks it i specify what page it goes to.
i love this portal and i have tried so many already and cant seem to find a way to do this. there is a menu portal in ezportal but i dont like how it looks.

lastly how do i make it that it is vertically lined up?
also in the front page i want to be able to do it like when typing my welcome page but i dont know how to do it. thanks for the reply. i appreciate it.
« Last Edit: January 17, 2011, 08:02:34 AM by barbar »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: simple Category list block ?
« Reply #5 on: January 17, 2011, 11:37:53 AM »
I am a little lost, perhaps partly because SimplePortal is the only portal mod I have ever worked with.
 
I think an easy way to make a list of links for people to click is just in a custom BBC block, as in my example above.
 
Here are two things I don't understand.  If you explain, I'll try to help. Maybe a rough drawing of what you want would help.
lastly how do i make it that it is vertically lined up?
Quote
in the front page i want to be able to do it like when typing my welcome page but i dont know how to do it.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline barbar

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: simple Category list block ?
« Reply #6 on: January 17, 2011, 11:50:08 AM »
oh sorry i mean like inside a box it says

post your item - (then when they click that sentence theyre taken to a specific page of my liking)
post your auction-(much like a menu or custom action wherein i specify the phrase or word which is really a link)

i say vertically lined up because in a sideblock it would not fit to have them horizontally aligned and it also looks weird and it wouldnt fit really :)




Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: simple Category list block ?
« Reply #7 on: January 17, 2011, 12:09:31 PM »
Read this post first!
Unread
Replies
 
Which was done with

[url=http://simpleportal.net/index.php?topic=7452.0]Read this post first![/url]
[url=http://simpleportal.net/index.php?action=unread]Unread[/url]
[url=http://simpleportal.net/index.php?action=unreadreplies]Replies[/url]

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline barbar

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: simple Category list block ?
« Reply #8 on: January 17, 2011, 12:21:10 PM »
ok will try it. much thanks.