Author |
Topic  |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 11:02:07
|
Hi there: Can you please tell me if there's a way to add a "Welcome Joe Blow - our newest member" to a different page (outside of the forum)? I run my forum from my blog, but I would like to add a welcome message and perhaps the "latest" message subject to the blog page.
What script would I use for that? Is it possible please?
Thanks for you help. Dave
< Moved to Community Discussions (All Other Subjects) by Shaggy /> |
Edited by - Shaggy on 16 March 2006 12:43:08 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 16 March 2006 : 11:08:00
|
In default.asp, have a look at lines 788 to 805 to see how the information is pulled from the database and then at lines 1022 & 1023 to see how it's written. Post back if you need any further assistance.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 11:12:08
|
Can you dumb it down a bit for me please Shaggy? Is there code I can rip from the default.asp file, to post directly in my blog script so that the info will appear?
Happy Paddy's Day by the way. Where are you in Ireland?
Thanks, Dave
quote: Originally posted by Shaggy
In default.asp, have a look at lines 788 to 805 to see how the information is pulled from the database and then at lines 1022 & 1023 to see how it's written. Post back if you need any further assistance.
|
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 16 March 2006 : 11:22:51
|
Do you already have a connection established to the database containing your MEMBERS table? If so, all you need is the following code (use the line in red if using MySQL, otherwise use the line in green; delete whichever line you're not using):set rs=my_Conn.execute("SELECT MEMBER_ID,M_NAME FROM FORUM_MEMBERS WHERE M_STATUS=1 ORDER BY MEMBER_ID DESC LIMIT 0,1")
set rs=my_Conn.execute("SELECT TOP 1 MEMBER_ID,M_NAME FROM FORUM_MEMBERS WHERE M_STATUS=1 ORDER BY MEMBER_ID DESC")
if not rs.eof then response.write "Please welcome our newest member, <a href=""forum/pop_profile.asp?mode=display&id="&rs("MEMBER_ID")&""">"&rs("M_NAME")&"</a>"
rs.close
set rs=nothing You may also need to change some of the items highlighted in bold to suit your setup.
I'm in Dublin, by the way.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 11:31:04
|
Slainte. I'm not sure what by already have a connection establshed? The blog is not part of the forum, the blog just links to the forum. The code I need would have to be added to the blog, so I will probably need straight HTML to get the job done? At least that's what I think....though I'm still not sure.
What do you think? Thanks again for your help with this. Dublin is lovely...shame about those riots a few weeks ago (Crazy!).
quote: Originally posted by Shaggy
Do you already have a connection established to the database containing your MEMBERS table? If so, all you need is the following code (use the line in red if using MySQL, otherwise use the line in green; delete whichever line you're not using):set rs=my_Conn.execute("SELECT MEMBER_ID,M_NAME FROM FORUM_MEMBERS WHERE M_STATUS=1 ORDER BY MEMBER_ID DESC LIMIT 0,1")
set rs=my_Conn.execute("SELECT TOP 1 MEMBER_ID,M_NAME FROM FORUM_MEMBERS WHERE M_STATUS=1 ORDER BY MEMBER_ID DESC")
if not rs.eof then response.write "Please welcome our newest member, <a href=""forum/pop_profile.asp?mode=display&id="&rs("MEMBER_ID")&""">"&rs("M_NAME")&"</a>"
rs.close
set rs=nothing You may also need to change some of the items highlighted in bold to suit your setup.
I'm in Dublin, by the way.
|
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 16 March 2006 : 11:35:36
|
Ah, OK, I had been working on the assumption that your 'blog and forum were part of the same "application", if you're using a 3rd party 'blogging tool, such as Blogger, this isn't going to be possible, unfortunately, unless the 'blog is being published to the same server as your forums. It may be possible, though, to do it with an RSS feed but I'm not familiar with them at all. 
All that probably ain't too clear, 'cause I'm watching the clock tick down here to a 3 day bender but I can quickly clear it up if you provide me with a link to your 'blog and your forum.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 11:43:58
|
They are both on the same server...hope this helps. www. davemadethis .com/ twoboobs www. davemadethis .com/ twoboobs / forum
Thanks again for your help. Make sure to hit Danger Doyles in Temple Bar...I use to frequent the place.
Slainte.
quote: Originally posted by Shaggy
Ah, OK, I had been working on the assumption that your 'blog and forum were part of the same "application", if you're using a 3rd party 'blogging tool, such as Blogger, this isn't going to be possible, unfortunately, unless the 'blog is being published to the same server as your forums. It may be possible, though, to do it with an RSS feed but I'm not familiar with them at all. 
All that probably ain't too clear, 'cause I'm watching the clock tick down here to a 3 day bender but I can quickly clear it up if you provide me with a link to your 'blog and your forum.
|
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 16 March 2006 : 12:42:30
|
Ah, definitely possible, so. But, as your 'blog is written in PHP and I don't "speak" it, that's as much help as I can provide. Gonna move this to the community forums where hopefully someone with the necessary PHP skills can "translate" what I posted above for you.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 12:47:49
|
Ok Shaggy. Thanks very much. Happy drinkin'!
quote: Originally posted by Shaggy
Ah, definitely possible, so. But, as your 'blog is written in PHP and I don't "speak" it, that's as much help as I can provide. Gonna move this to the community forums where hopefully someone with the necessary PHP skills can "translate" what I posted above for you.
|
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 16 March 2006 : 12:48:18
|
10 minutes to go! 
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 15:32:30
|
Where are the Snitz peeps? Can anyone help please?
Thanks. Dave
|
 |
|
DaveDelaney
Starting Member
27 Posts |
Posted - 16 March 2006 : 16:04:47
|
Ok this sucks, because I found the right mod, but I can't find the **** link to it for you other folks trying to do the same thing. All I can tell you is the file is called: syndicate_mod-3304-111.zip
Good luck. Dave |
 |
|
DaveDelaney
Starting Member
27 Posts |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
|
Topic  |
|