News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Topics list support

Started by T@by, November 08, 2008, 05:34:22 AM

Previous topic - Next topic

Milo_link

hi T@by,is it possible to add the ranks of users?

please!!!!!!!

T@by

yes yes
but probably you need to add postername and rank, correct?

Milo_link

I've already added the postername,I need to add the rank

   
thanks for Hear

T@by

Quoteis it possible to add the name of the user who has posted and his rank?

edit sources/Subs.php

find
t.ID_TOPIC, t.ID_FIRST_MSG, m.subject, m.ID_MSG, m.icon
replace with
t.ID_TOPIC, t.ID_FIRST_MSG, m.subject, m.ID_MSG, m.icon, m.posterName, mem.ID_POST_GROUP, mg.groupName

find
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
replace with
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_POST_GROUP)


find
$data[] = array('cleantitle' => $ctitle,'title' => $th_row['subject'], 'tid' => $th_row['ID_TOPIC'],'icon_id' => $th_row['icon']);
replace with
$data[] = array('cleantitle' => $ctitle,'title' => $th_row['subject'], 'tid' => $th_row['ID_TOPIC'],'icon_id' => $th_row['icon'],'author' => $th_row['posterName'], 'authorgroup' => $th_row['groupName']);

find
$tmp = str_replace("{TOPIC_ID}", $row['tid'], $tmp);
add after (in a new line)

$tmp = str_replace("{AUTHOR}", $row['author'], $tmp);
$tmp = str_replace("{AUTHOR_GROUP}", $row['authorgroup'], $tmp);

save

edit [theme]/index.template.php

find
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a></td></tr>';
replace with
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a>&nbsp;<span style="font-size:11px;"> by {AUTHOR}, {AUTHOR_GROUP}</span></td></tr>';

save

akbora

Dear Tobby, is it possible sorting as sending or opening date these topics, top of the topiclist already there is A,B,C, .....

Thank you
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

T@by

sort is already provided by MessageIndex. you don't need a mod for this

Milo_link

Quote from: T@by on July 24, 2009, 04:01:51 AM
Quoteis it possible to add the name of the user who has posted and his rank?

edit sources/Subs.php

find
t.ID_TOPIC, t.ID_FIRST_MSG, m.subject, m.ID_MSG, m.icon
replace with
t.ID_TOPIC, t.ID_FIRST_MSG, m.subject, m.ID_MSG, m.icon, m.posterName, mem.ID_POST_GROUP, mg.groupName

find
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
replace with
LEFT JOIN {$db_prefix}messages AS m ON (m.ID_MSG = t.ID_FIRST_MSG)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = mem.ID_POST_GROUP)


find
$data[] = array('cleantitle' => $ctitle,'title' => $th_row['subject'], 'tid' => $th_row['ID_TOPIC'],'icon_id' => $th_row['icon']);
replace with
$data[] = array('cleantitle' => $ctitle,'title' => $th_row['subject'], 'tid' => $th_row['ID_TOPIC'],'icon_id' => $th_row['icon'],'author' => $th_row['posterName'], 'authorgroup' => $th_row['groupName']);

find
$tmp = str_replace("{TOPIC_ID}", $row['tid'], $tmp);
add after (in a new line)

$tmp = str_replace("{AUTHOR}", $row['author'], $tmp);
$tmp = str_replace("{AUTHOR_GROUP}", $row['authorgroup'], $tmp);

save

edit [theme]/index.template.php

find
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a></td></tr>';
replace with
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a>&nbsp;<span style="font-size:11px;"> by {AUTHOR}, {AUTHOR_GROUP}</span></td></tr>';

save

thanks,thansk you very much

meko me

omg ausum mode babes  :o

i was looking fr something like this  :D :D :D :D

thanx muah   :-*

abraamz

#128
hallo, great mod
i tried to change my forum in utf8 and this wonderfull mod stoped working properly.

here is what i get:

Quote0 - 9|Α|Β|Γ|Δ|Ε|Ζ|Η|Θ|Ι|Κ|Λ|Μ|Ν|Ξ|Ο|Π|Ρ|Σ|Τ|Υ|Φ|Χ|Ψ|Ω
0|9
Α|
Β|
Γ|
Ε|
Ζ|
Η|
Θ|
Ι|
Κ|
Λ|
Μ|
Ν|
Ξ|
Ο|
Π|
Ρ|
Σ|
Τ|
Υ|
Φ|
Χ|
Ψ|
Ω|

instead of the regular message with links

Do you know what the problem is?
should i reinstall this?

---edit---
The problem is not about utf8. The problem happened after i changed server.
The new one is not apache but lighttpd.
Is this mod apache depended in some part of its code?


Özgür

@t@by forgive me but whats going on the ssi function ? =)
So Long

T@by

Quote from: abraamz on July 26, 2009, 09:50:46 AM
hallo, great mod
i tried to change my forum in utf8 and this wonderfull mod stoped working properly.
you are using greek and utf8. characters are coded with 2 bytes instead of 1, so the mod, which use regular expressions, doesn't work. Is a mySQL issue.

abraamz

Quote from: abraamz on July 26, 2009, 09:50:46 AM
---edit---
The problem is not about utf8. The problem happened after i changed server.
The new one is not apache but lighttpd.
Is this mod apache depended in some part of its code?

The utf8 happened on my test forum.
On my regular site the mod stoped working. I dont know when exactly but i have upgraded to 1.1.10 and changed server. (currently on lighttpd)
I have checked all required files and everything seems installed ok. Maybe its a setting related to sql orsomething like that?
How can i troubleshoot this?

T@by

@abraamz check your index.template.php (of your theme). seems you have not the tlist_bits function.
@[Daydreamer] tomorrow I'll prepare something for you

abraamz

All the files are ok
I found the solution to my problems

I had this mod and other like cbi not working and realized that i couldnt edit my template or css through admin area of my forum.
The solution was that the address of my theme directory was wrong in the admin area. I corrected that and everything start working again. (repair_settings can repair only the default theme)
Anyway, T@by thanks for one of the most useful mods in smf.

T@by

@[Daydreamer]
I sent you the SSI code by pm

I'm out for 3 weeks

MUSTAfaINE

i want this mod in smf 2.0 RC1.2 is it possible ?



MUSTAfaINE

NIBOGO thanks it worked know that very important mod for my site..


holly.celeb.fan


Advertisement: