I'm trying to add a php script I have (PHP Calendar to be exact) to my test pligg site as a module. I have managed to get it working by calling it through pligg as a module. I call it as
module.php?module=cal
and with some light work I have been able to get it to work through that. Now is the hard part. How do I get the rest of the pligg framework to wrap around it? The header and the sidebar. I worked through up to this part by looking at what modules are already there in svn and got this far. I just don't see one that has an example like this.
Any pointers would be great.
Thanks!
Aixelsyd
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| A question about modules... |
| ||||
|
have a look at this one. http://pligg.svn.sourceforge.net/vie...hp?view=markup assign what tpl you want as center and then simply tell pligg.tpl to show up. it will load all the headers and sidebar.
__________________ Anatomy of the Pligg template Help needed |
| |||
|
I'm still not getting it. I can get it to wrap now but the code won't run right. PHP Fatal error: TPL: [in ../modules/cal/cal.tpl line 380]: syntax error: require_once function does not exist (class.compiler.php, line 473) in /home/website/test/class.template.php on line 898 I tried surrounding the php code with {php} tags but that didn't help. What did I miss? Thanks! |
| ||||
|
the best person to get answers from is ash, i'm still getting used to it. could you post your code.
__________________ Anatomy of the Pligg template Help needed |
| |||
|
Depending on how complicated your code is, you can just throw it into a template lite plugin file then where ever you need it in your template, you just call the function. Take a look at my Adsense rev share mod and my Youtube video mod for some plugin examples. They're tricky at first, but once you get used to them, you can do anything.
|
| |||
|
This is definitely tricky. I don't know if it would work as a plugin easily since it's a bunch of files. I've gotten to the point where I can call it like the ajaxcontact but something in it stops the output from completing. I just get the header, side bar, and just the location in the body portion. No footer. If I do a simple "hello world" php script it's fine. So it's something in the code. I'll figure it out. I am trying to do something a little tough that may be doomed from the start. I did modify the script so far to stop outputting the html tags that would cause problems. I'll get there eventually... Thanks! Aixelsyd |
| |||
|
Thank you for the offer. I am going to work on it some more first. I think I'm biting off more than I can chew at least for a first attempt. I can write my own module just fine so I know it's in the code I'm using for the module itself that's stopping it. I stripped off it displaying the headers and the footers that would close things on me. I'm trying to bring this projects code: http://php-calendar.sourceforge.net/ In as a module for pligg. Just to let everyone know. Aixelsyd |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Blank Pages In Admin Panel: Problem With Several Modules | pligger456 | Module Support | 6 | 02-21-2008 03:39 AM |
| Error Installing Modules | Netlink | Installation and Upgrade Help | 2 | 12-24-2007 10:26 PM |
| Pligg modules problem.. | Fist | General Help | 3 | 11-29-2007 12:24 PM |
| Google adsense revenue sharing, question | dadaas | Modification Tutorials | 0 | 10-03-2007 01:13 PM |




Linear Mode

