jQuery Standalone Pligg Module

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2007, 06:34 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
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
Reply With Quote
  #2 (permalink)  
Old 10-10-2007, 07:21 PM
crakez's Avatar
Constant Pligger/Designer
Pligg Version: 9.9.5
Pligg Template: Fresh Template
 
Join Date: Jul 2007
Location: Australia
Posts: 119
Send a message via MSN to crakez Send a message via Skype™ to crakez
Thanks for this module.

- John
Reply With Quote
  #3 (permalink)  
Old 10-11-2007, 05:57 AM
auctionguy's Avatar
Casual Pligger/Designer
Pligg Version: 1.0
Pligg Template: wistie
 
Join Date: Sep 2007
Location: USA
Posts: 98
Awsome Mod!! I am going to try some of the goodies out!! Thanks!
Reply With Quote
  #4 (permalink)  
Old 10-11-2007, 08:37 AM
New Pligger
 
Join Date: Mar 2007
Posts: 22
Thank you!
Reply With Quote
  #5 (permalink)  
Old 01-23-2008, 07:41 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Thanks, been trying to add jQuery widgets etc..., but couldn't.

Geoserv
Reply With Quote
  #6 (permalink)  
Old 01-23-2008, 07:57 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
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, 10:55 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
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?
Reply With Quote
  #8 (permalink)  
Old 01-23-2008, 11:02 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
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, 11:23 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
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
Reply With Quote
  #10 (permalink)  
Old 01-23-2008, 11:30 AM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 268 02-03-2012 12:19 PM
Pligg Donation Drive 2009 chuckroast Questions and Comments 0 03-23-2009 05:42 PM
SkyNews August 2008 New Pligg Templates grusha Templates for Sale 14 09-10-2008 06:56 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development