Implimenting izireps to a normal nuke module

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Implimenting izireps to a normal nuke module
chusrubi2
CZ Newbie
 Codezwiz Site Donator
chusrubi2 has been a member for over 13 year's 13 Year Member
Status: Offline
Joined: Feb 02, 2011
0.00 posts per day
Posts: 13
Points: 545
   
Well, ive some doubts that i think u cud help me, lets start:
1.-I im trying to install --> [ Register or login to view links on this board.] <-- (not a php-nuke module), into phpnuke, but it doesnt work.
This is what i did:

Renamed reps.php ---> index.php .
Added into index.php


<?php
#### Modulito sencillito xDDD 
session_start();
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
 
include("header.php");


PHP STUFF


CloseTable();
include("footer.php");
?>

Configured correctly both configs.

Added tables to db(setup.php).

Then i go to the module link: [ Register or login to view links on this board. ]

But it doesnt work.

Could some1 help right here?

Im rly desperate coz ive tried all, and i works perfectly installed out of php nuke but not inside as a module. Do i need to edit more or add more? I thinnk that the problem is in show_replays.php but im not sure. Please test it, its rly important for me to add this to my php nuke webpage.

----------------------




2.-Im trying to hide right blocks in comments.php coz they appear (comments) under right blocks.
What i did: deleted require_once("mainfile.php"); but blocks still there.

How cud i get up the comments to be centered between left and right blocks, or easier, hide right blocks?
(obviously there is no index=0 /index=1)
------------------------
3.-Ive edited the user profile edit changing "Fake email account (optional)" to "Main battle net account", then i use the variable $email to show that account etc, all good. But, i want to add it forced in the new_user (add to db). Ive added this line in new_user function
      ."<tr><td>Battle.net main account:</td><td><input type=\"text\" name=\"femail\" size=\"30\" maxlength=\"255\"></td></tr>\n"
, but obviously it doesnt save in DB. How can i add it?

-------------------------
4.-Ive noticed that new users have by default comments/forum time GMT+10. I wanna change it to GMT+1 (i know they can change manually in his profile but its a little annoying).
Also, ive changed correctly the server time to the forums, GMT+1, but i cant in the phpnuke, all blocks user as server time GMT, and i dont have any option to change it (also ive been searching in the db).

------------------------
5.-In each comment, in news, it appears an awful date&time system (on Friday, January 28 @ 01:48:24 UTC) ($datetime). How can i change this format to a customized one?
-----

6.-My header logo changes on each user resolution, so searching in your forums i found what i wanted but it doesnt work correctly. Here is the code:
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "   <tr>\n";
echo "      <td>\n";

echo "      <td>\n";
          $mod_logo = "themes/WoW_Horde/images/hd/BANNERv7.png";
        echo ("<s cript>\n");
        echo ("var swidth='0';\n");
        echo ("swidth=screen.width\n");
        echo ("if ((swidth<=640)&&(swidth<1024)){\n");
        echo ("document.write('<img src=$mod_logo width=500 border=0>')");
        echo ("}\n");
        echo ("else\n");
        echo ("if ((swidth>1024)&&(swidth<1336)){\n");
        echo ("document.write('<img src=$mod_logo width=1300 border=0>')");
        echo ("}\n");
        echo ("else\n");
        echo ("if (swidth>=1366){\n");
        echo ("document.write('<img src=$mod_logo width=1350 border=0>')");
        echo ("}\n");
        echo ("</s cript>\n");
echo "      <td>\n";

echo "   </tr>\n";
echo "</table>\n";


When the resolution is >=1366 it works, but when is lower, there is no banner visible. Why? (in the code paste ive written a space in "s cript" to avoid the your forum system to write whole word).


I've classified them by priority order (1st point is rly urgent). Thanks, at least, for trying to read me XD


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
1.) You will have to make some changes to the files for it to work. There is a common variable which I believe is causing the issue.

In reps.php find this line:


$file = (isset($_GET['file'])) ? $_GET['file'] : 'show_replays';


Change it to:


$op = (isset($_GET['op'])) ? $_GET['op'] : 'show_replays';


Then open every file (in the izireps) and search for:


file=


Change that to:


op=


2.) Open modules/News/article.php and add:


$index = 1;


3.) You have to also add it into the new user save function where the data is written to the database.

4.) First run the below in phpmyadmin, then you will have to edit the file where the profile is saved and remove the part that updates it.


UPDATE `nuke_users` SET `user_timezone` = '1.00';


5.) You should have a setting for Local Time Format in the man admin configuration page. Currently it is set to en_US.

6.) Try this one:


echo "<script type=\"text/javascript\">
var swidth = screen.width;
if (swidth<1024){
   document.write('<img src=$mod_logo width=500 border=0>');
} else if (swidth<1336) {
   document.write('<img src=$mod_logo width=1300 border=0>');
} else if (swidth>=1336) {
   document.write('<img src=$mod_logo width=1350 border=0>');
}
</script>\n";




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Implimenting izireps to a normal nuke module
chusrubi2
CZ Newbie
 Codezwiz Site Donator
chusrubi2 has been a member for over 13 year's 13 Year Member
Status: Offline
Joined: Feb 02, 2011
0.00 posts per day
Posts: 13
Points: 545
   
You cant imagine how i thank you to answer me, ive posted this in other forums and all are dead.
Lets start:

1.-Still not working, could u try in your own server? If not, i could let u my ftp info, this is rly important to me, it allows to open my website.

2.-Didnt work, i did it in article.php, didnt work, then i did in comments.php, nothing.

3.-Where?.

4.-Done, ill register new user in a few minutes to test it.

5.-Changed to en_GB, nothing changed. (edit: i found this: [ Register or login to view links on this board. ] ill test it tonight)(edit2#:the change in mainfile.php doesnt work :'( ).

6.-THIS AWESOME WORKS.


RLY, u cant imagine my thanks.



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Yes you can PM me your FTP info.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

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 cannot download files in this forum