NB Productions

Code Authors: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Sat Dec 23, 2006 11:09 am Reply with quote Back to top

Hi G,

I'm using TegoNuke Shortlinks on my site and I was just wondering if you have done a tap for the Adsense Article Module? Very Happy

Jakec
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Sat Dec 23, 2006 11:46 am Reply with quote Back to top

No I haven't as it would require one tap per file as the file names are unique - it would be a long list!!

I could probably write one to chage the php extension to html but I deliberately used file names willed with keywords for SEO so anything more would negate that really.
View user's profile Send private message Send e-mail Visit poster's website
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Sat Dec 23, 2006 5:49 pm Reply with quote Back to top

That's fair enough. Wink

Would there be any benefit? I'm willing to give it a go. Smile

I guess you could loose the /modules.php?name=Adsense_Tips&page= and add a html extension.

I guess having such a long list it may slow the page loads? Confused
View user's profile Send private message
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Tue Jan 02, 2007 7:04 am Reply with quote Back to top

OK well I got bored over Christmas and here's the code for the Tap.

I'm sure you are going to tell there's an easier way, or something, but oh well. Very Happy

Sentinel doesn't want to let me post the code here, so here are links to text files of the code.

Add the code from this file to your .htaccess file:

http://charity.hosting-identity.com/htaccess1.txt

Now create a file called GT-Adsense_Tips.php and add the following code in the file:

http://charity.hosting-identity.com/GT-Adsense_Tips.txt

Jakec
View user's profile Send private message
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Tue Jan 02, 2007 10:17 pm Reply with quote Back to top

I'm experiencing one problem at the moment. On the homepage in the modules block it is still showing modules.php?name=Adsense_Tips instead of Adsense_Tips.html. Sad

When I click on the link to the module in the module block the link then begins to show correctly. Confused

Have I missed something?


Jakec
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Thu Jan 04, 2007 7:16 pm Reply with quote Back to top

As the menu is actually a block file, you might have to tweak the GT Modules file as the actual 'link' to the Adsense module only appears there when the module is activated.

The GT Modules file has no way of knowing what links it is likely to have (apart from the default modules) as the links are built dynamically from the database depending on what modules are installed so I would guess it needs a little help Wink
View user's profile Send private message Send e-mail Visit poster's website
jakec
Client



Joined: Sep 25, 2006
Posts: 47

PostPosted: Thu Jan 04, 2007 7:44 pm Reply with quote Back to top

Thanks for the pointer G, I added a couple of lines to the GTB-block-Modules.php file and it works. Very Happy
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2008 phpBB Group
All times are GMT
Forums ©
Free Advertising | Music Festival | Mortgage Calculator | Celebrity Gossip | MPAA

Scripts.com - Get the best scripts NOW!
linear-bunch