Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing Shoutbox on Index page + Reversing Shout Order + More...
#11
Ok I have made it on my board today, I have made some changes : no scroll bar on the iframe, I have put a div with scroll bars instead. I have fixed the bug spence talk about.

Next I will put the form on the index page to prevent it to be reload while writting. When all it will be done I'll post you how I've made it.

You can see the progress here : http://www.dolmen-celtics.fr/forum/index.php
Reply
#12
Ok I have more time today, so here it is:

search for :
			if($page == $total_pages)
			{
				$start = 0;
				$limit = $count - (($total_pages - 1) * $perpage);
			}
			else
			{
				$limit = $perpage;

				if($page == 1)
				{
					$start = $count - $limit;
				}
				else
				{
					$start = $count - ($limit * $page);
				}
			}

and replace with:
			$limit = $perpage;
			$start = $perpage * ($page - 1);
Simple no?

PS: dont forget to add "desc" in the oder by part of the query.
Reply
#13
So that will make the last post first on the list of shouts? I tried to modify that code myself and only got it half right! LOL..I'll be sure to try your fix.
Jude

If I post in your thread, please do not PM me for more help! Thanks!


Reply
#14
First post on top is just a change in the query, ORDER by time DESC , the pages shouldn't be changed at all =/ =P
Reply
#15
Wow, tidoudoux! Your fix worked GREAT!!! Thank you so much for sharing it!!!! Big Grin
Jude

If I post in your thread, please do not PM me for more help! Thanks!


Reply
#16
ok i am having major issues getting the time to show up, i am using version 2.1

So when i go through the instructions for time, it never ends up working...

Here is a link, http://www.bullseyesupport.net/

also when i check in IE it ends up showing a messed up version, the right side wont stay correct, like it does in Firefox.

If someone could help me asap that would be great.

Also the edit and delete buttons wont show in firefox...

And is there any way to hide the shoutbox from guests?
[Image: signature-1.jpg]
Reply
#17
I tried installing my shoutbox today and this is what it said when I hit activate...
MySQL error: 1050
Table 'mybb_shouts' already exists
Query: CREATE TABLE `mybb_shouts` ( sid smallint unsigned NOT NULL auto_increment, uid smallint unsigned NOT NULL default '0', username varchar(120) NOT NULL default '', message text NOT NULL default '', dateline bigint(30) NOT NULL default '0', ipaddress varchar(30) NOT NULL default '', PRIMARY KEY (`sid`) ) TYPE=MyISAM
Reply
#18
Go into your database and drop the mybb_shouts table and then try activating the plugin again!
Jude

If I post in your thread, please do not PM me for more help! Thanks!


Reply
#19
Sorry not following ya.. This is a brand new forum.. My server crashed and I had to reinstall EVERYTHING so I don't know how there could already be a
table when I just now made one.. So cornfusin!
Reply
#20
Your first post mentioned that the error message was that 'the table already exists', hence judel's suggestion. Any luck with it? I hope so Smile
Current motto: Cross referencing threads by providing links is a good idea!
Back-on Online - Back-on Fansite
http://www.backon-online.com/

WordPress Snippets
http://www.wpsnippets.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)