PDA


View Full Version : [img] problem with CMPS 2.0 on new page :/


Morwyn
06-13-2005, 11:09 AM
Hello,

When creating a new page using BBcode (with CMPS 2), it seems the [img] tag is not working. The images are displaying correctly in the admin menu, in the WSYWSGsomething window. However when I want to see the page on my website it is displaying the links of the images, and not the images. See for yourself here:
http://www.cms-gratuit.com/index.php?page=defin01

Useful info:
- From the "edit pages" in CMPS menu>> Allow [img] code: checked.
- CHMODED pics as 777, just in case
- Allowed dynamic url with [img] code "afterward" (still no success) in the general options
- Vbulletin version: 3.0.7.

Does somebody have any idea why this pics are not displaying ?

Brian
06-13-2005, 11:10 AM
Sounds like a result of this bug:
http://www.vbadvanced.com/forum/showthread.php?t=8438

Morwyn
06-13-2005, 11:13 AM
lol...you're so fast to answer, thanks Bryan. I'm going to check this out.

Morwyn
06-13-2005, 11:28 AM
No that did not solve the problem. Note that my images are displaying well in "modules". I have no problems with the modules. This is only concerning the pages, when using BBcode. Instead of displaying the pic, it displays a link (whereas in the admin panel, in the editor, the pic is displaying correctly).

Brian
06-13-2005, 11:43 AM
Is the 'Allow [IMG] code' button set to 'Yes' for that module?

Morwyn
06-13-2005, 01:37 PM
Yes, img tags are allowed for every modules & pages

Edit: the name of my folders for adminCP and modCP are not "adminCP" etc...I changed them for security reasons a while ago, before I upgraded vb to 3.0.7 (from 3.0.5) and CMPS from 1.0 to 2.0. Could that be a problem, the fact that the names for these folders are differents from the default ones ?

Edit2: Another tip, sometimes when I click on the "image" picture in the BBcode editor, instead of getting "http://" in the box that pops-up, I get a "null" oO.

Brian
06-13-2005, 02:06 PM
I'm not entirely sure why you'd be having a problem with the images. If you'd like to submit a support ticket though I'll be glad to take a look.

Morwyn
06-13-2005, 02:07 PM
Yep I'm going to do that because I have noooo idea why the tags are not working. Thanks for taking a look, I'm going to submit a ticket right now.

[EDIT] Ticket submitted, good luck.

Brian
06-13-2005, 02:35 PM
For anyone else that's having a problem with this, if you'll look in your forum/includes/vba_cmps_include_bottom.php file for this bit of code:
$home["$mods[modid]"]['content'] = parse_bbcode2($pages['template'], $pageoptions['custompage']['allow_html'], $pageoptions['custompage']['allow_image_code'], $pageoptions['custompage']['allow_smilies'], 1);


And replace it with this:
$home["$mods[modid]"]['content'] = parse_bbcode2($pages['template'], $cmps_options['custompage']['allow_html'], $cmps_options['custompage']['allow_image_code'], $cmps_options['custompage']['allow_smilies'], 1);


Then that should take care of the problem.

Morwyn
06-13-2005, 02:36 PM
Rha ha ha =) , mighty you ! Thank you very much :)