Go Back   Pligg Forum > Pligg Development > Pligg Templates > Template Support > "yget"
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2007, 06:10 PM
computerbar's Avatar
computerbar computerbar is offline
Pligg Donor
Pligg Version: 9.9.0
Pligg Template: yget,convergence,simple
 
Join Date: Nov 2007
Location: UK
Posts: 70
Downloads: 11
Uploads: 0
Thanks: 33
Thanked 8 Times in 7 Posts
Using new Effect.toogle on stories

hi
I am trying to use the new Effect.toggle, which is already used in sidebar, on stories.
I want to hide all the story and just to see the tiltle and votes.
the code below is from tags.tpl

I tried it in link_summary under the news-submitted but no success.
any ideas??

thanks

Code:
<div class="tlb">{php}
	echo "<span><a onclick=\"new Effect.toggle('s2','blind', {queue: 'end'}); \">  <img src=\"".my_pligg_base."/templates/".The_Template."/images/expand.png\" alt=\"expand\" /></a></span>";
{/php}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Top_5_Tags#}</a>

</div>
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 12-28-2007, 06:46 PM
AshDigg's Avatar
AshDigg AshDigg is offline
Mayor of PliggVille
 
Join Date: Dec 2005
Posts: 1,623
Downloads: 34
Uploads: 10
Thanks: 237
Thanked 346 Times in 207 Posts
Did you put

PHP Code:
<div id="s2">   </div
around the content you want to hide / show?
__________________
- Ash
Reply With Quote
The Following User Says Thank You to AshDigg For This Useful Post:
  #3 (permalink)  
Old 12-28-2007, 08:00 PM
computerbar's Avatar
computerbar computerbar is offline
Pligg Donor
Pligg Version: 9.9.0
Pligg Template: yget,convergence,simple
 
Join Date: Nov 2007
Location: UK
Posts: 70
Downloads: 11
Uploads: 0
Thanks: 33
Thanked 8 Times in 7 Posts
It work but it is only hides the first post summary.

What am I doing wrong?
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 06:54 AM
AnAlienHolakres3's Avatar
AnAlienHolakres3 AnAlienHolakres3 is offline
Send a message via ICQ to AnAlienHolakres3
Pligg Developer
 
Join Date: Jul 2007
Location: Prague
Posts: 117
Downloads: 24
Uploads: 1
Thanks: 7
Thanked 111 Times in 40 Posts
Where is the problem

Quote:
Originally Posted by computerbar View Post
It work but it is only hides the first post summary.

What am I doing wrong?
I think i do know where the problem is. You can not use more same ID´s in one page,it needs to be unique. Thats the reason why only 1 (the first) is working
__________________
=Everything that has a beginnig has an end=
=Nevere stop fighting=

Site: http://www.vselink.org
Reply With Quote
The Following User Says Thank You to AnAlienHolakres3 For This Useful Post:
  #5 (permalink)  
Old 01-07-2008, 07:24 PM
computerbar's Avatar
computerbar computerbar is offline
Pligg Donor
Pligg Version: 9.9.0
Pligg Template: yget,convergence,simple
 
Join Date: Nov 2007
Location: UK
Posts: 70
Downloads: 11
Uploads: 0
Thanks: 33
Thanked 8 Times in 7 Posts
I have found one
this one works
<div class="news-submitted">

<span style="font-weight:bold;"><a class="arrowdown" href="javascript://" onclick="show_hide_user_links(document.getElementB yId('ls_contents-0'));" title="Show Summary">Show Summary</a></span>&nbsp;|

<span id="ls_posted_by-0">Posted by </span>

<a href="javascript://" onclick="show_hide_user_links(document.getElementB yId('userlinks-0'));" title="keepclear on Design Float">
<span id="ls_link_submitter-0">keepclear</span></a>

see it working on designfloat.com
__________________
Coming sooon....
pickaFREEone-PeekLocal

Unmissable pligg Mods..
Reply With Quote
  #6 (permalink)  
Old 01-07-2008, 08:20 PM
Unknown Unknown is offline
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 165
Downloads: 35
Uploads: 0
Thanks: 27
Thanked 9 Times in 9 Posts
Thanks man Useful for the future. I was asking the other day about a way to make a users buried stories disappear completely from his page. I'm gonna test this on the whole link div, with a new button, maybe the user can hide the stories he doesn't like. I'll post back here my results.

Last edited by Unknown : 01-07-2008 at 08:31 PM.
Reply With Quote
  #7 (permalink)  
Old 01-07-2008, 08:36 PM
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
Can you paste the section of code in link_summary.tpl as it is.

Geoserv.
Reply With Quote
  #8 (permalink)  
Old 01-07-2008, 08:50 PM
computerbar's Avatar
computerbar computerbar is offline
Pligg Donor
Pligg Version: 9.9.0
Pligg Template: yget,convergence,simple
 
Join Date: Nov 2007
Location: UK
Posts: 70
Downloads: 11
Uploads: 0
Thanks: 33
Thanked 8 Times in 7 Posts
hi
here is the CODE

<a href="javascript://" onclick="show_hide_user_links(document.getElementB yId('ls_contents-{$link_shakebox_index}'));" title="Show Summary">Show Summary</a>

I have 9.9 template and this ls_contents-{$link_shakebox_index} is the story content, If you are using 9.8 template I think its called ls_contents-0
__________________
Coming sooon....
pickaFREEone-PeekLocal

Unmissable pligg Mods..
Reply With Quote
  #9 (permalink)  
Old 01-07-2008, 09:02 PM
computerbar's Avatar
computerbar computerbar is offline
Pligg Donor
Pligg Version: 9.9.0
Pligg Template: yget,convergence,simple
 
Join Date: Nov 2007
Location: UK
Posts: 70
Downloads: 11
Uploads: 0
Thanks: 33
Thanked 8 Times in 7 Posts
Also do not forget to add style="display:none"; next to id="ls_contents-{$link_shakebox_index}"
to display only title to make it nice and neat.

check out demo on my site.
__________________
Coming sooon....
pickaFREEone-PeekLocal

Unmissable pligg Mods..
Reply With Quote
  #10 (permalink)  
Old 06-24-2008, 08:41 PM
catchpen's Avatar
catchpen catchpen is offline
Pligg Donor
 
Join Date: Jan 2008
Posts: 199
Downloads: 25
Uploads: 1
Thanks: 28
Thanked 17 Times in 12 Posts
Quote:
Originally Posted by computerbar View Post
hi
here is the CODE

<a href="javascript://" onclick="show_hide_user_links(document.getElementB yId('ls_contents-{$link_shakebox_index}'));" title="Show Summary">Show Summary</a>

I have 9.9 template and this ls_contents-{$link_shakebox_index} is the story content, If you are using 9.8 template I think its called ls_contents-0
Thanks computerbar. This cleans up the summary page quite nicely.
Here's the code with the spaces removed to make it simpler to copy paste in your Pligg 9.9 link_summary.tpl:
around line 164
Code:
 {if $viewtype neq "short"}
add this before

Code:
 <a href="javascript://" onclick="show_hide_user_links(document.getElementById('ls_contents-{$link_shakebox_index}'));" title="Show Summary">Show Summary</a>
A few lines down replace:
Code:
<span id="ls_contents-{$link_shakebox_index}">
With this
Code:
<span id="ls_contents-{$link_shakebox_index}" {if $pagename neq "story"} style="display:none;" {/if}>

Last edited by catchpen : 06-26-2008 at 02:49 AM. Reason: Corrected code
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
Pligg beta 9.5 [updated] kbeeveer46 Current Version 0 04-29-2007 08:58 PM
"Top" in top Stories Sokora General Help 1 01-30-2007 09:30 PM
No pagination for stories in profile kbeeveer46 Bug Report 0 08-07-2006 12:22 AM


LinkBacks Enabled by vBSEO 3.0.0