Home Page | Members Center | Portal | Contact us

-iBHacks and Support
--Forum: New Hacks
---Topic: Number of the post in the thread started by Sly

<% ONLINE %>
Sly
Like I always say - every problem has an engineering solution ... - Dilbert



Admin
7915
June 2002
Jan. 01 2003,09:53

TITLE: Number of the post in the thread
AUTHOR: Sly

This shows the number of that post in the thread (starting from 1) as used here on the iBSupported skin, the Post no. in this thread: part.

------
Files needed:

cgi-bin/Sources/Topic.pm
cgi-bin/Skin/Default/TopicView.pm

------
Topic.pm

Find:
Code Sample

for my $Row (@{$total_posts}) {

and replace that with:
Code Sample

my $ctr = $First;
   for my $Row (@{$total_posts}) {
$ctr++;
$Row->{'ctr'} = $ctr;


Save and upload

------
TopicView.pm

Find:
Code Sample

$data->{'POST'}->{'POST_DATE'}

and after that add (or where ever you want the number to show):
Code Sample

Post no. in this thread: $data->{'POST'}->{'ctr'}


Save and upload

NOTE: You must rebuild you skin .cfg files using the link in the AdminCP after adding this hack.






[ iB Supported home ]


If you are PMing me please link to the problem and please describe clearly why you are PMing
Back to top
       
IndustryAlert.biz




Member
15
Jan. 2003
Jan. 09 2003,20:24

I done excactly what you said and this is what i get....how do we fix this
Ikonboard CGI Error
--------------------------------------------------------------------------------
Ikonboard has exited with the following error:

Global symbol "@total_posts" requires explicit package name

This error was reported at: Sources/Topic.pm line 366. Compilation failed in require

Please note that your 'real' paths have been removed to protect your information.


Back to top
  
IndustryAlert.biz




Member
15
Jan. 2003
Jan. 09 2003,20:29

I had to go back and add this in place of what you have in your post

(@{$total_posts})

instead of this and now it is working.

(@total_posts)


Back to top
  
Sly
Like I always say - every problem has an engineering solution ... - Dilbert



Admin
7915
June 2002
Jan. 09 2003,23:00

Oops that was probably a typo by me ..

[ iB Supported home ]


If you are PMing me please link to the problem and please describe clearly why you are PMing
Back to top
       
Sly
Like I always say - every problem has an engineering solution ... - Dilbert



Admin
7915
June 2002
Jan. 09 2003,23:02

fixed

[ iB Supported home ]


If you are PMing me please link to the problem and please describe clearly why you are PMing
Back to top
       
_baz__




Member
73
Sep. 2002
Aug. 19 2003,16:39

simple.. but really useful again :) thanx loads

saviour of the night came slowly on the silent river..
Back to top
      
Artaxerxes




Member
16
Jan. 2003
Nov. 11 2003,14:41

Quote
RE: post #6 (by barry weldon on Aug. 20 2003,21:39 ) in this thread


Where can i find this hack - clickable Post No. in this thread

The quote above is only for example, which hack i mean


--------
Artaxerxes
Back to top
   
Enter to ikonboard Top 100 and Vote for this Site!!!
Join the Ikonboard Top 100



Content © 2002-2003 slys.co.uk
Page Converter by iBSupported.com
Copyright © 2002 iBSupported - Legal Policy