Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
nemesis14
New Member
New Member


Joined: Apr 09, 2008
Posts: 21

PostPosted: Fri May 16, 2008 4:37 pm Reply with quote

I have been trying to add another option for sticky/announcement called raid.

I figured if I searched for all the code for sticky, and copied it and pasted under and changed the new copied text from sticky to raid it would be a simple addon.

Well, I am almost there... but now I am stuck. For some reason, when I create a topic, its automatically on the radio button raid, when I post it posts the new topic, but the image that shows up is the same as the normal image. I am pretty sure I have changed all the files needed for this addon. I will list:


html/includes:
auth.php
topic_review.php
constants.php

html/modules/forums:
modcp.php
posting.php
search.php
viewforum.php
viewtopic.php

html/modules/forums/language:
lang_admin.php
lang_faq.php
lang_main.php

html/modules/forum/admin:
admin_forumaugh.php
admin_forums.php
admin_ug_auth.php

html/modules/forum/templates:
viewforum_body
template.cfg

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

Sofar, the only successful thing I can do to make the raid is to make them as an announcemnt, then change the includes file from:

// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE',3);
define('POST_RAID', 4);


to

// Topic types
define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_RAID', 2);
define('POST_ANNOUNCE', 3);
define('POST_GLOBAL_ANNOUNCE', 4);

Which then makes the topic show the raid image, and raid:..... but when I switch to announce, it shows the announce image, and announce: However, when I go to switch back to raid, it turns into a normal post without the raid image and raid:


I am probably missing 1 file, if I find the problem I will post
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri May 16, 2008 7:43 pm Reply with quote

Perhaps we need to see some of the code you've added to do this

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
nemesis14
PostPosted: Sat May 17, 2008 2:59 pm Reply with quote

NP, heres the files in the exact location as they would be on the server:

Only registered users can see links on this board! Get registered or login!

Pretty much all the code can be found if you search for the word raid. Should be right after the sticky code.

Also, I forgot to mention, I also did add the code for mysql:

Code:



CREATE TABLE `nuke_bbauth_access` (
  `auth_raid` tinyint(1) NOT NULL default '0',

CREATE TABLE `nuke_bbforums` (
  `auth_raid` tinyint(2) NOT NULL default '0',



Just also created the table copying the sticky and announce formats.
 
nemesis14
PostPosted: Sat May 17, 2008 3:11 pm Reply with quote

The code is already on the websites forums, although, you dont have to be moderator to see what is happening with the rift announcement radio button as anyone can do this without being a moderator...

I must have missed a file, but cant find it
 
nemesis14
PostPosted: Sat May 17, 2008 3:42 pm Reply with quote

in admin_forumauth.php I figured out what I did wrong here:
Code:


//
// Start program - define vars
//
//                View      Read      Post      Reply     Edit     Delete    Sticky   Raid   Announce    Vote      Poll
$simple_auth_ary = array(
        0  => array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
        1  => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
        2  => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
        3  => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL),
        4  => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL),
        5  => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD),
        6  => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD),
);


I didnt add auth_mod for raid as well as in constants.php.

Code:



define('AUTH_VIEW', 1);
define('AUTH_READ', 2);
define('AUTH_POST', 3);
define('AUTH_REPLY', 4);
define('AUTH_EDIT', 5);
define('AUTH_DELETE', 6);
define('AUTH_RAID', 7);
define('AUTH_STICKY', 8);
define('AUTH_POLLCREATE', 9);
define('AUTH_VOTE', 10);
define('AUTH_ATTACH', 11);
define('AUTH_ANNOUNCE', 12);



So for the 1-12 it has to line up with the top, so I will adjust this... will keep looking..

To make it easy, am going to redo this, adding raid as number 12, just to make it easier.
 
nemesis14
PostPosted: Sat May 17, 2008 3:52 pm Reply with quote

although I have changed and updated the .zip file with the new changes, i am still getting the same results. Registered users can post a topic under normal and raid, but raid is still selected as default.

When posted, even if raid is selected... its the same as if it was posted as a normal topic.
 
nemesis14
PostPosted: Sat May 17, 2008 5:22 pm Reply with quote

I have also found another problem...

When in forum adminstration, you cannot use the navigation area as it comes up as an error.

I have switched all the defaults back onto the site. Just seems like its a bigger job than what it should have been. And with experience in html, but no training in .php... think im pretty screwed. lol

If you guys want to look into it thats np... but I might just change announcemnt in language file to raid, and just use the raid image for announcement.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©