Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Mod Requests and Support  ›  Shoutbox mod Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 1 Guests

Shoutbox mod  This thread currently has 392 views. Print
1 Pages 1 Recommend Thread
hearbear
January 20, 2008, 4:29pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Just installed the shout box to forum which we are just setting up and getting this error coming up when shout box appears at top of page. Warning: file(/home/sites/skcc.co.uk.co.uk/public_html//forum/Prefs/ThemesList.txt) [function.file]: failed to open stream: No such file or directory in /home/sites/skcc.co.uk/public_html/PHPShout/check.php on line 4.

This is the details from line 1 to 4 on check.php
<?php
// Check for default boards theme...
$themefile = "$themepath/ThemesList.txt";
$data = str_replace (chr(9), '', file($themefile));

Any help as this is new to me and we want to move away from the free hosted phpbb board we have at the moment as we control of it and to be able to back up regularly.

Cheers George
Logged Offline
Private Message Private message
Martin
January 21, 2008, 12:36am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
If you have a standard install then change:

/home/sites/skcc.co.uk.co.uk/public_html//forum/Prefs/ThemesList.txt

To:

/home/sites/skcc.co.uk.co.uk/cgi-bin/forum/Prefs/ThemesList.txt



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 1 - 11
hearbear
January 21, 2008, 5:10pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Thanks forum not installed in the cgi-bin folder but installed using the web hosting company and it puts in forum folder. did a clean install and got it working ok but is there away to show more than 1 shout, ideally i would want about 4 shouts on view at a time.  http://www.skcc.co.uk/forum
The other thing is the user name has changed to a number now after the 1st test post.
Cheers George
Logged Offline
Private Message Private message Reply: 2 - 11
Martin
January 22, 2008, 1:05am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
Your path's are still wrong in config.txt:

// Change the following 2 lines to reflect your DOCUMENT_ROOT....
$themepath = "/home/sites/opportunitynowhere.co.uk/cgi-bin/forum/Prefs";
$datpath = "/home/sites/opportunitynowhere.co.uk/cgi-bin/forum/Members";

These should reflect the path to the forum, try these:

$themepath = "/home/sites/skcc.co.uk.co.uk/public_html/forum/Prefs";
$themepath = "/home/sites/skcc.co.uk.co.uk/public_html/forum/Members";



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 3 - 11
hearbear
January 22, 2008, 9:55am Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Quoted from Martin
Your path's are still wrong in config.txt:

// Change the following 2 lines to reflect your DOCUMENT_ROOT....
$themepath = "/home/sites/opportunitynowhere.co.uk/cgi-bin/forum/Prefs";
$datpath = "/home/sites/opportunitynowhere.co.uk/cgi-bin/forum/Members";

These should reflect the path to the forum, try these:

$themepath = "/home/sites/skcc.co.uk.co.uk/public_html/forum/Prefs";
$themepath = "/home/sites/skcc.co.uk.co.uk/public_html/forum/Members";



Checked them and they are as you state now the only difference is there are two forward slashes after _html but this is the same as the file line it tells you to check for the path.

<?
// Configuration Page

$numofposts = "10"; // Number of posts to display

$archivenoofposts = "50"; // Number of posts to display per page in archive

$badlang = "1"; // Censor out bad language 1 = On, 0 = Off

$maxchars = "100"; // Number of characters allowed in message field

$imagepath = "images"; // Folder name where smilies are stored. NO Trailing slash

$display_shout = "1"; // Turn the Shoutbox On or Off, used when performing Admin functions. 1 = Yes, 0 No

$showdate = "1"; // Display daye and time when user hovers mouse over post. 1 = On, 0 = Off

$ShoutRefreshTime = 60; // Change this to suite

$title = "The Chatter Box"; // Change this to what ever....

$admin = "*****"; // Admin username

$password = "*****"; // password for username

// Change the following 2 lines to reflect your DOCUMENT_ROOT....

$themepath = "/home/sites/skcc.co.uk/public_html//forum//Prefs";

$datpath = "/home/sites/skcc.co.uk/public_html//forum//Members";

// Change this if you have changed the default cookie prefix....

$username = $_COOKIE['eblah_un']; $filename = "$datpath/$username.dat";

// No changes required below this line...

// First check for theme...

$file = "$themepath/ThemesList.txt";

$data = str_replace ( chr ( 9 ), '', file ( $file ) );

for ( $i = 0; $i < sizeof ( $data );

$i++ ) { $line = trim ( $data[$i] );

if ( ! empty ( $line ) ) { list ( $shouttheme, $default, $images, $buttons ) = explode ( '|', $line );

if ( $default ) { break; } } }

// Second Check for theme...

if ($_COOKIE['eblah_un'] == "") { return false;

}

$file = "$datpath/$username.dat";

if ($file = file($filename)) $line = trim ( $file[26][$i] );

if ( ! empty ( $line ) ) $shouttheme = $file[26];

$line = trim ( $file[1][$i] );

if ( ! empty ( $line ) ) $name = $file[1];

?>

Any other help gratefully received Still need to show more shouts at a time and to show names not numbers.

Cheers George
Logged Offline
Private Message Private message Reply: 4 - 11
Martin
January 22, 2008, 10:30am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
This looks like an early version.

Download the attached
Unzip to your PC
Edit the config.txt
FTP to your site
Delete or rename the current PHPShout folder
Upload the new PHPShout folder



This post contains attachments; to download them you must login.




Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 5 - 11
hearbear
January 23, 2008, 3:50am Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Cheers will give it a go 1st chance I get.

George
Logged Offline
Private Message Private message Reply: 6 - 11
hearbear
January 23, 2008, 3:31pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Fitted the new shout box and working ok.  Is there any way to make the box bigger to show more of the shouts.

Cheers George
Logged Offline
Private Message Private message Reply: 7 - 11
Martin
January 23, 2008, 3:35pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
Download your BoardIndex.pl in ASCII and edit it. Look for:

Code
<iframe src="/PHPShout/inc_form.php" style="background-color:transparent; width: 100%; height: 250px;" frameborder="0" name="Shout" marginwidth="0" marginheight="0" align="top"></iframe>


And change the height="250px", try 300px then 350px



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 8 - 11
hearbear
January 23, 2008, 4:26pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Cheers man

was starting to loose faith but great answers and got it looking pretty good and working just need to work out how to work the backup and how to reupload, is there description on how to do it?

Cheers once again George
Logged Offline
Private Message Private message Reply: 9 - 11
Martin
January 24, 2008, 11:59am Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 4,558
Gender: Male
Posts Per Day: 3.14
Reputation: 98.60%
Reputation Score: +211 / -3
Time Online: 35 days 19 hours 25 minutes
Location: UK
Age: 50
Still doesn't look quite right, the buttons and smileys shouldn't have borders.
Add this to your template.css

Code
img {
	border: 0;
}



Martin's Reputation: Increase
Logged Offline
Site Site Private Message Private message Reply: 10 - 11
hearbear
January 24, 2008, 2:42pm Report to Moderator Report to Moderator
E-Blah Member
Posts: 9
Posts Per Day: 0.03
Time Online: 2 hours 24 minutes
Quoted from Martin
Still doesn't look quite right, the buttons and smileys shouldn't have borders.
Add this to your template.css

Code
img {
	border: 0;
}



That is what is in the template.css just now.

George
Logged Offline
Private Message Private message Reply: 11 - 11
1 Pages 1 Recommend Thread
Print

E-Blah Community    Modifications    Mod Requests and Support  ›  Shoutbox mod