21
flymirco
Re: Insert php code into Mastop Publish pages
  • 2008/2/5 1:46

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


This is the solution to my question:

You can insert a php script into Mastop Publish page through "Manage HTML files" link in the Admin area. Just send a PHP script like a normal HTML page.

If you cant do that and receive a error like "MIME type not allowed: application/{some_crap}", follow this steps:
1 - In the module preferences, check if the "php" is selected in the "Allowed extensions in the content file manager." option.
2 - If you still cant send php files to content manager, even with "php" option selected in the module preferences, its because your XOOPS version is > 2.0.16.

After XOOPS 2.0.16 the "Xoops Uploader" have now a $deniedMimeTypes var (with array("application/x-httpd-php") as default value) and you cant send PHP files to Mastop Publish because of this.
You can fix this opening the modules/mastop_publish/admin/paginas.php file and looking for a line like this:
$uploader->setPrefix("page_");

After this line, you create a new line with this:
$uploader->deniedMimeTypes null;


Now you can send PHP files to Mastop Publish...
This problem will be corrected in the next version of Mastop Publish.

Thanks a lot to Fernando Santos for the explanation provided by email.

flymirco



22
flymirco
Insert php code into Mastop Publish pages
  • 2008/1/29 23:03

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi to all,

I have a question on how to add php script in mastop publish pages.
To explain better I have an old site that I want to convert in Xoops. I choose Mastop Publish for static content pages and I want insert some php code, made by myself, into Mastop pages creation context.

Is it possible? If yes how? I try with uploading php file but I get some error messages on MIME type not allowed.

Thank you in advance.

flymirco



23
flymirco
Re: xlanguage question
  • 2008/1/11 10:32

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Thank you so much irmtfan, it works fine and it's an easy trick.
I didn't know this possibility in theme.

flymirco



24
flymirco
xlanguage question
  • 2008/1/11 2:27

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi to all,

in my theme there is a section with fixed menu link, how can I change the text language in it to show the appropriate language description?
<!-- for Italian -->
<
class="menuHead" href="<{xoops_url}>/modules/article">Comunicati</a>
<!-- for 
English -->
<
class="menuHead" href="<{xoops_url}>/modules/article">Press release</a>

I'm looking for something that make this change dynamically every time there is a language switch.

Thanks in advance for the answer.

flymirco



25
flymirco
Re: Xlanguage errors
  • 2008/1/11 1:59

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi to all,

I have found the problem and finally the solution too.

The problems arise from title length of Multimenu menu link items. If they are more then the specified value in the block settings (50 characters in my case), the extra text of the title where substituted by 3 dots (...) so the language tag closure where missed. That's generate all the problems mentioned in the previous post.
I have set the menu item length at 100 characters to be safe (I hope) from this problem.

I hope this will help someone else with similar problem.


flymirco

Long life to Xoops!



26
flymirco
Xlanguage errors
  • 2008/1/11 1:05

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi to all this wonderful community,

I have a problem after installation of xlanguage module.
I walk all the steps specified in the readme.txt file and in the beginning the module works fine but now I get this errors:
Quote:
Notice: Undefined index: tag in file /modules/xlanguage/include/functions.php line 258
Notice: Only variables should be assigned by reference in file /modules/marquee/class/PersistableObjectHandler.php line 132
Notice: Only variables should be assigned by reference in file /modules/article/include/functions.parse.php(100) : eval()'d code line 95
Notice: Only variables should be assigned by reference in file /Frameworks/art/functions.config.php line 67


My installation is a XOOPS 2.0.16 with Frameworks 1.10 and xoopseditor 1.10, with many modules installed: Article, News, Weblog, Multimenu, Marquee, Webshow and so on.

I was modifying blocks title before getting the errors above from <italian block title> to:
[it]<italian block title>[/it][en]<english block title> [/en]
and now the left column contents are missing.

flymirco



27
flymirco
Re: My Album adjusting textareA
  • 2007/9/12 19:08

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


I can give you only a suggestion to find the right css code to modify: install Firebug add-on for Firefox. It helps you on source code navigation and css formatting elements.

flymirco




TopTop
« 1 2 (3)



Login

Who's Online

169 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 169


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits