The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#47
|
||||
|
||||
![]()
Installed as per instructions and got the following error:
Parse error: parse error in /home/sites/home/web/forum/admin/functions.php on line 2254 Warning: Cannot add header information - headers already sent by (output started at /home/sites/home/web/forum/admin/functions.php:2254) in /home/sites/home/web/forum/admin/functions.php on line 1524 Fatal error: Call to undefined function: makelogincode() in /home/sites/home/web/forum/global.php on line 332 Any help? ![]() |
#48
|
|||
|
|||
![]()
yey thanks!
![]() i made my own version...but i never could get the right code in functions.php to make it work there ![]() one suggestion could you add the last ico too, i already have this included in my version...i just can't code the correct stuff for functions.php to make it work there..ie when updating forums info or after a post is deleted ![]() |
#49
|
||||
|
||||
![]()
Working now but Instructions a little bit confusing.
Were it says: change to if ($lastposts['lastpost']) { if ($lastposts['lastpost']>$lastpost or $lastposts['lastpost']<$currentlastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; $lasttitle=$lastposts['title']; } } This is not needed at all for 2.2.0 and users of 2.2.0 in fact need: FOR 2.2.x USE THE FOLLOWING ----------------------------------- look for $lastpostquery=",lastpost='$lastpost',lastposter=' ".addslashes($lastposter)."'; change it to $lastpostquery=",lastpost='$lastpost',lastposter=' ".addslashes($lastposter)."', lasttitle='".addslashes($lasttitle)."'"; save the file and upload then continue hack as normal Can the very first bit " if ($lastposts['lastpost']) { " be deleted and replaced with FOR 2.0.x USE THE FOLLOWING Info. ![]() |
#50
|
|||
|
|||
![]()
The
PHP Code:
The last bit depends on which version as of 2.2.x they introduced $lastpostquery cause it wasn't needed some times.. |
#51
|
||||
|
||||
![]()
I could not find the below txt in my version 2.2.0 /admin/functions.php .......
if ($lastposts['lastpost']) { if ($lastposts['lastpost']>$lastpost or $lastposts['lastpost']<$currentlastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; $lasttitle=$lastposts['title']; } } So I left it out? ![]() |
#52
|
|||
|
|||
![]()
look for
if ($lastposts['lastpost']) { if ($lastposts['lastpost']>$lastpost or $lastposts['lastpost']<$currentlastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; } } change to if ($lastposts['lastpost']) { if ($lastposts['lastpost']>$lastpost or $lastposts['lastpost']<$currentlastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; $lasttitle=$lastposts['title']; } } your looking for the above one if you still can't find it your looking for $lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; this in specific |
#53
|
||||
|
||||
![]()
I cannot find the above, the nearest I can find is the below:
$lastposts=$DB_site->query_first("SELECT MAX(lastpost) AS lastpost FROM thread WHERE forumid=$forumid AND visible=1 AND open<>10"); if ($lastposts['lastpost']>$lastpost) { $lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'"); $lastpost=$lastposts['lastpost']; $lastposter=$lastposts['lastposter']; } ![]() |
#54
|
|||
|
|||
![]()
ok change the following
PHP Code:
PHP Code:
|
#55
|
||||
|
||||
![]()
Its still has not updated the posts that have already been made. Its working if a member posts a current message but it does not update at all with any old posts.
I have change what you stated above and still no joy? ![]() |
#56
|
|||
|
|||
![]()
This hack didn't work for me on 2.2 I get the following error.
Parse error: parse error in /www/htdocs/forums/newthread.php on line 375 It's the ?> at the end of the document. I use EditPlus 2 to edit my files, why is it doing this? |
#57
|
||||
|
||||
![]()
also this may couse a problem
PHP Code:
PHP Code:
|
#58
|
|||
|
|||
![]()
dxb >
i took that into account and its mentioned within the readme for how to do it to 2.2.x and 2.0.x because of the difference. Lubi > does EditPlus have syntax highlighting for PHP? if so then it should show where it went wrong, if not PHPed from http://soysal.com does and is useful for spotting errors. I honestly don't know what would cause an error like that, you were only updating 3 lines within newreply.php |
#59
|
|||
|
|||
![]()
Well I dunno either I do have the sytax colors but the code isn't wrong I think the software must be doing something when I save the file. I've never had this problem with Textpad but I like Editplus 2 way better... I dunno but I can't install any hacks until I get this squared away
![]() |
#60
|
|||
|
|||
![]()
How can I make the title of the post/thread a link to the post..? Basically like below... Icon and all...
![]() Ubb style.. Can someone maybe write the template because i don't have the slightest... ![]() ![]() I had it like this on 2.0.3 but I dunno what to do... |
#61
|
|||
|
|||
![]()
Hi, great hack.
This typo gave me some problems: within it you may add $form['lasttitle'] to show Duh, I should have checked that! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|