|
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
|
||||
|
||||
forums/geek/gars/mods/action - folder not there?
I'm trying to add a custom module and following the manual, it says to put the .php file in the forums/geek/gars/mods/action folder, but as you can see from the attached thumbnail, there is no folder of that name. We're still on 2.1.2 - is this a change since that version? If so, where would I put the file in 2.1.2 to create this module?
Am I being an idiot about this? If so, my apologies, but for the life of me, I can't figure out where to put this. Susan |
#2
|
||||
|
||||
The tutorial was most likely written before 2.x was introduced.
Before then, each 'stage' of a modules life was seperated by if statements (i.e. if ($stage=="display"){....}elseif ($stage=="edit"){...) In 2.0, those stages are now seperate files without the if($stage) logic. In other words, the code that would execute in the if($stage=="display"){} section is now simply in the modulename.php file residing in the mods/display folder. Not sure if I muddles things up there or not |
#3
|
||||
|
||||
Yes, I am now completely muddled and befuddled. Given that the tutorial is out of date, how to upload a module in 2.x.? I'll do a search and I'll be back here if I can't find anything. Thanks for the clarification on the tutorial, though...nice to know I'm not insane.
Susan Last edited by Tigratrus; 02-16-2007 at 06:03 PM.. |
#4
|
||||
|
||||
Clarification:
We're trying to add a module to display a paypal "Buy it Now" button. We'll get more sophisticated another day but for right now we've setup a GARS forum to display the handful of items we're offering for sale (Ironically, we have a full blown shopping cart system, VPASP, but integrating it is just too much trouble and our site no longer supports ASP anyway). Basically we've got everything else setup in the GARS sets... And we just need to add the paypal botton html to a module so that it can be added.
We tried just adding the paypal button in the body of the post with HTML turned for this forum in the ACP and it wouldn't parse the html. We thought we might beable to sidestep that by adding it as a module, hence what we're trying to do here. I *did* find the right folder to drop in the module file if we can figure out how to wrap the php around the html right, for anyone else looking it's: forums/geek/gars/mods/display James Last edited by Tigratrus; 02-16-2007 at 06:38 PM.. |
#5
|
||||
|
||||
Sorted it!
Ok... Looks like the root problem was vBulletin itself having a problem with the paypal button html <form>. We used the email link that's provided as an alternative to the <form> and attached it to the simple button image as a straight forward html anchor. That parsed just fine.
I've got the module registration down I think, though no guarantee I won't be back to pester you for help when/if I actually *do* need to put together a custom module. So umm... Nothing to see here. Move along. This is not the problem you're looking for... James |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Article and Review system live in action | control | Geek Article and Review System | 4 | 03-28-2009 01:02 AM |
Invalid Action Specified | MsJac | Geek Article and Review System | 1 | 04-07-2008 05:14 PM |
Default mods are not registered | gldtn | Geek Article and Review System | 8 | 01-03-2008 12:07 PM |
Where can I see a GARS demo or GARS in action? | zeuxxx | Geek Article and Review System | 7 | 05-26-2007 07:54 PM |
/geek/gars/images VS /geek/gars/images/types | Stachel | Geek Article and Review System | 21 | 01-25-2006 04:36 AM |