Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
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 - Creating a block...
Creating a block...

7 Replies / 724 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Hacks n Mods

View previous topic :: View next topic


Bluud
Reputation: 21.6 Add RepSubtract Rep
Local time: 1:15 PM
Location: Oklahoma
blank.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Aug 04, 2008
Last Visit: 31 Jan 2010
Posts: 33
Points: 554 

Post Creating a block... Posted: Tue Jan 26, 2010 3:43 pm

I have searched far and wide for a tutorial on manually creating a block so I can stream original media (audio and video). I can go one of two ways. I can manually create a block and insert it into the blocks folder and then manually update it every time I want to add new media or I can figure out how to make the block along with something to give admin options to add based on file type to write updated info to an xml file to keep the list of media. The later is what I prefer, although, at this point either will do. Is there anyone that can give me a step by step and a why as to what code goes where. I really want to understand this as there are alot of ideas I have for blocks and modules and a little too much time on my hands lately so that I can get em made, heh. Anyways, answer here or pm me and maybe we can talk a little more in depth through messenger or something.
 

 
View user's profileSend private messageYahoo Messenger Reply with quote

DreAdeDcoRpSE
Reputation: 2221.3 Add RepSubtract Rep
votes: 28
Local time: 2:15 PM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 09 Feb 2012
Posts: 2457
Points: 128789 

Post Re: Creating a block... Posted: Tue Jan 26, 2010 5:00 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

As for creating a block, I have a video tutorial in the tutorial section called Block break Down, found here.

http://www.clanthemes.com/tutorials-view-173-block-break-down.html

which was moved but still has the link in side it to

http://www.phpnukedownloads.com/phpnuke-block-break-down-video-tutorial/

In there I go over how to make a block. Only thing is that you don't want to use echo=, only $content = in blocks. But as for your question on how to make it editable in the ACP where you can alter links, that's a bit more work for you have to create a table into the DB, then you have to make it pull the info from the DB. So there its not just a matter of someone showing you that, its something you can research your self learning how databases work and php working with databases. You can learn more about that at various sites. One that I recommend is http://www.w3schools.com/default.asp they go over all kinds of things in there like HTML, PHP, CSS, ect...
 

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

scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 7:15 PM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Creating a block... Posted: Wed Jan 27, 2010 12:14 am

Shop Purchases:
Battlefield 2 Splash Screen

I have follow your tut, it is very good and helpful i shall keep practicing. I how ever do have a problem i have doe the same code as you except i have changed my sentences and made them longer and more to wards my clan. Now im using ravennuke 2.3 and i have try both

Code:
"BLOCK_FILE"


and

Code:
"NUKE_FILE"


But keep getting the same problem. The block seems to nock off my right bar and i cant stop it?

www.armour-combat-elite.co.cc

Please Help Dreadedcorpse

Thanks and Good Job On Tut

Scope
 

 
View user's profileSend private messageMSN Messenger Reply with quote


DreAdeDcoRpSE
Reputation: 2221.3 Add RepSubtract Rep
votes: 28
Local time: 2:15 PM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 09 Feb 2012
Posts: 2457
Points: 128789 

Post Re: Creating a block... Posted: Wed Jan 27, 2010 12:30 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

paste your block in here, well the code so I can get a better look at what your doing.

As for openings for the block file. Here is a little compensation of openings I have gathers and separated them to show what works on what.

##############################################################################################
############################ Nuke/RavenNuke: ################################
##############################################################################################


if (!defined('BLOCK_FILE') ) {
Header("location: ../index.php");
die();
}

_______________________________________________________________


if ( !defined('BLOCK_FILE') ) {
die("Illegal Block File Access");
}




###########################################################################################
############################ Nuke Evolution: #############################
###########################################################################################


if(!defined('NUKE_EVO')) exit;

_______________________________________________________________

if (!defined('BLOCK_FILE') ) {
Header("location: ../index.php");
die();
}


_______________________________________________________________


if ( !defined('BLOCK_FILE') ) {
die("Illegal Block File Access");
}

_______________________________________________________________
 

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

scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 7:15 PM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Creating a block... Posted: Wed Jan 27, 2010 12:43 am

Shop Purchases:
Battlefield 2 Splash Screen

Code:
<?php
if (!dcfincd('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
$d=day("D");
if ($d=="Fri")
 $content = "<center><H2>Why not pay a vist to our teamspeak, you can connect below!</H2></center><br></br>";
elseif ($d=="sat")
 $content .= "<center><H2>Register now and become a enlisted member by filling out our app!</H2></center><br></br>";
elseif ($d=="Sun")
 $content .= "<center><H2>Keep up to date on the latest inside [ACE] by registering and visting our forums!</H2></center><br></br>";
elseif ($d=="Mon")
 $content = "<center><H2>Why not pay a vist to our teamspeak, you can connect below!</H2></center><br></br>";
elseif ($d=="Tue")
 $content .= "<center><H2>Register now and become a enlisted member by filling out our app!</H2></center><br></br>";
elseif ($d=="Wed")
 $content .= "<center><H2>Keep up to date on the latest inside [ACE] by registering and visting our forums!</H2></center><br></br>";
elseif ($d=="Thur")
 $content .= "<center><H2>Register now and become a enlisted member by filling out our app!</H2></center><br></br>";



?>
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 7:15 PM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Re: Creating a block... Posted: Wed Jan 27, 2010 1:11 am

Shop Purchases:
Call of Duty 4 SAS Theme

Code:
<?php
if (!defined('BLOCK_FILE') ) {
Header("location: ../index.php");
die();
}
$d=day("D");
if ($d=="Fri")
 $content = "<center><H2>Why not pay a vist to our teamspeak, you can connect below!</H2></center><br></br>";
elseif ($d=="sat")
 $content .= "<center><H2>Register now and become a enlisted member by filling out our app!</H2></center><br></br>";
elseif ($d=="Sun")
 $content .= "<center><H2>Keep up to date on the latest inside [ACE] by registering and visting our forums!</H2></center><br></br>";
elseif ($d=="Mon")
 $content = "<center><H2>Why not pay a vist to our teamspeak, you can connect below!</H2></center><br></br>";
elseif ($d=="Tue")
 $content .= "<center><H2>Register now and become a enlisted member by filling out our app!</H2></center><br></br>";
elseif ($d=="Wed")
 $content .= "<center><H2>Keep up to date on the latest inside [ACE] by registering and visting our forums!</H2></center><br></br>";
elseif ($d=="Thur")
 $content .= "<center><H2>Register now and become a enlisted member by filling out our app!</H2></center><br></br>";
?>


Try that i didnt look at it all just the first line you had a spelling error
 

WebSite > http://www.phpnukeblog.info Xfire > DDsnype MSN > ritchietaylor@live.co.uk Email > admin@phpnukeblog.info  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote


scope1234
Reputation: 80.7 Add RepSubtract Rep
votes: 2
Local time: 7:15 PM
Location: United Kingdom
uk.gif

Stand-by Stand-by
Stand-by Stand-by

0.58 posts per day
Medals: 0

Joined: Nov 06, 2009
Last Visit: 02 Jan 2012
Posts: 482
Points: 35419 

Post Re: Creating a block... Posted: Wed Jan 27, 2010 3:07 am

Shop Purchases:
Battlefield 2 Splash Screen

who ever gave me rep again thanks
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Bluud
Reputation: 21.6 Add RepSubtract Rep
Local time: 1:15 PM
Location: Oklahoma
blank.gif

Spawn Killer
Spawn Killer

0.03 posts per day
Medals: 0

Joined: Aug 04, 2008
Last Visit: 31 Jan 2010
Posts: 33
Points: 554 

Post Creating a block... Posted: Wed Jan 27, 2010 5:09 am

Well, I have a little bit of experience making DB strings manually. I think I can manage it with a little research. Does W3schools also teach anything on how to create the AP interface to interact with the DB entries? I mean, it basically works as it calls the DB to confirm that the user has permissions to view the content and then allows you to add a file name that it then xfers over to the xml list(the filename info) that is called upon by the index php file.

At very least I guess I can manually make a block that calls the content from an xml file and just set the block to only be viewed by registered members. Will just have to do something to hide the filepath for the media so that people cant directly link to it. Not that I care if someone steals the videos as they will be ingame guild related stuff. Just will be nice to keep it from being needlessly streamed from someone elses site or something.
 

 
View user's profileSend private messageYahoo Messenger Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Hacks n Mods


 
7 Replies / 724 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