| Pages: 1 2 |
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 02:47 |
|
|
[In Progress] Professor Status Addon
I'm on step 2 in the hack and it says:
| Quote: | Find Code: (If Users Viewing Page: Rank Icon Version Is Installed)
----------------------------------------------------------------------------------------------------
case 'Super Moderator':
$vricon = "<img src=\"$imgdir/online_supmod.gif\" border=\"0\" alt=\"$lang[vranksupmod]\"title=\"$lang[vranksupmod]\" />";
$vpre = "<em><strong>";
$vsuf = "</strong></em>";
break;
----------------------------------------------------------------------------------------------------
Add Code Below: (If Users Viewing Page: Rank Icon Version Is Installed)
----------------------------------------------------------------------------------------------------
case 'Professor':
$vricon = "<img src=\"$imgdir/online_professor.gif\" border=\"0\" alt=\"$lang[professor]\" title=\"$lang[professor]\"
/>";
$vpre = "<strong><u>";
$vsuf = "</u></strong>";
break;
----------------------------------------------------------------------------------------------------
Find Code: (If Users Viewing Page: Text Version Is Installed)
----------------------------------------------------------------------------------------------------
case 'Super Moderator':
$vpre = "<em><strong>";
$vsuf = "</strong></em>";
break;
----------------------------------------------------------------------------------------------------
Add Code Below: (If Users Viewing Page: Text Version Is Installed)
----------------------------------------------------------------------------------------------------
case 'Professor':
$vpre = "<strong><u>";
$vsuf = "</u></strong>";
break;
---------------------------------------------------------------------------------------------------- |
I don't think i have to do that part, but i could be wrong and have to do one of them. But I dont know what
(If Users Viewing Page: Rank Icon Version Is Installed)
AND
(If Users Viewing Page: Text Version Is Installed)
Means. So Do I have to add those? |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 02:48 |
|
|
If you don't have them, don't do them
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 02:52 |
|
|
Also the first step of the hack says:
| Quote: | ====================================================================================================
STEP 1: Goto Administration Panel --> Insert Raw SQL.
Upload SQL.txt and click Submit Changes.
==================================================================================================== |
And the raw sql would be:
| Code: | | ('Professor', -1, '', 5, 'yes', '')' |
and I put that in the raw sql like it told me to, and after I saved it, it said this
| Quote: | | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to
use near 'xmb_ranks` VALUES ('Professor', -1, '', 5, 'yes', '')' at line 1 |
|
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 02:57 |
|
|
Um...what was the entire code, not just the values.
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 03:03 |
|
|
its the Additional Status: Professor.
The whole code, as in put the whole code on?
Long code Removed by: Adam |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 03:05 |
|
|
No...I meant the SQL Code..............ALTER TABLE...what? What was the rest?
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 03:13 |
|
|
the whole raw sql code was:
`$table_ranks` VALUES ('Professor', -1, '', 5, 'yes', '');
and the driections for it said:
| Quote: |
STEP 1: Goto Administration Panel --> Insert Raw SQL.
Upload SQL.txt and click Submit Changes |
and it came up with this after:
| Quote: | | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to
use near 'xmb_ranks` VALUES ('Professor', -1, '', 5, 'yes', '')' at line 1 |
|
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 03:17 |
|
|
Copy and paste this...
INSERT INTO `$table_ranks` VALUES ('Professor', '-1', '', '5', 'yes', '');
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 03:26 |
|
|
Ok. it works now.
Also now, on step 5:
| Quote: | STEP 5: Edit File 'misc.php'
Find Code: (On 2 Occasions)
----------------------------------------------------------------------------------------------------
$restrict .= " f.private != '2' AND";
----------------------------------------------------------------------------------------------------
Replace Code With: (On 2 Occasions)
----------------------------------------------------------------------------------------------------
case 'Professor':
$restrict .= " f.private != '2' AND";
---------------------------------------------------------------------------------------------------- |
I cant find that code in the misc.php file, and it says (On 2 Occasions), so does that mean I have to do this part or not? |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 03:30 |
|
|
Nope, you have to do this part 
Look for similar codes such as $restrict = or $restrict .=......or f.private etc.
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 03:45 |
|
|
you wouldn't happen to know where in the misc.php file it is? I've tried looking for it with different codes, and all i can find it, $restrict[] =
'private = 1';, and f.private, but i cant find $restrict .= " f.private != '2' AND"; |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 03:55 |
|
|
K...find case 'Super Moderator': under it should be a $restrict variable...Depending what you want your "Professor" to have access to...you will
need to change this, first find it though
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 03:57 |
|
|
i found,
| Quote: | case 'Super Moderator':
$restrict[] = '(private = 1 OR private = 3)';
$restrict[] = "(if ((private=1 AND userlist != ''), if ((userlist REGEXP '(^|(,))([:space:])*$modXmbuser([:space:])*((,)|$)'), 1, 0),
1))";
break; |
but it says im supposed to find $restrict .= " f.private != '2' AND"; and replace it with case 'Professor': $restrict .= " f.private != '2'
AND"; |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 04:00 |
|
|
That's it 
Now...do you want your professor to act as a Super Moderator? Moderator? Member?...etc?
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 04:02 |
|
|
so what do I replace on it?
| Quote: | case 'Super Moderator':
$restrict[] = '(private = 1 OR private = 3)';
$restrict[] = "(if ((private=1 AND userlist != ''), if ((userlist REGEXP '(^|(,))([:space:])*$modXmbuser([:space:])*((,)|$)'), 1, 0), 1))";
break; |
Do I replace all of that with 'Professor': $restrict .= " f.private != '2' AND";
or do i just replace $restrict[] = '(private = 1 OR private = 3)'; with it? |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 04:11 |
|
|
...um...what permissions did you want? o_O
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 04:13 |
|
|
i want my professors to act as moderators. I dont want them to have to much power, but still have powers higher then the members. |
|
|
Train
Premium Member
   
Posts: 181
Registered: 24/9/2005
Location: In Your Dreams
Member Is Offline
Mood: Sharpshooter
|
posted on 28/8/2006 at 04:15 |
|
|
Then find case 'Moderators': with the $restrict nearby, and add case 'Professor': above that
|
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 04:56 |
|
|
ok. i edited the cp2.php and now im gettin this error:
| Quote: | Parse error: syntax error, unexpected T_STRING in /home3/jess5038/public_html/forum/cp2.php on line 2033
|
And heres my cp2.php file.
Attachment: cp2.php (97.67 KiB)
This file has been downloaded 164 times
|
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 28/8/2006 at 10:17 |
|
|
Try this cp2.php file:
Attachment: cp2.php (97.65 KiB)
This file has been downloaded 118 times
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 28/8/2006 at 17:34 |
|
|
I have updated this mod to 1.9.5.
Please download this version and install that over the current one. The 1.9.1 version, is only compatible with 1.9.1 & 1.9.2.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 17:57 |
|
|
Ok. Ill finish installing the 1.9.1, and upgrade it to 1.9.5. And I see what you mean by 1.9.1 doesnt work with 1.9.5, because its not showing up when
i try to make a member a professor.
Ok now the, 1.9.5 upgrade. Im only using wordpad now, so hopefully I wont have any problems, and if i do i know where to ask for help. |
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 18:18 |
|
|
Adam, how do i go about upgrading or adding the 1.9.5 professor? It doesnt have an install folder for professor, it has the other staff and members,
but not professor? |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 28/8/2006 at 18:23 |
|
|
It will have Install (Member).txt, Install (Moderator).txt, etc. etc.
All Install files will install the Professor status. The name in the brackets will define which power you wish to use. Save me writing multiple
hack's, so I include all possibilities in one.
There is no upgrade, you will need to replace any code you added whilst installing 1.9.1. If you have backup copies of your files, I would recommend
using them.
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
emma3838
Junior Member

Posts: 94
Registered: 12/2/2006
Location: Cayuta, New York
Member Is Offline
Mood: tired
|
posted on 28/8/2006 at 19:35 |
|
|
I edited the viewthread.php file, and after when i got this error:
| Quote: | | Parse error: syntax error, unexpected '=' in /home3/jess5038/public_html/forum/viewthread.php on line
532 |
heres also a copy of my viewthread.php file.
Attachment: viewthread.txt (27.13 KiB)
This file has been downloaded 133 times
|
|
|
| Pages: 1 2 |