Advertisement:

Author Topic: Functionality requests for SSI in the next version of SMF  (Read 96131 times)

Offline Kiphaas7

  • Semi-Newbie
  • *
  • Posts: 24
Re: Functionality requests for SSI in the next version of SMF
« Reply #80 on: January 14, 2008, 09:26:28 AM »
Okay... but you know that using SSI.template.php you'd just be messing with the arrays in a separate file right?  I mean, look at how SMF tempalting is done.  Array manipulation and loops is all it is.  So why use 3 file (or 4 if you're calling SSI.php from another file) when you can use just 2.  SSI isn't supposed to be a part of the SMF core, just a type of API to utilize some functionality of it.  Sounds like work for no real gain to me.

Big gain. Now themes could style SSI outputs easier, people could edit them on their own easier, and it would just be better organized. You don't see any MYSQL stuff in the templates. SSI should have a source and a template file. The output (template) should be different from the page that initiates it and makes it happen (source)

I would like to see this happen as well. I tried (and succeeded) into rewriting most of the ssi functions to proper html (no tables where they should not be), but figured that everything would break as soon as an update comes out (smf 2.0 for example).

I understand that it is much easier for those not so experienced with html to just call the function, but maybe both could be an option.

Offline haarrrgh

  • Newbie
  • *
  • Posts: 2
  • Gender: Male
Re: Functionality requests for SSI in the next version of SMF
« Reply #81 on: January 27, 2008, 12:40:59 PM »
I would like an extended "show calendar" function for SSI.

The existing "Today's Calendar " displays something like this:

Quote
Future Birthdays: haarrrgh (27)
Future Events: Event1, Event2, Event3


I would like to have a list with dates and one event per line, like this:

Quote
2008-01-27 Event1
2008-01-28 haarrrgh's Birthday (27)
2008-02-01 Event2
2008-02-05 Event3

In addition, it should be possible to:
- choose how to order the list (by date ascending or descending)
- specify the format how the date is displayed, or display the date in the forum standard (I live in Germany, and in German the right format for the 1st of February is "01.02.2008").

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,073
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Functionality requests for SSI in the next version of SMF
« Reply #82 on: January 27, 2008, 01:14:11 PM »
haarrrgh, you can do most of that (except for the sorting, I believe) if you use the array output and actually do the layout of the information yourself.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline haarrrgh

  • Newbie
  • *
  • Posts: 2
  • Gender: Male
Re: Functionality requests for SSI in the next version of SMF
« Reply #83 on: January 27, 2008, 01:33:45 PM »
Oh...ok  O:)

Sorry for spamming into this topic...I just discovered the SSI FAQ topics right now (I did a search for "ssi" at docs.simplemachines.org before but didn't find anything, that's why I posted my request here. I didn't find the FAQ in the forums until now).

I will read the FAQs and ask my questions there.

Thank you for your help!

Offline B Patterson

  • Full Member
  • ***
  • Posts: 512
  • Gender: Male
  • Never Miss an Opportunity to be Great
Re: Functionality requests for SSI in the next version of SMF
« Reply #84 on: January 27, 2008, 03:01:19 PM »
YOu can do the sorting through sort[/man] or usort ;)

Offline mogama

  • Newbie
  • *
  • Posts: 6
Re: Functionality requests for SSI in the next version of SMF
« Reply #85 on: February 06, 2008, 01:02:32 PM »
Function request: Make it much easier to grant permission to a user for a specific board. For example: I search and find the user, then click in a box or link to set permission for that user for a particular board. Done!

Currently, it's taking me too long to grant access to a board to just some of my members. I did it before, then I forgot how to do it again. Can it be easier than this?

~mogama~

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
Re: Functionality requests for SSI in the next version of SMF
« Reply #86 on: February 06, 2008, 01:55:57 PM »
This is not a feature request topic mogama. Its a topic for possible additional features added to SSI.
IchBin™        TinyPortal
Coding Guidelines       

Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
Re: Functionality requests for SSI in the next version of SMF
« Reply #87 on: February 13, 2008, 02:46:35 PM »
Registration to simplify integration with other systems. Ideally with options to disable CAPTCHA (and e-mail verification, etc.) since the integrating system may already handle verification.

Expand "ssi_login" and "ssi_logout" to include the 'array' option so that the resulting parts can be formatted or styled without capturing output and altering it.

Yes I second this. We need ssi_register and better ssi_login/logout.
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Offline Gantry

  • Jr. Member
  • **
  • Posts: 127
    • Carcassonne Central
Re: Functionality requests for SSI in the next version of SMF
« Reply #88 on: March 03, 2008, 10:13:54 PM »
Based on a recent set of posts that weren't answered, it would be nice to be able to control the output of the existing ssi functions so that I have the flexibility and choice of them returning:

(1) results as hyperlinks that open in current window (the default now),
(2) results as hyperlinks that open in a new window/tab, and
(3) results that display as text only, not hyperlinks.

I don't want the output of a birthday ssi to link to that forum user's profile, because users could theoretically click their way back to the forum in my Joomla iframe, which is ghastly.  I should have the simple option to choose the output.

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,073
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Functionality requests for SSI in the next version of SMF
« Reply #89 on: March 03, 2008, 10:41:14 PM »
You can use the information however you want, just switch off the default echo mode and build your own layout with the information. It takes a bit more PHP understanding, but gives you huge flexibility.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline reanimationxp

  • Semi-Newbie
  • *
  • Posts: 34
Re: Functionality requests for SSI in the next version of SMF
« Reply #90 on: March 04, 2008, 03:05:13 AM »
I'd like to see additional information included in any function that pulls a post.

boardNews() currently does not pull "last edited" and other information when returning the post array. Any info such as dates and times, as well as links like replying to the topic should all be included.

Also, I agree with other users in that anything using a form (logging in, replying to a topic, etc.) should be able to be done via an SSI function. Basically any information the database stores should be able to be pulled via a function, which makes this idea sound more and more like an API.

Bottom line, I should be able to create a site using HTML and CSS, include SSI.php, and then pull any information the forum displays (anywhere) and format it the way I want, WITHOUT knowing SQL.

Offline ghosttr

  • Semi-Newbie
  • *
  • Posts: 15
Re: Functionality requests for SSI in the next version of SMF
« Reply #91 on: March 16, 2008, 06:42:46 PM »
I would like a register function added to the ssi so registrations can be handled out of the forums. I have made a makeshift ssi_register function but it still has some problems. Like redirecting to the forum after registration.


Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
Re: Functionality requests for SSI in the next version of SMF
« Reply #92 on: March 20, 2008, 04:39:59 PM »
I would like a register function added to the ssi so registrations can be handled out of the forums. I have made a makeshift ssi_register function but it still has some problems. Like redirecting to the forum after registration.


To reditect after registration, use the redirect line of code from the ssi_login. I'm not sure if it works or not but it should.
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
Re: Functionality requests for SSI in the next version of SMF
« Reply #93 on: March 20, 2008, 04:44:03 PM »
haarrrgh, you can do most of that (except for the sorting, I believe) if you use the array output and actually do the layout of the information yourself.

Can we have this for echo and something else:

$output = 'blah';

switch ($mode) {
case 'echo':
  echo $output;
default:
  return $output;
}


Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,073
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Functionality requests for SSI in the next version of SMF
« Reply #94 on: March 20, 2008, 05:08:11 PM »
Can we have this for echo and something else:

$output = 'blah';

switch ($mode) {
case 'echo':
  echo $output;
default:
  return $output;
}

That's exactly the same thing, just one is echoed out directly, the other the output is formatted in a variable.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline Spaceman-Spiff

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,524
  • Gender: Male
Re: Functionality requests for SSI in the next version of SMF
« Reply #95 on: March 20, 2008, 06:43:00 PM »
ibookdb, you should use the array method so the function will return an array for you, and you can use it whichever way you please.

For example:
Code: [Select]
<?php

$topics 
ssi_recentTopics(8null'array');

for (
$i 0$i count($topics); $i++)
{
   echo 
'
         + <a href="'
$topics[$i]['href'], '">'$topics[$i]['subject'], '</a> '$txt[525], ' '$topics[$i]['poster']['link'], '<br />';
}

?>

You can check SSI.php for the full array objects, or do a print_r
« Last Edit: May 07, 2008, 08:45:54 PM by Spaceman-Spiff »

Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
Re: Functionality requests for SSI in the next version of SMF
« Reply #96 on: March 20, 2008, 07:21:20 PM »
yes but for ssi_login, which is the only ssi function I use there is no array output so I have to customize SSI.php each time. You could add case 'array' as another option wherever applicable. But most of the times just the output itself will do.
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Offline dhimes

  • Semi-Newbie
  • *
  • Posts: 13
Re: Functionality requests for SSI in the next version of SMF
« Reply #97 on: April 19, 2008, 08:31:35 AM »

Yes I second this. We need ssi_register and better ssi_login/logout.

Me too.  It's difficult to hack.

Offline ibookdb

  • Jr. Member
  • **
  • Posts: 117
  • Internet Book Database
    • Internet Book Database
Re: Functionality requests for SSI in the next version of SMF
« Reply #98 on: April 21, 2008, 12:35:06 PM »
Can we have this for echo and something else:

$output = 'blah';

switch ($mode) {
case 'echo':
  echo $output;
default:
  return $output;
}

That's exactly the same thing, just one is echoed out directly, the other the output is formatted in a variable.

Yes it is exactly the same thing but it would be nice to have the control to decide when to output.
Manage Your Book Collection Online at The Internet Book Database

Random Books from My Bookshelf

iBookDB

Offline Hoochie Coochie Man

  • SMF Hero
  • ******
  • Posts: 5,135
  • Gender: Male
    • İstanblues.org
Re: Functionality requests for SSI in the next version of SMF
« Reply #99 on: May 07, 2008, 06:30:32 PM »
ibookdb, you should use the array method so the function will return an array for you, and you can use it whichever way you please.

For example:
<?php

$topics 
ssi_recentTopics(8null'array');

for (
$i 0$i count($topics); $i++)
{
   echo 
'
         + <a href="'
$topics[$i]['href'], '">'$topics[$i]['subject'], '</a> '$txt[525], ' '$topics[$i]['poster']['link'], '<br />';
}

?>


You can check SSI.php for the full array objects, or do a print_r

Thankyou very much for this.
It works great.
İnadına SMF 1.1.X