-
Postów
79 -
Dołączył
-
Ostatnia wizyta
-
Wygrane w rankingu
1
Typ zawartości
Profile
Forum
Pliki
Galeria
Blogi
Sklep
Wydarzenia
Treść opublikowana przez ArashDev
-
hi I have designed a the theme on local host, and everything is working fine. but, after uploading it to the hosting server, when I click on save and reload button in theme settings, instead of staying on the setting page, after save I am redirected to the themes page and In the frontend section, with refreshing, my theme break and I receive the following error (Before refreshing everything works good). TypeError: Unsupported operand types: string / int (0) #0 /home/*****/*****/system/Theme/Theme.php(4828): IPS\Output\Plugin\_Fontsize::runPlugin('2x_large', Array, 'css_core_front_...', 'IPS\\Theme') #1 [internal function]: IPS\_Theme::IPS\{closure}(Array) #2 /home/*****/*****/system/Theme/Theme.php(4785): preg_replace_callback('/\\{([a-z]+?=(['...', Object(Closure), '\tfunction css_c...') #3 /home/*****/*****/system/Theme/Theme.php(4599): IPS\_Theme::compileTemplate('/* Core app, no...', 'css_core_front_...', '', false, true) #4 /home/*****/*****/system/Theme/Theme.php(5488): IPS\_Theme::makeProcessFunction('/* Core app, no...', 'css_core_front_...', '', false, true) #5 /home/*****/*****/system/Theme/Theme.php(2634): IPS\_Theme::writeCss(Array) #6 /home/*****/*****/system/Theme/Theme.php(646): IPS\_Theme->compileCss('core', 'front', '.', 'core.css') #7 /home/*****/*****/system/Dispatcher/Front.php(766): IPS\_Theme->css('core.css', 'core', 'front') #8 /home/*****/*****/system/Dispatcher/Front.php(76): IPS\Dispatcher\_Front::baseCss() #9 /home/*****/*****/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Front->init() #10 /home/*****/*****/index.php(13): IPS\_Dispatcher::i() #11 {main} I have installed the template on the newly set up forum. I haven't used any programs or plugins. thanks!
-
What do you mean by "whole codes"? I'm going to add a settings tab in my theme, and I'm getting the output using the codes I previously sent you, like the image below. However, I want the message above the tabs to be displayed only when I navigate to that specific tab. but, the code I'm using displays the message in all tabs. I hope I was able to convey my meaning.
-
hi I want the users see custom message when they go to a specific tab of the theme settings. I used the code below, but this message is displayed universally for all tabs, while I want it to be displayed for only one tab. <?php \IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->message( \IPS\Member::loggedIn()->language()->addToStack('custom_information'), 'warning', NULL, NULL, NULL, FALSE ); return new \IPS\Helpers\Form\YesNo( "core_theme_setting_title_{$row['sc_id']}", $value, FALSE, array( 'togglesOn' => array( 'theme_setting_forums_enbl', 'theme_setting_posts_enbl', 'theme_setting_topics_enbl', )), NULL, NULL, NULL, 'theme_setting_'.$row['sc_key'] ); I hope somebody can help me! thanks
-
<?php $members = NULL; if( \IPS\Settings::i()->info_members ) { foreach (explode("\n", \IPS\Settings::i()->info_members) as $key => $value) { $members[] = \IPS\Member::load( $value, 'name' ); } } return new \IPS\Helpers\Form\member( "core_theme_setting_title_{$row['sc_id']}", $members, FALSE, array('multiple' => NULL), NULL, NULL, NULL, 'theme_setting_' . $row['sc_key'] );
-
hi I wanna use below method in theme setting to get member names, Everything works fine, but after saving the settings, instead of displaying usernames, their IDs are shown in this field. <?php return new \IPS\Helpers\Form\member( "core_theme_setting_title_{$row['sc_id']}", $value, FALSE, array('multiple' => NULL), NULL, NULL, NULL, 'theme_setting_' . $row['sc_key'] );
-
Default Value for upload type
ArashDev odpowiedział(a) na ArashDev temat w Programowanie / tworzenie styli
I want to put a default image. -
hi as title say I'm going to add a upload item in theme setting so I need put a default image in default value. how should I do this? thanks
-
hi in creating setting for my theme i use below code: <?php return new \IPS\Helpers\Form\Stack( "core_theme_setting_title_{$row['sc_id']}", explode( ',', $value ), FALSE, array( 'stackFieldType' => 'Text' ), NULL, NULL, NULL, 'theme_setting_' . $row['sc_key'] ); I want to impose a restriction in this code that prevents creating more than 5 items. for solution I write below code: $items_created = count(explode(',', $value)); if ($items_created < 5) { return new \IPS\Helpers\Form\Stack( "core_theme_setting_title_{$row['sc_id']}", explode( ',', $value ), FALSE, array( 'stackFieldType' => 'Text' ), NULL, NULL, NULL, 'theme_setting_' . $row['sc_key'] ); } but it doesn't work! how can I do this?
-
hi my lords as title say I have a problem with my gateway. when I select a gateway and click on confirm and pay I got below error: There was an error processing the payment. Please try a different payment method or contact us for assistance. system error log: #0 /home/**********/public_html/applications/nexus/modules/front/checkout/checkout.php(1542): IPS\nexus\Gateway\_razorpay->auth() #1 /home//**********//public_html/system/Helpers/Wizard/Wizard.php(181): IPS\nexus\modules\front\checkout\_checkout->_pay() #2 /home//**********//public_html/applications/nexus/modules/front/checkout/checkout.php(170): IPS\Helpers\_Wizard->__toString() #3 /home//**********//public_html/system/Dispatcher/Controller.php(118): IPS\nexus\modules\front\checkout\_checkout->manage() #4 /home//**********//public_html/applications/nexus/modules/front/checkout/checkout.php(57): IPS\Dispatcher\_Controller->execute() #5 /home//**********//public_html/system/Dispatcher/Dispatcher.php(153): IPS\nexus\modules\front\checkout\_checkout->execute() #6 /home//**********//public_html/index.php(13): IPS\_Dispatcher->run() #7 {main} It was working fine until yesterday! thanks!
-
show all topics and post statistics for each forum
ArashDev opublikował(a) temat w Ogólny support IPS4
hi I want to show all topics and post statistics from one forum after forum title: for this I used below code: {{$all = \IPS\Db::i()->select( 'SUM(topics) as t, SUM(posts) as p', 'forums_forums', array( 'parent_id = ?', $category->_id ) )->first();}} <i class="fa fa-question-circle" data-ipsTooltip title='{lang="__api_forums_topics"}: {$all['t']} | {lang="__api_forums_posts"}: {$all['p']}'></i> but it doesn't show real statistics. what's the problem with this code? -
hi I wanna add an icon in the userbar so that admins can see the unapproved content count and manage those. <li class="cUserNav_icon"> <a href='{url="app=core&module=modcp&controller=modcp&tab=approval" seoTemplate="modcp_approval"}' data-ipsTooltip title='{lang="modcp_approval" escape="true"}'> When I click on it, I will be redirected to the following page: I want the unapproved content list to be displayed in a popup like below:
-
just default methods "Standard & Converter" reCAPTCHA V2 question ans answers challenge Converter
-
hi I installed IPS on subdomain as a test forum and in user login and admin login I got this text "Bot domain invalid" what is mean?
-
-
I find this example: $form->add( new \IPS\Helpers\Form\Stack( 'site_social_profiles', \IPS\Settings::i()->site_social_profiles ? json_decode( \IPS\Settings::i()->site_social_profiles, true ) : array(), FALSE, array( 'stackFieldType' => '\IPS\core\Form\SocialProfiles', 'maxItems' => 50, 'key' => array( 'placeholder' => 'http://example.com', 'size' => 20 ) ) ) );
-
hi I wanna add an option in my plugin so I need to use a field like below: I know this is a stack Item: $form->add( new \IPS\Helpers\Form\Stack() but there is no documents on invision. can someone help me to how to use that?
-
hi I want users to have 10 posts in forum B to view forum A, which has been approved by the management. In other words, I want to force users to post 10 posts in forum B to view the educational content that I post in forum A. is It possible to do this؟
-
I solved with: /** * Authorize * * @param \IPS\nexus\Transaction $transaction Transaction * @param array|\IPS\nexus\Customer\CreditCard $values Values from form OR a stored card object if this gateway supports them * @param \IPS\nexus\Fraud\MaxMind\Request|NULL $maxMind *If* MaxMind is enabled, the request object will be passed here so gateway can additional data before request is made * @param array $recurrings Details about recurring costs * @param string|NULL $source 'checkout' if the customer is doing this at a normal checkout, 'renewal' is an automatically generated renewal invoice, 'manual' is admin manually charging. NULL is unknown * @return \IPS\DateTime|NULL Auth is valid until or NULL to indicate auth is good forever * @throws \LogicException Message will be displayed to user */ public function auth( \IPS\nexus\Transaction $transaction, $values, \IPS\nexus\Fraud\MaxMind\Request $maxMind = NULL, $recurrings = array(), $source = NULL ) {
-
I did it. but now I got below error: Fatal error: Declaration of IPS\nexus\Gateway\_zarinpal::auth(IPS\nexus\Transaction $transaction, $values, ?IPS\nexus\Fraud\MaxMind\Request $maxMind = null, $recurrings = []) must be compatible with IPS\nexus\_Gateway::auth(IPS\nexus\Transaction $transaction, $values, ?IPS\nexus\Fraud\MaxMind\Request $maxMind = null, $recurrings = [], $source = null) in /home/smooksh1/test.smook.shop/applications/nexus/sources/Gateway/zarinpal/zarinpal.php on line 46
-
I have a payment gateway that unfortunately does not work with php8 or higher. After selecting the payment method, I get a white screen error. To check this problem, I enabled error display and saw the following error: Fatal error: Declaration of IPS\nexus\Gateway\_zarinpal::checkValidity(IPS\nexus\Money $amount, ?IPS\GeoLocation $billingAddress = null, ?IPS\nexus\Customer $customer = null) must be compatible with IPS\nexus\_Gateway::checkValidity(IPS\nexus\Money $amount, ?IPS\GeoLocation $billingAddress = null, ?IPS\nexus\Customer $customer = null, $recurrings = []) in /home/smooksh1/test.smook.shop/applications/nexus/sources/Gateway/zarinpal/zarinpal.php on line 26 zarinpal.php how can I fix that? please help me
-
-
-
-
hi how can I config login with email address like invision forum?