|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
This is an HTML example. Isn't it just wonderful?!?!
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Turn Synopsis field into a embed video
Hello, I wanted to use gars to display embed videos from google and youtube and others video places if possible.. Where I can set a type, module, etc.. in gars for the forum to act like a video display page right into forumdisplay section.
So the user would create a thread, in the newthread the user will have a select box to select identify where the video is from.. (i.e Google, YouTube), and then a text field to enter video id. and in the synopsis box it will display the correct embed code of either google or youtube. I was trying to make this myself but my php knowledge limitation got me stuck in every direction I tried to go thru.. For example: I tried the google.php manual to ad adsense that geek posted.. I.E made a file called embed_videodisplay.php: Code:
<?PHP if ($stage == "display") { eval('$output.="' . fetch_template('GARS_embed_videodisplay') . '";'); } elseif($stage == "settings") { print_description_row("This module will display Embed video from Google & YouTube"); } ?> Code:
<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={param}" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"> </embed> I pretty sure is not as simple as I'm trying to put it together.. I'd also tried following the link directory mod but I didn't even quite know where to start on that. So geek, or anyone else that is capable of directing me to the right path or simply tell me how to get synopsis to read html and display it on forumdisplay(this way I can add the embed code from whatever site and it will show the video on forumdisplay). Or if anyone is willing to code this, I throw in some bucks if necessary.. Thanks in advance.
__________________
http://www.braziltourism.org/ Last edited by gldtn; 01-05-2007 at 07:17 AM.. |
#2
|
||||
|
||||
hmmm... thats the 1.x way of doing a module. The 2.x way breaks up the stages into seperate files in seperate folders called display, settings, etc... I would suggest taking a look at the references module. That would give you a good indication of how to do the module.
Looks like it should work though |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
any way to make synopsis a required field? | kaggy | Geek Article and Review System | 1 | 06-24-2010 07:33 PM |
Possible to embed a hyperlink with a popup? | highlander56 | Geek Auto-Linker | 2 | 12-02-2009 02:49 PM |
Using Turn ads off field in a conditional | Tigratrus | Geek Advertising Banner System | 1 | 06-24-2008 04:46 PM |
A better understanding of Profile field to turn off ads | RaceJunkie | Geek Advertising Banner System | 1 | 03-07-2008 04:33 AM |
Ability To Turn Custom Field Shells Off and On | Praetorian | Geek Article and Review System | 4 | 05-22-2007 07:56 PM |