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  »» 
MasterPoof
Guest
#1 | Posted: 22 Feb 2005 05:04
Reply 
Is there a way for the news hack to display links, bolded text, etc?
It only displays the normal text whether it was a link, bold, italic in the original post.
Team
8-)
#2 | Posted: 22 Feb 2005 11:14
Reply 
You need to manually edit the hack, removing substr(strip_tags(... directives.
tchurch
Forums Member
#3 | Posted: 6 Mar 2005 11:57
Reply 
Hi,

I want to change the length of the box that shows the latest postings. Currently is show as if it's a column, but I would like to have it across the whole page.

Can anyone help?

Tim
ManFromStreet
Guest
#4 | Posted: 6 Mar 2005 20:51
Reply 
check the templates coming with the hack. they have fixed sizes. change them to your favor and smile :)
Fritzek
Forums Member
#5 | Posted: 6 Mar 2005 20:59
Reply 
yes, this is right. the templates are defined as tables and cells and have a fixed width.
e.g. in hack_1stpagenews2.html you find the tag table width=150. remove the width tag or increase the number
andmunn
Forums Member
#6 | Posted: 23 Mar 2005 05:48
Reply 
1 problems i cant' seem to solve on my board:

I want to restrict the amount of "characters" displayed on teh front page of my site using the first page news hack :
i've set it as follows in hack_firstpagenews.php:

$maxTxtLength=25;
However, this produces no changes...any reason why it wouldn't?

So for example, if someone names there topic something really long:
i.e..// "This is a really long topic which is going to ruin my front page".

it would be limited to 25 characters, so would read:
"this is a really long topi..."

or something of that nature- any advice?
Andrew
Team
8-)
#7 | Posted: 23 Mar 2005 11:11
Reply 
This setting affects POST TEXT length, not topic. If you want to limit topic length, edit script itself.
andmunn
Forums Member
#8 | Posted: 23 Mar 2005 17:01
Reply 
Any advice how i could edit this?

Thanks,
Andrew.
Team
8-)
#9 | Posted: 23 Mar 2005 17:14
Reply 
Look for

$topics[$tid]['topic_title']=$res[1];

it should be

$topics[$tid]['topic_title']=substr($res[1],0,25);

for example
andmunn
Forums Member
#10 | Posted: 28 Mar 2005 05:52
Reply 
Works like a charm Team....anyway i could could this to add the frontpage to be lets say 25 characters, and then add 3 dots (...) to the end...

i.e..//
this:
"THis is a long post that needs to be shortened"
would become:
"This is a long post that..."
Team
8-)
#11 | Posted: 29 Mar 2005 11:03
Reply 
So $topics[$tid]['topic_title']=substr($res[1],0,25).'...';
Ed Lewis
Guest
#12 | Posted: 30 Mar 2005 21:44
Reply 
Multiple instances

I have MiniBB setup with 3 forums (1,2,3)

I've got the First page news hack working on my index as a php include showing the most recent topics for forum (1) - News

I also wanted to show the most recent topics or posts for the other two forums seperately (2,3), but although I managed to duplicate the first page hack, I can't operate a second instance on the same page. Any reason why?

I originally planned to use RSS for this role, but it won't work for my server unfortunately, I'm running a complex secured server and it cant pass RSS from itself. Bizarre.

A single instance of first page is fine, as long as it were to sort first by forum and then by topic with labels in between? Do I have any options?
Fritzek
Forums Member
#13 | Posted: 30 Mar 2005 21:46
Reply 
Hmm, try to rename all 1st page files and edit for other forums id. might be this is a way to create a new instance. It's not really good but should be feasable.
Fritzek
Forums Member
#14 | Posted: 30 Mar 2005 21:47
Reply 
sorry, not renaming, copy under new names ;-)
Ed Lewis
Guest
#15 | Posted: 30 Mar 2005 23:34
Reply 
Hi Fritzek,

I think I tried what you're suggesting - I renamed the .php and found the references to the two html templates and changed those to duplicates as well. This new .php only sought forum (2)

I checked that worked on its own, but when put on the same page as the original .php include, only the first one works. The other doesn't generate any html tags at all.

Unless I got something wrong?
 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 - 4
Members - 0
Most users ever online: 214 [11 Jan 2009 10:23]
Guests - 214 / Members - 0

Forums are powered by miniBB®