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 39
JuleCountdown til c... 20
Top 5 downloads
buzzlightyear 2175
junglebook 2170
Disney2 2135
php-fusion-7-01-02 2085
mickey-pluto. 2031
Disney1 2026
Opgraderingspakke v... 1744
danish_locales_v7_1 1721
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 September
02.09 popkongen (49)
03.09 123tp (47)
03.09 river66 (56)
05.09 baldslev (41)
07.09 Niss (51)
09.09 grovn (65)
10.09 helmuth (68)
15.09 Barakass (40)
15.09 Dirk Sommer (53)
16.09 kokken (57)
18.09 Ankur Thakur (30)
26.09 AnetteK (59)
28.09 Allan (42)
28.09 max (26)
Tilfældig Billede
Udtalelser fra brugerne
"SUPER SIDE

Jeg undrer mig bare over at jeg ikke har stødt på den før...... Dumme mig."

Teamtwilight
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. 30-09-2022 16:53
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