Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions /

First Page News add-on discussions

 Page:  ««  1  2  3  4  5  6  7  »» 
Paul
CEO
#76 | Posted: 11 Oct 2006 14:47
Reply 
keplero
Please check related thread on this topic:

Displaying latest discussions on forum pages
MKJ
Forums Member
#77 | Posted: 21 Jan 2007 18:26
Reply 
Adding the forum name

How can I add the Forum name to the First Page News? As I have split my site up and using lots of forums it would be a help to see which forum the post is linked to.

Regards - MKJ
Paul
CEO
#78 | Posted: 22 Jan 2007 03:32 | Edited by: Paul
Reply 
Additional modification will be needed.

In the addon_1stpagenews2.php after the line which says:

$xtr=getClForums($displayForums,'where','','forum_id','or','=');

add the following code:

/* Get forum titles and IDs */
$forumTitles=array();
if($res=db_simpleSelect(0,$Tf,'forum_id, forum_name')){
do $forumTitles[$res[0]]=$res[1]; while($res=db_simpleSelect(1));
}
/* --Get forum titles and IDs */


After the line which says

$topics[$tid]['forum_id']=$res[5];

add:

$topics[$tid]['forum_title']=$forumTitles[$res[5]];

Afterall paste the variable {$forum_title} in the template addon_1stpagenews_cell2.html
MKJ
Forums Member
#79 | Posted: 22 Jan 2007 05:25
Reply 
Works great.

Thanks - MKJ
Talbot
Forums Member
#80 | Posted: 8 Feb 2007 10:14
Reply 
Hi there,

How I do stop the script from getting the poster's name and any other not essential info ?

If I can explain, I just want the topics and their correct order (ok order is easy to set in the script) but not the poster who made the post.

I can change the templates to just not display this other info of course, but I am thinking it would be better to stop it trying to do this SQL query for the poster as well.
Paul
CEO
#81 | Posted: 8 Feb 2007 10:53
Reply 
It doesn't matter how many fields you select in SQL query (well... it could matter for the BLOB fields or other large size fields, but not for the fields in miniBB). So just edit the templates and get your headache off.
Talbot
Forums Member
#82 | Posted: 9 Feb 2007 09:51
Reply 
ok thanks Paul
teva
Forums Member
#83 | Posted: 13 Aug 2007 15:27 | Edited by: teva
Reply 
Hey!

How do i modify the script, so it will show html tags correctly? I have tried modifying line 74

$topics[$tid]['post_text']=substr(strip_tags(str_replace('<br />', "\n", $res[1])), 0, $maxTxtLength);

but all i got is three dots ... istead of message.

Thank you
Paul
CEO
#84 | Posted: 14 Aug 2007 04:11
Reply 
Remove strip_tags function.
teva
Forums Member
#85 | Posted: 14 Aug 2007 10:22
Reply 
Aha...i removed too much. Thank You it works now.

Is it possible to also show breaks? Now, news are all in one line with no breaks.

Thanks!
lime
Forums Member
#86 | Posted: 14 Aug 2007 12:46
Reply 
Is it possible to also show breaks? Now, news are all in one line with no breaks.

This should work:
$topics[$tid]['post_text']=substr($res[1], 0, $maxTxtLength);
teva
Forums Member
#87 | Posted: 14 Aug 2007 14:20
Reply 
yep, this works excellent. Thanks lime
cromagx
Guest
#88 | Posted: 20 Sep 2007 04:26
Reply 
Hi all,

I am adding the "firstpage news" addon to my minibb-forum, but I am experience a weird problem.

When I call the http://www.mypage.com/forum/addon_1stpagenews2.php directly in my bowser everything works just fine, and I see the newest posts.

But when I add the javascrips on my frontpage :


<script type="text/javaScript" src="http://www.mypage.com/forum/addon_1stpagenews2.php"></script>

Nothing happends!

I have alot of javascripts working on the fronpage, but this one do not work.

What can possible be the problem?!

Best

Cromagx
Paul
CEO
#89 | Posted: 20 Sep 2007 07:11
Reply 
In add-ons setting you need to define

$displayMethod=2;
bkai
Forums Member
#90 | Posted: 18 Mar 2008 05:35 | Edited by: bkai
Reply 
Hi there,

I'm experiencing a problem with special characters when using the First Page add-on. My forum will be used in German and the German "Umlaute" like ü or ö are not displayed correctly. See screenshot below:

Screenshot

Any suggestions what I could do?

Thanks!! :-)
 Page:  ««  1  2  3  4  5  6  7  »» 
Your Reply

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership 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.

 
Online now: Guests - 5
Members - 0
Most users ever online: 214 [11 Jan 2009 10:23]
Guests - 214 / Members - 0

Forums are powered by miniBB®