Levinsky
27 2005-06-21 18:49
Re: reading from POP3/IMAP (9 replies, posted in Programming)
when I execute the script from my PHP editor, it works. anyway I ll mail to textdrive tech support
28 2005-06-21 18:27
Re: reading from POP3/IMAP (9 replies, posted in Programming)
thanks Connor and Bwongar
Array ( [0] => Certificate failure for pendrell.textdrive.com: unable to get local issuer certificate: /C=US/O=pendrell.textdrive.com/OU=https://services.choicepoint.net/get.jsp?GT04768306/OU=See www.freessl.com/cps (c)04/OU=Domain Control Validated - StarterSSL(TM)/CN=pendrell.textdrive.com )
29 2005-06-21 17:01
Re: reading from POP3/IMAP (9 replies, posted in Programming)
it says call failed.
When I checked php info it shows IMAP c-Client Version 2000 and SSL Support enabled.
30 2005-06-21 16:02
Topic: reading from POP3/IMAP (9 replies, posted in Programming)
I was trying to read my mails from POP3/IMAP mail box, the script was able to open the mail box from my machine, but when I loaded it to website, it is not working
<?php
$mbox = imap_open("{host:143}", "mail id", "password");
echo "<h1>Mailboxes</h1>\n";
$folders = imap_listmailbox($mbox, "{host:143}", "*");
if ($folders == false) {
echo "Call failed<br />\n";
} else {
while (list ($key, $val) = each($folders)) {
echo $val . "<br />\n";
}
}
echo "<h1>Headers in INBOX</h1>\n";
$headers = imap_headers($mbox);
if ($headers == false) {
echo "Call failed<br />\n";
} else {
while (list ($key, $val) = each ($headers)) {
echo $val . "<br />\n";
}
}
imap_close($mbox);
?>
31 2005-06-20 04:09
Re: Code hilighting (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Thanks. unless this simple integration is useful to someone, I am not planning to work on it anymore.
32 2005-06-19 22:35
Re: Code hilighting (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I searched for GeSHi, I cldnt find it, sorry for the trouble - I requested moderators to remove/close this thread
33 2005-06-19 15:41
Re: Code hilighting (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
A filler to make it 100 posts
34 2005-06-19 15:39
Topic: Code hilighting (12 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Motivated by : http://punbb.org/forums/viewtopic.php?id=5666
I moved this into its own thread (I hope moderators dont mind)
I added GeSHi code hilighting support into punBB, it is easy !
Demo:http://jobs.gotoguide.org/viewtopic.php?pid=1044
Here's what I did
Download GeSHi from http://qbnz.com/highlighter/
copy geshi.php and geshi directory to punbb include directory
Now open parser.php file add these two functions at end of file (paste it before ?>)
function hilight($text,$lang){
$result='';
//recontruct the string
$text='[h='.$lang.']'.$text.'[/h]';
$array= preg_split('#\[/h\]#',$text,-1,PREG_SPLIT_NO_EMPTY);
for ( $counter = 0; $counter <count($array); $counter ++) {
$result=$result . preg_replace('#\[h=(.*?)\]((.|\s)*)\[/h\]#e','geshify(\'$2\', \'$1\')',$array[$counter].'[/h]');
}
return $result;
}
function geshify($text,$lang){
include_once('geshi.php');
$geshi = new GeSHi($text,$lang);
$geshi->set_header_type(GESHI_HEADER_DIV);
return $geshi->parse_code();
}
now find this line (line 321 )
$text = preg_replace($pattern, $replace, $text);
then add this line next to the above line
$text=preg_replace('#\[h=(.*?)\]((.|\s)*)\[/h\]#e','hilight(\'$2\', \'$1\')',$text);
that is it. it works.
36 2005-06-19 03:09
Re: PHP Tag (13 replies, posted in Feature requests)
I fixed multiple highligting also - I modifed the function as follows- As I not a PHP programmer, if anyone see any potential issues, let me know.
I need to fix, '<' and '>' and remove additional <br/> in GeSHi output
function hilight($text,$lang){
$result='';
//recontruct the string
$text='[h='.$lang.']'.$text.'[/h]';
$array= preg_split('#\[/h\]#',$text,-1,PREG_SPLIT_NO_EMPTY);
for ( $counter = 0; $counter <count($array); $counter ++) {
$result=$result . preg_replace('#\[h=(.*?)\]((.|\s)*)\[/h\]#e','geshify(\'$2\', \'$1\')',$array[$counter].'[/h]');
}
return $result;
}
function geshify($text,$lang){
$geshi = new GeSHi($text,$lang);
$geshi->set_header_type(GESHI_HEADER_DIV);
return $geshi->parse_code();
}
37 2005-06-18 16:17
Re: Admin registration approval? (22 replies, posted in PunBB 1.2 modifications, plugins and integrations)
You can make it where members can't view the forum untill you change them to a different group.
wow that's cool idea !
38 2005-06-18 04:06
Re: Little Help Please... (33 replies, posted in Programming)
You could call Microsoft®, they don't support your Windows® version anymore, so they might charge you $35 USD, but if it's a product activation problem they might not charge you, I don't know.
why on the earth someone wld call Micro$lowft ?.
39 2005-06-18 03:59
Re: Forward or "Send to your friend" posts (18 replies, posted in PunBB 1.2 modifications, plugins and integrations)
It looks like guests like this functionality.
My log files shows 1000 forwards for the month of June. more than what I expected. (expectation was max 100 /month).
40 2005-06-18 03:47
Re: PHP Tag (13 replies, posted in Feature requests)
GeSHi supports a tons of langs, and you can add langs own your own.
I changed my mind, I debugged the multiline issue, darn regex's !
41 2005-06-18 01:08
Re: Word Association Thread (1,382 replies, posted in General discussion)
Vidkun
42 2005-06-18 00:28
Re: PHP Tag (13 replies, posted in Feature requests)
I was bored at work today - here is the proof
I tried to add GeSHi, it works for single lines(I dunno where to change it to make it work for multiple lines) with minimal changes to parser.php
Demo http://jobs.gotoguide.org/viewtopic.php?pid=1044
I copied the geshi files to include folder, then added following lines in parser.php.
added an include include_once('geshi.php');
added a function at end
function hilight($text,$lang){
$geshi = new GeSHi($text,$lang);
return $geshi->parse_code();
}
inside
added a function call to invoke hilight inside the function do_bbcode($text)
just after this line :$text = preg_replace($pattern, $replace, $text);
added this line: $text=preg_replace('#\[h=(.*?)\]((.|\s)*)\[/h\]#e','hilight(\'$2\', \'$1\')',$text);
that is it.
only 1 highlight per post, and "<"," >" is also not working
44 2005-06-09 05:05
Re: French touch - Free Tekno .... (9 replies, posted in PunBB 1.2 show off)
I dont know what it says, but the site looks gr8
45 2005-06-05 15:40
Re: help - viewforum (7 replies, posted in PunBB 1.2 troubleshooting)
Thanks Paul !!
Yes. it is back. I filed a ticket with textdrive sametime, I posted it here. It looks like they did something to fix it. I will try to find out what they did, if they share, I ll update here.
marquee works for me in ff and ie.
browsers !!
46 2005-06-05 15:06
Re: help - viewforum (7 replies, posted in PunBB 1.2 troubleshooting)
I tried that, before posting.
47 2005-06-05 14:54
Topic: help - viewforum (7 replies, posted in PunBB 1.2 troubleshooting)
My forum http://jobs.gotoguide.org is showing some strange chars on some pages, search.php, viewforum.php and so on. It is not making any sense to me as I dint modify anything and it was working. Pages like index.php, viewtopic.php are working properly.
48 2005-05-31 20:45
Re: Forward or "Send to your friend" posts (18 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Whatever we do, there is always a way for spammers.
They cld post spam and then cut and paste the link and send to people who are not their friends.
49 2005-05-31 19:34
Re: Forward or "Send to your friend" posts (18 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I opened the forwarding functionality for Guests also.
Restricted guests from editing message and title with readonly tag, tested with IE and mozilla latest versions. hope that will work with older versions also
50 2005-05-31 17:26
Topic: Censor words - (0 replies, posted in PunBB 1.2 discussion)
I found a different use for censoring words. (May not be a recommended use)
You can use this functionality to dynamically create links in your posts.
Say in my forum, whenever I see a "Java", I added a replacement like this [ url=http://java.sun.com]Java[/url ]. I worked properly except one issue, that it messed up all the topic titles with "Java" on it.
So I opened functions.php and changed function like this
function censor_words($text,$title=true)
{
global $db;
static $search_for, $replace_with;
if(!$title){
.............................
}
return $text;
}
then opened the parser.php, changed the parse_message function to pass a 'fasle'.
if ($pun_config['o_censoring'] == '1')
$text = censor_words($text,false);
now I have my dynamic links for all "Java".
if I cld add a title="Java programming language" into links, that wld be cool.
With minor modifications, it can be used as an advertsing tool