Din Menu
Fra fotoalbummet...

Nyeste artikler
> Billede ind i profil
> Optimer tabler i dat...
> Total Commander
> Redirect en side
> Mods / Infusion op p...
Downloads
SE ALLE DOWNLOADS...
Nye downloads
SurrealExperience 17
Luxury Yachts 10
Glare in Dark 66
AS-AppStore 36
AS-Global 20
AS-yellow_star 24
Hitman Games Zone 19
AS-Football 23
AS-Christmas 40
JuleCountdown til c... 20
Top 5 downloads
buzzlightyear 2603
junglebook 2587
Disney2 2553
php-fusion-7-01-02 2518
Disney1 2471
mickey-pluto. 2453
Opgraderingspakke v... 2182
danish_locales_v7_1 2170
Themes-phpfusion.dk
Facebook
Facebook

Pernille

statistik
Screenshots DB
Total Images: 796
Latest Images









statistik
Fra fotoalbummet...

Connect via Facebook
Connect via Facebook
Select your language
Danish Language Danish   English Language English
Fødselsdage i April
02.04 Bubbi (32)
02.04 quiki (42)
04.04 Thomas (53)
07.04 paulen (71)
11.04 jimtheknopf (41)
13.04 mflb83 (41)
14.04 pkpedersen (61)
14.04 egsvang (57)
15.04 ManHunterZ (66)
17.04 johnnysay (58)
17.04 danielp8240 (41)
25.04 Morten112vejen (33)
28.04 leif (85)
Tilfældig Billede
Udtalelser fra brugerne
"Jag vill bara säga att (Assensvej) är jätte bra hemsida för nybörjare som kan få hjälp här,sen hemsidan är jätte fin med massa saker inne.....

God Jobb.......Admin ."

tedo
Reklame
Antispam
Se indlæg
Hvem er her? 1 gæst(er)
 Udskriv debat
Last post link
mojkan
Hi there Assensvej!

I've been trying to get this issue to work for quite som time now:

If you look at the picture below you see a yellow "paper" next to the last post author of that forum category. I would like that when you click that yellow "paper" that would take you to the last post of the category (the post that was posted by the name accuring in this view)

www.clan-smaka.se/images/lastpostIcon.JPG

To make that yellow "paper" appear next to last post author I edited forum/index.php:

After the line:
Download kildekode  Kode
echo "<span class='small'>".$locale['406']."<a href='".BASEDIR."profile.php?lookup=".$data['forum_lastuser']."'>".$data['user_name']."</a></span></td>\n";





(remove </span></td>)

add:
Download kildekode  Kode
echo "<a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."'><img src='http://my_site/images/forum/icon_minipost_new.gif' alt='' border='0'></a></span></td>\n";





The link would be something like the one I type below (I have taken this from a forum_thread_lists_panel mod. However, I guess this line of code/link should have a database search from which it finds its data:

Download kildekode  Kode
a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."




In forum/index.php there is a database search and array which looks like this:
Download kildekode  Kode
$result = dbquery(
   "SELECT f.*, f2.forum_name AS forum_cat_name, u.user_id, u.user_name
   FROM ".DB_FORUMS." f
   LEFT JOIN ".DB_FORUMS." f2 ON f.forum_cat = f2.forum_id
   LEFT JOIN ".DB_USERS." u ON f.forum_lastuser = u.user_id
   WHERE ".groupaccess('f.forum_access')." AND f.forum_cat!='0' GROUP BY forum_id ORDER BY f2.forum_order ASC, f.forum_order ASC"
);





If I add $data=dbarray($result);

Could this code be developed so that it includes a search which makes the above link possible (thread ID and post ID, pid#)?

Well, a terribly long question, sorry about that. I just cannot find a way to explain what I want with less sentences :)

Sincerely,

Henrik
 
Skrevet d. 19-04-2024 06:25
Reklame Agent

Antal indlæg: n^x
Tilmeldt: Altid

IP: localhost  
assensvej
Hello

I've looked at your codes

but I regret not being able to assist you in this case

But you should try to ask at phpfusion-tips.dk http://www.phpfus...orside.php
Redigeret af assensvej d. 23-04-2009 11:43
HUSK at læse reglerne for Brug af Debatten - Spørgsmål i privat beskeder og på msn, besvares ikke uden aftale.

Ekspert.
En ekspert er en, der har begået om ikke alle, så i hvert fald de groveste fejltagelser inden for sit felt

Niels Bohr, atomfysiker, 1865-1962
www.assensvej.dk/images/assensvej2Dbac.png
 
mojkan
No probs assens! I actually got a respons in the uk mod forum.

I will put it here since that might help somebody, some day :) :

replace line 80-82 in forum/index.php
Download kildekode  Kode
echo showdate("forumdate", $data['forum_lastpost'])."<br />\n";
         echo "<span class='small'>".$locale['406']."<a href='".BASEDIR."profile.php?lookup=".$data['forum_lastuser']."'>".$data['user_name']."</a></span></td>\n";
         echo "</tr>\n";




With the following code:
Download kildekode  Kode
$threadData = dbarray ( dbquery ( "select * from " . $db_prefix . "threads t
         left join " . $db_prefix . "posts p on p.post_id=t.thread_lastpostid
         where t.thread_lastpost='" . $data ['forum_lastpost'] . "'" ) );
         echo showdate("forumdate", $data['forum_lastpost'])."<br />\n";
         echo "<span class='small'>".$locale['406']."<a href='".BASEDIR."profile.php?lookup=".$data['forum_lastuser']."'>".$data['user_name']."</a> <a href='".FORUM."viewthread.php?thread_id=".$threadData['thread_id']."&pid=".$threadData['thread_lastpostid']."#post_".$threadData['thread_lastpostid']."'><img src='URL TO YOUR IMG' alt='Go To Last Post' style='border:0px;' /></a></span></td>\n";
         echo "</tr>\n";



Redigeret af mojkan d. 23-04-2009 21:21
 
assensvej
Well thank you for the code
HUSK at læse reglerne for Brug af Debatten - Spørgsmål i privat beskeder og på msn, besvares ikke uden aftale.

Ekspert.
En ekspert er en, der har begået om ikke alle, så i hvert fald de groveste fejltagelser inden for sit felt

Niels Bohr, atomfysiker, 1865-1962
www.assensvej.dk/images/assensvej2Dbac.png
 
Spring til debat:
Lignende tråde
Debat Forum Svar Nyeste indlæg
Videre send link Kravlegården på Assensvej 3 16-01-2013 20:06
$_POST kontrollere inden post i sig selv. Kravlegården på Assensvej 14 27-01-2012 20:19
5 Tilfældig link MOD's v7 5 27-11-2011 18:37
5 Mest Viste Link og 5 nyste links MOD's v7 3 26-11-2011 22:06
Hvis du har klikket på et link, der lover dig den triste historie om en pige, Facebook 1 19-12-2010 23:23