Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2006, 01:40 AM
Constant Pligger
 
Join Date: Jan 2006
Posts: 197
Thanks: 1
Thanked 0 Times in 0 Posts
Content on seperate page

if i was to have another php page, and i wanted to link to some content powered by the engine, how would I go about that?

suppose I have a page, and I want to have "titlename" on it, "# of votes", and "vote for this story" on that page, along with add a comment. using the css file, what would i hve to do to acheive this?

include which files?
Reply With Quote
  #2 (permalink)  
Old 01-16-2006, 11:46 AM
New Pligger
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
There is an easy way of doing that just query the mysql data in php yourself for that page and link the vote bit to your trackback page as a dynamic link. This is something im working on as well. if you have questions add me to msn

deadlyassassin84@hotmail.com

Laterz
Reply With Quote
  #3 (permalink)  
Old 04-12-2006, 08:41 PM
New Pligger
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SubZ3r0
There is an easy way of doing that just query the mysql data in php yourself for that page and link the vote bit to your trackback page as a dynamic link. This is something im working on as well. if you have questions add me to msn

deadlyassassin84@hotmail.com

Laterz
Hi I've just started to think about this as well, (or, in some sense, use the pligg voting engine as a backend to a more specific front end with external voting buttons and automatically included rss feeds from a set of blogs), so I was wondering if you have made any progress you would like to share.

Thanks for a reply!
Reply With Quote
  #4 (permalink)  
Old 04-19-2006, 11:39 AM
Casual Pligger
 
Join Date: Apr 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
What if I want to be able to show the top 15 or so stories on the main page of another domain (the portal of my forums, let's say), with the vote buttons and comment buttons linking back to my Pligg site? I would assume there is a way to do that via XML but I'm not sure.
Reply With Quote
  #5 (permalink)  
Old 04-20-2006, 08:49 AM
Casual Pligger
 
Join Date: Apr 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
I'd basically like a tool like this that can export a feed:

http://shoutwire.com/feedconfig
Reply With Quote
  #6 (permalink)  
Old 04-30-2006, 02:33 AM
Constant Pligger
 
Join Date: Jan 2006
Posts: 197
Thanks: 1
Thanked 0 Times in 0 Posts
that is EXACTLY what i wanted. even with the JS
Reply With Quote
  #7 (permalink)  
Old 05-07-2006, 05:11 PM
Constant Pligger
 
Join Date: Jan 2006
Posts: 197
Thanks: 1
Thanked 0 Times in 0 Posts
nobody looked into this?
Reply With Quote
  #8 (permalink)  
Old 05-07-2006, 08:50 PM
Casual Pligger
 
Join Date: Feb 2006
Posts: 94
Thanks: 0
Thanked 2 Times in 2 Posts
So basically all you want is a blank php file (that you can add content to) that follows your template right? (sorry if I read that wrong)

I am going to pretend you want a "Privacy Info" page
Create a new file called: privacy.php in your root directory. Inside this file put:
Quote:
<?php

include_once('Smarty.class.php');
$main_smarty = new Smarty;

include('config.php');
include(mnminclude.'html1.php');
include(mnminclude.'link.php');
include(mnminclude.'smartyvariables.php');


$main_smarty->assign('tpl_center', $the_template . '/privacy');
$main_smarty->display($the_template . '/generic_main.tpl');
?>

Now create a file called privacy.tpl in your /templates/YOURTEMPLETEDIR/
and include this:
Quote:
<div class="block">
<div class="block-content">
<h2>&nbsp;</h2>
<div id="center">
<h2><strong>Our Commitment To Privacy </strong></h2>
<p>Your privacy is important to us. </p>
</div>
</div>
hope that helps

[update] code has been updated to reflect Mr. AshDigg's comment below

Last edited by hevnsnt; 05-08-2006 at 12:59 PM..
Reply With Quote
The Following User Says Thank You to hevnsnt For This Useful Post:
  #9 (permalink)  
Old 05-07-2006, 09:56 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Note: You shouldn't need those first 3 </div> anymore.
__________________
- Ash
Reply With Quote
  #10 (permalink)  
Old 05-07-2006, 10:42 PM
Casual Pligger
 
Join Date: Feb 2006
Posts: 94
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by AshDigg
Note: You shouldn't need those first 3 </div> anymore.
sweet thanks for the tip!
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

BB code is On
Smilies are Off
[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 Variables Yankidank Wiki Articles 1 08-13-2008 03:59 AM
Add content page? cmlawson General Help 4 06-17-2008 06:40 PM
Including content just on the front page gavinpov General Help 7 03-29-2008 08:40 PM
WordPress Content on a Pligg Page? Futurosity General Help 1 02-20-2007 01:51 PM
How show a short content in homepage,and show the full content in story page? iweb General Help 5 05-07-2006 08:22 PM


Search Engine Friendly URLs by vBSEO 3.2.0