News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Re: New home for masmforum

Started by raymond, May 29, 2006, 04:46:20 PM

Previous topic - Next topic

raymond

I have noticed that cross references between threads in topics posted at the old site currently seem useless. Clicking on them simply link to the main page of the new site. Is there any simple solution to this problem?

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

hutch--

Ray,

Unfortunately no, I have redirected links to the original masmforum.com site to this one but there is no method available with hardcoded links.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Synfire

You could create a index.php page at the old location which did something simple like this.


<?php
$qs 
$_SERVER['QUERY_STRING'];
header "Location: http://www.masm32.com/board/index.php?$qs);
exit;
?>



This would redirect the user who tried to connect to http://www.masmforum.com/simple/index.php?action=post;topic=4885.0;num_replies=1 to be redirected to http://www.masm32.com/board/index.php?action=post;topic=4885.0;num_replies=1 and a person who tried to connect to http://www.masmforum.com/simple/index.php to be redirected to http://www.masm32.com/board/index.php?

Regards,
Bryant Keller

hutch--

I have nutted out how to solve the problem but it involved taking a current MYSQLDUMP output, loading it locallly on my own machine, do a global replace, repack it and reload the database from the server.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Synfire

This is the same code as above, except running from the CodeGurus server. If you click the link below, you get redirected back to this topic. It would be a very simple matter to move the domain name over to this server, and vhost it to a local directory, setup simple/index.php with the above code and let the users be redirected. (no arsing with the actual contents of the DB)

http://www.codegurus.org/~bkeller/masmforum/index.php?topic=4885.0

hutch--

Bryant,

I just plugged the php script in and it seems to work fine. One day I will have to get over my dislike of server side scripting and learn some but to be honest, I would rather code assembler.  :bg
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Synfire

Hutch,

Yea, I'm not that great in web design (despite what some people tend to tell everyone) but I do hang out with a lot of people who are. Because of this, by my environment alone, I've learned PERL, PHP, JavaScript, HTML, DHTML, XHTML, XML, and even a little Ruby on Rails. I just figured it would be easier to use a script like that, than trying to update the database, ntm that script will also cover offsite links, from newsgroups or websites, which you wouldn't be able to modify. If you need any help in web design, just let me know. If I don't know how to do it, I'm sure I know at least 6 people who do. :)

Regards,
Bryant Keller