Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Adding latest "subject" on your forum to your blog
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  11:02:07  Show Profile
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  Show Profile
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.”
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  11:12:08  Show Profile
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.



Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 March 2006 :  11:22:51  Show Profile
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.”
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  11:31:04  Show Profile
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.



Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 March 2006 :  11:35:36  Show Profile
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.”
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  11:43:58  Show Profile
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.



Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 March 2006 :  12:42:30  Show Profile
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.”
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  12:47:49  Show Profile
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.



Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 March 2006 :  12:48:18  Show Profile
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.”
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  15:32:30  Show Profile
Where are the Snitz peeps?
Can anyone help please?

Thanks.
Dave
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  16:04:47  Show Profile
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
Go to Top of Page

DaveDelaney
Starting Member

27 Posts

Posted - 16 March 2006 :  16:06:33  Show Profile
Ok. I found a different link to the file here:
http://www.superdeejay.net/Public/data/amministratore/200561710043_syndicate_mod-3304-112.zip

Cheers
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 16 March 2006 :  21:42:42  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
This what you're looking for ?

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=195

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07