1 (edited by Maciek 2004-06-28 10:34)

Topic: show topic of last made post on index v1.0 released

This Mod adds lasts post topic to each forum on the index page


adds lasts post topic to each forum on the index page
topic title with more then 20 chars are cut off
mouseover info displays the full title


download

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: show topic of last made post on index v1.0 released

Hey cool!  Exactly what I wanted!

However, the link to download produces:
"The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first."

Any alternative site?

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

3 (edited by Maciek 2004-06-28 10:34)

Re: show topic of last made post on index v1.0 released

cuteseal wrote:

Hey cool!  Exactly what I wanted!

However, the link to download produces:
"The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first."

Any alternative site?

Srry i update my forum its ok right now .

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: show topic of last made post on index v1.0 released

hey the downloaded zip file appears to be corrupt...

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

5 (edited by Maciek 2004-06-15 09:01)

Re: show topic of last made post on index v1.0 released

cuteseal wrote:

hey the downloaded zip file appears to be corrupt...

Edit:
Ok i put rar file i don't now why but all zip files looks like be a corupt .Only way is open it up using win rar .

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: show topic of last made post on index v1.0 released

While waiting I made my own version... crazy SQL query though!!! wink

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com

Re: show topic of last made post on index v1.0 released

i'm getting error!

couldn't fetch forum categories and forums

Re: show topic of last made post on index v1.0 released

Krapan wrote:

i'm getting error!

couldn't fetch forum categories and forums

S**t i really forget about this hmm , this happens beacouse when i copy code into guide i use my test forum where i have more mod's and now your forum try find this database values smile .

Anyway there you find how fix that click

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: show topic of last made post on index v1.0 released

Maciek thanks for your help but page you were giving me couldn't be found.

Error 404 - file was not found

is it any other resource with this fix?

10

Re: show topic of last made post on index v1.0 released

Krapan wrote:

Maciek thanks for your help but page you were giving me couldn't be found.

Error 404 - file was not found

is it any other resource with this fix?

Sorry for that ,but i have some hosting problem right now sad ,anyway this is solution

Open index.php
in line 55 you find something like this

// Print the categories and forums
$extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra_sql.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

replace this with

// Print the categories and forums
$extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, f.closed, f.subject FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id'.$extra_sql.' ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

Now should works fine

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

11

Re: show topic of last made post on index v1.0 released

Thanks Maciek

Re: show topic of last made post on index v1.0 released

Maciek wrote:

This Mod adds lasts post topic to each forum on the index page


adds lasts post topic to each forum on the index page
topic title with more then 20 chars are cut off
mouseover info displays the full title


download

O-o-o-ops! 404!

Where I can download this mod?