![]() |
Could someone help me with this pluhnews modification?
PluhNews is great, but it has one dissadvantage: It has to make a ton of calls to the MySQL database everytime a visitor goes to your homepage. In theory the number of calls could be reduced significantly if it just wrote a new data file each time a news record was posted.
So I re-wrore the pluhnews.php file to write everything to a standard TXT file. Now all I need is for pluhnews.php to execute every time a new thread is posted in the news forum. So I was wondering if it would be possible to add something like this to the newthread.php file when a new thread is created: if (forumid == whatever) execute PluhNews.php Can anyone offer any more insight? |
convert your pluhnews.php to a function add the function to admin/functions.php and call it anytime you need it.
By the way I'm sure you have already noticed that your function(PHP file) needs to handle post edits/deletes/moves etc which requires a lot of coding/hacking or you should post news very carefully, knowing that your further modifications can only performed by manually editing your text file. |
All times are GMT. The time now is 11:37 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:
|