Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.217
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 s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
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 - Wb blocks manager
Wb blocks manager

5 Replies / 1558 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


THoTH
Reputation: 14 Add RepSubtract Rep
Local time: 9:12 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 03 Jul 2009
Posts: 7
Points: 294 

Post Wb blocks manager Posted: Fri May 30, 2008 9:34 am

Shop Purchases:
Topsites Manager V1 PhpNuke Module

Hi guys

Wondering if you can help with WB Blocks Manager http://www.clan-themes.co.uk/club-download-file-604-wbblocks-manager-74.html

I'm really keen to get it working on my site (raven latest) but after the modification to mainfile it just removes all blocks everywhere, even after I define one for the News module which is in home, it still shows no blocks. The suggested change to mainfile doesn't look anything like the code in my mainfile, and I suspect that is the problem.

Can anyone help ?
 

 
View user's profileSend private message Reply with quote

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

Site Admin
Site Admin

1.17 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Wb blocks manager Posted: Fri May 30, 2008 11:13 am

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

Give me the code suggested and the mainfile code it replaces.
 

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

THoTH
Reputation: 14 Add RepSubtract Rep
Local time: 9:12 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 03 Jul 2009
Posts: 7
Points: 294 

Post Wb blocks manager Posted: Fri May 30, 2008 12:21 pm

Shop Purchases:
Topsites Manager V1 PhpNuke Module

WoW quick response, thanks !

Here is the code included with the package.

Code:
  Search for  "function blocks($side) in your mainfile.php file.
  Insert the "$name" inside  "global" of your function blocks($side)
  for example: global $storynum, $prefix, $multilingual, $currentlang, $db, $admin, $user, $name;
 
  Search for $side = $pos; in the function blocks($side) file from the file mainfile.php
  Erase or hide the following lines helping yourself with
  forexample : // $sql = "SELECT bid, bkey, title, content, url, blockfile, view, expire, action, subscription FROM ".$prefix."_blocks WHERE bposition='$pos' AND active='1' $querylang ORDER BY weight ASC";

  Insert the following lines:
    if (isset($name)) {
$sql = "SELECT b.bid, b.bkey, b.title, b.content, b.url, b.blockfile, b.view, b.expire, b.action, b.subscription FROM ".$prefix."_blocks b, ".$prefix."_blocks_manager m WHERE b.bid=m.bid AND m.title='$name' AND m.bposition='$pos' AND b.active='1' $querylang ORDER BY m.weight ASC";
} else {
$sql = "SELECT b.bid, b.bkey, b.title, b.content, b.url, b.blockfile, b.view, b.expire, b.action, b.subscription FROM ".$prefix."_blocks b WHERE b.bposition='$pos' AND b.active='1' $querylang ORDER BY b.weight ASC";
}


Here is the code from the mainfile

Code:
    $side = $pos;
    $result = $db->sql_query('SELECT * FROM '.$prefix.'_blocks WHERE bposition=\''.$pos.'\' AND active=1 '.$querylang.' ORDER BY weight ASC');
    while($row = $db->sql_fetchrow($result)) {
        $groups = $row['groups'];
        $bid = intval($row['bid']);
        $title = stripslashes(check_html($row['title'], 'nohtml'));
        $content = stripslashes($row['content']);
        $url = stripslashes($row['url']);
        $blockfile = $row['blockfile'];
        $view = intval($row['view']);
        $expire = intval($row['expire']);
        $action = $row['action'];
        $action = substr("$action", 0,1);
        $now = time();
        $sub = intval($row['subscription']);
        if ($sub == 0 OR ($sub == 1 AND !paid())) {
            if ($expire != 0 AND $expire <= $now) {
                if ($action == 'd') {
                    $db->sql_query('UPDATE '.$prefix.'_blocks SET active=0, expire=\'0\' WHERE bid=\''.$bid.'\'');
                    return;
                } elseif ($action == 'r') {
                    $db->sql_query('DELETE FROM '.$prefix.'_blocks WHERE bid=\''.$bid.'\'');
                    return;
                }
            }
            if ($row['bkey'] == 'admin') {
                    adminblock();
            } elseif ($row['bkey'] == 'userbox') {
                    userblock();
            } elseif (empty($row['bkey'])) {
                if ($view == 0) {
                    render_blocks($side, $blockfile, $title, $content, $bid, $url);
                } elseif ($view == 1 AND is_user($user) || is_admin($admin)) {
                    render_blocks($side, $blockfile, $title, $content, $bid, $url);
                } elseif ($view == 2 AND is_admin($admin)) {
                    render_blocks($side, $blockfile, $title, $content, $bid, $url);
                } elseif ($view == 3 AND !is_user($user) || is_admin($admin)) {
                    render_blocks($side, $blockfile, $title, $content, $bid, $url);
                } elseif ($view > 3 AND in_groups($groups)) {
                    render_blocks($side, $blockfile, $title, $content, $bid, $url);
                }
            }
        }
    }
}
 

 
View user's profileSend private message Reply with quote


THoTH
Reputation: 14 Add RepSubtract Rep
Local time: 9:12 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 03 Jul 2009
Posts: 7
Points: 294 

Post Wb blocks manager Posted: Tue Jun 17, 2008 8:20 pm

Shop Purchases:
Topsites Manager V1 PhpNuke Module

BUMP?
 

 
View user's profileSend private message Reply with quote

Bayler
Reputation: 856.9 Add RepSubtract Rep
votes: 10
Local time: 4:12 AM

usa.gif

Fire In The Hole
Fire In The Hole

0.16 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 08 May 2009
Posts: 275
Points: 2038 

Post Re: Wb blocks manager Posted: Tue Jun 17, 2008 11:13 pm

THoTH wrote:
BUMP?


Patience Bro....Support will be provided as soon as it can...bumping actually causes a reverse effect...one may consider it rude and decide to 'Wait' to provide you with an answer!
 

You will not recieve help from me if i have to go digging for your CMS information and version, If i have to take the time to play 21 questions, then you can take the time to google! No Copyright, no support either!  
View user's profileSend private messageMSN Messenger Reply with quote

THoTH
Reputation: 14 Add RepSubtract Rep
Local time: 9:12 AM


Noob
Noob

0.00 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 03 Jul 2009
Posts: 7
Points: 294 

Post Wb blocks manager Posted: Wed Jun 18, 2008 8:39 am

Shop Purchases:
Topsites Manager V1 PhpNuke Module

If it had been only a few hours, a day, or even a week perhaps it could be considered rude, as it is, it's rapidly approaching a month now, and to all intents and purposes, looked like it had been forgotten, given that the initial response was so rapid.

Maybe if I'd repeatedly bumped this, that too could've been considered rude, but I haven't.

In my neck of the woods, quickly offering help then not responding could be taken as rude also. I have been patient, and not hassled anyone over it, even by bumping, I was just trying politely set a reminder, hence the question mark at the end.

When I visit forums and see support threads left without answer, it is frustrating, which it no doubt is to anyone with Ravens nuke wanting to get this application working, then finding this thread.

Don't turn this round by making me sound unreasonable,I fully understand people are busy, and that this isn't paid technical support, which is why I have waited patiently for so long.
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
5 Replies / 1558 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