Welcome, Guest. Please Login or Register.
May 07, 2025, 10:31:35 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  'Your Post' icon « previous next »
Pages: [1] Reply Ignore Print
Author Topic: 'Your Post' icon  (Read 281 times)
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
'Your Post' icon
« on: September 03, 2002, 01:33:33 PM »
Reply with quote

How about a little icon that shows you what posts you have added to..
useful on big boards to see what disscussons you are in.
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
Stud Muffin
Full Member
***
Posts: 120


Oh baby!!

WWW
Re:'Your Post' icon
« Reply #1 on: September 03, 2002, 05:30:23 PM »
Reply with quote

I think this was discussed before and would put too much stress on servers due to the amount of database queries needed.
Logged

Thanks to all the YaBBSE team, a great forum :)
OAP clan Forum
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:'Your Post' icon
« Reply #2 on: September 03, 2002, 07:11:51 PM »
Reply with quote

hmm... I am thinking about codingthis and trying it..

I can't imagine it being any more of a hit since you are checking if the topic / posts have been read by you or not..

has it only been talked about and shot down.. or actually tested and shot down?

no need to re-invent the wheel
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:'Your Post' icon
« Reply #3 on: September 04, 2002, 03:14:18 AM »
Reply with quote

put this in messageindex.php

// check if user has posted in this thread
$postcheck = mysql_query( "SELECT ID_MSG FROM {$db_prefix}messages WHERE ID_TOPIC = '$mnum' AND ID_MEMBER = '$ID_MEMBER' LIMIT 1" );
if( mysql_fetch_array( $postcheck ) ) {
$msub = "<strong>".$msub."</strong>";
}
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Roundboy
Jr. Member
**
Posts: 72


I pretend to know everything.

ercdvs@hotmail.com WWW
Re:'Your Post' icon
« Reply #4 on: September 04, 2002, 05:04:52 AM »
Reply with quote

hmmm.. that works like a charm..

I did modify it to display a small .gif file instead..

so far.. no hit..

http://www.lansynergy.com/forum/index.php
Logged

I have trouble seperating games from reality...
... I just used a shotgun on my mother, and she's not respawning.
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:'Your Post' icon
« Reply #5 on: October 09, 2002, 02:48:28 AM »
Reply with quote

I don't know if it is better or not but I've written a slightly different version of this that does not require an additional query for each message.  What this does is query once to get a list of all topics you have posted to.  Then instead of querying each time for each message, it just checks if it is in your list.  I suppose this is trading many queries for a slice of memory but someone else will haveto decide if that is better or not.

A good place for this code is right before we enter the "Begin printing the message index for current board." blocK (the one the previously posted code went into).  This is what makes the unique list of topics you have posted to.
// get list of topics user has posted in
$postresult = mysql_query( "SELECT DISTINCT ID_TOPIC FROM {$db_prefix}messages WHERE ID_MEMBER = '7$ID_MEMBER'");
$poststack = array();
while ($row = mysql_fetch_row($postresult)) {
   array_push ($poststack, $row[0]);
}

This bit of code would go where you would have put the previously posted code.  Instead of makeing a query to check your status, it just checks to see if it is on your list.
// check if user has posted in this thread
if(in_array($mnum,$poststack))
  $msub = "<strong>".$msub."</strong>";

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  'Your Post' icon « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.315 seconds with 20 queries.