The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2007, 11:50 PM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default adding rel="nofollow" to link directory ** UPDATED WITH NEW QUESTION **

** UPDATED HERE **

Where do I do this?

I've searched the forums and tried to do it in here:
Code:
                                $value = "<a href=\"$value\" target=\"_blank\" rel=\"nofollow\">" . fetch_trimmed_title($prepped, $cache['maxlength']) . "</a>";
in:
geek/gars/mods/display/custom_fields.php

Which didn't work, I then tried this:
Code:
<if condition="$show['homepagecol'] AND exec_switch_bg()"><td class="$bgclass"><if condition="$show['homepagelink']"><a href="$userinfo[homepage]" target="_blank" rel="nofollow" /><img src="$stylevar[imgdir_button]/home.gif" alt="home.gif" title="<phrase 1="$userinfo[username]">$vbphrase[visit_xs_homepage]</phrase>"  border="0" /></a><else />&nbsp;</if></td></if>
in:
memberlist_resultsbit


Again, no result... So, I turn to the geek and admit failure! Help ol' geek'ed'ness!

Last edited by tokenyank; 01-03-2008 at 01:57 PM..
Reply With Quote
  #2  
Old 07-04-2007, 08:23 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

It should be the first one. Do you have a link to the page?
Reply With Quote
  #3  
Old 07-04-2007, 10:09 AM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default

Yes indeedy!

http://www.mumsonline.net/forums/lin...198.html?f=198


Just installed it last night so categories and the such aren't done yet and the template and core file are as installed, should I add the code to it before you have a root around?
Reply With Quote
  #4  
Old 07-04-2007, 10:11 AM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default

Thanks for the help btw... Didn't mean to be rude, just walked through the door and am all sweaty... I hate tourists and Portobello!
Reply With Quote
  #5  
Old 07-04-2007, 11:53 AM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default

Having just had a play, it really only seems to be the www button I need to add the nofollow to.

Any links in the post itself are parsed through my redirector which has a nofollow added there.

I just can't seem, try as I might, to get that bloody nofollow to attach to the www button!
Reply With Quote
  #6  
Old 07-04-2007, 03:00 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

look in the geek/gars/mods/display/snap.php module
Reply With Quote
  #7  
Old 07-04-2007, 04:10 PM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default

That did it! Thank you.

That's why you're the geek!
Reply With Quote
  #8  
Old 07-06-2007, 01:31 AM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default

EEk!

We have a problem Huston!

I changed the file as per your instruction and it worked upon testing it 2 days ago...

However, I just went to play with the new directory and I get this:
Code:
Unable to add cookies, header already sent.
File: /home/mumsonli/public_html/forums/geek/gars/mods/display/snap.php
Line: 1
removing the rel=\"nofollow\" from the file doesn't help.

So, erm... Help?

EDIT TO ADD:
I've used the tools to rebuild cache and rebuild custom fields but no good....

It only effects the link directory of the mod:
http://www.mumsonline.net/forums/lin...tory-f198.html

The article fork of the mod is unaffected:
http://www.mumsonline.net/forums/articles-f197.html


/me is thoroughly confused!]

EDIT TO ADD +2:
I've uploaded core files for GARS and Link directory and it works again though I'm slightly concerned that the header/cookie issue will return by itself as it seems to have done this time.

If you can hed light, I'd greatfully follow it out of this tunnel of confusion!

Last edited by tokenyank; 07-06-2007 at 01:41 AM..
Reply With Quote
  #9  
Old 07-06-2007, 08:32 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Sounds like the problem was with the snap module. EIther you left a typo or it was a bad upload.
Reply With Quote
  #10  
Old 07-06-2007, 09:16 AM
tokenyank tokenyank is offline
Junior Member
 
Join Date: Oct 2006
Location: London
Posts: 22
Geek Article and Review System License Holder 
Default

sure, blame the end user!

I figured as such since the core file upload (which had to be done anyway since I installed pre-license change over so the source still credited other domain, so, good in the end anyway) fixed it... I'll give it another go in a bit and see if I can sort it.

Thanks again!

EDIT TO ADD:
Made change and seems to work again... Will wait a couple days before I give it the big thumbs up since it took 2 days for the error to happen (read, for me to see it).

However, I want to add as well incase it is every asked, the search feature should bring this thread up and future users won't have to bug you... Yes this hack works with a redirector hack... However since the links aren't parsed through the bbcode you have to hard code it into the file itself. Adding the redirector code in /geek/gars/mods/display/snap.php before $post[gars_snap_www] forces the user added link to redirect as if it was a link posted on the forums itself.

example:
instead of:
Code:
                        $bits = "<tr><td align=\"center\"><a href=\"$post[gars_snap_www]\" target=\"_blank\"><img src=\"$stylevar[imgdir_button]/home.gif\"
Using this:
Code:
                        $bits = "<tr><td align=\"center\"><a href=\"http://www.yourdomain.com/forums/redirector.php?url=$post[gars_snap_www]\" target=\"_blank\" rel=\"nofollow\">
Will prevent both spiders from following the link preventing semi-mythical PR leakage AND the added benefit of stripping referral data and offering a warning to users that they are leaving the sanctity of your forums! The mod I'm using for redirection is this.

Last edited by tokenyank; 07-06-2007 at 09:30 AM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set reg="nofollow" for a category JustaQuestion Geek Auto-Linker 2 10-05-2009 09:32 PM
fehler "kein benuzername.." error "username" hohleweg Geek Article and Review System 7 03-22-2007 10:28 PM
"GARS Rating" Just Like "Hot-or-Not" Voting Pehchaan Geek Article and Review System 4 12-10-2006 06:51 PM
I want to link "baseball" and "baseball bat". How? bob Geek Auto-Linker 18 10-02-2006 11:04 AM
With an existing page, adding "Add to cart" button Stachel GeekMart 1 12-03-2005 07:21 PM


All times are GMT. The time now is 10:46 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.