minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for 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  »» 
Fritzek
Forums Member
#16 | Posted: 30 Mar 2005 23:54
Reply 
you mean including in the same base page? like:
inlcude('1stpagenews_1.php');
include('1stpagenews_2.php');

but should not have any effects, because the templates are based on seperate tables. so you can put as many 1stpagenews as you want on the same page.
Or I'm wrong, but than I don't understand your problem. because the script is working sequencially and read the posts for inlcuded forum id.
could you post a snippet of your pages to see whats wrong.
Team
8-)
#17 | Posted: 31 Mar 2005 10:46
Reply 
Ed Lewis
It's probably because you don't see any error, but functions inside are DUPLICATED. First of all you need to use not INCLUDE, but REQUIRE_ONCE.
Ed
Guest
#18 | Posted: 31 Mar 2005 12:44
Reply 
Team, Fritzek, thanks for your messages

I've made the require_once change to my main page

So now I basically have

require_once('1stpagenews_1.php');
require_once('1stpagenews_2.php');

The first one works, the second one produces nothing (no html of any kind)

I tried the javascript route also, but this doesn't produce any output.

I know what I'm attempting is more than was intended for this first page news script, but it would be fantastic if I adapt it to fit this role.
Team
8-)
#19 | Posted: 31 Mar 2005 12:50
Reply 
Ed
No - you need to replace include by require_once in '1stpagenews_2.php'.
Ed
Guest
#20 | Posted: 31 Mar 2005 15:10
Reply 
It works!! Thank you!

Sorry about my confusion on that last point

Ed
Buzzard
Forums Member
#21 | Posted: 14 Jul 2005 19:09
Reply 
I have installed 1stpagehack.
How can I achieve this:

Instead of latest Topic, show the latest Reaction?

Thnx,
Buzz
Team
8-)
#22 | Posted: 14 Jul 2005 19:46
Reply 
Set

$sort='topic_last_post_id DESC';

$maxTxtLength=500; //or whatever number of symbols you want to display

Use {$post_text} in templates/hack_1stpagenews_cell2.html for displaying the text
Buzzard
Forums Member
#23 | Posted: 15 Jul 2005 10:49
Reply 
Thanks Team,

I still work with the first version of 1stpagenews. That that line doesn't seem to appear in the file. Is it possible you can help me with this version?

(I have tried to install 1stpagenews_hack2 but I get this error:
"Fatal error: Call to undefined function: getclforums() in /home/www/board/hack_1stpagenews2.php on line 41")

Thanks,
Buzz
Team
8-)
#24 | Posted: 15 Jul 2005 11:02
Reply 
In first version, you need to change mysql request itself:

mysql_query("select topic_id, topic_title, topic_poster_name, topic_time, topic_views, forum_id from $Tt where $where order by topic_time DESC limit $limit");

to something like (I've not tested it):

mysql_query("select $Tt.topic_id, topic_title, topic_poster_name, topic_time, topic_views, forum_id from $Tt where $where order by topic_last_post_id DESC limit $limit");
Buzzard
Forums Member
#25 | Posted: 15 Jul 2005 11:11
Reply 
Thanks Team, for the quick response!

It works, now I see the last topic on which is replied. But: I don't see the reply itself. Is this also possible?

Thanks,
Buzz
Team
8-)
#26 | Posted: 15 Jul 2005 11:33
Reply 
{$post_text} variable in templates\hack_1stpagenews_cell.html containts reply text.
Julian
Forums Member
#27 | Posted: 16 Aug 2005 07:56
Reply 
Hey everyone... I'm new here. First of all, thanks for great, easy to use software! MiniBB itself worked like a charm.

I'm having some trouble with the 1st page hack plug-in. The first time I installed it, it worked perfectly. The second time, however, I keep on getting this error:

Fatal error: Cannot redeclare makelim() (previously declared in C:Program FilesApache GroupApache2writerscirclesetup_mysql.php:8) in C:Program FilesApache GroupApache2writerscirclesetup_mysql.php on line 15

Now this usually means I must have included setup_mysql twice, so I tried commenting out "include setup_mysql" in hack_1stpagenews2.php. That didn't work (all the functions needed can't be called on any more), so I should have only included it once...

I'm not quite sure what's going on here, any help would be tremendously appreciated!
Julian
Forums Member
#28 | Posted: 16 Aug 2005 08:03
Reply 
Problem fixed

Hey all, I've fixed the problem by commenting out the lines

//include ($pathToFiles.'setup_'.$DB.'.php');
//include ($pathToFiles.'bb_functions.php');

in index.php. Since they were included in hack_1stpagenews2.php, there's no need to include them again.
Julian
Forums Member
#29 | Posted: 16 Aug 2005 08:09
Reply 
Problem not fixed

Okay that was no fix. Now none of the old forums show...
Team
8-)
#30 | Posted: 16 Aug 2005 09:57
Reply 
No, you can't comment these lines in index.php - else your forums will not work, of course. Anyway, there is an option $excludeIncludes=FALSE; which you could set in the addon; if it doesn't help, just try to figure out, where your makeLim() function is already included. Also be sure you have set all paths correctly.
 Page:  ««  1  2  3  4  5  6  7  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» 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, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 25
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®