![]() |
Deutsch:
Dieser Hack zeigt in der Spalte Letzter Beitrag unter dem Datum und den Usernamen des letzten Posters auch den Titel des Topics an. um euch den hack anzusehen klickt hier: www.the-afterburner.de English: This hack shows in the row "last post" on the mainpage below the date and the username of the last posting also the title of the last posting. to see the hack in action click here: www.the-afterburner.de UPDATE: 8. September 2001 to Version 2 New: You can set the length of the title in your CP If a word is loger than your settings there are ... at the end works also in subcategories Link to the last posting |
here is a screenshot:
|
Nice hack, dose this limit how long the topic can be?
like to 25 characters then it breaks it with a seperator like > |
the text can contain only 20 letters but you can change this in your MySQL Database.
forum --> lasttitle and set it to a higher one |
I see, thanks, very nice!
|
I've done everything,but it does not change,why?:( :(
|
Open yout lasttitlehack.php and change the line
Code:
$DB_site->query("ALTER TABLE forum ADD lasttitle VARCHAR (20) not null"); Code:
$DB_site->query("ALTER TABLE forum ADD lasttitle VARCHAR (25) not null"); |
ive done everything word for word-but it all looks the same
any more suggestions? |
Checked and triple checked, still no go for me.
Getting no data in the lasttitle column in the database on new posts. |
sorry I forgot a little bit, I think it was to late yesterday.
If you have already installed this hack and nothing is shown on the manpage please download the hack again or follow this instructions: download the "newthread.php" into ASCII Mode and backup this file. look for this code (ca. line 230): PHP Code:
PHP Code:
download the "newreply.php" into ASCII Mode and backup this file. look for this code (ca. line 278): PHP Code:
PHP Code:
|
thank you.
works well. but two bugs: 1.the hack is work for new post after install this hack. 2.when you tansfer a thread to other post ,the LastTitle on resorce forum doen't change. |
Thank You!!
|
the first isn't a bug because the lasttitle table in your database will create with the hack, thats mean earlier there arenĀ“t any entrys
2. I will try to fix this |
is there a way to make this hack appear in the forum Discription?
|
Thanks, very useful hack!
|
yes, you have to insert the:
$showlastpostingtitle in the board description template |
thx man.... it worked!
|
Im having problems. What template do I hack? in the instructions it says:
"forumhome_lastpostby" what is this file? Where do I get it? Keep in mind Im a total idiot when it comes to this stuff :) |
go to your ControlPanel
go to the Templates section and click edit click on expand list in your choosen template click on expand in Forum Home Page Templates click on edit in forumhome_lastpostby |
Thanx, I was able to figure out after posting that :)
But I had a major problem. When I got done with that part, I tried to enter my Control Panel. When I logged in, it showed me a very messed up version of my board, all graphics missing, default colors etc. I had to restore the index.php3 file from a backup I made before editing. I did everything from your instructions.txt. Were those updated with the new code that you repliied down below? Btw, heres how I editied my template. Is it correct? PHP Code:
|
did you changed your template to another template ?
I cant see an problem if you follow the instructions if you want, contact me on ICQ (please remember I am from Germany so choose easy words) |
ok... it worked on a test forum.... but when i tried it on the real thing i got this error
Code:
Database error in vBulletin Control Panel: Invalid SQL: ALTER TABLE forum ADD showlasttitle CHAR (3) not null |
the error: "Duplicate column name" means you have installed the hack before (means opened already the lasttitlehack.php) and the "showlasttitle" entry is already in your database. You can see this if you go to your mysql database and look into the forum table. There must be the entrys:
showlasttitle and lasttitle if there are both entrys you have only to mofidy the code in the files and the templates and not to run the lasttitlehack.php file |
alright... i'll try that... thx for all the help!
|
does it work with vbb 2.0.3?
|
yes
|
Read it works on 2.0.3, yet I'm at the part in my instructions to edit the index.php and cannot find the proper code that needs to be replaced that it says can be found around Line 264. How can I edit this to work properly?
|
Really Need Some Help on This one...In the middle of my hacking, and am now stuck with no forum and no hack.
|
line 264 is correct, there starts the code:
// dates if ($forum['lastpost']>0) { $forum['lastpostdate']=vbdate($dateformat,$forum['lastpost']); $forum['lastposttime']=vbdate($timeformat,$forum['lastpost']); eval("\$forum['lastpostinfo'] = \"".gettemplate('forumhome_lastpostby')."\";"); } else { $forum['lastpostinfo']='Never'; } |
I'm using 2.0.3, I don;t have that paragraph in my index.php
|
Found my problem I was using the wrong index.php you should clearly state to leave /admin and edit the other index.php. In any case great gack works now. But how do I make the title a link to the thread and then go to newest one, or that thread. Also how do I make it look like this
http://www.suprascene.com/images/infopop.gif I want a UBB style last post coulmn, mostly my problem is adding the users icon and also putting it in what seems to be a different cell or something. |
See below is a picture of my forums current Last Post coulmn. I made it so when you click the title of lastpost it takes you to the post. What I now need to do is move that table or cell over to the left and not be on the right side.
http://www.suprascene.com/images/vbulletin.gif Need some bigtime help, also below is my current forumhome_lastpostby template. <table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right"> <td nowrap><smallfont>$forum[lastpostdate] <font color="{timecolor}">$forum[lastposttime]</font><br> by <a href="member.php?s=$session[sessionhash]&action=getinfo&find=lastposter&forumid=$forum[forumid]"><b>$forum[lastposter]</b></a><br></smallfont></td> <td nowrap> <a href="showthread.php?s=$session[sessionhash]&goto=lastpost&forumid=$forum[forumid]"><smallfont><b>$showlastpostingtitle</b> <alt="Go to last post"></a></smallfont></td> </tr></table> Make from that what you can, if you wish edit it and either email it to me or repost it with the correct script/code. THANKS YOU SOOOOO MUCH!?! |
Give this a try
Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right"> |
Great as usual bane, now my next step is how do I put the icon of the thread to the left of everything.
Also how do I make it so when the title of the thread passes the set 20 letters it like makes the last 3 "..." So for instance my Title Thread is "Welcome to the best forum" which is 26 characters long. My default length is 20 so it makes it look like "Welcome to the best". But I need it to make it look like "Welcome to the be.." I dunno how to explain more. Any help would be great |
Hi Afterburner,
great hack, as usual :) Thanx for the hack, what LuBi suggested sounds good to me, is that doable? Funzt ohne Ende, gute Arbeit - wie immer eigentlich. Das was Lubi da vorschl?gt, den Titel "auszupunkten" ab einer bestimmten L?nge klingt ?brigens supi - ist das ?berhaupt machbar? Danke f?r den hack! cu & Gr??e, -Tom |
OK I set it to my TODO list
|
[QUOTE]Originally posted by LuBi
Also how do I make it so when the title of the thread passes the set 20 letters it like makes the last 3 "..." So for instance my Title Thread is "Welcome to the best forum" which is 26 characters long. My default length is 20 so it makes it look like "Welcome to the best". But I need it to make it look like "Welcome to the be.." I dunno how to explain more. Any help would be great |
Quote:
How difficult would it be to get the last title of posts into the category view (when you click on a category containing forums e.g.)? thx, -Tom |
I think this isn?t difficult. But at the moment my wife is at home and I need silence *g* for my work :D and not "Hello Baby", "Do you love me", "Please tell me..." and so on :p
|
OK, I finised the hack and will upload the new version as soon as possible.
New: You can set the length of the title in your CP If a word is loger than your settings there are ... at the end works also in subcategories |
All times are GMT. The time now is 05:02 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:
|