![]() |
Deutsch
Diese Hack zeigt auf der index.php unter dem username der das letzte posting gemacht hat auch den titel des threads auf dem dieser das reply geschrieben hat! English This hack showes the thread title in the "Last Post" col. Information [Version nummer] maybe 1.0 beta [Files to change] index.php and forumhome_lastpostby template Installation == in index.php == find: PHP Code:
PHP Code:
find: PHP Code:
PHP Code:
have phun! |
Very very cool!
You have done a difficult thing so easy. congratulations!;) |
any way I can show the last post title under the last thread title??
TIA!! |
Works well,but....
BUG~ If i have two sub-forum like b and c in main forum. Use this hack,If I post a new thread in forum b ,but the lastitle in forum home page is remain the title of the newest thread title in main forum |
i didn't test it with subforums.
perhaps i debug the hack, but i don't know. |
Quote:
I tried ti fix it yestoday,but nothing can do. |
i don't know how to debug but i think there must be an answer!!
you can hack everythin you want!!! |
I changed the Code a little bit.
The Thread titles now are only displayed to users who can view the forum the last post is in. PHP Code:
|
many thx for that!!!
|
Another thing.
There is a Problem when moving a thread and leave a link in another forum. So here is another fix: PHP Code:
Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"> |
May i get a final hack ?
Thanks:D |
I would'nt call it final but the Code in my last post is all you need to install it.
Put the PHP Code into index.php and forumdisplay.php after PHP Code:
|
In EXCHANGEs code add
PHP Code:
PHP Code:
Code:
<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]" title="$fulltitle"><b>$lastposttitle</b></a> |
Any change of a mod for this so it will take thread titles correctly from sub forums.
Or someone in the know giving me a clue so I can make the modifications myself? |
I put this one in my site as EXCHANGE detailed and it works great. Just had to make one little change for an English site, in the forumhome_lastpostby template I used this instead-\\
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"> <tr align="right"> <td nowrap rowspan="2">$icon</td> <td nowrap><smallfont><a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><b>$lastposttitle</b></a></smallfont></td> <td nowrap rowspan="2"> <a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><img src="images/lastpost.gif" border="0" alt="Go to last post"></a></td> </tr> <tr align="right"> <td nowrap><smallfont>$forum[lastpostdate] <font color="#666686">$forum[lastposttime]</font><br> by <a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a></smallfont></td> </tr> </table> All i did was change "von" to "by" so the message reads that it is by someone, not von someone. Otherwise thanks a million for this! |
Thx is missed that when putting it back to english :)
|
My icons are coming out wrong. for example icon7.gif points to icon14.gif??
Also why the need to add any code to forumdisplay.php?? |
@ somnium
:p I made the same hack (LastTitleHack) some days before :p you can turn it off for each board of your choise (e.g. private board) in your CP maybe we shall work together the next time ;) |
Quote:
|
Thanks. BTW I figured out the problem. For some people I guess it won't affect them depending on the names chosen for the icons but the code was wrong for me and I had to redo it. Also streamlined a couple of things. Busy today but I can post my version of it if someone needs it.
|
Has anyone figured out how to have the last title also show up on sub-forums? I have 3 to 4 levels deep on some and this would really help.
|
Ok I have installed this on my board I used the instuctions from the first thread in this post by somnium
Here is what I have and the problems or bugs I have with it. First I had a main forum with sub forums under it. The main forum of this was not open for threads but all subforums under it was. With this setup and by using the script changes by somnium nothing showed up in the last post column showing the last thread of the this forum and subforums. So I went back and made the main forum of this set along with all subforums under it open for posts. By doing this it resolved the problem now the last post shows up. Now this is what I get when I open my board and look at this forum with sub-forums and you see the last post for example say yesterday's news you click on it and it opens say example the thread called todays news . you look at the 2 threads and yesterdays news is in the main forum and todays news is in a subforum,since todays news is newer it is the last thread but since it is in a subforum the title does not show up but yesterday's news does because it is in the main forum. Any fix for this? llok in my signature and go to my board and go forums at the bottom and click on last post and you will see the problem. Thanks any help would be appreciated. Joey |
[B]EXCHANGE[B/]
Can you help with this the subforms are driving me crazy. I read the thread over and over and I see where you mentioned something about this below. Quote:
|
kinda busy now but to give you a clue in his code he just pointed to the iconidnumber .gif instead of using iconpath. Using phpmyadmin browse the table icon, you'll see there's a whole path there, you need to get the path info from the sql select statement then point to that instead of the iconidnumber.
|
this is all I have done
Installation == in index.php == find: PHP Code:
below that add: PHP Code:
== in forumhome_lastpostby template == find: PHP Code:
PHP Code:
|
Oh, I thought you had icon problems didn't read thru everything. I don't use subforums. I think they're too complicated somehow and confusing which template matches what and it messes me up no matter how much I fiddle so I gave up for now. If I knew the table structure for them I'd try to help you but not sure how the table structure looks so impossible to answer you. Maybe somone who uses it will come in and help;
|
dwh
Think we might have the fix, we are having to change around the way you use a subform. Forum verus Cateorgy, I think it will work we have 3 working already. Thanks for responding |
Be sure to use that updated forumhome_lastpostby template he posted [and I copied with one small change for English]. It is important.
|
So here is another fix. Now the link of the last thread name brings you to the post ist belongs to ;) (error came with subforums). Also titles of moderated and not yet approved posts are not shown anymore.
|
How can I move my icon over off the text a bit? Below is my forumhome_lastpostby:
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"> <tr align="right"> <td nowrap rowspan="2">$icon</td> <td nowrap><smallfont><a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><b>$lastposttitle</b></a> (<a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a>)</smallfont></td> </tr> <tr align="right"> <td nowrap><smallfont>$forum[lastpostdate] <font color="#666686">$forum[lastposttime]</font></td> </tr> </table> Here is a link to my forums index so you can view my problem. |
It looks like you are only having troubles with Netscape. I am having that as well. I don't think it is due to the forumhome_lastpostby template, but rather the width of the Last Post column itself. [if you notice it loads at one width and then must enlarge as it fills the posts in, so the trick is to get it to load at the proper width the first time!]
If you can increase that, then your trouble should go away. |
Well now when I delete a topic/thread it leaves the icon user date and time but delete the title. How can I fix this?You can check it out [URL=http://forums.suprascene.com/
|
I don't think you can put just one post in there, delete it and expect it to say nothing. If you look in the first levels those posts are gone, so you are better off posting 4 test posts, deleting the last one, and see if it reverts back to the third post. I don't think you can expect it to say there was never a post now.
|
When I post in a sub-sub forum it does not change the title name on the main forum but when you click the link it take you to the sub of a sub forum. I believe others were having this problem, has this been fixed? If not how can we fix this?
|
Can someone tell me how to fix the icon bug plz
|
I think it depends on the variables.
For example: My Main-Forum has the ID 24. My Subforum has the ID 64. The Script (I don't know why) always referring to Forumid=24. The Button (laspost.gif) is referring to "lastpost", so that is correct. But the "$lasttitle" says the specific threadid, which is located in the Mainforum. Where the hell is the problem? :confused: Regards, Chris. |
Quote:
|
yeah!!!
NO. 4... there are 4 hacks with the same function here... maybe more... please see my new code: http://www.vbulletin.com/forum/show...&threadid=28489 maybe it interests you... :) |
All times are GMT. The time now is 02:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|