Jump to content

Using MyBB's MyCode for post templates


gelly
 Share

Recommended Posts

Post Template 3 - Image 1

\[post3img1=(.*?)\]\[/post3img1\]
<div style="text-align:center;"><div class="post2c"><div class="post2d" style="background-image: url('$1');"></div></div>

Post Template 3 - Image 2

\[post3img2=(.*?)\]\[/post3img2\]
<div class="post2c"><div class="post2d" style="background-image: url('$1');"></div></div>

Post Template 3 - Image 3

\[post3img3=(.*?)\]\[/post3img3\]
<div class="post2c"><div class="post2d" style="background-image: url('$1');"></div></div>

Post Template 3 - Tex t

\[post3\](.*?)\[/post3\]
<div class="post2a"><div class="post2b">$1</div></div></div>

The parsing order didn't work lol

affbutton.gif

Link to comment
Share on other sites

Have you put in legitimate URLs for the images?

 

Other thing to try is a fresh post. In the past I've found that I had to make a new post for changes to take.

  • Love 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

I'm making in the dark stabs here because unless I'm being unobservant, it should be working.

 

- What plugins have you got?

- Does it work with the default theme? (Copy the relevant css over of course).

  • Love 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

1. Apply Thread Prefix
Add Captcha
Disposable Email Blacklist
Date of Birth on Registration
Form Creator
Full PM
LockOldThreads
MentionMe
MyAlerts
NewPoints
Online Today
OUGC Awards
PHP and Template Conditionals
Private Message Log
Report Private Messages
Strict Usernames
Style Usernames
Thank You/Like System
Thread Description
Thread Prefixes
Welcome PM

 

2. It looks exactly the same in the Default theme.

 

Should I deactivate the plugins one by one and see if anything changes?

affbutton.gif

Link to comment
Share on other sites

I didn't have much hope for the theme! Worth ruling out though.

 

None of those plugins look like they should logically have a problem, but again, worth ruling out.

 

My next question is: are you on the latest version of mybb? I think it's 1.8.19 

 

If so, check your server for the php version? I'm really scratching here because if you're not meeting requirements I would have expected you to run into problems before now.

 

These are the server requirements

 

To check, go to cpanel and look to the right hand side of the screen. Click on server information. Check php version. If it's less than 5.2 you can get help with a php upgrade through here. Clck on manage next to the inkslingers hosting package and then click on get help.

 

I'll keep scratching my head for more ideas though!

  • Love 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

https://screenshots.firefox.com/jYZHpgO8r6MFJ4RF/inkslingers.rpginit.com

 

Nope, everything appears to be properly updated. I went through and deactivated the plugins and nothing changed. This is so strange!

 

I actually can't even access my board right now. CP works fine, though?

Edited by perry the platypus

affbutton.gif

Link to comment
Share on other sites

Turn your plugins back on! I think your board might now be reliant on php template conditional plugin (depending on where you have php)!

 

I assume you turned them off one by one and hard refresh?

  • Love 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

Yes, I did. It's back to normal now lol

  • Love 1

affbutton.gif

Link to comment
Share on other sites

Now that I'm on my computer... it looks like there is a rogue html entity (ZERO WIDTH NO-BREAK SPACE to be specific)

 

Capture.PNG.13dcd2c632dea9e67d6e531fc54392b3.PNG

 

These usually appear when things have been copied and pasted, the computer might copy junk as well the actual text. So in code bits for the first template, cut what's there, paste it into notepad (preferably notepad++ if you've downloaded it) and then delete anything silly that might pop up. Copy the result and paste back into the relevant text areas. You can do this just for the first one and then do your usual refreshes to see if that has helped. If not, keep checking the others.

  • Love 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

I did as you advised, but the problem persists. When I pasted the code in Notepad++, there didn't appear to be any extra spaces or weird bits of code. But in Inspect Element, something definitely shows up strange, but it's showing up different from yours

vyT1Vf.jpg

 

Wait, hold on. Rewriting the code in Notepad++ seems to help. Lemme do the others real quick. Will update.

Edited by perry the platypus

affbutton.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.