PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pacslim
New Member
New Member


Joined: Jun 24, 2006
Posts: 7

PostPosted: Tue Aug 15, 2006 6:09 pm Reply with quote Back to top

I hope i placed this googletap question in the right forum section, ...

I first had next gen's googletap but now because nextgens site is down so their support too, my question is:

I've installed nukecops googletap on phpnuke 7.8 with all patches/updates,
and nuke sentinel.
But i asked em for sum help but they keep me waiting for ages since this site allways helped me excelent so i ask it here now again:

I don't like the way it rewrites my articles because i use a modified dynamic metatags module for my news (articles), it still works but if it redirects to sum url's (because of googletap rewrites) it doesnt work anymore, here an example:

If i click a news article on my home page it takes me too:
Only registered users can see links on this board!
Get registered or login to the forums!


which doesn't show the dynamic articles metatags
but if i go through the news sections menu to this article it has an url as:
Only registered users can see links on this board!
Get registered or login to the forums!


and this way my dynamic metatags module for news articles works good !
So this has to do with Nukecop's Googletap url redirecting so what do i need to change so all my news articles are cloaked like the last url, so how do i do all news articles without the --0-0.html and the - between article and the nr part? what do i need to change in my header and .htacces to get this working??
or should i edit the the dynamic metatags module for phpnuke news articles, in it is allready sum googletap compatility coding but not for googletap from nukecops.
I think they optimized it for nextgen's googletap (which is no longer online) the code i think i can also edit to get this working on both urls is the following but i dunno what to make of the following code to get this working on all my urls, plz sumeone help me :

Code:

// selects keywords and description from table metakeys
// selects article Date/time from table stories

         global $prefix, $dbi, $dynkeys, $description, $date;
         $remote = getenv ("REMOTE_ADDR");
         $uri = getenv ("REQUEST_URI");
         //echo "remote: $remote,<br>\n"
         //."uri: $uri<br>\n";
if (eregi("article([0-9]{1,5}).html",$uri,$regs)){
            //debug
            //echo "<b>debug all true!</b><br><br>\n";
            //echo "regs1: $regs[1]<br>\n";
            $storyid = $regs[1];
            $result = sql_query("select keywords, description from $prefix"._metakeys." WHERE storyid='$storyid'", $dbi);
$result2 = sql_query("select time from $prefix"._stories." WHERE sid='$storyid'", $dbi);
                 while(list($date) = sql_fetch_row($result2, $dbi))


I hope someone can help me with this, thanks allready to all who reply ! Wink Arrow
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Wed Aug 16, 2006 6:41 am Reply with quote Back to top

I have moved your post to the appropriate forum.

Actually, you may be able to adjust this code to do this. Maybe something more like this:

Code:

if (eregi("article[0-9]*.html",$uri)) {
  eregi("article([0-9]*).html",$uri,$regs);
  <<continue with the code>>
} elseif (eregi("article-[0-9]*-[0-9]*-[0-9]*-[0-9]*.html",$uri)) {
   eregi("article-([0-9]*)-[0-9]*-[0-9]*-[0-9]*.html",$uri,$regs);
  <<continue with the code>>
}


There may be a more efficient way of coding this, but I prefer simplicity. I have not tested this, but the concept, I believe, is sound. If you find additional "taps" which cause you an issue, you can simply add additional "elseif" statements.
View user's profile Send private message Visit poster's website
pacslim
New Member
New Member


Joined: Jun 24, 2006
Posts: 7

PostPosted: Wed Aug 16, 2006 1:35 pm Reply with quote Back to top

I treid that but i couldnt get it to work probarbly because i placed the elsif wrong, i'm not so profesional coder as u, Thanks for all the help up until now and thnzx for moving this thread, ya'll allways professional helpers Arrow
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7487
Location: Arizona

PostPosted: Thu Aug 17, 2006 6:02 am Reply with quote Back to top

Feel free to post that section of the code that you modified so we can take a look.
View user's profile Send private message Visit poster's website
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum