[Add-on] Display posts anywhere 1.2.0 RC5

Stand-alone scripts designed for a specific function, but not neccessarily part of normal forum browsing.
Forum rules
Image Please feel free to download any Scripts here, support for each Script is located it's own thread.

To post your own Script, please first read the MOD / Script Guidelines

Re: [Add-on] Display posts anywhere

Postby Handyman » 16 Jan 2007, 17:39

It's in the instructions.
You still have to setup your template to show multiple rows
Code: Select all
<!-- BEGIN posts -->
Subject: {posts.POST_SUBJECT}
Post: [posts.POST_TEXT}
<!-- END posts -->


I'll add more to this later such as a link to the topic, poster name and more.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Add-on] Display posts anywhere

Postby Aratgel » 16 Jan 2007, 17:58

thx a lot, I try it and send you news soon
Aratgel    
Translator
Translator
 
Posts: 31
Joined: 14 Jan 2007, 19:43
Location: Montréal Québec
Favorite Team: Canadiens
Gender: Male

Re: [Add-on] Display posts anywhere

Postby Highway of Life » 17 Jan 2007, 04:29

Hey Handy... do you have a Tutorial with this?
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-on] Display posts anywhere

Postby Handyman » 17 Jan 2007, 14:07

It's all in the install file... I just need to add the template stuff.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-on] Display posts anywhere

Postby Rafterman » 17 Jan 2007, 16:49

Hi, iam the guy with the problem that i cant get access from my webpage to the subdomain were the forum is stored.

I´ve tested the Addon and i get this errors
Code: Select all
Warning: include(./forum/common.php) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/nrg3.de/httpdocs/test2.php on line 17

Warning: include() [function.include]: Failed opening './forum/common.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/nrg3.de/httpdocs/test2.php on line 17

Fatal error: Call to a member function session_begin() on a non-object in /var/www/vhosts/nrg3.de/httpdocs/test2.php on line 20



am I right with my conclusion that this Addon wont work on my space?
User avatar
Rafterman
Cadet IV
Cadet IV
 
Posts: 42
Joined: 12 Sep 2006, 12:04
Gender: Male

Re: [Add-on] Display posts anywhere

Postby Highway of Life » 17 Jan 2007, 21:52

You should be able to, but you need to find out where your forum is located.
It looks like you have a VPS, so I'm guessing it's something like:
/var/www/vhosts/nrg3.de/forum/ or some such thing. (just a guess)
And in that case, your phpbb_root_path should be:
Code: Select all
<?php $phpbb_root_path = '../../';

if all else fails, you can try using an absolute path... I've never tested it before, but if you can't get anything else to work, it might be worth a try.
Code: Select all
<?php $phpbb_root_path = 'http://forum.nrg3.de/;
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-on] Display posts anywhere

Postby Handyman » 17 Jan 2007, 22:26

Highway of Life wrote:You should be able to, but you need to find out where your forum is located.
It looks like you have a VPS, so I'm guessing it's something like:
/var/www/vhosts/nrg3.de/forum/ or some such thing. (just a guess)
And in that case, your phpbb_root_path should be:
Code: Select all
<?php $phpbb_root_path = '../../';

if all else fails, you can try using an absolute path... I've never tested it before, but if you can't get anything else to work, it might be worth a try.
Code: Select all
<?php $phpbb_root_path = 'http://forum.nrg3.de/;


and if those don't work, try this (I've never tried this before either... but it's worth a shot... and It won't work if there is a base directory restriction in place
Code: Select all
<?php $phpbb_root_path = '/var/www/vhosts/nrg3.de/forum/';
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-on] Display posts anywhere

Postby Rafterman » 18 Jan 2007, 08:36

mmmh all this did´t work.

now i just take the testfile into my forum dir and tested it with
Code: Select all
<?php $phpbb_root_path = '';


but then i get this error here

Code: Select all
Fatal error: Cannot redeclare class bbcode_firstpass in /var/www/vhosts/nrg3.de/subdomains/forum/httpdocs/includes/message_parser.php on line 869
User avatar
Rafterman
Cadet IV
Cadet IV
 
Posts: 42
Joined: 12 Sep 2006, 12:04
Gender: Male

Re: [Add-on] Display posts anywhere

Postby Handyman » 18 Jan 2007, 16:44

your phpbb_root_path shoudl be
Code: Select all
<?php $phpbb_root_path = './';

Also, did you
Rafterman wrote:mmmh all this did´t work.

now i just take the testfile into my forum dir and tested it with
Code: Select all
<?php $phpbb_root_path = '';


but then i get this error here

Code: Select all
Fatal error: Cannot redeclare class bbcode_firstpass in /var/www/vhosts/nrg3.de/subdomains/forum/httpdocs/includes/message_parser.php on line 869


I don't understand what's trying to redeclare that class... are you using both of the functions on the same page? or are you just using one of them?
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Add-on] Display posts anywhere

Postby Handyman » 18 Jan 2007, 16:50

@Aratgel, there was a bug in the last posts function that would not have allowed those posts to be displayed... so if you download it again, just replace the old functions with the new one and it should work for you.
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7454
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

PreviousNext

Return to Scripts

Who is online

Users browsing this forum: Magpie Crawler and 3 guests