Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > Old Templates > "Mollio-Beat"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-21-2007, 06:39 AM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Thanks: 26
Thanked 1 Time in 1 Post
Hidden Story Summary on the front page (like indianpad.com)

Attached is a screenshot.
I was wondering if creating a homepage like IndianPad / Popular Stories would be possible. On Indianpad's home page, you'll notice that the summary of all the stories are hidden by default and there's this view/hide link that toggles. The behavior is just like pligg's admin links which toggles and shows the edit story title etc.

I found this quite neat-looking and in pligg, if if you enable image/video embedding, the site display goes mish-mash.

Would it be very tough to create this? Any hints on what files to work on?

Attached are some screenshots...



------

Reply With Quote
  #2 (permalink)  
Old 09-21-2007, 07:18 AM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
In link-summary.tpl - you will need to work on it.

replace:
Code:
<span id="ls_contents-{$link_shakebox_index}">
with
Code:
{if $pagename neq "story"}<a href="javascript://" onclick="show_hide_user_links(document.getElementById('ls_contents-{$link_shakebox_index}'));">View &raquo;</a><br />{/if}
				<span id="ls_contents-{$link_shakebox_index}" style="display:none">
Hope this helps.
Reply With Quote
  #3 (permalink)  
Old 09-21-2007, 07:57 AM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Thanks: 26
Thanked 1 Time in 1 Post
Thanks for the reply dollar5, I'll work on it. I copied/pasted the above but doesn't seem to work.
Just wondering if I'll need to change some variables?
Reply With Quote
  #4 (permalink)  
Old 09-21-2007, 12:20 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
This was for the yget template - incase you use custom templates it will not work.

Do you have this item - <span id="ls_contents-{$link_shakebox_index}">?
Reply With Quote
  #5 (permalink)  
Old 09-21-2007, 01:31 PM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Thanks: 26
Thanked 1 Time in 1 Post
Its working! thanks dollar5. This wasn't working when I tried it the first time-this afternoon in the office . The error I was getting was "fatal error in error in html/class.php" (not sure what the exact error was).
Will it be possible to align the view link with the Comments, Add this link to...,Save, Tell a friend links etc?
Oh well, I'll try to figure this one out myself. I've troubled you so much already.

Tusi great ho!

Last edited by nothingman; 09-21-2007 at 01:35 PM..
Reply With Quote
  #6 (permalink)  
Old 09-21-2007, 04:02 PM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Thanks: 26
Thanked 1 Time in 1 Post
Apologies for coming back to this. But is there a way to toggle the View... text (with say, Hide...)?
Reply With Quote
  #7 (permalink)  
Old 09-21-2007, 04:39 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 439 Times in 278 Posts
Use the hide code from the sidebar, modify it to fit your needs.
Code:
{php}
        echo "<span><a onclick=\"new Effect.toggle('cats','blind', {queue: 'end'}); \"> <img src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
    {/php}
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #8 (permalink)  
Old 10-18-2007, 06:12 AM
Casual Pligger
 
Join Date: Aug 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
please help in toggle effect how to hide and view story

please help in toggle effect how to hide and view story
Reply With Quote
  #9 (permalink)  
Old 10-18-2007, 06:27 AM
Casual Pligger
 
Join Date: Aug 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
please help in toggle effect how to hide and view story

please help in toggle effect how to hide and view story like indianpad.com
Reply With Quote
  #10 (permalink)  
Old 10-18-2007, 06:35 AM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
Thanks: 26
Thanked 1 Time in 1 Post
Beats me, why have you created a new thread here??????
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 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
In story page, only summary shown observer_24_7 General Help 7 06-25-2008 08:53 PM
How to direct story title in summary page to the original story? chris79 General Help 4 02-03-2008 07:28 PM
Hidden Story Summary on the front page jitu "Mollio-Beat" 1 10-18-2007 04:25 AM
Front page summary ends with period. tonyzhou Modification Tutorials 1 09-10-2007 12:39 AM
full story (not summary) on index page revolver General Help 2 06-24-2007 11:03 AM


Search Engine Friendly URLs by vBSEO 3.2.0