User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,575 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 71637 | Replies: 238
Reply
Join Date: Aug 2004
Posts: 157
Reputation: pulse is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
pulse's Avatar
pulse pulse is offline Offline
Posting Whiz in Training

Re: vBulletin mod_rewrite

  #201  
Mar 27th, 2005
Originally Posted by Tdot
Hi guys, have been following this thread here...really like the idea of this mod and would like to give it a shot on my forums.



appears the URL is broken!
You could see the instructions + bug fixes in this thread http://www.daniweb.com/techtalkforums/thread12725.html
StreetLessons.com - My Blog about Business, Life & Success!
Reply With Quote  
Join Date: Mar 2005
Posts: 18
Reputation: agiacosa is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
agiacosa agiacosa is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #202  
Mar 27th, 2005
That's the revised tutorial and it's different than Dani's. I looked and didn't see any fix to subforum issues.
Reply With Quote  
Join Date: Apr 2005
Posts: 6
Reputation: SEO Report is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SEO Report SEO Report is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #203  
Apr 19th, 2005
Awsome tutorial, thanks for sharing.

I have two questions:

1. What about these "1 2 3 > Last" links that points to subsequent threads/pages? is there a way to change them to use standard URL?

2. Thread title in URL in archive, is this possible?

Thanks,
-k
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #204  
Apr 30th, 2005
I've got a new version of the tutorial out, and it handles multiple pages and more: http://www.daniweb.com/tutorials/tutorial22840.html
Reply With Quote  
Join Date: Apr 2005
Posts: 6
Reputation: SEO Report is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SEO Report SEO Report is offline Offline
Newbie Poster

Solution Re: vBulletin mod_rewrite

  #205  
May 2nd, 2005
My hat off to you, Dani! Installed without any problem! :lol:

Thanks a lot!

-k
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #206  
May 2nd, 2005
You're referring to the new 3.0.7 one, right?
Reply With Quote  
Join Date: Apr 2005
Posts: 6
Reputation: SEO Report is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
SEO Report SEO Report is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #207  
May 2nd, 2005
Originally Posted by cscgal
You're referring to the new 3.0.7 one, right?

Yep. First I installed it on a test server, then exported style to xml and imported it to my real website, and voila!

-k
Reply With Quote  
Join Date: Apr 2005
Posts: 1
Reputation: ztka is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ztka ztka is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #208  
May 2nd, 2005
Hi, I found a problem, why my apache didnot work mod_rewrite module, I have installed it, it is my httpd.conf files

#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
######Load Php Module###########




Alias /vbb "C:/Apache_Group/Apache2/cgi-bin/vbb/"

<Directory "C:/Apache_Group/Apache2/cgi-bin/vbb/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>



.htaccess files

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^post([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]



The second question is:

My website is chinese font, if I use

<a href="$forum[url].html"><strong>$forum[title]</strong></a>

in my vbb template, it shows bad code, like this:

http://localhost/hoopchina/vbb/鲳国嗪�.html

How to resolve this problems? $forum[url].html

should I use <a href="forum$forum[forumid].html"> ?
Reply With Quote  
Join Date: May 2005
Posts: 9
Reputation: Jezella is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Jezella Jezella is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #209  
May 3rd, 2005
Hullo I'm new here and must say that I'm very impressed with this mod_rewwrite.

However, I have been looking at the most updated version and am a trying to incorporate this but am confussed by the following.

I have noted this:- Below are the PHP files that need to be edited. You will notice two lines at a time. The first line represents what to search for, and the second line represents what to replace it with.

So without further ado ...


$highlightwords = '&amp;highlight=' . urlencode(implode(' ', $display['highlight']));
$highlightwords = '-' . urlencode(implode(' ', $display['highlight']));

$display['forums']["$key"] = "<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
$display['forums']["$key"] = "<a href=\"forum$forumid.html\"><b><u>" . $forumcache["$forumid"]['title'] . '</u></b></a>';
[/html]

showthread.php

[html]$highlightwords = iif($goto, '&', '&amp;') . 'highlight=' . urlencode($_GET['highlight']);
$highlightwords = '-' . urlencode($_GET['highlight']);

exec_header_redirect("showthread.php?$session[sessionurl_js]p=$getlastpost[postid]$highlightwords#post$getlastpost[postid]");
exec_header_redirect("threadedpost$getlastpost[postid]$highlightwords.html#post$getlastpost[postid]");


In the above I do not know if I should delete 1 line and add several.

Jezella
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #210  
May 3rd, 2005
Please ask all questions related to the new tutorial in the new tutorial thread. This tutorial is entirely different. However, each paragraph has two lines - replace the first line with the second.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:56 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC