Still here
Still here
Last edited by norku; 06-10-11 at 15:03.
and still here. You're not here any more though despite the PM over two hours ago when you definitely were here. I'm going to make some tea. I can wait
and back. Any news?
Please show me your .htaccess before vBET was removed. Also please do not SPAM - it has no sense. Also please note that PM messages are private messages - those are waiting longer for evaluation if wasn't requested and can wait longer if one of our staff is absent busy. Until asked to send access data please write on forum so all our staff can help you. Access details are not needed here - just please send your full .htaccess before vBET was removed.
PS.
I'm working now on corrections in new BETA release - Radek was here and couldn't help you because you send info to me by PM. Sorry you had to wait.
Spam?! You were on the forum before, during and after the point where I sent that PM. I sent it after waiting for a considerable period of time for an answer on the thread. If you can't be bothered dragging yourself away for a couple of seconds to answer a question then you could at least have acknowledged receipt of the PM. YOU caused the problem I'm experiencing. Vbet DOESN'T WORK as advertised (yes, beyond your control I know) and all I want is to get it off my forum quickly. But it can't just be uninstalled like every other Vb add-on. Oh no, because Vbet leaves its BB code splattered all over the place.
Nowhere on your site is there a full description of how to remove Vbet. No where do you tell us that the BB code will not be removed when we uninstall and that we will have to wait for days for a tool to remove it. That tool should be part of the install package but you clearly don't like talking about that. Instead I get an unbelievably arrogant answer where you effectively said that you never considered the possibility that anyone would want to uninstall Vbet?!
So, I now have thousands of indexed links which are now all producing 404s and a few hundred posts containing your BB code and I AM THE PROBLEM??
As far as the redirects are concerned what do you want to know? I have the vb suite installed at /forum as I've told you repeatedly. To get Vbet working with Vb installed at /forum only one set of redirects will work and I know that you know that. I offered you ftp and admin access so that you can take a look for yourself but you clearly don't have the same amount of time as you had when I was still a customer....
Here is htaccess prior to removing vbet. It was located in public_html and worked perfectly (I have vb installed at /forum)
PHP Code:# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.xxxx\.com
RewriteCond %{HTTP_HOST} !(^www\.xxxx\.com$|^cdn\.xxxx\.com$)
RewriteRule (.*) http://www.xxxx.com/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
RewriteRule ^forum/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
#vbet translator rules start
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/ [L,QSA]
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ forum/vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forum/$2 [L,QSA]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbenterprisetranslator_seo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ forum/vbenterprisetranslator_seo.php [L,QSA]
#vbet translator rules end
RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^forum/((archive/)?(.*\.php(/.*)?))$ forum/vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ forum/vbseo.php [L,QSA]
## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 3456000 seconds"
ExpiresByType image/jpeg "access plus 3456000 seconds"
ExpiresByType image/png "access plus 3456000 seconds"
ExpiresByType text/css "access plus 3456000 seconds"
ExpiresByType text/javascript "access plus 3456000 seconds"
ExpiresByType application/javascript "access plus 3456000 seconds"
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>
## Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
#Remove index.php from xxxx.com/index.php
#rewrite engine on
RewriteCond %{THE_REQUEST} index\.php
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index\.php$ / [L,R=301]
Last edited by norku; 07-10-11 at 10:27.
Please note that repeating messages is considered SPAM - on every forum I know. I do not want to discuss about definition of SPAM - just please do not repeat. I understand if your message was waiting few days, because we miss it some how - it would be even appreciated to remind, but 3 times same day...
Your .htaccess should look like this:
Also my apologies - I forgot to tell you about 301 redirect before. It is set there now. Please check and tell is it OK (I'm not sure does rules require / before forum or maybe full URL, but it is something to check on forum). If not I will use your access data you send yesterday and set it right on place.PHP Code:# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.xxxx\.com
RewriteCond %{HTTP_HOST} !(^www.xxxx.com$|^cdn.xxxx.com$)
RewriteRule (.*) http://www.xxxx.com/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
RewriteRule ^forum/((urllist|sitemap_).*.(xml|txt)(.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
#vbet translator rules start
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ forum/ [L,R=301]
RewriteRule ^forum/?(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ forum/$2 [L,R=301]
RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^forum/((archive/)?(.*.php(/.*)?))$ forum/vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(media|admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ forum/vbseo.php [L,QSA]
## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 3456000 seconds"
ExpiresByType image/jpeg "access plus 3456000 seconds"
ExpiresByType image/png "access plus 3456000 seconds"
ExpiresByType text/css "access plus 3456000 seconds"
ExpiresByType text/javascript "access plus 3456000 seconds"
ExpiresByType application/javascript "access plus 3456000 seconds"
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>
## Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
#Remove index.php from xxxx.com/index.php
#rewrite engine on
RewriteCond %{THE_REQUEST} index.php
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index.php$ / [L,R=301]
PS.
Radek is testing right now script removing vBET BBCodes - it should be available soon.
Hi,
Note!
This is beta version of this script!
1.Please create file and save it as "clearBB.php"
2.Put the code below into it and save it
3.Upload to your server, forum root
4.Do the backup of your database
5.Turn off your forum
6.Log in as admin
7.In your browser, put url with destination to your "clearBB.php"
8.Press "clear" button
If you want only to have "clear" urls please cut part of code bordered with:PHP Code:<?php echo "<input type=\"hidden\" name=\"securitytoken\" value=\"" . $vbulletin->userinfo['securitytoken'] . "\" />\n";?>
<p style="text-align: center">
Use this program to remove all bbcode tags (from posts, and urls) added by vBET </br>
To use this script, please log into your forum in other tab
</br>This script has big influence on your
database and changes are permanent - <b>can not be undone</b> therefore:
</br>
make sure you did the <b>backup of your database!</b> and remember to <b>turn
off your forum</b> during using this script!</p>
<form action="clearBB.php?do=execute" method="post"><input type="submit"
value="clear" style="width: 70%; margin-left: 15%" /></form>
<?php
function &basic_clear($pagetext, $what_to_clear) {
if ((strpos($pagetext, $what_to_clear)) === 0 ){
$i = 0;
} else {
$i = 1;
}
$message_tab = explode($what_to_clear, $pagetext);
for ($i;$i<count($message_tab); $i++){
if ($message_tab[$i][2] == ']')
$message_tab[$i]=substr($message_tab[$i],3);
}
$new_message = implode('',$message_tab);
return $new_message;
}
function update_pagetext(&$new_message, $message_id) {
global $vbulletin;
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "post
SET pagetext = '".addslashes($new_message)."'
WHERE postid = " .$message_id
);
}
function update_tittle(&$new_tittle, $tittle_id) {
global $vbulletin;
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "post
SET title = '".addslashes($new_tittle)."'
WHERE postid = " .$tittle_id
);
$vbulletin->db->query_write("
UPDATE " . TABLE_PREFIX . "thread
SET title = '".addslashes($new_tittle)."'
WHERE firstpostid = " .$tittle_id
);
}
require_once('./global.php');
$charset = vB_Template_Runtime::fetchStyleVar('charset');
if ($_REQUEST['do'] == 'execute') {
$result = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."post WHERE pagetext LIKE '%[lang=%' OR pagetext like '%notranslate%' OR title LIKE '%[langtitle=%'" );
while ($message = $db->fetch_array($result)){
//block for clearing post content
if (((strpos($message['pagetext'], 'lang')) !== FALSE) || ((strpos($message['pagetext'], '[notranslate]')) !== FALSE)){
$new_message = $message['pagetext'];
$to_remove = array("[/lang]", "[lang=zh-TW]", "[lang=zh-CN]", "[notranslate]", "[/notranslate]");
$new_message = str_replace($to_remove,'',$new_message);
if ((strpos($message['pagetext'], '[lang=')) !== FALSE){
$new_message = basic_clear($new_message, '[lang=');
}
update_pagetext($new_message,$message['postid'] );
}
// end block of clear for post
//block for clearing urls and thread titles
if ((strpos($message['title'], 'langtitle')) !== FALSE){
$new_message_title = $message['title'];
$to_remove_title = array('[langtitle=zh-CN]','','');
$new_message_title = str_replace($to_remove_title,'',$new_message_title);
if ((strpos($new_message_title, '[langtitle=')) !== FALSE){
$new_message_title=basic_clear($new_message_title, '[langtitle=');
}
update_tittle($new_message_title, $message['postid']);
}
// end of block for clearing urls and threads titles
}
}
?>
Than in your browser type destination to it, and push the "clear" button//block for clearing urls and thread titles <--> // end of block for clearing urls and threads titles
Last edited by r.dziadusz; 18-10-11 at 19:27. Reason: changing code
Thanks very much. I'll let you know if I have any problems but the information seems clear enough.
.htaccess doesn't work. It doesn't redirect and adds home/public_html/user/ etc to the url. Removed.
Why are there two boxes in post 17 above? I'm guessing that box 1 is script one and that box 2 is script two. Does it matter which is run first?
Last edited by norku; 07-10-11 at 18:32.
Ther is only one script - first one
Second box is to remove if you onlu want to clear bbcode from your urls
Last edited by r.dziadusz; 10-10-11 at 09:06. Reason: changing code