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 Gosha
From: GLORY TO ARSTOTZKA
Registered: 2015-03-15
Posts: 3,645

[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

Wooted by: Yourmom

Offline

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

N1KF
Member
From: Happiness Hall
Registered: 2015-02-15
Posts: 7,717
Website

Re: [forum] bbcode

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

[topic]37753[/topic]

Offline

Wooted by:

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

HG
Member
From: PWA0gEDooycEI
Registered: 2015-02-18
Posts: 1,094
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)


Check out The Tower Remastered, the best limited-time challenge world by HG Crew, NOW WITH A GAME-PLAY VIDEO!

Offline

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

N1KF
Member
From: Happiness Hall
Registered: 2015-02-15
Posts: 7,717
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.

Offline

Wooted by:

HG

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

Different55
Forum Admin
Registered: 2015-02-07
Posts: 14,440

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
Registered: 1970-01-01
Posts: 1,263

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


kaslai = god
skullz = god
-( ͡° ͜ʖ ͡°)╯╲___卐卐卐卐 Don't mind me just taking my mods for a walk

Offline

Wooted by:

HG

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

Different55
Forum Admin
Registered: 2015-02-07
Posts: 14,440

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
Registered: 1970-01-01
Posts: 1,263

Re: [forum] bbcode

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


kaslai = god
skullz = god
-( ͡° ͜ʖ ͡°)╯╲___卐卐卐卐 Don't mind me just taking my mods for a walk

Offline

Ratburntro441483827835642335

Board footer

Powered by FluxBB

[ Started around 1487604138.1566 - Generated in 0.024 seconds, 10 queries executed - Memory usage: 1.05 MiB (Peak: 1.18 MiB) ]