Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Clanbase module/block
Clanbase module/block

7 Replies / 2771 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » General PhpNuke

View previous topic :: View next topic


Luke
Reputation: 463 Add RepSubtract Rep
Local time: 10:38 AM
Location: The Hague
netherlands.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 27, 2007
Last Visit: 31 Aug 2009
Posts: 15
Points: 362 

Post Clanbase module/block Posted: Wed Jun 20, 2007 2:38 pm

Hi guys,

I've got a problem with the Clanbase module/block.
I install/upload it and then in my admin I click the image and it returns " access denied "
so I cant add/edit a clan.

Any help would be appreciated!

Greets Luke Pint
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 4:38 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Posted: Thu Jun 21, 2007 3:54 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

If your talking about this download

http://www.clan-themes.co.uk/downloaddetails-9-159-clan-base-package-module.html#dldetails

Open admin/modules/clanwars.php

Find
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }


Change To
Code:
if ( !defined('ADMIN_FILE') )
{
   die("You can't access this file directly...");
}
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

Luke
Reputation: 463 Add RepSubtract Rep
Local time: 10:38 AM
Location: The Hague
netherlands.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 27, 2007
Last Visit: 31 Aug 2009
Posts: 15
Points: 362 

Post Posted: Thu Jun 21, 2007 6:55 pm

Yep, that is the download I'm talking about,

I tried your fix but it still gives me an " Access Denied"
(not an " you cant access this file directly..." )

But thank you for the help! I have no clue what to look for... Bad HAir Day
 

 
View user's profileSend private messageVisit poster's website Reply with quote


floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 4:38 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Posted: Thu Jun 21, 2007 7:08 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Ok no worries. I should of told you the rest of the tiles to change it in.

You need to make the same changes in
admin/case/case.clanwars.php
admin/links/links.clanwars.php

That should fix the problem.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Luke
Reputation: 463 Add RepSubtract Rep
Local time: 10:38 AM
Location: The Hague
netherlands.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 27, 2007
Last Visit: 31 Aug 2009
Posts: 15
Points: 362 

Post Posted: Thu Jun 28, 2007 3:06 pm

Thank you for that, will try this asap!

You guys rule! Pint

Luke
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Luke
Reputation: 463 Add RepSubtract Rep
Local time: 10:38 AM
Location: The Hague
netherlands.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 27, 2007
Last Visit: 31 Aug 2009
Posts: 15
Points: 362 

Post Clanbase module/block Posted: Sun Dec 30, 2007 6:59 pm

Allright got it working....

but... (hyjacking my own post)....

I'd like the upcoming wars block to show gmt+1 times,

Now i made the adjustments posted on clanbase.com but now the block isn't showing anything?

ive got:
Code:
/************************************************************************/
/* PHP-NUKE: Clanwars Package                                           */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2003 by Dick Snel                                      */
/* http://www.fvgaming.com                                           */
/* webmaster@fvgaming.com                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                            */
/* Enjoy!                        */
/************************************************************************/

// This script comes from www.clanbase.com, but edited for the block by me.

var count2 = 0;

function cbjsWarUpcoming_Start()
{
//   Do nothing !
}

function cbjsWarUpcoming_End()
{
//   Do nothing !
}

function cbjsWarUpcoming_Each(wid,clan,cid,lid,date,level1,level2,game,subgame,type)

function parseCBDate(str) {
var parts = str.split(' ');
var time = parts[1].split(':');
time[0]+0; //adjust hour here
document.write(parts[0]+" "+time[0]+":"+time[1]+":"+time[2]);
}
{
   if(count2 >= 1) // Edit to the number of upcoming wars you wish to be shown
      return;
   //   Note: the date is GMT
   //   Converting this date to localtime is left as an excercise for the reader :-)
   document.write("<center>War Vs <a href='http://www.clanbase.com/claninfo.php?cid="+cid+"' class='slink' target='bla'>"+clan+"</a><br>");
   document.write(" "+parseCBDate(str)+"");
   document.write(" <a href='http://www.clanbase.com/rating.php?lid="+lid+"' class='slink' target='bla'>"+game+"/"+subgame+"</a><br>");
   document.write(" <a href='http://www.clanbase.com/warinfo.php?wid="+wid+"' class='slink' target='bla'>More Details...</a></center>");
   count2++;
}


Does anyone know what I did wrong? Bad HAir Day

Thnx Luke
 

 
View user's profileSend private messageVisit poster's website Reply with quote


floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 4:38 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Clanbase module/block Posted: Sun Dec 30, 2007 8:08 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Hmm.. it looks like it should work. My only suggestion is to revert and try again. Maybe you could post your exact changes with the before and after.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Luke
Reputation: 463 Add RepSubtract Rep
Local time: 10:38 AM
Location: The Hague
netherlands.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 27, 2007
Last Visit: 31 Aug 2009
Posts: 15
Points: 362 

Post Clanbase module/block Posted: Mon Dec 31, 2007 4:41 pm

These are the changes proposed by Clanbase:

Code:
We've created a special page that outputs JavaScript function calls for all matches of a given clan. By including a special javascript tag and a set of custom javascript functions you can display the matches you played in your own format.
For more information see this sample.

If you wish to use a local time different from GMT you need to parse the date string, adjust the hour and replace "date" with "parseCBDate(date)".

function parseCBDate(str) {
var parts = str.split(' ');
var time = parts[1].split(':');
time[0]+?; //adjust hour here
document.write(parts[0]+" "+time[0]+":"+time[1]+":"+time[2]);
}

Just add x hours to time[0] and you got your local time.


This is the original file:

Code:
/************************************************************************/
/* PHP-NUKE: Clanwars Package                                           */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2003 by Dick Snel                                      */
/* http://www.fvgaming.com                                           */
/* webmaster@fvgaming.com                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                            */
/* Enjoy!                        */
/************************************************************************/

// This script comes from www.clanbase.com, but edited for the block by me.

var count2 = 0;

function cbjsWarUpcoming_Start()
{
//   Do nothing !
}

function cbjsWarUpcoming_End()
{
//   Do nothing !
}

function cbjsWarUpcoming_Each(wid,clan,cid,lid,date,level1,level2,game,subgame,type)
{
   if(count2 >= 1) // Edit to the number of upcoming wars you wish to be shown
      return;
   //   Note: the date is GMT
   //   Converting this date to localtime is left as an excercise for the reader :-)
   document.write("<center>War Vs <a href='http://www.clanbase.com/claninfo.php?cid="+cid+"' class='slink' target='bla'>"+clan+"</a><br>");
   document.write(" "+date+"");
   document.write(" <a href='http://www.clanbase.com/rating.php?lid="+lid+"' class='slink' target='bla'>"+game+"/"+subgame+"</a><br>");
   document.write(" <a href='http://www.clanbase.com/warinfo.php?wid="+wid+"' class='slink' target='bla'>More Details...</a></center>");
   count2++;
}


And the modified file: see my previous post.

Thnx for taking the time to help me!

Luke Rolling Eyes
 

 
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » General PhpNuke


 
7 Replies / 2771 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 can download files in this forum