Search Results for 'code'
-
AuthorSearch Results
-
November 8, 2008 at 7:05 pm #68820
In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantSorry for the delay in responding – for some odd reason my primary (desktop) computer logged me out of this forum and would not let me log back in….tried many times making certain I was typing my username/password correctly…….so I had to go boot up my laptop…
Anyway, to answer your question, no – I read all the instructions on pretty permalinks and did not see that – I thought I read most of the posts on the issue but must have missed that. In any case it did not work for me….
I put
$bb->mod_rewrite = "slugs";into my bb-config.php and uploaded – this of course changed my default permalinks to the name-based ones (great) but when I click on the links, I get this error message:Multiple Choices
The document name you requested (/Forum/topic/article-titles) could not be found on this server. However, we found documents with names similar to the one you requested.
Available documents:
/Forum/topic.php/article-titles (common basename)
Please consider informing the owner of the referring page about the broken link.And of course if I have the .htaccess file uploaded, I still get the 500 Server error
November 8, 2008 at 5:58 pm #68212In reply to: bbPress 1.0-alpha-2 released
sc0ttbeardsley
MemberI seem to be having the admin login problem as well. I checked the salt settings and they match. I think this is a problem with the login integration. When I login to wordpress first I can post comments to bbpress but that is about it. The bbpress logout button is broken and wordpress doesn’t seem to recognize bbpress-originated logins.
It certainly is close though. I’ll dive into the code to see if I can’t figure it out.
November 8, 2008 at 5:02 pm #68819In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantI doubt your host’s techs will help you with something so specific other than telling you to disable multiviews.
Apparently others here who use 1and1 solved it so you probably can too.
By the way, you are adding
$bb->mod_rewrite = "slugs";to the bb-config.php correct?
November 8, 2008 at 4:05 pm #68792In reply to: advertisements after the first message
_ck_
Participantdo something like this in your
topic.phptemplate just before<?php endforeach; ?><?php if (!isset($adsense)) { $adsense=1; ?>
<li>
adsense javascript goes here
</li>
<?php } ?>(untested)
November 8, 2008 at 10:16 am #68772_ck_
ParticipantActually, I think you want to try disabling MultiViews
Options -MultiViewsNote the minus instead of the plus.
If that doesnt’ work, what happens when you try to go directly to
http://www.domain.com/forum/?new=1when NOT logged in? 404 ?
November 8, 2008 at 6:43 am #68817In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantOh! I just realized your IP is on 1and1 (1&1).
There were reported problems with them.
I’ll have to research.
You can try also putting
Options -MultiViewsat the top of the .htaccess in the /Forum/ directory too. Note it goes above and before the first<if(first line)November 7, 2008 at 9:59 pm #68816In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantSigh…..still no luck……I put that as the first line of my Root .htaccess, then copied the /Forum htaccess file over to /Forum, still getting 500 error……..
I do appreciate your time and efforts – maybe when you wake up the morning a new idea will be dancing around in your head……
November 7, 2008 at 9:04 pm #68815In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantThere is a chance your host has multiviews already turned on by default so let’s make sure it gets turned off.
At the start of the root .htaccess try putting
Options -MultiViewsOther than that, I’m out of ideas for today and will have to “sleep on it”.
November 7, 2008 at 8:55 pm #68814In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantNo luck
Here is my root .htacces:RewriteEngine On
RewriteCond %{http_host} ^travel-writers-exchange.com
RewriteRule ^(.*) http://www.travel-writers-exchange.com/$1 [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/Forum/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressRoot (WP install) works fine, but when I put the .htaccess file in /Forum then I still get the 500 error….
I have to run out but will be back in about 1/2 hour…..
November 7, 2008 at 8:47 pm #68813In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantBy the way, once we do get this working, you’ll need to add these three rules to the .htaccess in
/Forum/because bbPress’s rule generator is not complete (and for my plugin to work)RewriteRule ^topic/?$ /Forum/ [R=302,L,QSA]
RewriteRule ^forum/?$ /Forum/ [R=302,L,QSA]
RewriteRule ^page/([0-9]+)/?$ /Forum/?page=$1 [L,QSA](put them just before
</IfModule>)November 7, 2008 at 8:07 pm #68808In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantOkay lets see if this sheds any light:
here is the htaccess file from my root:
RewriteEngine On
RewriteCond %{http_host} ^travel-writers-exchange.com
RewriteRule ^(.*) http://www.travel-writers-exchange.com/$1 [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressHere is the htaccess I would put in my /Forum directory, if it didn’t trigger the 500 error

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Forum/
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /Forum/forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ /Forum/forum.php?id=$1 [L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /Forum/topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ /Forum/topic.php?id=$1 [L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /Forum/tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ /Forum/tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ /Forum/tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /Forum/profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ /Forum/profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /Forum/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ /Forum/profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ /Forum/profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /Forum/view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ /Forum/view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ /Forum/rss.php [L,QSA]
RewriteRule ^rss/topics/?$ /Forum/rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ /Forum/rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ /Forum/rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ /Forum/rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ /Forum/rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ /Forum/rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ /Forum/rss.php?view=$1 [L,QSA]
</IfModule>I’ve verified that there are no errant spaces or line breaks……it doesn’t look to me like there are syntax errors or conflicts, but I’m no expert……
November 7, 2008 at 7:45 pm #68803In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantIt will indirectly fix the problem with page numbers.
Doesn’t actually fix the bbPress internal issue but avoids it instead. I still don’t understand why I can’t reproduce the error on my installs.
You are probably getting an internal server error because of a conflict with a rule in the root htaccess. Make sure you don’t still have the old rewrite rules in the root one. You can also post that root htaccess here for me to look at. Be sure to put it between code backticks.
November 7, 2008 at 7:35 pm #68801In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantYou need to make sure the .htaccess is in /Forums/ and not the root of the entire site. Your host’s directory structure is a little strange but I don’t think it will interfere with mod_rewrite.
There is a possibility that there is a rule in the root .htaccess that is interfering the lower .htaccess. But let’s first make sure it’s in the correct directory.
By the way:
/Forum/topic/forum-guidelines-please-readis correct.
/Forum/forum-guidelines-please-read/is wrong.
bbPress needs to know that the string following is a topic, otherwise it doesn’t know what to do with it (it might be a forum).
/Forum/forum/forum-nameis also legit.November 7, 2008 at 7:18 pm #68799In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantYep I downloaded the most current version of the plugin, and did not modify it in any way at all.
I did try using the mod_rewrite instructions (called the file rewrite-rules.php from my browser, copied and pasted the resulting rules into my .htaccess file, and then went to settings and chose the pretty permalink), but it just results in 404 errors when I click on any of my links.
I’m certain that’s because the rewrite rules are adding in to the URL an extra level as such:
what should be /Forum/forum-guidelines-please-read/ becomes /Forum/topic/forum-guidelines-please-read
Same for the forums – it is inserting and extra /forum into the path. Unfortuanately I don’t know enough about mod_rewrite (okay really nothing at all about it) so I am not able to correct the rules myself. OR if the problem is not with the rewrite rules but something in the core code, that’s beyond me too. I just know it’s adding something to the path that shouldn’t be there.
November 7, 2008 at 5:35 pm #68798In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantHmm that’s a really strange problem that I am going to have to explore a bit later.
You are using the final copy of the plugin correct?
And you didn’t modify it at all?
Even though I can’t reproduce the problem on my copies of bbPress, this may be an internal bug since I can workaround the issue by doing this (note the
?&)http://www.travel-writers-exchange.com/Forum/?&page=2
ps. the best way to do pretty-permalinks is to use the .htaccess method with “rewrite” where you have to copy and paste the rules that bbPress offers here:
http://www.travel-writers-exchange.com/bb-admin/Forum/rewrite-rules.php
Once you do that, then you have to turn on the option in your bb-config.php
November 7, 2008 at 4:49 pm #68797In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantHi _ck_ – thanks for helping.
Here is a link from the front page to a topic:
http://www.travel-writers-exchange.com/Forum/topic.php?id=43I reported it working because the numbers showed up exactly how I wanted to see them, but I’m embarrassed to say that I didn’t actually “click” on the numbers at that point to be sure they actually worked correctly.
I didn’t change the plugin in any way. It does work perfectly on the other pages – the individual forum list of topics (forum.php) and the topic itself with the posts (topic.php)……I only get this error if I click on the additional page numbers on the front page.
(p.s. – I would LIKE to use pretty permalinks, but have not been able to get that working, even after reading everything I could find here on the subject and trying all of the suggestions – I’m hoping a future version of bbPress will fix this issue, but for now I’m stuck with the ugly permalinks)
November 7, 2008 at 2:09 pm #66969In reply to: Mass email function
_ck_
ParticipantAny shared host worth their salt will automatically, immediately and permanently suspend an account sending that many emails per hour anyway.
Any site sending that many messages needs a dedicated email server with an IP that’s registered on whitelists (costs $$$) so major providers will accept that kind of traffic. http://goodmail.com http://www.senderscorecertified.com http://www.isipp.com are examples of popular whitelist services. You also need to make sure the server has rDNS, SenderID, SPF and DomainKeys.
With some additional code and the use of cron, Detective’s code could be made to send only a few emails per minute, and track that the same domain does not get an email again within a few minutes. That might slow down the banning a little but we’re getting into spammer territory there and I’m not making such a tool available (also phplist does all that anyway).
November 7, 2008 at 2:14 am #68832In reply to: First poster / thread started by…
chrishajer
ParticipantOn this forum “Started 5 hours ago by jabberwock” appears. So, there are functions to do what you want to do. Maybe it’s just not in the theme you’re using. This is in my topic.php:
<li><?php printf(__('Started %1$s ago by %2$s'), get_topic_start_time(), get_topic_author()) ?></li>Those are your functions. The get_topic_start_time returns a time elapsed sort of thing (i.e. “5 days ago”) rather than a date. There is probably a function to return the topic start date instead of time elapsed as well. Maybe it’s topic_time or get_topic_time or topic_start_time. All the functions are pretty reasonably named.
November 6, 2008 at 8:55 pm #4234Topic: First poster / thread started by…
in forum Themesjabberwock
MemberIn forum.php and front-page.php, the latest poster for each topic is identified. Is it possible to also identify the first poster– ie the person who started the thread and perhaps also when the thread was started? After sifting through code for several hours, I’m not sure if I’m overlooking something, or if I simply cannot find something that is not there. Thanks.
November 6, 2008 at 5:12 pm #68781In reply to: Problem with sticky topics
Ipstenu (Mika Epstein)
ModeratorThat’s because your topic is already stuck

Click on Unstick topic. Then you get the options again.
November 6, 2008 at 4:31 pm #68790In reply to: advertisements after the first message
chrishajer
ParticipantJust use a little php. What type of code are you trying to insert?
November 6, 2008 at 4:21 pm #68700chrishajer
ParticipantZulan: this error says you have the path to the file wrong in your bb-config.php.
Warning: require_once(../wp-blog-header.php)
[function.require-once]: failed to open stream:
No such file or directory in
/var/www/www.zulan.se/bbpress/bb-config.php
on line 41What path do you have listed to wp-blog-header.php on line 41 in your bb-config.php?
November 6, 2008 at 4:19 pm #68779In reply to: Problem with sticky topics
chrishajer
ParticipantI don’t know where it is in the code. Does it not appear at the bottom of the topic when you are logged in as keymaster?
November 6, 2008 at 11:34 am #68750In reply to: New plugin: Automated Forum Moderation
Olaf Lederer
ParticipantI like the akismet spam filter
November 6, 2008 at 8:08 am #68778In reply to: Problem with sticky topics
epiphone
MemberWhere would this option be located in the code? Can’t seem to find it. Thanks for your post.
-
AuthorSearch Results