The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

js code issue

View previous topic View next topic Go down

js code issue

Post by Guest on September 25th 2012, 5:27 pm

I have a problem with this code!
when somebody posts it wants to show me "Messages [1]" if two messages to show me "Messages [2]" and so on but show me otherwise forget!

my code
Code:
var CopyrightNotice='phpbb3 post numbers for forumotion phpbb3 forums. Copyright   by LGforum. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
$(function(){
 var ppp=15;
 var p=parseInt( $('div.pagination')[0].getElementsByTagName('strong')[0].innerHTML );
 p=(p-1)*ppp;
    for(i=0;i<ppp;i++) {
    if($('.postprofile')[i]){
      var link=$('.topic-title')[i].getElementsByTagName('a')[0].href;
      x= $($('#box_post .main-footer span')[i]).prepend('<span class="number">' + (i+1+p) +'</span>')
    }
  }
});

var CopyrightNotice='phpbb3 post numbers for forumotion phpbb3 forums. Copyright   by LGforum. All Rights Reserved. Use and  modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
$(function(){
 var ppp=15;
 var p=parseInt( $('div.pagination')[0].getElementsByTagName('strong')[0].innerHTML );
 p=(p-1)*ppp;
    for(i=0;i<ppp;i++) {
    if($('.postprofile')[i]){
      var link=$('.topic-title')[i].getElementsByTagName('a')[0].href;
      x= $($('#box_post .main-head span')[i]).prepend('<span class="number">' + (i+1+p) +'</span>')
    }
  }
});[code][/code]

Guest
Guest


Back to top Go down

Re: js code issue

Post by Guest on September 26th 2012, 11:39 am

no Rideem3
not that I want to be something like postNumber created LGforum!

Guest
Guest


Back to top Go down

Re: js code issue

Post by DarkGlow on September 26th 2012, 11:54 am

If you want something like post-numbering on your phpBB3 forum, follow this tutorial:

http://www.avacweb.com/t18-4-post-numbering-like-invision
avatar
DarkGlow
Forumember

Male Posts : 629
Reputation : 92
Language : English | Hebrew | Arabic
Location : Israel

Back to top Go down

Re: js code issue

Post by Guest on September 26th 2012, 12:50 pm

Do not you understand I followed that tutorial and I modified the code but I did not esit what I wanted!
I would like to defend my number of posts in Tottori on that page (post) understand?
something like phpbb themes as

Guest
Guest


Back to top Go down

Re: js code issue

Post by smerf95 on October 4th 2012, 11:42 pm

I yhink whats he is saying is that he wants to be able to se how many posts are there like a total or something .. I dont know ..

smerf95
Forumember

Male Posts : 208
Reputation : 3
Language : Polish

http://sorta.forumpl.net

Back to top Go down

Re: js code issue

Post by achates on October 5th 2012, 11:26 am

It would be nice if you tell me how to disable java-script error.

Link Removed

achates
New Member

Posts : 1
Reputation : 1
Language : English

Back to top Go down

View previous topic View next topic Back to top


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