Switch Theme:

Dakka image widget finished  [RSS] Share on facebook Share on Twitter Submit to Reddit
»
Author Message
Advert


Forum adverts like this one are shown to any user who is not logged in. Join us by filling out a tiny 3 field form and you will get your own, free, dakka user account which gives a good range of benefits to you:
  • No adverts like this in the forums anymore.
  • Times and dates in your local timezone.
  • Full tracking of what you have read so you can skip to your first unread post, easily see what has changed since you last logged in, and easily see what is new at a glance.
  • Email notifications for threads you want to watch closely.
  • Being a part of the oldest wargaming community on the net.
If you are already a member then feel free to login now.




Made in us
Aspirant Tech-Adept






Aschknas, Sturmkrieg Sektor

I recently finished a wiki widget for allowing Dakka images to be embedded in wiki pages, since the usual iframes provided don't work on user-input websites.

http://www.mediawikiwidgets.org/Dakka_Images

Not all wikis have Widgets installed though. If you are on a 40k wiki, that just means you should annoy the sysadmin until they install the extension and add the widget.

As a discussion grows in length, the probability of a comparison to Matt Ward or Gray Knights approaches one.

Search engine for Warhammer 40,000 websites
Note: Ads are placed by Google since it uses their service. Sturmkrieg does not make any money from the use of this service.

The Vault - Fallout Wiki Wikia still maintains their plagiarized copy 
   
Made in gb
[ADMIN]
Decrepit Dakkanaut






London, UK

Nice. Please make sure all generated URLs call images from images.dakkadakka.com for future proofing, as the main URL for dakkadakka will not always serve them up.

Check out our new, fully plastic tabletop wargame - Maelstrom's Edge, made by Dakka!
 
   
Made in ca
Aspirant Tech-Adept






Aschknas, Sturmkrieg Sektor

I've updated the widget at Sturmkrieg (haven't changed it at the distribution wiki yet) to allow for setting the size of the image.

I've also created at template that allows images from Dakka to be thumbnailed, like images that are uploaded directly to wikis. Normal thumbnailing of off wiki images isn't possible since it requires information in the database that isn't created for offsite images.

 legoburner wrote:
Nice. Please make sure all generated URLs call images from images.dakkadakka.com for future proofing, as the main URL for dakkadakka will not always serve them up.


I set it to use that URL, and created instructions to copy from the directory in that domain. The domain and directory are included within the widget so that it can only be used for Dakka images. Hotlinking without a widget is disabled by default in MediaWiki because it can allow spammers to harvest information about who visits pages. I also set the link when clicking on the image to go to the gallery homepage, since I thought it would be too complicated to ask people to add in two separate URLs.

This message was edited 1 time. Last update was at 2012/12/06 02:10:40


As a discussion grows in length, the probability of a comparison to Matt Ward or Gray Knights approaches one.

Search engine for Warhammer 40,000 websites
Note: Ads are placed by Google since it uses their service. Sturmkrieg does not make any money from the use of this service.

The Vault - Fallout Wiki Wikia still maintains their plagiarized copy 
   
 
Forum Index » Nuts & Bolts
Go to: