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 2802
php-fusion-7-01-02 2792
junglebook 2777
Disney2 2764
Disney1 2681
mickey-pluto. 2673
danish_locales_v7_1 2394
Opgraderingspakke v... 2367
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 November
07.11 esig (61)
08.11 coldice (29)
14.11 Scorpion4Life (47)
15.11 DJ Tidzse (30)
17.11 ekate7 (49)
19.11 Kimse (64)
20.11 Brusher (49)
20.11 FogWelt (49)
24.11 SiteMaster (53)
26.11 kiko2611 (59)
26.11 kiko26 (59)
28.11 Micke Tyson (56)
Tilfældig Billede
Udtalelser fra brugerne
"SAssensvej...

Så køre det for dig

Har fået meget og god support her."

EvP
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. 23-11-2024 11:06
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