SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: barbar on January 12, 2011, 11:49:17 PM

Title: simple Category list block ?
Post by: barbar 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
Title: Re: simple Category list block ?
Post by: AngelinaBelle 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.
Title: Re: simple Category list block ?
Post by: barbar 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.
Title: Re: simple Category list block ?
Post by: AngelinaBelle 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! (http://simpleportal.net/index.php?topic=7452.0)
Unread (http://simpleportal.net/index.php?action=unread)
Replies (http://simpleportal.net/index.php?action=unreadreplies)
 
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]
Title: Re: simple Category list block ?
Post by: barbar 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.
Title: Re: simple Category list block ?
Post by: AngelinaBelle 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.
Title: Re: simple Category list block ?
Post by: barbar 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 :)



Title: Re: simple Category list block ?
Post by: AngelinaBelle on January 17, 2011, 12:09:31 PM
Read this post first! (http://simpleportal.net/index.php?topic=7452.0)
Unread (http://simpleportal.net/index.php?action=unread)
Replies (http://simpleportal.net/index.php?action=unreadreplies)
 
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]

Title: Re: simple Category list block ?
Post by: barbar on January 17, 2011, 12:21:10 PM
ok will try it. much thanks.
SimplePortal 2.3.8 © 2008-2024, SimplePortal