
Angel
Members-
Posts
43 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Angel's Achievements
-
Buna ziua! Am asa o intrebare. Am o thema custom , as dori sa stiu daca e posibil de realizat asa ceva. Pentru thema custom am nevoie de mult timp pentru a o aduce la capat pentru vizualizare pe smartphone si tableta. Ce as dori eu: Cind thema custom va fi validata ca defaul, atunci vizitatorii care vor vizita siteul de pe smartphone sau tableta sa nu sa le arate thema custom dar automat sa se schimbe pe cea originala Default. PS: Daca e posibil de asa ceva. Multumes.
-
Salut! Cum sa scot sursa dintr-un plugin, ca sa ma intelegeti mai bine, de exemplu: Pluginul TOPIC STARTER Din acest plugin sa scot sursa si sa o instalez pe forum, fara a instala pluginul. Sper ca ati inteles ce am avut in vedere. Multumesc. Acesta este codul din plugin <?xml version="1.0" encoding="UTF-8"?> <plugin name="Topic Starter Info In Topic View" version_long="20001" version_human="2.0.1" author="Ahmed Zayed" website="https://invisioncommunity.com/profile/189809-a-zayed/" update_check=""><hooks><hook type="S" class="\IPS\Theme\class_forums_front_topics" filename="TSITopicView"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } class hook4 extends _HOOK_CLASS_ { /* !Hook Data - DO NOT REMOVE */ public static function hookData() { return array_merge_recursive( array ( 'postContainer' => array ( 'ks' => array ( 'selector' => 'article > aside.ipsComment_author.cAuthorPane.ipsColumn.ipsColumn_medium.ipsResponsive_hidePhone', 'type' => 'add_inside_start', 'content' => '{{$tStarterId = \IPS\Db::i()->select( "starter_id", "forums_topics", "tid = $comment->topic_id")->first();}} {{if settings.TSITV_Loc == "aboveMT"}} {{if $comment->mapped(\'first\') && \IPS\Settings::i()->TSITV_Allow_First_Post == "0"}} {{else}} {{if $comment->author()->member_id == $tStarterId}} <span style=\'background: {setting="TSITV_BGColor"}; margin-bottom: 10px;\' class=\'ipsBadge {setting="TSITV_Size"} ipsBadge_positive\'><i class=\'fa {setting="TSITV_Icon"}\'></i> {setting="TSITV_Title"}</span> {{endif}} {{endif}} {{endif}}', ), 0 => array ( 'selector' => 'article > aside.ipsComment_author.cAuthorPane.ipsColumn.ipsColumn_medium.ipsResponsive_hidePhone > ul.cAuthorPane_info.ipsList_reset', 'type' => 'add_inside_start', 'content' => '{{if settings.TSITV_Loc == "belowMT"}} {{if $comment->mapped(\'first\') && \IPS\Settings::i()->TSITV_Allow_First_Post == "0"}} {{else}} {{if $comment->author()->member_id == $tStarterId}} <li><span style="background: {setting="TSITV_BGColor"}; margin-bottom: 10px;" class="ipsBadge {setting="TSITV_Size"} ipsBadge_positive"><i class=\'fa {setting="TSITV_Icon"}\'></i> {setting="TSITV_Title"}</span></li> {{endif}} {{endif}} {{endif}}', ), 1 => array ( 'selector' => 'article > aside.ipsComment_author.cAuthorPane.ipsColumn.ipsColumn_medium.ipsResponsive_hidePhone > ul.cAuthorPane_info.ipsList_reset > li.cAuthorPane_photo', 'type' => 'add_after', 'content' => '{{if settings.TSITV_Loc == "belowAV"}} {{if $comment->mapped(\'first\') && \IPS\Settings::i()->TSITV_Allow_First_Post == "0"}} {{else}} {{if $comment->author()->member_id == $tStarterId}} <li><span style=\'background: {setting="TSITV_BGColor"}; margin-bottom: 5px;\' class=\'ipsBadge {setting="TSITV_Size"} ipsBadge_positive\'><i class=\'fa {setting="TSITV_Icon"}\'></i> {setting="TSITV_Title"}</span></li> {{endif}} {{endif}} {{endif}}', ), ), ), parent::hookData() ); } /* End Hook Data */ } ]]></hook></hooks><settings><setting><key>TSITV_Title</key><default>Topic Starter</default></setting><setting><key>TSITV_Icon</key><default>fa-star</default></setting><setting><key>TSITV_Size</key><default>5</default></setting><setting><key>TSITV_BGColor</key><default>#f09348</default></setting><setting><key>TSITV_Loc</key><default>belowMT</default></setting><setting><key>TSITV_Allow_First_Post</key><default>1</default></setting></settings><settingsCode><![CDATA[//<?php $form->add( new \IPS\Helpers\Form\Text( 'TSITV_Title', isset( \IPS\Settings::i()->TSITV_Title ) ? \IPS\Settings::i()->TSITV_Title : 'Topic Starter', TRUE ) ); $form->add( new \IPS\Helpers\Form\Text( 'TSITV_Icon', isset( \IPS\Settings::i()->TSITV_Icon ) ? \IPS\Settings::i()->TSITV_Icon : 'fa-star', TRUE ) ); $form->add( new \IPS\Helpers\Form\Color( 'TSITV_BGColor', isset( \IPS\Settings::i()->TSITV_BGColor ) ? \IPS\Settings::i()->TSITV_BGColor : '', TRUE, array( 'disabled' => false, ) ) ); $form->add( new \IPS\Helpers\Form\Select( 'TSITV_Size', isset( \IPS\Settings::i()->TSITV_Size ) ? \IPS\Settings::i()->TSITV_Size : '', FALSE, array( 'options'=> array( 'ipsBadge_normal' => 'Normal', 'ipsBadge_medium' => 'Medium', 'ipsBadge_large' => 'Large', 'ipsBadge_veryLarge' => 'Very Large' ), ) ) ); $form->add( new \IPS\Helpers\Form\Select( 'TSITV_Loc', isset( \IPS\Settings::i()->TSITV_Loc ) ? \IPS\Settings::i()->TSITV_Loc : '', FALSE, array( 'options'=> array( 'aboveMT' => 'Above Member Title', 'belowMT' => 'Below Member Title', 'belowAV' => 'Below Avatar', ), ) ) ); $form->add( new \IPS\Helpers\Form\YesNo( 'TSITV_Allow_First_Post', \IPS\Settings::i()->TSITV_Allow_First_Post, FALSE, array(), NULL, NULL, NULL, 'TSITV_Allow_First_Post') ); if ( $values = $form->values() ) { $form->saveAsSettings(); return TRUE; } return $form;]]></settingsCode><tasks/><htmlFiles/><cssFiles/><jsFiles/><resourcesFiles/><lang><word key="TSITV_Title" js="0">Badge Title</word><word key="TSITV_Icon" js="0">Badge Icon [Font Awesome Icon]</word><word key="TSITV_Icon_desc" js="0"><![CDATA[Must be in the form of [fa-ICON_NAME], you can choose icons from <a href='http://fontawesome.io/icons/' target='_blank'>here</a>]]></word><word key="TSITV_BGColor" js="0">Badge Background</word><word key="TSITV_Size" js="0">Badge Size</word><word key="TSITV_Loc" js="0">Badge Location</word><word key="TSITV_Allow_First_Post" js="0">View 'Topic Stater' badge in first post?</word></lang><versions><version long="10000" human="1.0.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * Install Code */ class ips_plugins_setup_install { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="10001" human="1.0.1"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.0.1 Upgrade Code */ class ips_plugins_setup_upg_10001 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="10010" human="1.1.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.1.0 Upgrade Code */ class ips_plugins_setup_upg_10010 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="10020" human="1.2.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.0 Upgrade Code */ class ips_plugins_setup_upg_10020 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="20000" human="2.0.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 2.0.0 Upgrade Code */ class ips_plugins_setup_upg_20000 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="20001" human="2.0.1"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 2.0.1 Upgrade Code */ class ips_plugins_setup_upg_20001 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { return TRUE; } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version></versions></plugin>
-
Salut Cine ma poate sa imi spuna cum fac ca in imagine: ca sa ma intelegeti mai bine acolo unde scrie: slider:exemplu doresc sa fie ca la acele lalte care am insemnat cu rosu, adica sa fie ceva dew al meu. Sper ca ati inteles ce am avut in vedere.
-
Salut! Am un script, si nu stiu cum sa fac o chestie la el. <script type='text/javascript'> function changeBack() { var back = document.getElementById('colorPicker').value; document.getElementById('content_box').style.background = back ; } </script> <select id="colorPicker" onchange="JavaScript:changeBack()"> <option value="transparent">None</option> <option value="yellow">Yellow</option> <option value="salmon">Salmon</option> <option value="lightblue">Light Blue</option> <option value="limegreen">Lime Green</option> <option value="cyan">Cyan</option> <option value="violet">Violet</option> <option value="red">Red</option> </select> Unde scrie content_box acolo este ID a unui block sau a oricui DIV. Scriptul consta din aceea ca sa skimbe culoarea unui block sau a unui DIV cu elementul ID Scriptul merge bine, cind imi aleg culoarea respectiva pe care o doresc se skimba, dar nu se salveaza sa fie tot aceeasi culoare pe care am aleso. Ca sa intelegeti mai bine, de exemplu: Vrea ca blockul respectiv pe care lam ales sa fie de culoarea Violet, dupa ce miam ales culoarea, blockul sa skimbat in Violet, si iata acum si problema mea apare pe care doresc sa o rezolv. Dupa ce miam schimbat culoarea blockului dau un restart la pagina si culoarea numai este, se schimba in cea default. Eu doresc ca dupa ce miam ales culoarea respectiva tot ea sa ramina, pina nu voi dori sa chimb alta culoare. Sper ca mati inteles ce deresc.
-
Mersi, merge totul bine. Puteti da Topic Closed.
-
Eu nu doresc sa urc poze pe siteuri, ca dupa o perioada poza nu va fi valabila pe IMGUR De aceea doresc sa aflu metoda de mai sus..
-
Iata un exemplu ce doresc: background-image: url({resource="puffysticks/avatar-ring-l.svg" app="core" location="front"}); Eu doresc directia mea sa fie, si nustiu cum, am incercat in multe metode si nu mi sa primit.