توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : include در ماژول
dj_ahmad
09-04-2009, 11:21 AM
سلام.من میخوام با استفاده از تابع include یه فیال php رو در یکی از موقعیت ها به عنوام ماژول منتشر کنم
مثلا
<?php include ("test/searchbox.php"); ?>
یه ماژول ساختم و این کد رو داخلش گذاشتم ولی نشد
ولی وقتی این کد رو داخل خود template جا گذاری میکنم کار میکنه ولی میخوام به عنوان ماژول منتشر کنم :D
خوب حالا باید چی کار کنم؟
firoozmandan
09-06-2009, 08:46 AM
سلام
در ماژول از قسمت مدیریت شما تنها از کد های html - js میتونید استفاده کنید نه PHP
برای این که این قابلیت اضافه بشه باید مامبوتی نصب کنید
MosModule
The hightlight of this new release are:
* Thanks to andras contribution the joomfish integration is now only show the selected language rather than show the original and the translated text side by side. It makes more sense this way and more flexibility. In the case where it is use in a module via MosModuleMod like the way andras use at his site.
* is supported in translated text
* This feature also support in "readmore" command
* Fix bug in Nok Kaew integration and should work the same for nok kaew.
Description:
* MosModule mambot has the ability to display nested article, author, textsizer, embeded video in a content, exec snippet written in PHP (without <?php ?> tags) and exec external php script file pass with parameter (with <?php ?> tags). You can see an example of that in "mosmodule\hello.php". (See more detail below)
* In my mind, MosModule would give me the potential of reusing article that are common to all article without repeating the same content, make my article more dynamic enrich with php code using snippet or external php script file. With the use of the parameters and querystring you can pass variable between mosmodule and the external php script. The possibilities are endless!
Features & Usages:
* Run as legacy mambot support and ability to run inside module (see below)
* MosModule is a mambot to displays any module, article, textsizer, video, exec snippet and external php script inside a content item, grap content from any url, wrapper to wrap any site into your site, rss feed, Gigcalendar, MosQbot
* external script: Please see hello.php for a sample on passing variable between mosmodule and external script
* Add feature to self parse mosmodule bot
* Add support for mosimage in load article and author
* Add support for Nok Kaew and JoomFish in load articleid
* Show MosModule in section/category description (see readme_advance.txt).
* Support mod_mosmodule that call mosmodule mambot in module
* Integrate with MosCom with ability to place comment link any where in content
Note:
* Important: Make sure to save the setting at least once and enable MosModule in Mambot manager!
* This is a rewrite of modulebot to be compatible with MiaCMS, Mambo 4.5.1 or above, Joomla 1.0 and 1.5 with legacy enable
* The default folder for external script is "mosmodule" but you can change it in param screen
For example: /home/user/<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
* Snippet should not have <?php ?> tags where as phpinc should have the tags
* By default, the module will fill the width of the content area. If you wish to control the width and positioning of modules in content area, you will want to enclose the mosmodule tag(s) in a div and either assign a class to controll the display in your template_css.css file, or use inline styles (if you are using a WYSIWYG editor, you will need to switch to source mode in order to create the <div> tag).
یا علی
dj_ahmad
09-06-2009, 11:17 AM
بسیار ممنونم
تست میکنم خبر میدم
vBulletin® v4.2.5, Copyright ©2000-2026, Jelsoft Enterprises Ltd.