The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Article and Review System (http://www.thevbgeek.com/forumdisplay.php?f=26)
-   -   Geek I've got a favour to ask... (http://www.thevbgeek.com/showthread.php?t=1933)

Fleabag 08-16-2006 10:54 PM

Geek I've got a favour to ask...
 
Any idea how I can have a custom field with a string, which is then parsed as a particular BB Code in a template?

I'm using the AnyMedia hack, which is a BB Code that will play media files from website URL's.

I want the custom field to contain the URL to be encased in [media] tags, so it will parse within a specified GARS template.

If you could hed some light I'd wet myself. Thanks! :D

PS: Hope the holiday was good!

The Geek 08-17-2006 07:42 AM

Thanks Flea, it was sweet.

how would they point out where it should go in the post? IE do they just enter [here] and you want to replace the instance of [here] with the media code?

You would most likely be better suited whipping up a basic module since you will most likely need some processing with it.

Fleabag 08-17-2006 08:38 AM

It would appear in a set place, and not in a user specified area, unlike the attachment option.

The Geek 08-17-2006 06:52 PM

I think a module would be the best and fastest option to create. Have you made any before?

Fleabag 08-17-2006 07:32 PM

I haven't no! I didn't realise it would be a complex job. I don't want to trouble you, I'll start reading up on PHP or failing that put up a paid request in a little while.

The Geek 08-17-2006 11:25 PM

Naa, its really only about a 10 minute job. Ill try to do it Saturday (im out all day tomorrow).

Cool? :)

Fleabag 08-17-2006 11:27 PM

Wow that'd be awesome. Will make a real difference to the effect I'm trying to achieve. Thank you sir!

Fleabag 08-26-2006 03:15 PM

Quote:

Originally Posted by The Geek
Naa, its really only about a 10 minute job. Ill try to do it Saturday (im out all day tomorrow).

Cool? :)

Any luck with this yet Sam? :)

The Geek 08-26-2006 05:37 PM

er.... I kind of got caught up in the freakiness of updating to RC4 :)

Quick question though... would it look/act kind of like the www button on a Link Directory page? If so, its a quick template and a custom field.

Fleabag 08-26-2006 05:40 PM

That would be fine, yes! I can customise it from there. The idea is though that I'm going to edit the template so one of the module positions is in the centre bottom of the post bit - so there's the info above and the media file below. It will just be parsing the BB code [media] tag.


All times are GMT. The time now is 05:24 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.