miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Show latest posts in domain

Author jmcwebtrip
Registered
#1 | Posted: 7 Jun 2012 13:15 | Edited by: jmcwebtrip 
I have put my forum in a subdomain. What I do is a call from the main domain so that it displays something on the main page displaying the last two posts in the forum, making only the first 20 characters of each post and with the links to the forum
How could I make that call?

Thanks

Author Paul
Lead Developer
#2 | Posted: 7 Jun 2012 13:57 
You may use the free "First page news" add-on from Downloads to display content from your forum on external pages.

Author jmcwebtrip
Registered
#3 | Posted: 7 Jun 2012 14:34 | Edited by: jmcwebtrip 
There is anything that I'm doing that isn't well because ins't working
Here I put in addon_1stpagenews2.php
$path='/hsphere/local/home/c34727/foros.fotoviaje.net/'; Is it correct?
the call get throught include
<?php include ('http://foros.fotoviaje.net/addon_1stpagenews2.php');?> is it correct?

Thanks

Author kuopassa
Registered
#4 | Posted: 8 Jun 2012 00:39 
You could alternatively try to install RSS addon for the forum and then grab the RSS feed and show its contents where you like. You can fetch RSS feeds with for example SimplePie.

Author Paul
Lead Developer
#5 | Posted: 8 Jun 2012 22:06 
jmcwebtrip:
$path='/hsphere/local/home/c34727/foros.fotoviaje.net/'; Is it correct?

How can I know it? :) It depends on what is given by getpwd() function.

jmcwebtrip:
<?php include ('http://foros.fotoviaje.net/addon_1stpagenews2.php');?> is it correct?

You don't have to deal with PHP in that case. Use JavaScript option of this add-on, it would be much simpler for you.

Dealing with PHP include means your subforum should be on the same server as the primary site. This add-on can not be included like you did, via HTTP request.

Author Paul
Lead Developer
#6 | Posted: 8 Jun 2012 23:20 
I've just got my hands on the similar add-on and I think you don't see anything because error reporting is disabled in PHP.
But actually, you may also get this error when including PHP file from external resource:
http:// wrapper is disabled in the server configuration by allow_url_include=0

Specific miniBB Support Forums / Specific / Show latest posts in domain Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB