![]() |
hmmm ignore my advise, deleting that } just stops any of the forums counters from working.
My forums now have all the updated files and template as per the mod instructions except for admin/functions.php which is back to the old version and everything seems to be working ok ??? What are the implications of this ? Or better still how can i stop the Parse error: parse error & Fatal error: Call to undefined function: makelogincode() as above ??? THanks in advance |
p.s. this is my admin/functions.php at present all other files and templates as per hack instructions, why wont the mods work ? TIA :)
[code removed by PPN] |
@kms
Do NOT post the functions.php!!!!! Please edit your Posting and remove the whole code. Mystics |
send the functions.php to scott.macvicar@vbulletin.org and I'll look it over
|
sorry about that, will mail it now :)
|
Email sent, Mystics. Thanks in advance for the help!
|
I am in the middle of installing this hack. I was about to go to moodify templates, I clicked on Templates - Modify in the Admin Pane, and got:
Quote:
|
Here is the line # 811:
PHP Code:
PHP Code:
|
I rolled back all the changes to PHP files, and I still get the parse error on line 811 of admin/functions.php
|
just to let you.. i installed this hack without a problem in 225. it works like a charm. it's a great hack for busy boards. however, i made a little hack similary to this. PPN was kind enough to look at the code and his conclusion was that the code is reliable only for medium to small boards. i totally agree with him.
concerning the PPN's hack installation, is simple and precise, all you have to do is follow at letter his instructions. a little note: if you installed this hack, make sure you reply or post into a thread, if you dont see any latest title available in forumhome. it will update the database. for my hack, you could evaluate the comments made by firefly and PPN here: https://vborg.vbsupport.ru/showthrea...threadid=37952 one more time, if you follow PPN's install guidelines, it will work great. i know i did and got it working in about 5minutes. ;) good luck and happy hacking. :D |
I think I figured out what my problem was. I used the editor from within the cpanel, and the god dammed thing replaced &-strings inside the PHP file (such as  ) with gibberish.
I will catch my breath, and try loading this hack again. |
I edited the files again (this time using the PHP Coder Pro), and it looks like it's working! Thank you!
http://www.jeepbbs.net/forums/index.php The only problem is that Updating Forums info (threough the "Update Counters") did not make the titles to appear. The titles only start appearing as users post new messages. |
congrats :)
did you read my post above? it shows when someone posts because it updates the field only when someone posts... ;) |
How many queries does this add?
|
none.
|
Quote:
I am using 2.2.5 :) |
I have checked this code and it works fine with my 2.2.5 board, the conclusion is that you have applied the hack inccorectly to the /admin/functions.php file.
Try re-applying or checking that code again. |
Thanks, I will check the code to see any problems :D
|
I installed on 2.2.5 word for word and Im getting a lot of errors on the main page that look like :(
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/whynot-d/public_html/udfxp/index.php(332) : eval()'d code on line 2 |
ok I sorted it you said to add
$form['lasttitle'] to the template when it should be $form[lasttitle] brilliant hack Btw! |
edited
|
Quote:
TIA |
A rather lengthy hack, but it installed just as described and works like a charm. Thanks for making such a great hack!
|
I noticed that the thread title for items in "private" forums don't show up on the home page. Is that intentional?
|
I just installed this hack and when I tried to update the forum counters, I got this error. Can you tell me what it means and what I need to do, please?
Database error in vBulletin Control Panel 2.2.5: Invalid SQL: SELECT * FROM thread WHERE forumid='1' AND lastposter='Boofo's Babe' AND lastpost='1021587428' mysql error: You have an error in your SQL syntax near 's Babe' AND lastpost='1021587428'' at line 1 mysql error number: 1064 Date: Saturday 18th of May 2002 07:10:17 AM Script: http://www.bearfacts2.com/forum/forum/admin/misc.php Referer: http://www.bearfacts2.com/forum/admi...action=chooser |
It seems that SQL doesn't like user names with apostrophies in them. "Boofo's Babe" was reading as "s Babe" and the DB didn't like that. I went ahead and posted in the forums and re-ran the update counters and it went off without a hitch with me as the last poster. Is there any way around this so users can use apostrohies in their names if they like?
BTW: Great hack, PPN! (as usual) :) |
I have one quick question that doesn't seem to have been covered yet..
I want to guarantee that the user ALWAYS goes to the thread shown as the last post, but if you load up the index, wait for a few more posts to be made and then click the thread link it goes to the newest thread, NOT the one listed as last post. This is confusing my users to no end (if they'd only click a little faster it wouldn't be a problem ;) ). Is there any way to set the goto link to go to the thread listed as the last post even if there have been new posts made since? |
I installed this hack and works fine BUT not with polls. I posted a new thread with poll and it didn't appear as a new post in the forum home page. Why is that?
|
It works with polls here fine. I am running version 2.2.5, what are you running?
|
Hmm..looks like I have a problem...
Had this hack since 2.2.0 and it's worked like a charm ever since - just did the Beyond Compare thing and it worked fine. But I updated to 2.2.6 today and it's having a problem. It works fine on a new reply or new thread, but won't work on moving or deleting threads or posts. It just puts it as before, with just name and date. I tried installing from scratch, doing the update forums info thing again, still no dice. Curiously enough it does seem to be leaving a space for the last title on forum home, it's just that it's blanked. Could someone give some insight or perhaps point me to the file that deals with the move/delete to try and fix this? |
Hey, how about that, I solved my own problem ;)
I believe that in 2.2.6, the file to update forum post counts and lastposters was changed, so that the "title" is not part of the SELECT statement that is called in order to get the lastposts info. Because of this, $lasttitle is set to blank because according to the code, it tries to set itself using the "title" variable. As a quick fix, you can simply have the SELECT statement call the title column again. So if you have this hack installed, your code should look like this: in admin/functions.php: PHP Code:
PHP Code:
Now, I don't know if the "title" was taken out of the code for some reason to fix a bug, but if it was, perhaps a better fix that preserves the bugfix might be more useful. But this one's a quick fix. Thanks again PPN for a great hack. |
Do you need to chnage it to this for 2.2.5 too or just 2.2.6?
|
Quote:
|
Would it mess anything up to just go ahead and add it to avoid any problmes that could arise? I mean, if it won't hurt anything then it might be a good idea to go ahead and update it.
Quote:
|
|
You need to change the length you want the last time to be in this line:
Code:
$forum['lasttitle'] = substr($forum['lasttitle'], 0, 28); Code:
<td bgcolor="#1D6AA0" nowrap><smallfont color="#EEEEFF"><img src="https://vborg.vbsupport.ru/images/space.gif" width="200" height="1"><br><b>Last Post</b></smallfont></td> Quote:
|
i installed the hack on my test forums and everything seems fine when i upload the files
when i change the template though i get this error on the forums home Quote:
|
I would also like to have the posticon used last next to it on the forum home. :)
|
[QUOTE]Originally posted by PPN
ok open showthread.php and above PHP Code:
PHP Code:
PHP Code:
|
Scott,
Have you had a chance to look at the problem I am haing with apostrophes in the last poster name? (Posts 185 and 186 of this thread). :) |
All times are GMT. The time now is 05:54 PM. |
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:
|