Clan Adverts

DFG-GAMING

www.clan-themes.co.uk :: View topic - Wb blocks manager

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Wb blocks manager

5 Replies / 710 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » Modules

View previous topic :: View next topic


THoTH
Reputation: 1
Local time: 10:10 PM


Status: Offline
0.02 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 29 Sep 2008
Posts: 4
Points: 247 

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: 1804.8
votes: 10
Local time: 5:10 PM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.74 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 09 Jan 2009
Posts: 2161
Points: 17235 

View user's profileSend private message Reply with quote

THoTH
Reputation: 1
Local time: 10:10 PM


Status: Offline
0.02 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 29 Sep 2008
Posts: 4
Points: 247 

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: 1
Local time: 10:11 PM


Status: Offline
0.02 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 29 Sep 2008
Posts: 4
Points: 247 

View user's profileSend private message Reply with quote

Bayler
Reputation: 752.1
votes: 9
Local time: 5:11 PM

usa.gif

Status: Offline
0.64 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 17 Dec 2008
Posts: 278
Points: 6846 

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: 1
Local time: 10:11 PM


Status: Offline
0.02 posts per day
Medals: 0

Joined: Apr 22, 2008
Last Visit: 29 Sep 2008
Posts: 4
Points: 247 

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.clan-themes.co.uk Forum Index » Modules


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