Topic: How can i edit something ...

Hello.
I'm interested of this forum system, and i want to make Bulgarian support forum - okey, it all right.
But, i think for some edits of structure and design..
Somethink like this one:
http://picbg.net/img.php?file=ea07ea7c7d9eddd1.PNG
Here, where is marked with red, i want name of the last commented tread, not time posted.
Link is working, but i cant make it visual , i mean..

This is the code here:

if ($cur_forum['last_post'] != '')
            $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><strong>&raquo; <a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.format_time($cur_forum['last_post']).'</a></strong> <cite>'.$lang_index['by_Who'].' <a href="'.forum_link($forum_url['user'],$forum_user['id']).'">'.forum_htmlencode($cur_forum['last_poster']).'</a></cite></li>';
        else
            $forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><strong>'.$lang_common['Never'].'</strong></li>';

        ($hook = get_hook('in_normal_row_pre_display')) ? eval($hook) : null;

And..

<strong>&raquo; <a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.format_time($cur_forum['last_post']).'</a>

this

.format_time($cur_forum['last_post']). 

shoud be

.$cur_topic['subject'].

but no.. leaves empty space..

Help?

---------------------
And another one problem..
pun_stop_bots extension cant work properly..
when i going to post something (thread or replay) i see the spam questions that i put...
write answer, but its give me other question, and cycles non-stop ..
Help ?

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

Re: How can i edit something ...

Аndd.. Some more suggentions...

1. Colored names , to see everywhere colored, not only on Online..
I search and try to edit but.. no chance.. big_smile

2. Link for groups..
I mean.. to can see users in groups.. Admins.. Moderators..
Example:
Im in group Moderators.. and anywhere this is seen from other member and can click on "Moderators" group and see all mebers of these group..

3. More flexyble admin panel..
Example add/edit/del categories and forums...  very bad structure.

4. In  Administration → Users → Groups
To can write username and to choose group for this usename


Soooorry for my english.. big_smile But i dont have time for training it.. big_smile
Skype: Linn3x or http://facebook.com/lekanosht for more contacts.

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

Re: How can i edit something ...

Where can i find this "Logged in as Username." ??
To make it with link to user profile..

And this:
PunBB Forums → PunBB 1.4 troubleshooting → How can i edit something ...
To create thread name (How can i edit something ...) to link  ??

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

4 (edited by Kushi 2012-04-12 09:36)

Re: How can i edit something ...

Where can i find this "Logged in as Username." ??
To make it with link to user profile..

There's a line in header.php

    $visit_elements['<!-- forum_welcome -->'] = '<p id="welcome"><span>'.sprintf($lang_common['Logged in as'], '<strong>'.forum_htmlencode($forum_user['username']).'</strong>').'</span></p>';

which should be edited to

    $visit_elements['<!-- forum_welcome -->'] = '<p id="welcome"><span>'.sprintf($lang_common['Logged in as'], '<strong><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.forum_htmlencode($forum_user['username']).'</a></strong>').'</span></p>';

However the best way is to write extension, enter hook id hd_visit_elements and put whole conditional there.
So create folder eg. linked_visitlink and put there this manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">

<extension engine="1.0">
    <id>linked_visitlink</id>
    <title>Linked visitlink</title>
    <version>0.12</version>
    <description>Linked username on visitlinks.</description>
    <author>Kushi</author>
    <minversion>1.4</minversion>
    <maxtestedon>1.4.2</maxtestedon>
    <hooks>
            <hook id="hd_visit_elements"><![CDATA[
if ($forum_user['is_guest'])
    $visit_elements['<!-- forum_welcome -->'] = '<p id="welcome"><span>'.$lang_common['Not logged in'].'</span> <span>'.$lang_common['Login nag'].'</span></p>';
else
    $visit_elements['<!-- forum_welcome -->'] = '<p id="welcome"><span>'.sprintf($lang_common['Logged in as'], '<strong><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.forum_htmlencode($forum_user['username']).'</a></strong>').'</span></p>';
            ]]></hook>
    </hooks>
</extension>

Next, turn on extension in Administration panel. Should work wink.
http://i.minus.com/i4Puh1yZ44JWf.PNG

PunBB Forums → PunBB 1.4 troubleshooting → How can i edit something ...
To create thread name (How can i edit something ...) to link  ??

I don't know if I have understand you well, but it actually is a link. However it's styled to look as it is not. Add this at the end of your style ( eg. Oxygen.min.css in styles/Oxygen for Oxygen style ):

#brd-crumbs-top .crumblast {
font-size: 1em;
}
#brd-crumbs-top .crumblast a{
color: #00579C !important;
}
#brd-crumbs-top .crumblast a:hover{
color: #CD0021 !important;
}

That should do the trick.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

5 (edited by Kushi 2012-04-12 09:31)

Re: How can i edit something ...

2. Link for groups..
I mean.. to can see users in groups.. Admins.. Moderators..
Example:
Im in group Moderators.. and anywhere this is seen from other member and can click on "Moderators" group and see all mebers of these group..

I made an extension for You
http://dl.dropbox.com/u/56038890/punbb/group_legend.zip
here is effect:
http://i.minus.com/iBE3aIW0nvHDD.PNG
Group colors can be edited in css file, hope You would understand how it works. Quite simple, really:
ID name should be Group_title_legendcolor next is a means you're referring to link and for mouseover action there's separate class with :hover pseudoclass.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: How can i edit something ...

Mmm yeah.. Excellent. Thanks.
More ideas..
For linked_visitlink ... After username to show "last visit" smile I try but shown "Never". Only when im on profile its show right, but idea is to show everywhere.. big_smile

Other..
For this
"PunBB Forums → forumname → threadname ..."
This will see when im in "threadname" in some "forum" - right now im in my threadname in Troubleshooting forum..
My idea is threadname become link, not only title. smile

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

7 (edited by PunBoard-Bulgaria 2012-04-12 14:20)

Re: How can i edit something ...

More ideas.. big_smile Im.. creative man.
1. Some edits for Group Legend..
its imposible to made group color when the group is more than 1 word.. can edit? No problems, but idea.

2. Edits for Currently online
Now is http://picbg.net/img.php?file=5e8b646f32dfecba.PNG
but i made it to show only usernames.
Okey, new idea is to other stats - Currently online: totalusers (both , guest and registered)
or/and another example.. "Currently online: totallogged " ..

3. More statistics like this ?
For example.. Top5 Poster, Top5 Reputation , Most users online total, Most users online on date .. and other?
OnlineTime Count for every profile ? He will show how many hours , days, months are user online.

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

Re: How can i edit something ...

4. How i edit to can see and these names in group color?
... smile  http://store.picbg.net/pubpic/31/54/7f4 … 493154.PNG

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

Re: How can i edit something ...

5. How to centered topics and views count http://store.picbg.net/pubpic/31/54/7f4 … 493154.PNG ?
6. How to add box like category for any table.. orr announcment, or for welcome msg.. Can did it from admin panel? From admin panel add both Category box.. ?

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

10 (edited by PunBoard-Bulgaria 2012-04-12 14:30)

Re: How can i edit something ...

I trying now this ..
Last Threads for PunBB

<?php

/* Скрипт за вземане на Последни теми от PunBB */

/* config */
$prefix = "pun";
$limit = "10";
/* end of config */

require("config.php");

$connect = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($db_name, $connect);

$result = mysql_query("SELECT id,posted,poster,subject FROM ".$prefix."_topics order by posted desc limit $limit");
 while ($row = mysql_fetch_array($result)) {
 $tid = $row['id'];
 $date = date("d.m.Y",$row['posted']);
 $poster = $row['poster'];
 $title = $row['subject'];
 echo "&raquo; <a href=\"viewtopic.php?id=$tid\">$title</a> от $poster на $date<br />";
  }
 
?>

but show stupid error..

mysql_fetch_array(): supplied argument is not a valid MySQL result resource 

Many times i see it and resolved it but now .. big_smile
It seem like this for phpbb
http://store.picbg.net/pubpic/37/2D/645 … 93372d.PNG

Any edits ? Or new suggestions?


Sorry for all this spam, but cant post more than 1 link..

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info

11

Re: How can i edit something ...

*sigh* I've lost patience, sorry. It's too hard to conclude anything from your post waterfall. Just watch how are extensions made and learn.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: How can i edit something ...

PunBoard-Bulgaria wrote:

Mmm yeah.. Excellent. Thanks.
More ideas..
For linked_visitlink ... After username to show "last visit" smile I try but shown "Never". Only when im on profile its show right, but idea is to show everywhere.. big_smile

Other..
For this
"PunBB Forums → forumname → threadname ..."
This will see when im in "threadname" in some "forum" - right now im in my threadname in Troubleshooting forum..
My idea is threadname become link, not only title. smile


I know, i know.. Sorry.
For these ones? And number 4? It's just edits.. : )

PunBB Bulgaria - soon
Bulgarian Lang for all versions - soon
Developers, please contact with me skype Linn3x for info