Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Problems AFTER Install/Upgrade ⇒ [fixed] problem with BBCode


[fixed] problem with BBCode
Issues that happen after DragonflyCMS upgrade/install.
DO NOT post module installation issues here!

Go to page 1, 2  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Problems AFTER Install/Upgrade

View previous topic :: View next topic  
Author Message
gprovostjr
Newbie
Newbie

Offline Offline
Joined: Aug 27, 2007
Posts: 40
Location: Flushing, MI.
PostPosted: Tue Jan 17, 2012 1:59 am
Post subject: [fixed] problem with BBCode

I have a weird problem with my BBCode, When I ry to use it to center and bold text and then add a bunch of image links and then center and bold some more text only the first center and bold commands work. I tried it here and previewed it and it worked fine but on my site it does not work correctly. I looked around here and do not have the same problems as most of the other BBCode posts, but of course I might have missed one.

If anyone can help fix this problem, I would appreciate it, as it is very annoying.

Example of what does not work on my site.
Code::
[align=center][b]Commissioned Officers[/b][/align]

General [Gen] - Commanding officer of the 5MC
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Gen.png[/img]

Colonel [Col] - Second in command of the 5MC
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Col.png[/img]

Major [Maj] - Oversee the working of the Captains in management of the Companies. Also makes sure that the Captains are training the Lieutenants to be adequate future Captains.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Maj.png[/img]

Captain [Cpt] - Captains command a company consisting of 2 - 4 Platoons. They oversee all members in their company, make recommendations based on progress, and ensure everyone has the tools and knowledge required to advance as a marine.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Capt.png[/img]

1st Lieutenant [1Lt]- 1st Lieutenants lead a platoon of up to 3 squads, if needed a 1st lieutenant will be chosen to assist his Captain.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_1stLt.jpg[/img]

2nd Lieutenant [2Lt]- As a 2nd Lieutenant you will be learning and assisting a 1st Lieutenant in running a Platoon of 3 squads. 
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_2ndLt.jpg[/img]

[b][align=center]Warrant Officers(Specialty Ranks)[/align][/b]

Chief Warrant Officer [CWO] - They manage over the sections of Warrant Officers, Directing them into what needs to be done/changed.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_CWO5.jpg[/img]

Warrant Officer [WO] - Warrant officers are those Marines who have had the training but are better suited in other areas. (Website editing, Making videos, Graphics, Recruiting, ETC.)
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_WO.jpg[/img]

[align=center][b]Non-Commissioned Officers[/b][/align]

Sergeant Major [SgtMaj] - Sergeant Majors are Squad leaders. They lead 3 fireteams on the battlefield and coordinate their attacks to effectively secure the objective.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_SgtM.png[/img]

First Sergeant [1stSgt] - First Sergeants are Squad leaders in training. They assist, shadow, and learn from their Sergeant Major.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_1stSgt.png[/img]

Master Sergeant [MSgt] - Master Sergeants are veteran fire-team leaders. They are given the more challenging tasks to complete.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Msgt.png[/img]

Staff Sergeant [SSgt] - Staff Sergeants have some experience as a fireteam leader, just not a veteran quite yet.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Ssgt.png[/img]

Sergeant  [Sgt]- You become a sergeant by showing strong leadership qualities and by proving to be a successful fireteam leader.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Sergeant.png[/img]

[align=center][b]Enlisted Marines[/b][/align]

Corporal [Cpl] - Corporals are veteran soldiers on the battlefield. As a Corporal you will take your first steps into leading a fireteam.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_Corp.png[/img]

Lance Corporal [LCpl] - You earn this rank upon successful progression of your skill, behavior, and activity as a member of 5MC.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_LC.png[/img]

Private First Class [PFC] - You are expected to know our rules and code of conduct and follow them along with all orders without question.
[img]http://5thmarinecorps.hostzi.com/images/ranks/rank_PFC.png[/img]

Private [Pvt]- Privates have under gone the process of recruitment and have been placed in a fireteam. They have earned the title of MARINE.

[align=center][b]Unofficial[/b][/align]

Recruit [RCT] - (Generally a 24hr - 48hr period) Your still in training, you haven't earned the right to call yourself a "Marine!" Just like being at paris island. You are nothing until you are formed here into something great. A Marine...

only the first and last align and Bold commands work.

_________________
"I think not" said Descartes, and disappeared!

gprovostjr's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux srv35.000webhost.com 2.6.18-238.9.1.el5 #1 SMP / Apache 2.0 Handler / MySQL 5.1.57 (client: 5.1.57)/PHP 5.2.17/Dragonfly CMS 9.3.2.0
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Tue Jan 17, 2012 3:17 am
Post subject: Re: problem with BBCode

try changing
Code::
[b][align=center]Warrant Officers(Specialty Ranks)[/align][/b]
with
Code::
[align=center][b]Warrant Officers(Specialty Ranks)[/b][/align]

it may work if you lucky ... even if you shouldnt have that problem in first place ... is it a modified bbcode? did you tried using df originals?


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Tue Jan 17, 2012 7:37 am
Post subject: Re: problem with BBCode

I think you have a corrupt, broken or out-of-date includes/nbbcode.php. I've just tried your text on my extended nbbcode and it works fine. Also tried with the original 9.46 version from 9.2.1 and it works fine with that too.

Re-download your version of DF if necessary, and re-upload includes/nbbcode.php?

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
gprovostjr
Newbie
Newbie

Offline Offline
Joined: Aug 27, 2007
Posts: 40
Location: Flushing, MI.
PostPosted: Tue Jan 17, 2012 11:18 am
Post subject: Re: problem with BBCode

thank you i will do that.

_________________
"I think not" said Descartes, and disappeared!

gprovostjr's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux srv35.000webhost.com 2.6.18-238.9.1.el5 #1 SMP / Apache 2.0 Handler / MySQL 5.1.57 (client: 5.1.57)/PHP 5.2.17/Dragonfly CMS 9.3.2.0
Back to top
View user's profile Visit poster's website
gprovostjr
Newbie
Newbie

Offline Offline
Joined: Aug 27, 2007
Posts: 40
Location: Flushing, MI.
PostPosted: Tue Jan 17, 2012 4:21 pm
Post subject: Re: problem with BBCode

InspectorClueNo, I had it the other way first and only changed the bold command to the outside to see if it made a difference.
I have only DF 9.3.2.0 files, nothing custom, except for the theme, which i use groundpounder.

Layingback, I tried your advice. The files after I downloaded them again and compared them were different sizes, but when i uploaded the new nbbcode.php it gives me the same exact problem. I also re-uploaded the bbcode.js file, which was the same size, and cleared my browser cache, and still it wont work.

_________________
"I think not" said Descartes, and disappeared!

gprovostjr's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux srv35.000webhost.com 2.6.18-238.9.1.el5 #1 SMP / Apache 2.0 Handler / MySQL 5.1.57 (client: 5.1.57)/PHP 5.2.17/Dragonfly CMS 9.3.2.0
Back to top
View user's profile Visit poster's website
gprovostjr
Newbie
Newbie

Offline Offline
Joined: Aug 27, 2007
Posts: 40
Location: Flushing, MI.
PostPosted: Tue Jan 17, 2012 4:27 pm
Post subject: Re: problem with BBCode

OK I put the old one like you mentioned from the copy of 9.2.1 i had, and now it works.... SO is this a bug in 9.3.2.0 version or what?

_________________
"I think not" said Descartes, and disappeared!

gprovostjr's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux srv35.000webhost.com 2.6.18-238.9.1.el5 #1 SMP / Apache 2.0 Handler / MySQL 5.1.57 (client: 5.1.57)/PHP 5.2.17/Dragonfly CMS 9.3.2.0
Back to top
View user's profile Visit poster's website
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Tue Jan 17, 2012 4:35 pm
Post subject: Re: problem with BBCode

Sorry, I didn't catch that you were using 9.3.2.

I don't use it myself, but I loaded up a 9.3.2 test site and sure enough the only headings which are centered and bolded are the 1st and the last ones. This remaining 3 are in normal font left aligned.

In my case this is on a standard DF config, no changes beyond installing 1 module. So I think you have found a bug in 9.3.2 IMHO.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Tue Jan 17, 2012 4:55 pm
Post subject: Re: problem with BBCode

We x-posted above Smile But we seem to have come to the same conclusion via different routes.

I've diff'd the original 9.2.1 and 9.3.2 versions of nbbcode.php and the differences appear to fall into 3 areas:

Renaming the smilies popup - can't be that.

Changing the literal type from single to double quote format - can't be that.

So that only leaves the new test/conversion sequence on the img handling code around line 504.

The purpose of the new code is beyond me, so I'll leave for Nano, hopefully he'll take a look.

It is consistent with the found results though - the only headings which were formatted correctly did not follow a \img.

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
gprovostjr
Newbie
Newbie

Offline Offline
Joined: Aug 27, 2007
Posts: 40
Location: Flushing, MI.
PostPosted: Tue Jan 17, 2012 5:04 pm
Post subject: Re: problem with BBCode

yeah, I agree. thanks for the help, I wouldn't have thought of using the older version if not for your post Wink I need to quit trusting newer versions like that Wink Hopefully this will get corrected for version 10

_________________
"I think not" said Descartes, and disappeared!

gprovostjr's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux srv35.000webhost.com 2.6.18-238.9.1.el5 #1 SMP / Apache 2.0 Handler / MySQL 5.1.57 (client: 5.1.57)/PHP 5.2.17/Dragonfly CMS 9.3.2.0
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Wed Jan 18, 2012 12:14 am
Post subject: Re: problem with BBCode

A while ago we decided to run a maintenance release for v9, which will include the latest bug reports. This issue, obviously, will be corrected for the release.

Thanks for pointing this out.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Jan 18, 2012 2:25 am
Post subject: Re: problem with BBCode

It should be noted that "older" versions are less secure than the latest version, even with its minor flaw, so you should keep faith with the latest release if you don't want security issues - the choice, and risk, is always yours.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sat Jan 21, 2012 7:54 am
Post subject: Re: [bug] problem with BBCode

Now fixed in v9 CVS.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Sat Jan 21, 2012 9:04 am
Post subject: Re: [fixed] problem with BBCode

Nano, Thanks for fixing. But can you post the diff for v9 fixes pls? (There's no way that I can see to display the diff on a v9 module - there's no 'Differences to 9.48.2.6' link as there would be for v10 and used to be for v9 - both the version # and view links display the whole file.)

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Sat Jan 21, 2012 9:15 am
Post subject: Re: [fixed] problem with BBCode

No need - maintenance release is imminent.

However, dragonflycms.org/cvs/h...a=9.46.2.6

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sat Jan 21, 2012 11:10 am
Post subject: Re: [fixed] problem with BBCode

Regularly posting links for every change would be not feasible at all.
This bug is also not considered as urgent, and some times in this cases like this i feel to skip diff files ... I also can't do it all.

However, all those changes will be quickly followed by a new maintenance release, with some extras.

To advertise all my changes I've added a rss block, right side.
It displays all commits and all related files i had to change, and if someone is really interested in a particular change could browse our cvs module and access all diffs, I still prefer an entire CVS sync then single patches.

Anyways, soon a v9 maintenance release to be released while v10 is undergoing tremendous changes Smile

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Problems AFTER Install/Upgrade
Page 1 of 2
All times are GMT
Go to page 1, 2  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy