Author |
Topic |
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 21 February 2004 : 06:33:25
|
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
|
IMG=Left and IMG=Right is already in Snitz if I'm not mistaken. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 21 February 2004 : 10:21:55
|
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 ~ |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 21 February 2004 : 10:36:55
|
Wow. I never knew you could do that. |
De Priofundus Calmo Ad Te Damine |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 21 February 2004 : 10:42:16
|
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
|
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 21 February 2004 : 13:22:41
|
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 |
|
|
Faizan
Average Member
United Kingdom
592 Posts |
Posted - 21 February 2004 : 13:27:03
|
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 |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 21 February 2004 : 13:50:44
|
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 |
|
|
Faizan
Average Member
United Kingdom
592 Posts |
Posted - 21 February 2004 : 14:11:26
|
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 |
|
|
Ryan
Average Member
USA
858 Posts |
Posted - 21 February 2004 : 14:32:41
|
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 |
|
|
Faizan
Average Member
United Kingdom
592 Posts |
Posted - 21 February 2004 : 15:51:31
|
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
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 23 February 2004 : 07:17:20
|
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.” |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 23 February 2004 : 07:29:04
|
Cool. I'll add it as soon as i get my Menu working.
Cheers.
|
De Priofundus Calmo Ad Te Damine |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 23 February 2004 : 08:40:15
|
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 |
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 23 February 2004 : 08:54:10
|
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 |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 23 February 2004 : 09:24:51
|
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.” |
|
|
Topic |
|