Parsing Error in Plugin
#1 16-05-2012 
Hey Lee.
Just wanted to stop by an ask another php (or something) question.
I just installed a plugin that generates a list of the threads in the forum, but for some reason, it's getting the name wrong. I have admin and VIP names set to have a sparkling background image. But for some reason, it stops parsing the code in the name after url(. When you have time could you take a look?

Here's an example:
http://cavernofcreativity.com/Atlas/Foru...er=subject

The plugin:
http://mods.mybb.com/view/my-index
Yin, proud to be a member of LeeFish since Mar 2012.
And proud to be the owner of Atlas Productions - Cavern Of Creativity!

0
#2 16-05-2012 
hmm, I have no idea, but it looks like the plugin is attempting to make string replace and is not enabled to parse images.

You could look inside the plugin and see if it is parsing images (usually a 1 or 0 switch)
The site don't jive? PRESS F5 Flower

0
#3 16-05-2012 
Will try later, it's kinda 3am right now over here Tongue My brain isn't exactly at it's best.

0
#4 16-05-2012 
And I downloaded it and had a look. In the plugin (round about line 111) there is a parse for html...???

anyway, you could try changing it to the below (not tested):

Code:
$forum['allowhtml']=1;
$forum['allowmycode']=1;
$forum['allowsmilies']=1;
$forum['allowimgcode']=1;

Of course, you can choose which extra you want. I don't know if that sparkly username is a mycode, or a smilie or an image.....
The site don't jive? PRESS F5 Flower

0
#5 16-05-2012 
Extra PS >. That page is giving 299 errors and 64 warnings on the html validator... I think it's a record Big Grin
The site don't jive? PRESS F5 Flower

0
#6 16-05-2012 
I actually have no idea how to fix my html Tongue
The fix provided did not help Sad
My names are html with style in it. So I really have no idea why it would just stop parsing. Is there a way to just make it have a normal link look instead of whats in the config?

0
#7 16-05-2012 
The plugin is very scruffily coded with almost no comments. I can look to see where he is making it a formatted username, but the problem is the sparkly username.
The site don't jive? PRESS F5 Flower

0
#8 16-05-2012 
I managed to fix it by changing around line 103. Big Grin It's fine now.

PS, now it's 24 errors 9 warnings Tongue

0
#9 16-05-2012 
Let me guess: line 103 contained a definition for a variable or a function by one name, and the rest of the page consistently tried to access it by a completely different name! Big Grin
[Image: bosig.jpg]

0
#10 16-05-2012 
I don't think so BO - it was more of a parsing/conflict issue - Yin has sparkly user names on her board, and the plugin was not taking that into account.

Which is quite reasonable, as the sparkliness is not a core feature.

* conflict is not quite the right word, but yea.
The site don't jive? PRESS F5 Flower

0


Sorry, that is a members only option