vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Clan Hack (https://vborg.vbsupport.ru/showthread.php?t=51549)

The_Cyberdemon 04-14-2003 06:40 PM

Okay, here's what i plan to add in the final hack:[list=1][*]Multiple Clan Memberships[*]Pick Clan From List[*]Get admitted to a clan only on approval of leader (request with a special type of pm)[*]Clan Leader CP[*]Clan Level System (Clan Leader CP addon)[/list=1]
Anything else i should do?

sonic3d 04-14-2003 06:46 PM

thats all sounds good to me.

maybe for an addon: if u get out of a clan u lose money?

also i tried the addon and it doesn;t work. i get this as a link
http://www.rpgadvance.com/forum/java%20script:clanopen(1)

l8er
sonic

The_Cyberdemon 04-14-2003 07:59 PM

OOps, stupid mistake on my end.
It's
Code:

javascript:clanopen($post[clan])
Not
Code:

java script:clanopen($post[clan])
I accidentaly put a space in it. my mistake. sorry.

Edit: I actually posted it correctly, but something about the "[code]" tag make javascript become java script.here's what it should read:
Quote:

javascript:clanopen($post[clan])
Edit 2: It did the same thign? WTF? Here:
javascript:clanopen($post[clan])

Edit 3: OH MY GOD! it won't work. I'm reporting this. Just no that there is no space in "javascript"

DigitalDesktops 04-15-2003 12:04 AM

Quote:

Yesterday at 03:57 AM The_Cyberdemon said this in Post #21
NEW OPTIONAL ADDITION!

This changes the link in the postbit (it links to the clan page) to a javascript popup sorta like when you click the number of users that have installed a hack. Here's what to do:

STEP 1:

OPEN *FORUMROOT*/admin/functions.php

FIND:
Code:

// SHOW CLAN START
global $DB_site;
$clanfetch=$DB_site->query("SELECT * FROM clan WHERE clanid='$post[clan]'");
$clan=$DB_site->fetch_array($clanfetch);
if ($post[clan]==0 OR !$post[clan]) {
$showuserclan = "Not in Clan";
} else {
$showuserclan = "Clan:<br><a href=\"showclans.php?s=$session[sessionhash]&what=users&clanid='$post[clan]'\">$clan[title]</a>";
}
      // END SHOW CLAN

REPLACE THE ENTIRE THING WITH:
Code:

      // SHOW CLAN START
global $DB_site;
$clanfetch=$DB_site->query("SELECT * FROM clan WHERE clanid='$post[clan]'");
$clan=$DB_site->fetch_array($clanfetch);
if ($post[clan]==0 OR !$post[clan]) {
$showuserclan = "Not in Clan";
} else {
$showuserclan = "Clan:<br><a href=\"javascript:clanopen($post[clan])\">$clan[title]</a>";
}
      // END SHOW CLAN

STEP 2:

Open *FORUMROOT*/misc.php

FIND:
Code:

?>
ADD RIGHT ABOVE THAT:
Code:

// ############################### start users ###############################
if ($action=="clanusers") {
        $templatesused = "clanusers,clanusersbit";
        include("./global.php");
       
        $clanusers = '';
               
        $users = $DB_site->query("SELECT * FROM user WHERE clan='$clanid'");
$usertotal=$DB_site->query("SELECT COUNT(*) AS total FROM user WHERE clan=$clanid");
while ($clanusers=$DB_site->fetch_array($users)) {
if (($counter++ % 2) != 0) {
                                $backcolor="#13486D";
                                $bgclass="alt1";
                        } else {
                                $backcolor = "#1C5780";
                                $bgclass="alt2";
                        }

eval("\$clanuserlist .= \"".gettemplate("clanusersbit")."\";");
}
while ($totalusers = $DB_site->fetch_array($usertotal)) {
$allusertotal += $totalusers[total];
$allusertotal = number_format($allusertotal);
eval("dooutput(\"".gettemplate("clanusers")."\");");
}
}

FINAL STEP:

ENTER YOUR ADMIN CP, GO INTO THE STYLE YOU WILL HAVE THIS IN, THEN GO TO THE "HEAD INSERT" TEXT FIELD.

FIND:
Code:

.sf {
        FONT-FAMILY: verdana, arial, helvetica, sans-serif;
        FONT-SIZE: 10px;
}

</style>

ADD BELOW:
Code:

<script language="javascript" type="text/javascript">
<!--
function clanopen(clanid) {
        window.open("misc.php?s=$session[sessionhash]&action=clanusers&clanid="+clanid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=yes,width=200,height=275,resizeable=no,status=no")


}
// -->
</script>

Wow, wasn't that easy :banana:

THere's a demo HERE
Click on the clan name (liver)

in misc.php it says:

PHP Code:

    $templatesused "clanusers,clanusersbit"

I don't have those templates. :(

subu1 04-15-2003 04:15 AM

Quote:

Yesterday at 08:34 PM The_Cyberdemon said this in Post #31
Okay, here's what i plan to add in the final hack:
[list=1][*]Multiple Clan Memberships[*]Pick Clan From List[*]Get admitted to a clan only on approval of leader (request with a special type of pm)[*]Clan Leader CP[*]Clan Level System (Clan Leader CP addon)[/list=1]
Anything else i should do?

wowww, thats super addons, i waiting for :-)))))))


greetz subu1

The_Cyberdemon 04-15-2003 05:17 AM

i'm going on vacation the day after tomorrow, so this may take some time, but they will be released

sonic3d 04-15-2003 06:11 PM

Quote:

Yesterday at 03:53 PM The_Cyberdemon said this in Post #33
OOps, stupid mistake on my end.
It's
Code:

javascript:clanopen($post[clan])
Not
Code:

java script:clanopen($post[clan])
I accidentaly put a space in it. my mistake. sorry.

Edit: I actually posted it correctly, but something about the "[code]" tag make javascript become java script.here's what it should read:


Edit 2: It did the same thign? WTF? Here:
javascript:clanopen($post[clan])

Edit 3: OH MY GOD! it won't work. I'm reporting this. Just no that there is no space in "javascript"

ok i changed it and the link is right but there isn;t ne pop ups or nething when i click on it. i have added the code in misc.php

l8er
sonic

The_Cyberdemon 04-15-2003 06:25 PM

Quote:

ok i changed it and the link is right but there isn;t ne pop ups or nething when i click on it. i have added the code in misc.php
HUGE mistake on my end. HUGE. I forgot to show you what templates to add... lol. That's pretty sad of me. Without the templates, nothing should show up, so here they are:

TEMPLATE 1:
NAME: clanusers
CONTENT:
Code:

<html>
<head>
<title>$bbtitle Clanusers?</title>
$headinclude
<script language="Javascript">self.focus();</script>
</head>
<body>

<table cellpadding="10" cellspacing="0" border="0" bgcolor="{pagebgcolor}" width="100%"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" bgcolor="{tablebordercolor}" width="100%">
<tr>
        <td colspan="2" bgcolor="{categorybackcolor}"><normalfont color="{categoryfontcolor}"><b>Total Users: $allusertotal</b></normalfont></td>
</tr>
<tr>
        <td bgcolor="{tableheadbgcolor}" width="100%"><smallfont color="{tableheadtextcolor}">User</smallfont></td>
        <td bgcolor="{tableheadbgcolor}"><smallfont color="{tableheadtextcolor}">Posts</smallfont></td>
</tr>
$clanuserlist
<tr>
        <td bgcolor="{tableheadbgcolor}" colspan="2" align="center">
        <a href="javascript:self.close();"><smallfont color="{tableheadtextcolor}">[ Close Window ]</smallfont></a>
        </td>
</tr>
</table>
</td></tr></table>

</body>
</html>

TEMPLATE 2:
NAME: clanusersbit
CONTENT:
Code:

<tr>
        <td bgcolor="$backcolor">
        <normalfont>
        <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$clanusers[userid]" target="_blank">$clanusers[username]</a>
        </normalfont></td>
        <td bgcolor="$backcolor"><normalfont>$clanusers[posts]</normalfont></td>
</tr>

It should be fixed if you do that.
Quote:

I would like to request that the creation of a new clan also has the option to create a private clan forum for members only in a preset catergory like "Clan Forums" I would suggest this as an addon as not everyone would need this feature.
Okay, this shouldn't take long.

NOTE: remember to change all of the "java script" things to "javascript". That's pretty annoying, isn't it.

Jagang 04-15-2003 08:30 PM

Quote:

Yesterday at 06:43 PM The_Cyberdemon said this in Post #30

If there is anything you would like to request, let me know, i wan't to make this as cool as possible.

I'm also going to add a "pick from list" of clans instead of password thing as well.

I would like to request that the creation of a new clan also has the option to create a private clan forum for members only in a preset catergory like "Clan Forums" I would suggest this as an addon as not everyone would need this feature.

kaotic 04-15-2003 08:38 PM

Quote:

Today at 10:24 PM Jagang said this in Post #38
I would like to request that the creation of a new clan also has the option to create a private clan forum for members only in a preset catergory like "Clan Forums" I would suggest this as an addon as not everyone would need this feature.
I was thinking the same thing. This feature would make it even better. I can obviously do this myself, but I think it would be better if the clan leaders could decide to open it/close it and pick the name/description that they want on their own. Also, I already have a forum called "Hosted Organizations" in which I set up a subforum for each clan. I prefer subforums rather than base forums in order to keep the index smaller.


All times are GMT. The time now is 11:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01369 seconds
  • Memory Usage 1,772KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete