Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#1 2017-01-07 17:20:38

Gosha
Formerly Remmoze
From: GLORY TO ARSTOTZKA
Joined: 2015-03-15
Posts: 3,951

[forum] bbcode

Put link to the forum in [forum] bbcode

get the name of the forum and link to it.

like this
[forum]http://forums.everybodyedits.com/viewtopic.php?id=37753[/forum]

it will print out this: Original EE world soundtracks

Last edited by Gosha (2017-01-07 17:21:23)


100--500--1000--1500--2000--2500--3000--3500--4000--4500--5000--9000--9001-10000
KnbqMw5.png
?type=registered&name=Gosha

Offline

#2 2017-01-07 19:17:34

N1KF
Member
From: CELEBRATING KIRBY'S 25TH
Joined: 2015-02-15
Posts: 8,629
Website

Re: [forum] bbcode

How about being able to do so with the actual topic BBCode we already have? Like so:

[topic]37753[/topic]

Online

Wooted by:

#3 2017-01-07 21:42:01

HG
Banned
Joined: 2015-02-18
Posts: 1,338
Website

Re: [forum] bbcode

N1KF wrote:

How about being able to do so with the actual topic BBCode we already have? Like so:

[topic]37753[/topic]

It actually doesn't work that way.

[topic=37753]Click here to see the topic #37753[/topic]

Also, there is already a forum tag, for forums

[forum=19]Bots and programming forum[/forum]

Last edited by HG (2017-01-07 21:44:11)


Signature
Made by Anatoly, slightly modified by HG

Offline

#4 2017-01-07 21:43:06

N1KF
Member
From: CELEBRATING KIRBY'S 25TH
Joined: 2015-02-15
Posts: 8,629
Website

Re: [forum] bbcode

HG wrote:
N1KF wrote:

How about being able to do so with the actual topic BBCode we already have? Like so:

[topic]37753[/topic]

It actually doesn't work that way.

[topic=37753]Click here to see the topic #37753[/topic]

I know. That's why I'm suggesting a second option for it in my post so that it works like the code in the original post.

Online

Wooted by:

HG

#5 2017-01-07 21:57:39

Different55
Forum Admin
Joined: 2015-02-07
Posts: 14,683

Re: [forum] bbcode

Don't think this is possible without being ridiculously inefficient or working outside of the way FluxBB handles BBCode.

Offline

#6 2017-01-07 22:39:36

Ratburntro44
Member
Joined: 1970-01-01
Posts: 1,299
Website

Re: [forum] bbcode

Different55 wrote:

Don't think this is possible without being ridiculously inefficient or working outside of the way FluxBB handles BBCode.

care to explain why? unless I am being stupid and missing something here I don't see any particular reason for that to be the case


CfDaJeOm.png

Offline

Wooted by:

HG

#7 2017-01-07 22:55:26

Different55
Forum Admin
Joined: 2015-02-07
Posts: 14,683

Re: [forum] bbcode

Alright so my thinking is

we add a tag with a callback right? Because how else are we going to get that topic name. So we add a tag with a callback, and in that callback we query the database for the topic name. And that callback and query get run once for every single instance of this BBCode on the page. That seems like a terrible idea to me. If you just copy paste a few thousand of those I don't think it'd be too hard to make an impact performance wise. You don't even have to actually post the spam, just previewing them will work fine. Get a couple of threads going, each causing thousands of these queries would not be hard at all. I admit, I have 0 idea what kind of performance hit that would have on the server as a whole but I can't say I feel like finding out.

So the other way I was thinking was

we completely ignore BBCode. as each post is being parsed we check for the BBCode, and make a note of the ID inside of it. then after the posts have been processed we look up all the topic titles at once and then loop over each ID and replace every instance of [bbcode]id[/bbcode] with the correct topic title. That still seems pretty sloppy for a feature that is going to be used about 2 times in total.

Offline

Wooted by:

#8 2017-01-07 23:23:55

Ratburntro44
Member
Joined: 1970-01-01
Posts: 1,299
Website

Re: [forum] bbcode

ah, my mistake was only thinking of unintentional problems. does seem like more effort than it's really worth for this


CfDaJeOm.png

Offline

Ratburntro441483827835642335

Board footer

Powered by FluxBB

[ Started around 1495858436.3897 - Generated in 0.061 seconds, 12 queries executed - Memory usage: 1.14 MiB (Peak: 1.28 MiB) ]