Link to a forum [message #14728] |
Wed, 19 November 2003 19:23 |
Squeebee
Messages: 110 Registered: November 2003
Karma: 0
|
Senior Member |
|
|
Hi all;
I am using the post_vars version of the templates and I will be need ing to link to a forum (I am converting from PHPbb, I have a forum for each article on my site and each article has a "jump to the forums" link.
Question is, what would a link to forum 2 look like?
|
|
|
Re: Link to a forum [message #14734 is a reply to message #14728] |
Wed, 19 November 2003 21:17 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You want a link to a forum or a link to a topic?
FUDforum Core Developer
|
|
|
|
|
|
|
Re: Link to a forum [message #14745 is a reply to message #14742] |
Wed, 19 November 2003 22:09 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
SQ will always be present for logged in users... it is necessary security measure and at this time there is no way to disable it.
FUDforum Core Developer
|
|
|
|
|
Re: Link to a forum [message #14751 is a reply to message #14728] |
Wed, 19 November 2003 22:39 |
Squeebee
Messages: 110 Registered: November 2003
Karma: 0
|
Senior Member |
|
|
Ok, good, but I realize it will not actually solve my problem. You have a superior project here. I really like it, but I like the money that the Google Adsense provides too, and since a large percentage of my hits come from the forums, I need the googlebots to find the pages, and that means the URLs that make up the forums have to be consistent.
If a user browses to a thread, the call for an ad results in a generic ad if Google has nothing for the request URL in the database. It will then fire off a spider and within a minute the next request for the same URL will result in a page-specific set of ads instead of the generic one. The problem is this: My logged-in users will always get the generic ad (which makes no money) because each and every one of them will see a different URL. The only way in this case for them to see targeted ads would eb multiple visits to the same page.
Now I am guessing the SQ section is there to prevent session hijacking and XSS, but I personally would prefer to balance decreased security with the ability to use Google adsense.
Anyhow, I am going to investigate alternate solutions and have contacted Google support to look for a solution. If there was a way to have a web browser strip the dynamic portion before making a request to google I would have something. This for example is the gode added to a google page:
<script TYPE="text/javascript"><!--
google_ad_client = "pub-2660766695269970";
google_alternate_ad_url = "http://www.vbmysql.com/includes/amazon.html";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_color_border = "2184BD";
google_color_bg = "FFFFFF";
google_color_link = "666666";
google_color_url = "000000";
google_color_text = "000000";
//--></SCRIPT>
<script TYPE="text/javascript"
SRC="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</SCRIPT>
I am pretty sure that Google operates by taking the referrerid as the page ads are needed for, and if I can get a browser to modify it and remove the trailing ?SQ portion then Google's bots will be happy. I shall have to talk to my Javascript experts.
|
|
|
Re: Link to a forum [message #14752 is a reply to message #14751] |
Wed, 19 November 2003 22:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You are correct, SQ is needed to prevent session hijacking and other nasty tricks that could be used. XSS issues are something else and the protection for them is else where.
I suppose you could modify the code to not do SQ completely by changing the code inside users.inc.t. But given the security issues it creates it is not something I would like to allow people to disable normally.
The real solution may be a clever JavaScript hack of sorts. I've looked at the google JavaScript and the URL handling code appears to be:
if (window.google_page_url == null) {
google_page_url = document.referrer;
if (window.top.location == document.location) {
google_page_url = document.location;
}
}
So, maybe you can use JavaScript to modify the value of document.referrer & document.location removing the SQ bit internally to allow for common URL.
Check on Google's support site, I am almost certain such issues have come up before and there maybe solutions I haven't even considered.
FUDforum Core Developer
|
|
|
|
|
Re: Link to a forum [message #14785 is a reply to message #14784] |
Thu, 20 November 2003 19:53 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
What you need to do is this, all the changes affect a single file, users.inc.t
Near the top of the file find comment which says "/* define constants used to track URL sessions & referrals */". Below it remove references to SQ from the constants being defined. Then find function sq_check() near the bottom of the file and make it always return 1. That's about it.
Keep in mind that you are compromising the forum's security, potentially allowing all kinds of mischief.
FUDforum Core Developer
|
|
|
|
|
Re: Link to a forum [message #14802 is a reply to message #14801] |
Thu, 20 November 2003 23:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to disable "referrals tracking" not to be confused with referrer tracking.
FUDforum Core Developer
|
|
|
|
Re: Link to a forum [message #14811 is a reply to message #14810] |
Fri, 21 November 2003 03:04 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you are seeing &_rsid in the actual URL, it probably means you didn't modify users.inc.t correctly. Normaly it would appear as &rid=[number]
FUDforum Core Developer
|
|
|