
Log In

Log In

Navigation

Navigation

Ads1

Ads1
| |

Poll

Poll

Anyone with php skills?

Anyone with php skills?
| Posted By:
DeathMarine
@ 3 days ago |
i want to upgrade to the new version of the board but need some tweaking of it before switch over. Seems i can't get anyone to help me so i'm reaching out to my hshare visitors for help. I'm sure you guys have the skill for it.
This is what i'm trying to do. the default FURL (friendly URL) that comes with 3.0 gives me this: for Forum Links http://www2.hshare.net/forum/forumID-forumTitle/ for Topic Links (threads) http://www2.hshare.net/topics/topicID-topicTitle/
The only think i was able to do is tweak it enough to get this: http://www2.hshare.net/f/forumID-forumTitle/ and http://www2.hshare.net/topicID-forumTitle/
which is not really what i want but the best i could do with my level of skill. Ideally i what this: http://hshare.net/forumTitle-forumID/ (might need to be fforumID so forum and topics don't get confuse the board if they have the same name and number) http://hshare.net/topicTitle-topicID/ (might need to be ttopicID so forum and topics don't get confuse the board if they have the same name and number)
here is the original code:
CODE 'showforum' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showforum=(.+?)(&|$)#i', 'forum/$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/forum/(\d+?)-#i", 'matches' => array( array( 'showforum', '$1' ) ) ) ), 'showtopic' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showtopic=(.+?)(&|$)#i', 'topic/$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/topic/(\d+?)-#i", 'matches' => array( array( 'showtopic', '$1' ) ) ) ),
There is the simple thing i can do to it to get what i mentioned above:
CODE 'showforum' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showforum=(.+?)(&|$)#i', '$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#/f/(\d+?)-#i", 'matches' => array( array( 'showforum', '$1' ) ) ) ), 'showtopic' => array( 'app' => 'forums', 'allowRedirect' => 1, 'out' => array( '#showtopic=(.+?)(&|$)#i', '$1-#{__title__}/$2' ), 'in' => array( 'regex' => "#(\d+?)-#i", 'matches' => array( array( 'showtopic', '$1' ) ) ) ),
thanks for any help you can provide in advance!
|
|
Comments: 5 ::
View Comments
|
|

Board Statistics

Board Statistics
| 463 user(s) active in the past 60 minutes |
 |
433 guests, 30 members, 0 anonymous members
wolvernes1967,
the_yami,
Onreib,
Ahva,
sanada,
darkmousey2,
rockchan,
Google.com,
Axiom,
NightUndead,
ravemaster913,
tqminh111,
BONFIRE,
sniperwolf,
darkappa,
DizzyAngelDemon,
six,
dman,
shadow23,
kujazmaster,
Sirius334,
searcher,
angelwolf71885,
DragonHiei,
Shiv,
Perseusex,
narutoo,
lyhonlam,
Hime-sama,
DeathMarine,
brmc
Show detailed by: Last Click, Member Name
|
| Board Statistics |
 |
Our members have made a total of 40,012 posts We have 31,593 registered members The newest member is Hime-sama Most users ever online was 1,114 on Jun 10 2007, 06:26 AM |
|

Latest Posts

Latest Posts
| |

Top Posters

Top Posters

New Members

New Members

Ads2

Ads2
|