19 Mär 2008 s9y-Port: Gossip City 2

Gossip City 2
Ihr wollt pink und blau? Ihr wollt Streifen? Ihr wollt einen Werbeblock einbauen können? Ihr wollt (vielleicht) Gossip City 2 für s9y!
Anmerkung: Gossip City 2 ist nichts für Code-Puristen. Die Optik ist klasse und war der Hauptgrund für diesen Port, der darunter liegende HTML-Code ist meines Erachtens, nun ja, unschön.
Download und weitere Informationen auf meiner Ports-Seite. Fehler und sonstige Beschwerden bitte wie gehabt wahlweise in den Kommentaren oder per Email.





This is a great port and I am using it for one of my sites.
If you don’t mind I’d like to point out some improvements :) .
Firstly in all your themes you state this in the admin backend:
“Enter number of links in the navbar (needs reload of the Manage Styles page) “
Actually the reload is required because of a bug in s9y. To work around it in your theme replace this code in config.inc.php:
http://pastebin.com/f4c8c4033
with this:
http://pastebin.com/m768b0d22
Also in your theme even if there are no plugins in the right/bottom sidebar a blank bar shows at the bottom of the page. To fix that replace this in index.tpl:
http://pastebin.com/f21891e7
with this:
http://pastebin.com/f156f9ba2
That is put all the divs inside the if structure.
I hope you don’t mind these suggestions. I have been working on customizing your theme for one of my sites and I noticed these small bugs.
I’ll check those out asap. Thanks for the input, I really appreciate it :-)
Just for the record, let me cite Garvin on the config.inc.php patch: “This Patch is EVIL and has SEVERLY security impacts, can lead to people easily putting XSS on your page or changing the config of your blog without requiring a login”.
You really don’t want to use this, I guess.
(Anmerkung für Leser, die des Englischen nicht mächtig sind: Der oben genannte Patch für die config.inc.php birgt ein ernsthaftes Sicherheitsrisiko, bitte NICHT benutzen!)
I had no idea. I plead inexperience :(. I have been using similar code for over a year. Infact judebert went through some of it for one of his header image plugin. He didn’t notice it either. I am going to make a thread about it on s9y forums.
Ok after consulting Garvin on the forums:
http://board.s9y.org/viewtopic.php?p=72727
I came up with this:
http://pastebin.com/f2e1069d2
Replace the same line as before in config.inc.php