News:

Wondering if this will always be free?  See why free is better.

Main Menu

Grab a single message with SSI.php

Started by Cccddd, March 09, 2004, 01:22:41 PM

Previous topic - Next topic

Webby

Doesn't work for me on RC2, strange it works for others on the same RC version.....?

Ben_S

Hmm, it may be because my SSI.php is quite old, though I doubt it as off the top of my head it doesn't need any of the other functions in SSI.php.

Planning to update my SSI.php to the latest version probably this week so will see what happens then.
Liverpool FC Forum with 14 million+ posts.

Webby

Tried the newest version of SSI but doesn't work either....

HRM

Quote from: Ben_S on December 01, 2004, 07:39:13 PM
Im using it as follows, the ssi_boardNews function to grab a chunk of the message

$news = ssi_boardNews(17,15,0,350,"array");

And my read more link looks like

<a href="./article.php?id=', $news['message_id'], '">Read More</a>


Hm..
I will check that one on mine.

Apoplogies for reacting so late on this one but I must have forgotten to check the email alert option so thought there was no reply yet.
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

HRM

#24
Quote from: Alisha on December 02, 2004, 11:32:25 AM
I am having some issues with this MOD. I get the error:

    Please specify a message id

with:

<?php include("http://dancedancekc.com/Forums/SSI.php?ssi_function=grabMessage&message_id=858"); ?>

What exactly is the message Id?
The Id is the last number you see in the adress bar after having clicked on a message subject of the specific post. By Exmaple, if you click on this posts subject line you go to : http://www.simplemachines.org/community/index.php?topic=6883.msg170626#msg170626   

Then you see the message id=170626

Quote from: Alisha on December 02, 2004, 11:32:25 AM
Quote from: Homerecording man on September 25, 2004, 09:13:51 AM
Great Mod sir!! I tried it and it worked right away!!! Just a little modification to my ssi_examples.php ( http://www.muziek4um.nl/forum/ssi_examples.php , scroll al the way down ) and I can use it as easily as the other tags.
Ed

Would you care to share your Codes for the Message history? I would love to add that one of the themes... Thanks :)


Sharing My codes? That wont be a problem for modificaions, althought they all come from this wonderful forum :) .  The theme I use is is made by Andrea Hubacher and my portal is just a html page with php includes I made myself. Or wasnt that what you mean?
Ed
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Ben_S

Quote from: Webby on December 08, 2004, 10:47:28 AM
Tried the newest version of SSI but doesn't work either....

Just updated my SSI.php to the latest, still works fine.

Quote from: Homerecording man on December 12, 2004, 05:34:49 AM
Quote from: Ben_S on December 01, 2004, 07:39:13 PM
Im using it as follows, the ssi_boardNews function to grab a chunk of the message

$news = ssi_boardNews(17,15,0,350,"array");

And my read more link looks like

<a href="./article.php?id=', $news['message_id'], '">Read More</a>


Hm..
I will check that one on mine.

Just a note, you will need to modify the ssi_boardNews function to get the message ID, in other words, add ID_MSG to the select statement and put

'message_id' => $row['ID_MSG'],

into the array.
Liverpool FC Forum with 14 million+ posts.

Cccddd

hmm... a pretty active mod. well now that i have figured out the package server I'll get this thing working with 1.0(p), get it packaged, and then start new development.

Ben_S

Liverpool FC Forum with 14 million+ posts.

Cccddd

well there was some weird issue with having to define $message = $_REQUEST['message'] but other than that yeah it all works fine. I still want it packaged though :)

Cccddd


Cccddd

oh and i changed the name to grabPost instead of grabMessage, because to me grabMessage sounded more like the personal messages instead of message board posts

Ben_S

Any other changes? Need to decide whether to upgrade or not. Also if your doing it as a package does it do something like what I mentioned earlier in the topic <http://www.simplemachines.org/community/index.php?topic=6883.msg170861#msg170861> or do you have to modify that yourself?
Liverpool FC Forum with 14 million+ posts.

James Woodcock

Hi

On page: http://www.yamahapkowner.com/artist_user.php

I have applied the mod but get this message:
'Please specify a message id'

This is the line im using:
<?php include("http://www.yamahapkowner.com/forum/SSI.php?ssi_function=grabMessage&message_id=56"); ?>

What am I doing wrong?  the message is there yet I cant get it to work.

HRM

To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Cccddd

damn the holidays. sorry i havent had time to work on this the past couple weeks but I will check it out in a couple minutes. I didn't test this as much as I should have before I posted it, so there may be issues with some people's boards.

James Woodcock

ok dokey, enjoy Xmas thats your first priority mate :)

Cccddd

well part of my christmas present to myself is just taking some time off from people and being alone on my computer for several hours. gotta relax from the past few weeks of running around and partying.

James Woodcock


mironicus

I also got the message 'Please specify a message id', even if I insert a correct ID.

Even if I just do a simple  <?php ssi_grabMessage(); ?> I got the message 'Please specify a message id'

HRM

#39
Quote from: James Woodcock on December 22, 2004, 04:28:46 PM
Hi

On page: http://www.yamahapkowner.com/artist_user.php

I have applied the mod but get this message:
'Please specify a message id'

This is the line im using:
<?php include("http://www.yamahapkowner.com/forum/SSI.php?ssi_function=grabMessage&message_id=56"); ?>

What am I doing wrong? the message is there yet I cant get it to work.

Could you give us a link to the message or topic  in the forum please?

I got it yet : http://www.yamahapkowner.com/forum/index.php?topic=43.msg56#msg56

Thats weird, it really does exist and is indeed 56.. ???


Try using a code like:

<?php ssi_grabMessage(6410); ?>
To install something for the cat's 'cut' is never nice..... (old dutch saying) :D

Advertisement: