Hi all

I can't find any specific instructions about this which is why I'm asking here -- can I upgrade directly from 1.4 to 1.4.4, or do I have to go through the intermediate steps (1.4.1, 1.4.2 etc) first? Just want to be sure I'm not missing any necessary db migrations.

Thanks!

2

(115 replies, posted in Supported extensions)

This is a great addon, thank you!

I still have spam account registering (on the Antispam page in user properties it says they are spammers) but they don't seem to be posting.

I've had an enquiry from someone who seems legitimate saying they couldn't register due to their IP being blocked - hopefully that is fixed by the update to 1.2.3.

Thanks again!

3

(4 replies, posted in PunBB 1.3 discussion)

Any development on this front?

4

(85 replies, posted in PunBB 1.3 extensions)

rajuru wrote:

please open twitter.class.php

you will get a line like:

if(!empty($Status) && TextLength($Status) <= $this->MaxLength){

replace with:

if(!empty($Status)){

Thanks rajuru.

I tried it with the same topic as before.  I don't see the error message now, but neither is the post submitted to twitter sad You can see the relevant post here: http://www.noisyneighbours.net/forum/to … and-cheap/

Any thoughts?

EDIT: it's fixed if I enable the to.ly URL shortening (Twitter seems to reject a Tweet with >160 chars, even if it would be smaller *after* the URL is shortened.  If the URL is shortened before sending the Tweet, it accepts it.

But I've also noticed that the To.ly URL uses the filename scheme (viewtopic.php?51 or similar). Would it be possible to use the URL rewritten address, for better traffic generation (links from twitter will include the topic title in the URL)?

Thanks for your great work, this is a brilliant extension!

5

(85 replies, posted in PunBB 1.3 extensions)

rajuru wrote:
melat0nin wrote:

Rajuru - any thoughts on my problem? (one post above yours)

you have already quoted my answer smile.

Ah yes, I didn't see your edit before I replied!

I am using the version of the extension from here: http://forum.projanmo.com/extensions/pun_twitter.zip (because the other one didn't work).

In manifest.xml I see the following code (it is the only place where mb_strlen()/strlen() are used:

        <hook id="co_common"><![CDATA[
            $pun_extensions_used = array_merge(isset($pun_extensions_used) ? $pun_extensions_used : array(), array($ext_info['id']));
            function ShortenURL($url) {
              $ch = curl_init();
              curl_setopt($ch, CURLOPT_URL, "http://to.ly/api.php?longurl=".urlencode($url));
              curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
              curl_setopt($ch, CURLOPT_HEADER, 0);
              curl_setopt($ch, CURLOPT_FAILONERROR, 1);
              curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
              $shorturl = curl_exec ($ch);
              curl_close ($ch);
              return $shorturl;
            }
            
            function TextLength($str){
                if(function_exists('mb_strlen')){
                /* Set internal character encoding to UTF-8 */
                    mb_internal_encoding('UTF-8');
                    return mb_strlen($str);
                } else {
                    return strlen($str);
                }
            }
            
            function hashtag($str,$tags=''){
            
            }

            
        ]]></hook>

It looks like mb_strlen() is already used (if available).  What do you think?

6

(85 replies, posted in PunBB 1.3 extensions)

rajuru wrote:
Bibby wrote:

One more feature request: Is it possible to extract some content of new topic/reply into tweet?

hello,
i am sorry, i did not see your post earlier.

it is possible however no benefit bcoz twitter supports only 140 or 160 chars. so nothing understandible can be shown after showing the topic and URL. max length is too short to show some excepts.


Stormeh wrote:

I'd love to see the addition of newly registered members as tweets, and have a link to the profile.

initially i had wish to implement this. however, could not manage time for the same sad. busy with a lots of works. will do if get some moments. i have another cool ext idea too smile.

I just saw the error "Post too long/not set", and the new topic wasn't posted to Twitter.  Presumably this is because the topic title made the whole thing longer than 140 characters.  Is it possible to automatically cut the title (with an elipsis - '...') where necessary to ensure that a twitter post will always be made?

actually, i faced same in some topics too. so in my personal version of the script, i removed the length checking. i awarded the duties to twitter wink. twitter itself will removes additional texts. so if you want, you may try removing the length checking in script.

if your forum is not in english, you may face it frequently. you may replace strlen() to mb_strlen() that will reduce that ugly message smile.

Rajuru - any thoughts on my problem? (one post above yours)

"I just saw the error "Post too long/not set", and the new topic wasn't posted to Twitter.  Presumably this is because the topic title made the whole thing longer than 140 characters.  Is it possible to automatically cut the title (with an elipsis - '...') where necessary to ensure that a twitter post will always be made?"

7

(85 replies, posted in PunBB 1.3 extensions)

I just saw the error "Post too long/not set", and the new topic wasn't posted to Twitter.  Presumably this is because the topic title made the whole thing longer than 140 characters.  Is it possible to automatically cut the title (with an elipsis - '...') where necessary to ensure that a twitter post will always be made?

Any thoughts?  I didn't think this would be a complicated extension.

Bump

Any ideas?  I think the first issue is easy - just templating. But how about the second?  Should be pretty simple for an extension - it's just adding a database field to each forum to contain a URL, which is displayed below the forum as a link.

KeyDog wrote:

RE 1.

Pretty good idea; you want
'forum_desc'  taken out of
index.php  lines after  // Setup the forum description and mod list
then add it to
viewforum.php   maybe near // Setup main header

Would be a neat ext.

Excellent, I will give it a try. 

How about the second one?  I'm guessing all that's needed is to assign a variable, say $ext_url to the forum's attributes, then spit this out in a link in the template, something like this:

<a href="<?php echo $ext_url; ?>">Click here to complete the survey</a>

Adding to the software's core is a bit harder than just shuffling about template elements tho big_smile

Hello all

There are a couple of simple features I'd like to modify PunBB to achieve.  They are pretty simple so I'm not sure a full-blown extension is required, which is why I'm posting here.  Anyway, here they are:

1.  Display the forum description on the forum page.  This is to allow an introductory paragraph above the topics.  Pretty simple, I'm sure.  I'd like to remove the description from the category (home) page, because the descriptions will be pretty long in my forum, and place them instead above the table of topics on the forum page.

2.  Allow each forum to have a link set, which will appear below the table of topics.  In other words, in the Edit screen of a forum, have a field at the bottom where the administrator can paste in a URL, which will appear as a link below the topics.  The URL will link to a PDF survey, or an online survey, or whatever.

...the idea being that the category page lists the various consultations ('forums'), the forum page has a long description of the project that is being consulted on, users can discuss their ideas and forum their opinions, then they can click the link at the bottom of the project ('forum') page to go to the consultation itself (either in the forum of a document they fill out and email in, or an online survey, or whatever).

I imagine the first one is pretty simple, because it should just involve placing the template element which displays the description on the forum page instead of the category page.  The second one, I'm not so sure about.  I don't know how easy it would be to add an extra field to a forum's properties.

Any help or suggestions would be much appreciated!

-melat0nin