Jump to content

Angel

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by Angel

  1. Angel

    Swap auto theme

    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.
  2. 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>
  3. Angel

    IPSTABBAR

    Mersi, am reusit!
  4. Angel

    IPSTABBAR

    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.
  5. Angel

    Switch Color

    Am rezolvat deja.
  6. Angel

    Switch Color

    Up, cineva?
  7. Angel

    Switch Color

    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.
  8. Angel

    HoverCard

    Multumesc @dOc MFX De marit folosesti .ipsHovercard.ipsHovercard_stemLeft { margin-left: -15px; width: 1200px !important; height: 500px; } Dar acel hovercard nu este facut pentru asa ceva, deci nu poti sa il pui pe mijloc.
  9. Angel

    HoverCard

    tiam trimis pm
  10. Angel

    HoverCard

    Doresc sa maresc hovercardu si sa apara pe centrul ecranului cu dimensiune mai mare.
  11. Angel

    HoverCard

    Buna Cum gasesc acest cod? Nici ca cum nu pot sal gasesc.
  12. Angel

    Direction imagine

    Mersi, merge totul bine. Puteti da Topic Closed.
  13. Angel

    Direction imagine

    Ti-am dat PM.
  14. Angel

    Direction imagine

    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..
  15. Angel

    Direction imagine

    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.
  16. Angel

    Direction imagine

    Buna lume. Am asa o intrebare, doresc sa fac si eu asa ceva cum ar fi background-image: url(aici trebuie directia spre tema unde se afla sursa, dar nu stiu care este directia); Poate cineva stie cum, si ma va ajuta. Multumesc.
  17. Angel

    SVG-HTML

    Multumesc, mai ajutat.. Puteti da T/C!
  18. Angel

    SVG-HTML

    Salut lume! Am asa o intrebare. Am o imagine SVG doar prin codul SVG fara a urca imaginea pe host. Doresc ca pe aceasta imagine sa adaug un cod HTML pe centrul imaginei SVG, sau se poate cum ava sa adaugi un cod HTML in codul SVG. Sper ca ati inteles ce am avut in vedere...
  19. Am cautat si nu am gasit nimik... Poate cineva stie ce fel de script este...
  20. Buna! Am vazut pe unele comunitati, aceasta functie: Theme Colors De unde iau aceasta functie....sau daca este un script cod ceva, sa imi arate un tutorial cum...
  21. Angel

    Problema userPhoto

    Up, cineva?
  22. Angel

    Problema userPhoto

    Buna la toti! Problema mea este, ca nu imi arata imaginea userPhoto pe forum, si pe orice tema, chiar si pe skinul default, am reinstalat si platforma si tot nu imi merge, nustiu ce sa ii mai fac, de aceea ma adresez dupa ajutorul vostru...
  23. Angel

    (GS) Steam Group

    buna am instalat pluginul steam group si imi da o erroare in sidebar la blockul steam: Error Apoi aceasta erroare: InvalidArgumentException: (0) #0 /home/u852208158/public_html/plugins/gssteamgroup/widgets/gsSteamGroup.php(59): IPS\Xml\_SimpleXML::loadString(Object(IPS\Http\Response)) #1 /home/u852208158/public_html/system/Widget/Widget.php(762): IPS\plugins\gssteamgroup\widgets\_gsSteamGroup->render() #2 /home/u852208158/public_html/system/Theme/Theme.php(824) : eval()'d code(15607): IPS\_Widget->__toString() #3 /home/u852208158/public_html/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical') #4 /home/u852208158/public_html/system/Theme/Theme.php(824) : eval()'d code(13045): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #5 /home/u852208158/public_html/system/Theme/Theme.php(824) : eval()'d code(13045): IPS\Theme\SandboxedTemplate->widgetContainer('sidebar', 'vertical') #6 /home/u852208158/public_html/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_global->sidebar('right') #7 /home/u852208158/public_html/system/Theme/Theme.php(824) : eval()'d code(5834): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array) #8 /home/u852208158/public_html/system/Theme/Theme.php(824) : eval()'d code(5834): IPS\Theme\SandboxedTemplate->sidebar('right') #9 /home/u852208158/public_html/system/Theme/SandboxedTemplate.php(56): IPS\Theme\class_core_front_global->globalTemplate('3b60b271ea7866c...', '\n<div class='ip...', Array) #10 /home/u852208158/public_html/system/Dispatcher/Dispatcher.php(166): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #11 /home/u852208158/public_html/system/Dispatcher/Dispatcher.php(166): IPS\Theme\SandboxedTemplate->globalTemplate('3b60b271ea7866c...', '\n<div class='ip...', Array) #12 /home/u852208158/public_html/system/Dispatcher/Standard.php(103): IPS\_Dispatcher->finish() #13 /home/u852208158/public_html/system/Dispatcher/Front.php(571): IPS\Dispatcher\_Standard->finish() #14 /home/u852208158/public_html/system/Dispatcher/Dispatcher.php(148): IPS\Dispatcher\_Front->finish() #15 /home/u852208158/public_html/index.php(12): IPS\_Dispatcher->run() #16 {main} De la ce poate fi? si cum rezolv?
  24. Angel

    Online Indicator

    Multumesc! Puteti da T/C!
  25. Angel

    Online Indicator

    Buna Doresc sa adaug Online Indicator, si stiu ca este plugin pentru aceasta, dar eu doresc altceva, adica doar sursa pentru Indicator, cum exista pentru ipb3, exemplu: <if test="postOnline:|:$author['_online']"> <span class='ipsBadge ipsBadge_green'>{$this->lang->words['online_online']}</span> <else /> <span class='ipsBadge ipsBadge_grey'>{$this->lang->words['online_offline']}</span> </if> &nbsp; Eu doresc asa ceva pentru IPS4.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.