NorthDPole
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Atahualpa] Where do we report security bugs?Thanks,
done 🙂hi horria, in principle they should if they dont have a background of their own
the inheritance goes as follows: If category has image append the css for the category
if post has image append for postit works as demonstrated here:
category 1
http://pelloponisos.telesto.gr/test3/category 2
http://pelloponisos.telesto.gr/test2/single post
http://pelloponisos.telesto.gr/test/check this piece of code (i did some bugfixing and added a couple of features)
https://github.com/northdpole/PelopSite/tree/master/peloponnisos-pluginsnote: the example links will be broken after sunday night
Forum: Fixing WordPress
In reply to: Cant add items to custom menusI fixed it by uninstalling and reinstalling the theme and a couple of my plugins
problem was in one of my custom functions in a plugin for the backendhi cheltenhammedia I would propose to patch the plugin with the code I provide above, and substitude the hardcoded values with the more easily customizable plugin options.
A more immediate solution to your problem would be to substitute only this file
https://github.com/northdpole/PelopSite/blob/background_changing_plugin/background-per-page.phpand in function add_background_per_page() line 171
Modify the if statement to make $data = array(‘src’=>””,’color’=>’Transparent’);and after the if block (line:207) insert an else statement which echoes your hardcoded values
another solution which I’m not sure if it works would be to put an Importand css marker for your backgrounds and maybe place your background before the plugin’s one
Here is it
https://github.com/northdpole/PelopSite/blob/background_changing_plugin/background-per-page.php
https://github.com/northdpole/PelopSite/blob/background_changing_plugin/admin-page.php
Its a quick and dirty solution pieced together on-the-fly but it works.
If you want to make it better feel free 🙂
otherwise i’ll probably get back to it around mid-November or so.i fixed it,
you also had a bug:
in add_background_per_page()
you were only putting a background if there was an image so i changed the
if($src!=””) to
if($src != ” || $color != ‘Transparent’)also i added some functionality to assign a background to the category pages and to every post belonging in that category which does not have a specific background assigned.
Its not beautiful code and it lacks a couple functionality/usability tweaks but if you want to include it to the next version i can work on it a bit more, just drop a line 🙂
you can view the results in the page i mentioned aboveForum: Localhost Installs
In reply to: every link points to localhost instead from proper ipthank you
Forum: Localhost Installs
In reply to: every link points to localhost instead from proper ipwhen i installed wordpress yes
but when i changed it the adresses did no change
//reinstalling wordpress i will update as soon as i finish
Forum: Localhost Installs
In reply to: every link points to localhost instead from proper ipthank u for the quick reply
my pc’s lan-ip 192-168-1-123