Inside Paulo Abrantes' head
[ start | index | login or register ]
start > 2006-03-25 > 1

Snipsnap hacks

Created by pabrantes. Last edited by pabrantes, 2 years and 141 days ago. Viewed 1,744 times. #16
[diff] [history] [edit] [rdf]
labels
Category:IT
attachments
adsense.jar (4336)
snipsnap.war (7048947)

Snipsnap hacks

By now, you probably know what >>SnipSnap is. For the ones that still don't, it's the system that I'm using for my blog. But probably what you all don't know is, that it's based in >> Radeox which is a well written Wiki Render Engine.
I've done a small modification in the radeox source code, more exactly in the Link Macro ({link}), in order to make possible opening links in a new window. I know that most of us now use tabs, but there are still people that keep just clicking on the links. This measure will prevent those from leaving my blog just because they followed some link within a post.
Right now, you have a new parameter in the link macro called newWindow that defaults to false.
If anyone else is interested in this simple hack, you can download the >>snipsnap.war, replace the one inside snipsnap-homedir/lib/snipsnap.war and restart snipsnap.

But this wasn't the only modification I did in snipsnap.

As you can see my blog now makes part of the >>AdSense program. I've written an adsense macro, if you're interested you can always download >>it. It receives the width, height and type of ad as parametres, although, I didn't like the idea of having the client id has parameter, making possible others to put their own ads in your page, so I created a config file, called adsense.xml that will be put in the snipsnap-homedir with the following information:

<adsense> <client>YOUR CLIENTID</client> </adsense>

If you install adsense, you'll have to create such file (adsense.xml) within that dir with that information.

I guess that at least the adsense macro will attract some, since there's no decent adsense macro for snipsnap (at least that I'm aware of). As usual if you guys liked my work and want to show appreciation you can always send me 2€ (laugh).

Any questions related with this hacks, comments, or suggestions can always be posted here (if it's still a recent post) or sent to me by email (you can find my email in my >>profile).

Icon-Comment anonymous, 2 years and 148 days ago. Icon-Permalink

Já escrevias qualquer coisa que o comum mortal pudesse ler! Ninguem percebe nada por isso e que ninguem comenta! e depois eu e que so falo de trabalho… chiça!
Please login to www.pabrantes.net.
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package
YALM: Yet Another Layout Modification

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 7 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes