Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
pacslim
New Member
New Member



Joined: Jun 24, 2006
Posts: 7

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

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! ]

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! ]

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: 9457
Location: Arizona

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

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
pacslim







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

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
 
montego







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

Feel free to post that section of the code that you modified so we can take a look.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©