Search Results for 'code'
-
AuthorSearch Results
-
November 9, 2008 at 5:53 pm #68831
In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantI use TextWrangler, from BareBones software – it’s a free text editor that has a lot of the features of their pay-for text editor, BBEdit (it replaced BBEdit Lite). To the best of my knowledge it’s not supposed to do something like that (pasting whitespace) and I haven’t had trouble in the past, but you never know – it could have been something in the process of copying it from my browser window after running rewrite-rules.php and then pasting it into TextWrangler that added some whitespace….
I’ll definitely keep that in mind next time I’m copying and pasting anything…….
And you’re welcome for the donation – as mentioned it was very well deserved! I’m self-employed and have a tiny budget, but I always try to reward plugin and theme developers, especially when they are so nice about providing support that goes way above and beyond the norm as you have
November 9, 2008 at 5:47 pm #63057In reply to: Open Links in new window
TrishaM
ParticipantBump – I know this may wind up being a dead issue (at least until a future bbPress update), but is anyone aware of any plugin to give greater control over how links are handled?
I don’t want to dig into the core files, but I need to have internal links handled differently from external links, and need to be able to not have manually entered links (not using the URL button) altered to remove or add anything to the
<a>tag…..so I’m hoping a plugin exists that will allow for link customization….November 9, 2008 at 8:37 am #68631In reply to: Allowing New Users to pick their own passwords
_ck_
ParticipantI now have this working as a plugin and will make it available later today. I expect donations from both of you considering the small fortunes you were willing to pay an outsider
November 9, 2008 at 6:59 am #68630In reply to: Allowing New Users to pick their own passwords
_ck_
ParticipantI suggested they change this in the core long ago and let the user choose passwords while sending only an activation link via email.
If you don’t need them to verify via a link in the email this could be written in an hour as a plugin. The code for password entry with re-entry verification can be lifted from the 1.0 alpha source.
I do recommend you use my Human Test plugin however.
November 9, 2008 at 1:23 am #4241Topic: after wp integration, still looks for bbpress tables ..?
in forum Installationbizref
MemberHi,
I don’t know what I’m doing, really, but I followed the instructions to integrate bbpress with wp; they are on 2 separate databases, so I did the advanced config option …
After updating the settings I was logged out, and when I attempted to log back in as my bbpress info, I got the below error … I am also not able to login using my wp admin login, I got the same error but with that login name instead.
Any thoughts? Please provide as specific instructions as possible
Many thanksbbPress database error: [Table ‘bizref_bbpress.wp_users’ doesn’t exist]
SELECT ID FROM wp_users WHERE user_login = ‘allaboutdarien’
bbPress database error: [Table ‘bizref_bbpress.wp_users’ doesn’t exist]
SELECT * FROM wp_users WHERE user_login = ‘allaboutdarien’
November 8, 2008 at 10:00 pm #68829In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantWell I am THRILLED to report that it finally ALL works as it should!
The odd part is that I never found any errors when I added the RewriteRule lines back in one by one – it was time consuming but worth it in the end (seems strange that copying & pasting the whole block in at once triggered the 500 error, but doing them one by one did not, but oh well – sometimes it’s just better to not question things too deeply)….
I even added in the three lines needed for the plugin and had no trouble, so now the page numbers are working perfectly on the front page.
I can’t thank you enough for all your patience and perseverance with this problem….I just sent you a well-deserved donation via your link on the showcase…….if I were ever going to have kids I’d seriously consider naming my firstborn _ck_
November 8, 2008 at 9:12 pm #68828In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantOk – thanks! I understand you need to leave – no worries (i know we all have day jobs
)I did add back in the remaining RewriteRule lines, but that triggered the 500 error. I’ll try adding them one by one until I hit the error, and post back which line it is…..
November 8, 2008 at 8:52 pm #68827In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantI have to leave for the rest of the day but essentially if you are able to add the rest of the rules without an error 500, then go back into
bb-config.phpand put back the line for slugs.Then the forum should start using slugs.
To finish up after it’s all working, go find those three extra rewriterule lines I posted much earlier and add those to the list and then you should be 100% done.
After those extra three lines are in, remember to test the front-page pagination which is what started this entire exercise in the first place, and hopefully they will be error free.
November 8, 2008 at 8:48 pm #68826In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantI think we solved it then.
Try adding the rest of the rules.
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]November 8, 2008 at 8:41 pm #68825In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantOkay – so far so good – added the Options +FollowSymLinks after the -Multiviews and added the two lines to RewriteRule – no 500 error yet
November 8, 2008 at 8:14 pm #68824In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantOh I just thought of another possible problem.
Try also adding
Options +FollowSymLinksafter the
Options -MultiViewsThat might be the entire 500 error issue.
Some servers require it for mod_rewrite to work properly.
November 8, 2008 at 8:10 pm #68823In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantOkay now trying adding the first two forum lines the
/Forum/.htaccessOptions -MultiViews
<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]
</IfModule>November 8, 2008 at 8:03 pm #68822In reply to: Topics Per Page plugin – new problem
TrishaM
ParticipantOk…..here is what I have in my (root) WP install folder:
Options -MultiViews
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 WordPressI also modified my .htaccess file in /Forum as follows:
Options -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Forum/
</IfModule>No 500 Server error – Yaay! this is progress….slugs are still disabled.
November 8, 2008 at 7:52 pm #68821In reply to: Topics Per Page plugin – new problem
_ck_
ParticipantAh okay. Well the “slugs” part will be the last part after the .htaccess is working to finally get slugs.
We should probably approach this in baby steps to see what triggers it.
That “Multiple Choices” error is not good.
It means MultiViews is still ON for some reason when it should not be. Maybe you did the MultiViews turn off incorrectly?
Right now I assume the webroot has a
.htaccesswithOptions -MultiViewsat the top, then the rest of what you listed above for WordPress. Like so:Options -MultiViews
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 WordPressNow in
/Forums/I want you to make a reduced .htaccess file like this:Options -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Forum/
</IfModule>Make that minimal amount and see if it that still functions without a 500 error. (keep the slugs disabled for now)
November 8, 2008 at 7:05 pm #68820In 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……
-
AuthorSearch Results