سلام ، آیا این بازدید اول شماست ؟ یا
نمایش نتایج: از شماره 1 تا 3 , از مجموع 3

موضوع: include در ماژول

  1. #1

    تاریخ عضویت
    Apr 2008
    محل سکونت
    بیابان
    نوشته ها
    669
    تشکر
    0
    تشکر شده 2 بار در 2 ارسال

    include در ماژول

    سلام.من میخوام با استفاده از تابع include یه فیال php رو در یکی از موقعیت ها به عنوام ماژول منتشر کنم
    مثلا
    <?php include ("test/searchbox.php" ?>
    یه ماژول ساختم و این کد رو داخلش گذاشتم ولی نشد
    ولی وقتی این کد رو داخل خود template جا گذاری میکنم کار میکنه ولی میخوام به عنوان ماژول منتشر کنم
    خوب حالا باید چی کار کنم؟

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  2. # ADS
    تبلیغات در جوملا فارسی
    تاریخ عضویت
    Always
    محل سکونت
    Advertising world
    نوشته ها
    Many
     

  3. #2
    Admin
    تاریخ عضویت
    Dec 2005
    محل سکونت
    U.A.E
    نوشته ها
    13,222
    تشکر
    318
    تشکر شده 1,338 بار در 652 ارسال

    پاسخ : include در ماژول

    سلام

    در ماژول از قسمت مدیریت شما تنها از کد های html - js میتونید استفاده کنید نه PHP

    برای این که این قابلیت اضافه بشه باید مامبوتی نصب کنید

    MosModule
    [ltr]
    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/www/mosmodule
    * 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).

    [/ltr]

    یا علی

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


  4. #3

    تاریخ عضویت
    Apr 2008
    محل سکونت
    بیابان
    نوشته ها
    669
    تشکر
    0
    تشکر شده 2 بار در 2 ارسال

    پاسخ : include در ماژول

    بسیار ممنونم
    تست میکنم خبر میدم

    جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.


موضوعات مشابه

  1. INCLUDE .PHP از یک سایت دیگر
    توسط Joomlart در انجمن متفرقه
    پاسخ ها: 2
    آخرين نوشته: 07-09-2008, 08:46 AM

علاقه مندی ها (Bookmarks)

علاقه مندی ها (Bookmarks)

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •