![]() |
Does this work with 2.2.0?
|
Yes.
|
if I go to /forums/Pluhcomments.php (I named it that for a differrent use on my site) it works fine, but if I include it in a php file in a /folder/ as
Code:
<?php Include ("/forums/Pluhcomments.php"); ?> Quote:
I also included the pluhconfig in the comments.php script I am changing since I want it to display the info for a certain thread (I will hard code the thread ID into each article and include the comments.php) This is a great Hack Perfect. Or better yet, if you could post the code to do this X Comments last post by user" line only and then set it so that I can have a var $threadid= that I have in the article that it grabs to tie the above to the thread for the article? thanks |
Ok I moved the require global/admin to the test page, and now I am getting
Quote:
I added .mydomain.mydomain.org to the cookies this (changed name of real domain). So what am I doing wrong? I am still completely new to PHP. HELP!!!!!!!!!!!!! |
Back to square one.
I want to Include PluhHeadlines.php on each article page. All articles are in a /folder off main site. So I do PHP Code:
PHP Code:
www.mysite.com/critcalmass/some-article.php Now I get the Error Quote:
What am I missing? I am still completely new to PHP. As I was writing this, I tried using Absolute paths, and it works. I have implemented the headlines.php to replace my "This Week @Mac Write" at the top of all pages. Now to try out the Pluhnews.php but This afternoon it's 3AM and I need to get sleep (or finish watching TRUE LIES?) |
Here's a minor improvement to the hack that will allow you to use more than one forum as your source for news. :)
In PluhNews.php Find: PHP Code:
PHP Code:
example: PHP Code:
In PluhHeadlines.php Find: PHP Code:
PHP Code:
|
This "tweak" is for people who installed fastforward's spider friendly urls.
In PluhNews.php Find: //gotta convert that damn unix time crap Add BEFORE: PHP Code:
PHP Code:
PHP Code:
|
Cool additions. I've got an idea though:
What about allowing a paramater to be passed. For example, pluhnews.php?site=site1 would give news for the forum designated as "site1." |
I THINK you can do that by removing the variable $newsforums from the config file and then passing it in as the parameter.
newsforums=1 for example. Amy |
I have
"X Comments posted by XXXX" I want to manually enter the thread ID that this link, and the thrad it pulls the info from. So what do I change to fix it? |
All times are GMT. The time now is 10:21 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:
|