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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Forum Code
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 21 February 2004 :  06:33:25  Show Profile  Visit PeeWee.Inc's Homepage
I've had some time away from Snitz and WebDev to better my life, and sort my head out, but now i feel i need to get back into it all. Lifes been boring without something to "make".


I was on PHPBB.com and thought they had soem great ideas for Forum Code mods, and alot of them have not been done for Snitz, and i think they would work great.

1: You Forum code
a tage ([you]) that would show the name of what ever user was reading the topic.

2: Left and Right IMG tags
A MOD to allow you to better format your posts by aligning images left and right instead of just in-line as with the standard tag. Text will also neatly wrap around the images.


De Priofundus Calmo Ad Te Damine

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 21 February 2004 :  06:37:21  Show Profile  Visit Gremlin's Homepage
IMG=Left and IMG=Right is already in Snitz if I'm not mistaken.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 21 February 2004 :  10:21:55  Show Profile
Gremilin, you are correct. Take this image for example ... I've inserted the tag before all the text but see how it floats to the right?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 21 February 2004 :  10:36:55  Show Profile  Visit PeeWee.Inc's Homepage
Wow. I never knew you could do that.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 February 2004 :  10:42:16  Show Profile
You didn't? goodness? Maybe we should take away the 'Senior Member' title and give you 'Snitz Newbie'? hehe

These are supported:
[image][/image]
[img][/img]
[image=left][/image=left]
[image=right][/image=right]
[img=left][/img=left]
[img=right][/img=right]

Support Snitz Forums
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 21 February 2004 :  13:22:41  Show Profile  Visit MarcelG's Homepage
Davio, there's a lot more hidden in inc_func_common
Maybe the book 'Previously Undocumented Features of Snitz Revealed' would be an idea...I think I'd buy one
I also found out the existence of the spoiler tag, just by incident, just as the img=right etc.
By the way, the spoiler tag (for those unfamiliar with it) works like this: Select this text...and the text below it...(there is text, you'll see)
told you so, here's the text I promised! :)
The accident was that I was trying to build it, and found it in there already...hehe.

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 21 February 2004 13:23:57
Go to Top of Page

Faizan
Average Member

United Kingdom
592 Posts

Posted - 21 February 2004 :  13:27:03  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
quote:
1: You Forum code
a tage ([you]) that would show the name of what ever user was reading the topic.

I love this tag in IPB, but it's so confusing. Someone posted a topic in an IPB forum I go to saying:

List of people I hate are:
[you]


And that flipping confused me so much, I did not notice it was the YOU tag until I posted a reply. But it's fun to have something like this.

There is also a quote tag in IPB, which I am sure some of you might have tried:

[QUOTE=MSN.com] Text [/QUOTE]
[QUOTE=PeeWee.Inc] Text [/QUOTE]

I'd love to see that quote tag somehow implemented in Snitz. It works really nicely on IPB and maybe on phpBB too.

Edit: Didn't realise I was swearing!
GOD, I never knew da_mn was censored too!


»Snitz Graphics

Edited by - Faizan on 21 February 2004 13:31:56
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 21 February 2004 :  13:50:44  Show Profile  Visit PeeWee.Inc's Homepage
I'm not too sure what you mean by them quote tages, could you go into a little more detail?

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Faizan
Average Member

United Kingdom
592 Posts

Posted - 21 February 2004 :  14:11:26  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
It turns out to be something like this:
www.explosivechat.net/images/quote.jpg
www.explosivechat.net/images/quote_2.jpg




»Snitz Graphics

Edited by - Faizan on 21 February 2004 14:14:41
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 21 February 2004 :  14:32:41  Show Profile  Visit Ryan's Homepage
Kind of like quoting a user from another post? Like this:
quote:
Originally posted by Faizan

It turns out to be something like this:
www.explosivechat.net/images/quote.jpg
www.explosivechat.net/images/quote_2.jpg

But instead you can quote anyone? That is kinda neat.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help

Edited by - Ryan on 21 February 2004 14:35:06
Go to Top of Page

Faizan
Average Member

United Kingdom
592 Posts

Posted - 21 February 2004 :  15:51:31  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
The second screenshot is obtained by clicking the "Reply with Quote" button, but it is actually done using this forum code:

[QUOTE=Faizan,Feb 21 2004, 08:04 PM] Text [/QUOTE]

If we put in the following code, it quotes an article from another site very neatly, just like in the second screenshot above:

[QUOTE=MSN.com,Feb 21 2004]Article![/QUOTE]

I find this very sweet and neat.


»Snitz Graphics
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 February 2004 :  07:17:20  Show Profile
Just about to test this but to get the [you] tag working try adding the following to the extratags function in inc_func_common.asp:
	if len(trim(strDBNTUserName)) > 0 then
		fString = replace(fString, "[you]", strDBNTUserName)
	else
		fString = replace(fString, "[you]", "you")
	end if
If the person reading the topic is logged on then it should replace [you] with their username otherwise it just inserts the word "you" instead.


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

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 23 February 2004 :  07:29:04  Show Profile  Visit PeeWee.Inc's Homepage
Cool. I'll add it as soon as i get my Menu working.

Cheers.


De Priofundus Calmo Ad Te Damine
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 23 February 2004 :  08:40:15  Show Profile  Visit MarcelG's Homepage
Working as a charm!!! demo: http://www.oxle.com/topic.asp?TOPIC_ID=769
MeTV, your the best!

One question though...it seems that there is a difference in the way the name is displayed. For instance, at oxle.com my name is MarcelG, with capital M and capital G.
However, the [you] feature displays my name as marcelg ...
Any idea ?

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 23 February 2004 08:45:27
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 23 February 2004 :  08:54:10  Show Profile  Visit PeeWee.Inc's Homepage

function extratags(fString)
if len(trim(strDBNTUserName)) > 0 then
		fString = replace(fString, "[you]", strDBNTUserName)
	else
		fString = replace(fString, "[you]", "you")
	end if	
	fString = doCode(fString, "", "", "<span color=" & Chr(34) & CColor & Chr(34) & ">", "</span id=" & Chr(34) & CColor & Chr(34) & ">")
	extratags = fString
end function


Only seems to work if i add it first :)

It also works with upper case for me, not sure why it wouldnt for you, marcelgoertz.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 February 2004 :  09:24:51  Show Profile
quote:
Originally posted by marcelgoertz
One question though...it seems that there is a difference in the way the name is displayed. For instance, at oxle.com my name is MarcelG, with capital M and capital G.
However, the [you] feature displays my name as marcelg ...
Any idea ?
Could be because the strDBNTUserName variable is created by retrieving the username from the cookie, which as far as I know stores your username as you type it when logging in. Have a look at the "You are logged in as" on your forum; it should show your username in the same case as the [you] tag does. I was going to grab the username from the database which would have solved this problem but it seemed like an unnecessary database hit. I can look into it, though, if it's a big issue.
quote:
[i]Originally posted by PeeWee.Inc
Only seems to work if i add it first :)
Not sure why that is but it could be because of a clash with another mod you have installed, unless by "first" you mean before the line that reads extratags = fString which should always be the last line in the function. Oh, well, as long as it works, is the main thing.


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
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07