Author Topic: [addon] DREAMBOARD V 2.1  (Read 519875 times)

0 Members and 1 Guest are viewing this topic.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #135 on: January 12, 2006, 10:54:44 PM »
i've search in mysql (phpadmin) and i've found in my 4images_users , a table "user_posts" being this used on board.

So how can i make it show in users profiles, the number of posts (own posts)...

example:

profile of: Myself

Forum Posts: XXX

cheers  8)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #136 on: January 13, 2006, 12:55:46 AM »
With a "SELECT Count" statement. ;)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #137 on: January 13, 2006, 01:45:44 AM »
With a "SELECT Count" statement. ;)


erm ...i'm php newbie  :?

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #138 on: January 13, 2006, 01:55:26 AM »
Very well.

In your member.php file,

find :

Quote

"user_icq_status" => (isset($user_row['user_icq'])) ? get_icq_status($user_row['user_icq']) : REPLACE_EMPTY,


add right below :

Code: [Select]

"lang_user_posts" => $lang['user_posts_status'],
"user_posts" => (isset($user_row['user_posts'])) ? $user_row['user_posts'] : REPLACE_EMPTY,


Then, in your lang/english/main.php file,

add before the "?>" tag :

Code: [Select]

$lang['user_posts_status'] = "This user has posted:";


Then, in your member_profile.html file,

use your tags like this :

Code: [Select]

{lang_user_posts}
{user_posts}


(as it would fit in your personalized template presentation - of course).

This should work just fine. ;)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #139 on: January 13, 2006, 02:06:50 AM »
works perfect !!!!!!!!

 :D thanks alot !!!

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #140 on: January 13, 2006, 02:08:18 AM »
Excellent. I even thought about adding a "total count" for user postings from the page header. This could, in fact, be added as part of the statistics MOD as well. What do you think ? ;)

Something like : Total posts from users:

Let me know if you're interested.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #141 on: January 13, 2006, 04:20:22 AM »
Excellent. I even thought about adding a "total count" for user postings from the page header. This could, in fact, be added as part of the statistics MOD as well. What do you think ? ;)

Something like : Total posts from users:

Let me know if you're interested.

Yes, i've think on that before  :D

Thats a Good Ideia !!!

------
1)
Another ideia its track the user posts (show all forum posts by XX user in your profile) same used before with user comments(gallery) :)

2)
A simply and useful ideia : make post subjects as links,so users can go directly to one specific post (i.e used here on this forum) ;)


Cheers ;)

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #142 on: January 13, 2006, 08:39:50 AM »
1. I found a problem: If I edit my own posts, the old text isn't anymore available and I must rewrite the whole post! How can I show the old post in the textfield???

2. Another thing is: You can't move topics and Replies from one category to another... How can I change this, it's to hard for me to program...  :(

Thanks

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #143 on: January 13, 2006, 10:18:20 AM »
... You can't move topics and Replies from one category to another... How can I change this ...

... gehe in dein phpMyAdmin -> 4images_boardtrep -> repthrid / repforid ...
... durch logische Änderung der Board-ID (repthrid) und der Themen-ID (repforid) kannst du eine Antwort verschieben ...
... logisch : durch die Kombination aus den IDs muss die Antwort einem Thema eindeutig zugeordnet werden können ...

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #144 on: January 13, 2006, 12:42:42 PM »
@Stoleti:

Quote

Another ideia its track the user posts (show all forum posts by XX user in your profile) same used before with user comments(gallery)


I thought of this idea before actually. If no one else posts this routine, I will see what I can do.

Quote

A simply and useful ideia : make post subjects as links,so users can go directly to one specific post (i.e used here on this forum)


I'm not sure I get this one though. Do you mean the "latest topic" users creates and could appear (with the link) from his user profile ?

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #145 on: January 13, 2006, 03:40:52 PM »
Quote
I'm not sure I get this one though. Do you mean the "latest topic" users creates and could appear (with the link) from his user profile ?


yes i know we've the topic link and latest post link , but the past "posts" doesn't have a link :)

I mean if we want show one specific post in one topic !!!

example :

http://www.yoursite.com/showthread.php?bid=1&threadid=194#1
http://www.yoursite.com/showthread.php?bid=1&threadid=194#2


etc....

or some like it :)


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #146 on: January 13, 2006, 03:49:37 PM »
I believe this might be possible to do. This is simply SQL ordering during the row selection that could be added in member.php file.

However, since I have not installed this MOD, you'd need to give me the coded URL (from the PHP files) on where the topics are actually pointed. This way, I could customize it. ;)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #147 on: January 13, 2006, 04:44:19 PM »
Ok, for the latest post from a specific thread, I believe I found the way to do so (untested).

First, make a backup of your member.php file.

Then, find this block :

Quote

$user_icq = (isset($user_row['user_icq'])) ? $user_row['user_icq'] : REPLACE_EMPTY;
    if (!empty($user_icq) && $user_icq != REPLACE_EMPTY) {
      $user_icq_button = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=".$user_icq."\" target=\"_blank\"><img src=\"http://web.icq.com/whitepages/online?icq=".$user_icq."&img=5\" width=\"18\" height=\"18\" border=\"0\" alt=\"".$user_icq."\" /></a>";
    }
    else {
      $user_icq_button = REPLACE_EMPTY;
    }


add below :

Code: [Select]

$boardgories = "

SELECT catid, catname
FROM ".BOARD_CAT_TABLE."

";

$result = $site_db->query($boardgories);

$dboard_cat_row = $site_db->fetch_array($boardgories);

$board_catid = $dboard_cat_row['catid'];

$dreamboard_selection = "

SELECT board_id, board_catid, board_name, board_desc, board_posts, board_topics, board_lastpost_id, board_lastpost_user, board_lastpost_date, board_lastpost_page, board_moderator, board_moderator_id, auth_view
FROM ".BOARD_TABLE."
WHERE board_catid = '".$board_catid."'
LIMIT 1

";

$result = $site_db->query($dreamboard_selection);

$dboard_row = $site_db->fetch_array($result);

$board_id = $dboard_row['board_id'];
$board_catid = $dboard_row['board_catid'];
$board_name = $dboard_row['board_name'];
$board_desc = $dboard_row['board_desc'];
$board_topics = $dboard_row['board_topics'];
$board_posts = $dboard_row['board_posts'];
$board_lastpost_id = $dboard_row['board_lastpost_id'];
$board_lastpost_user = $dboard_row['board_lastpost_user'];
$board_lastpost_date = $dboard_row['board_lastpost_date'];
$board_lastpost_page = $dboard_row['board_lastpost_page'];
$board_moderator = $dboard_row['board_moderator'];
$board_moderator_id = $dboard_row['board_moderator_id'];
$auth_view = $dboard_row['auth_view'];
$newlastpost = "<img src=\"".TEMPLATE_PATH."/board_images/new_last_post.gif\" border=\"0\" alt=\"".$lang['button_lastpost']."\">";


Then, find :

Quote

"user_icq_status" => (isset($user_row['user_icq'])) ? get_icq_status($user_row['user_icq']) : REPLACE_EMPTY,


add right below :

Code: [Select]

"lang_dboard_lastpost_topic" => $lang['dboard_user_lastposted'],
"dboard_lastpost_topic" => "<a href=\"".$site_sess->url(ROOT_PATH."showthread.php?bid=".$board_id."&threadid=".$board_lastpost_id."&page=".$board_lastpost_page)."\">".$newlastpost."</a>",


Then, in your lang/english/main.php file,

add before the : "?>" tag :

Code: [Select]

$lang['dboard_user_lastposted'] = "Last post from user:";


Then, on your member_profile.html file,

you should now be able to use these two tags :

Code: [Select]

{lang_dboard_lastpost_topic}
{dboard_lastpost_topic}


Note: Remember that this is untested. ;)

Let me know how it goes.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #148 on: January 13, 2006, 05:02:25 PM »
Update: My post above has been updated.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #149 on: January 13, 2006, 05:13:14 PM »
it should be better ...
Code: [Select]
$boardgories = "
SELECT catid, catname
FROM ".BOARD_CAT_TABLE."
";
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...