The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Sliding category on punbb !

5 posters

Go down

Solved Sliding category on punbb !

Post by razvy3 May 21st 2011, 1:18 pm

Base what code did you use to slide the category in your forum ?
avatar
razvy3
Forumember

Male Posts : 61
Reputation : 1
Language : Romana 10 , engleza 7

Back to top Go down

Solved Re: Sliding category on punbb !

Post by Raze May 21st 2011, 3:00 pm

I would like to know this also.
Raze
Raze
Forumember

Male Posts : 406
Reputation : 12
Language : English, HTML, CSS

Back to top Go down

Solved Re: Sliding category on punbb !

Post by Base May 21st 2011, 3:30 pm

My forum is phpBB 3, not punBB. Wink
Base
Base
Forumaster

Male Posts : 10386
Reputation : 1695
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Solved Re: Sliding category on punbb !

Post by razvy3 May 21st 2011, 3:38 pm

So how can i make it for punbb ?
avatar
razvy3
Forumember

Male Posts : 61
Reputation : 1
Language : Romana 10 , engleza 7

Back to top Go down

Solved Re: Sliding category on punbb !

Post by razvy3 May 23rd 2011, 9:17 am

Bump !
avatar
razvy3
Forumember

Male Posts : 61
Reputation : 1
Language : Romana 10 , engleza 7

Back to top Go down

Solved Re: Sliding category on punbb !

Post by E-Mark May 23rd 2011, 10:07 am

For PunBB
Go to Admin Panel > Display > Templates > General > index_box

Find these :
Code:
<div class="pun-crumbs">
  <p class="crumbs"><a href="{U_INDEX}">{L_INDEX}</a><strong>{NAV_CAT_DESC}</strong></p>
</div>

then paste this under it :
Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("h2.catoggle").click(function(){
$(this).parent().parent().next(".main-content").slideToggle("slow");
});
});
</script>

After that, find this :
Code:
<div class="page-title">{catrow.tablehead.L_FORUM}</div>

Then replace it by this :
Code:
<div class="page-title" ><b>{catrow.tablehead.L_FORUM}</b><h2 class="catoggle">+/-</h2></div>
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

http://coding-spot.darkbb.com/

Back to top Go down

Solved Re: Sliding category on punbb !

Post by Raze May 23rd 2011, 10:16 pm

mark1111 wrote:For PunBB
Go to Admin Panel > Display > Templates > General > index_box

Find these :
Code:
<div class="pun-crumbs">
  <p class="crumbs"><a href="{U_INDEX}">{L_INDEX}</a><strong>{NAV_CAT_DESC}</strong></p>
</div>

then paste this under it :
Code:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("h2.catoggle").click(function(){
$(this).parent().parent().next(".main-content").slideToggle("slow");
});
});
</script>

After that, find this :
Code:
<div class="page-title">{catrow.tablehead.L_FORUM}</div>

Then replace it by this :
Code:
<div class="page-title" ><b>{catrow.tablehead.L_FORUM}</b><h2 class="catoggle">+/-</h2></div>
Can it be placed to the right instead of under the category name?
Raze
Raze
Forumember

Male Posts : 406
Reputation : 12
Language : English, HTML, CSS

Back to top Go down

Solved Re: Sliding category on punbb !

Post by razvy3 May 24th 2011, 10:56 pm

solved !
avatar
razvy3
Forumember

Male Posts : 61
Reputation : 1
Language : Romana 10 , engleza 7

Back to top Go down

Solved Re: Sliding category on punbb !

Post by Jophy May 25th 2011, 4:36 am

Solved -> Locked
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum