Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2007, 04:34 PM
chuckroast's Avatar
chuckroast chuckroast is offline
Pligg Developer
Pligg Version: 9.9
Pligg Template: Summerfest
 
Join Date: Jun 2006
Location: PA
Posts: 2,131
Downloads: 48
Uploads: 19
Thanks: 158
Thanked 416 Times in 256 Posts
jQuery Standalone Pligg Module

While creating templates I discovered the need for a stand alone jQuery module which could be distributed along with some templates.

jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages.

You can do some pretty neat stuff with jQuery and a pligg template.
AjaxRain lists over 177 different effects that can be used within your template.

Download: jQuery Standalone Pligg Module
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
The Following 2 Users Say Thank You to chuckroast For This Useful Post:
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 10-10-2007, 05:21 PM
crakez's Avatar
crakez crakez is offline
Send a message via MSN to crakez Send a message via Skype™ to crakez
Constant Pligger
Pligg Version: 9.8.2
Pligg Template: Fresh Template
 
Join Date: Jul 2007
Location: Australia
Posts: 143
Downloads: 15
Uploads: 0
Thanks: 14
Thanked 8 Times in 6 Posts
Thanks for this module.

- John
Reply With Quote
  #3 (permalink)  
Old 10-11-2007, 03:57 AM
auctionguy's Avatar
auctionguy auctionguy is offline
Casual Pligger
Pligg Version: Pligg 9.8.2
Pligg Template: GarrX
 
Join Date: Sep 2007
Location: USA
Posts: 95
Downloads: 6
Uploads: 0
Thanks: 8
Thanked 27 Times in 6 Posts
Awsome Mod!! I am going to try some of the goodies out!! Thanks!
Reply With Quote
  #4 (permalink)  
Old 10-11-2007, 06:37 AM
blackpr blackpr is offline
New Pligger
 
Join Date: Mar 2007
Posts: 21
Downloads: 18
Uploads: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Thank you!
Reply With Quote
  #5 (permalink)  
Old 01-23-2008, 05:41 AM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
Thanks, been trying to add jQuery widgets etc..., but couldn't.

Geoserv
Reply With Quote
  #6 (permalink)  
Old 01-23-2008, 05:57 AM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
Ok, normally we enable modules.

Are we suppose to install/enable this module? I get TPL error when I do.

Geoserv
Reply With Quote
  #7 (permalink)  
Old 01-23-2008, 08:55 AM
chuckroast's Avatar
chuckroast chuckroast is offline
Pligg Developer
Pligg Version: 9.9
Pligg Template: Summerfest
 
Join Date: Jun 2006
Location: PA
Posts: 2,131
Downloads: 48
Uploads: 19
Thanks: 158
Thanked 416 Times in 256 Posts
Quote:
Originally Posted by Geoserv View Post
Ok, normally we enable modules.

Are we suppose to install/enable this module? I get TPL error when I do.

Geoserv

Are you making a statement or asking for help? Because you provided no other details.
What sort of TPL error are you getting?
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #8 (permalink)  
Old 01-23-2008, 09:02 AM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
I was asking if we were suppose to enable this module like all others, since in your directions it says to add:

Quote:
<script type="text/javascript" src="http://mydomain/modules/jquery/js/jquery.js"></script>
in pligg.tpl.

The TPL error is as follows:

Quote:
Fatal error: TPL: [in line 0]: syntax error: file '../modules/jquery/templates/pligg_pre_title.tpl' does not exist in /home/newsdots/public_html/class.template.php on line 923
Geoserv
Reply With Quote
  #9 (permalink)  
Old 01-23-2008, 09:23 AM
chuckroast's Avatar
chuckroast chuckroast is offline
Pligg Developer
Pligg Version: 9.9
Pligg Template: Summerfest
 
Join Date: Jun 2006
Location: PA
Posts: 2,131
Downloads: 48
Uploads: 19
Thanks: 158
Thanked 416 Times in 256 Posts
I can not recreate this error on any of my test servers.
This module doesn't even call /modules/jquery/templates/pligg_pre_title.tpl
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #10 (permalink)  
Old 01-23-2008, 09:30 AM
Geoserv Geoserv is offline
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 854
Downloads: 60
Uploads: 0
Thanks: 75
Thanked 49 Times in 45 Posts
In jquery_init.php it references a template:

Quote:
<?php
if(defined('mnminclude')){
include_once('jquery_settings.php');

// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and shakeit.php becomes 'shakeit'
$include_in_pages = array('all');
$do_not_include_in_pages = array('admin_config');

if( do_we_load_module() ) {

module_add_action_tpl('tpl_pligg_pre_css_and_js', jquery_tpl_path . 'pligg_pre_title.tpl');

}
}
?>
This is the file that seems to be causing the issue, if I delete the lines:

Quote:
if( do_we_load_module() ) {

module_add_action_tpl('tpl_pligg_pre_css_and_js', jquery_tpl_path . 'pligg_pre_title.tpl');

}
the error goes away.

Geoserv.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Page titles & breadcrumbs AshDigg Core Development 11 06-30-2006 06:35 PM


LinkBacks Enabled by vBSEO 3.0.0