stokerrr
Aangemaakte reacties
-
Forum: Code oplossingen gezocht
In antwoord op: Dringend! Andere sidebar op andere paginaHelaas het lukt daar ook niet mee.
Echter heb ik wel een idee, maar heb zeker ondersteuning nodig;
Kan je een andere page.php aanroepen ipv de standaard pagina?Bijvoorbeeld
Pagina DIENSTEN komt opent met page.php (met sidebar1.php)
Pagina CONTACT komt open met page2.php (met daarin sidebar2.php)…Is dit mogelijk??
Forum: Code oplossingen gezocht
In antwoord op: Dringend! Andere sidebar op andere paginaHm.. dat gaat dus niet..
Weet er iemand hoe je in je bewerkbare pagina (HTML EDITOR) zelf dan die sidebar2 aanroept, kan dat?
Forum: Code oplossingen gezocht
In antwoord op: Dringend! Andere sidebar op andere paginaHe AdrianusV,
Dankjewel voor je antwoord, dit is geen plugin zeg maar, maar echt een speciefiek thema, ik ga het direct proberen, dankjewel!
Het liefst heb ik er een voor andere thema’s die ik zelf maak… Misschien kan het het e.e.a. kopieren. Dankjewel!
Forum: Thema en CSS/opmaak
In antwoord op: Post theme aanpassen per categorieIk denk dat ik weet wat je zoekt, ik zoek het zelfde namelijk alleen dan met gewone pagina,s die een andere sidebar hebben.
Kijk even of je hier wat aan hebt:
gys-themed-categoriesphp.php (plaats in je pluginmap en activeer in de admin).Hiermee kan je een thema kiezen per (NIEUWE) Catogorie, hierbij de code van dat bestand, even opslaan als bovenstaande in notepad.
<?php /* Plugin Name: GYS Themed Categories Plugin URI: http://get-your-stuff.com/ Description: This plugin allows you to assign themes to each of your WordPress categories. To assign themes to your categories, just go to Manage->Categories and you'll see a dropdown of all available themes at the bottom of the form. Get more GYS Themes and Plugins at <a href="http://get-your-stuff.com/">Get-Your-Stuff.Com</a>. Author: Mike Lopez Version: 2.1 Author URI: http://mikelopez.info/ */ if(!class_exists('GYSThemedCategories')){ class GYSThemedCategories{ function GYSThemedCategories(){ $this->BlogCharset=get_option('blog_charset'); $this->OptionName=strtoupper(get_class($this)); $this->Options=get_option($this->OptionName); } function GetOption(){ $options=func_get_args(); $option=$this->Options; foreach($options AS $o){ $option=$option[$o]; } return $option; } function SetOptions(){ $options=func_get_args(); for($i=0;$i<count($options);$i+=2){ $this->Options[$options[$i]]=$options[$i+1]; } update_option($this->OptionName,$this->Options); } // hooks // CATEGORY FORM PROCESSING function EditCategoryForm(){ $themes=get_themes(); $template=$this->GetOption('CategoryThemes',$_GET['cat_ID']); $options='<option value="">---</option>'; foreach($themes AS $theme){ $selected=$theme['Template']==$template?' selected="true" ':''; $options.='<option value="'.$theme['Template'].'"'.$selected.'>'.__($theme['Name']).' '.$theme['Version'].'</option>'; } $form=<<<STRING <div id="GYSThemedCategories"> <h3>GYS Themed Categories</h3> <table class="form-table"> <tbody> <tr class="form-field"> <th valign="top" scope="row">Category Theme</th> <td><select name="GYSThemedCategories">{$options}</select></td> </tr> </tbody> </table> </div> <script type="text/javascript"> //<![CDATA[ function GYSThemedCategories(){ try{ var x=document.getElementById('GYSThemedCategories'); var p=x.parentNode; var t=p.getElementsByTagName('p')[0]; p.insertBefore(x,t); }catch(e){} } GYSThemedCategories(); //]]> </script> STRING; echo $form; } function SaveCategory($id){ if(isset($_POST['GYSThemedCategories'])){ $catthemes=$this->GetOption('CategoryThemes'); if($_POST['GYSThemedCategories']){ $catthemes[$id]=$_POST['GYSThemedCategories']; }else{ unset($catthemes[$id]); } $this->SetOptions('CategoryThemes',$catthemes); } } // TEMPLATE PROCESSING function Template($template){ $pid=$cid=0; $perms=get_option('permalink_structure'); if($perms){ // get current URL if permalinks are set $s=empty($_SERVER['HTTPS'])?'':$_SERVER['HTTPS']=='on'?'s':''; $protocol='http'.$s; $port=$_SERVER['SERVER_PORT']=='80'?'':':'.$_SERVER['SERVER_PORT']; $url=$protocol.'://'.$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; list($url)=explode('?',$url); // get Post ID from URL $pid=url_to_postid($url); // get Category ID from URL list($url)=explode('/page/',$url); // <- added for paging compatibility $cid=get_category_by_path($url,false); $cid=$cid->cat_ID; }else{ // no permalinks so we simply check GET vars $pid=$_GET['p']; $cid=$_GET['cat']; } if($pid){ // we're in a post page... so let's get the first category of this post list($cat)=wp_get_post_categories($pid); }elseif($cid){ // we're in a category page... $cat=$cid; } if($cat){ // we have our category ID now so let's get the theme for it... $theme=$this->GetOption('CategoryThemes',$cat); // change template if a theme is specified for this category if($theme)$template=$theme; } $this->Theme=$template; return $template; } function Stylesheet(){ return $this->Theme; } } } if(class_exists('GYSThemedCategories') && !isset($GYSThemedCategories)){ $GYSThemedCategories=new GYSThemedCategories(__FILE__); } if(isset($GYSThemedCategories)){ add_action('edit_category_form',array(&$GYSThemedCategories,'EditCategoryForm')); add_action('create_category',array(&$GYSThemedCategories,'SaveCategory')); add_action('edit_category',array(&$GYSThemedCategories,'SaveCategory')); add_filter('template',array(&$GYSThemedCategories,'Template')); add_filter('stylesheet',array(&$GYSThemedCategories,'Stylesheet')); } ?>Forum: Algemeen WordPress
In antwoord op: Afbeeldingen met One.comHe wrk, Ik vind dat de pagina wat traag aangeroepen wordt, maar ik geloof dat dat bij meerdere is, omdat de site uit een database gehaald moet worden.
Het nadeel is dat je er maar 1 mySQL database mag hebben
Het voordeel is dat je 3000 mb hebt en over het algemeen een best wel prettige klantenservice hebt, ze mailen snel terug. De FTP verbinding staat goed.Ik zit ook bij Hosting2go namelijk
Daar mag je 10 databases hebben, en kan je dus 10x je site op zetten. Hier is het ophalen van de pagina volgens mij sneller, alleen de FTP knalt er wel eens uit, (Heb hier alleen last van als je heeeel veel bestanden tegelijk upload, bv, met het installeren van wordpress).Ik denk dat ik je hosting2go aan raad… 10x is wel prettig…
Forum: Code oplossingen gezocht
In antwoord op: Submenu of dropdown menuDankjewel, het werkt ook bij nu 🙂