Welcome to the new YOSC forums! Feel free to start a thread and (re?) introduce yourself or offer some advice about the forum itself. Sick of this message? Close it by clicking the "X" on the upper right.
Update thread
  • GaerlanGaerlan July 2005
    Posts: 1,263
    I created a new forum for links called "The Improbability Engine."
  • GaerlanGaerlan July 2005
    Posts: 1,263
    I've abolished smilies.
  • MargMarg July 2005
    Posts: 1,856
    AND THERE IS FREEDOM FROM UGLY FACES! YAY! :D

    *makes party*
  • DorthDorth July 2005
    Posts: 36
    What, we won't see you anymore?
    *JOKING!* Don't kill me Marg, it's only a bad joke...
    "aouch, aw, argh, euhhhh......"
  • MargMarg July 2005
    Posts: 1,856
    Physical violence is not how I seek retribution.
  • raging+drunk+ladraging drunk lad July 2005
    Posts: 6,459
    Marg will devour your soul.
  • MargMarg July 2005
    Posts: 1,856
    Essentially, yes.
  • DorthDorth July 2005
    Posts: 36
    Meh then there's not much to fear :S
    Actually, the worst you could do to me is out of reach to you ^^
    I am... INVINCIBLE! *dies in some stupid, pointless, bad pun way....*
  • GaerlanGaerlan July 2005
    Posts: 1,263
    The girlie forum has been made and all of the female members have been permitted to view and post in it.

    It's all yours, Marg.

    Let me know if there's anything that needs changing, like adding another mod.
  • MargMarg July 2005
    Posts: 1,856
    Hooray! Thanks! ... Wait... why can't -I- see it?
  • EugeneEugene July 2005
    Posts: 1,684
    I was wondering whether you can or can't. I assumed you could but I guess I'm still learnign how vb3 handles permissions and masks. You should be able to in about 27 seconds.
  • MargMarg July 2005
    Posts: 1,856
    Hooray!

    Few minutes later:

    I still can't -see- the forum on the main page, but I think I've found a way for the other girls (and keith) to get to it.
  • GaerlanGaerlan August 2005
    Posts: 1,263
    Of course that issue has been resolved.

    Now then, I have increased the number of threads per page to 25, since 20 seemed a little low.
  • MargMarg August 2005
    Posts: 1,856
    Will you leave it at 25, or continue to increase it as the need rises? ...If it rises.
  • GaerlanGaerlan August 2005
    Posts: 1,263
    25 seems to be the most sensible amount right now. I have no intention of changing it, however if the need arises it may become necessary.
  • EugeneEugene August 2005
    Posts: 1,684
    FINALLY got some work done... -_-

    - removed Legend (since the icons will be replaced soon anyway)
    - added support for custom forum status indicators (ala RPV)
    - Moved custom quote above the Whats New box
    - Optimized randomization hack
    - Created random phrase (above the forum list on the index)
    - Created random index title (the 'powered by vBulletin' thing)

    And a lot of general optimization. The best part of this was that I centralized the random variables hack so that it will be easy to put into other boards (or this one if it needs to be reinstalled) and more random variables are easy to add now.

    The way the custom forum indicators work is in the /vb3/statusicons/ directory, there are forum_new_x.gif and forum_old_x.gif files, where x is the forum number (which can be found by hovering over the forum links and looking at the last number, aka 2 for talk). Replacing those images will dot he trick. Adding more is simple... just check the id for the new forum and make two more files with the correct names. Obviously, the 'new' one is for when there are new posts, 'old' is for when there haven't been any posts. For reference sake, the forum_new.gif and forum_old.gif images are there incase they need to be used but they do nothing.

    Adding to the custom quotes, phrases, or titles is simple, too. In the CP, expand Styles & Templates, and click Replacement Variable Manager. From there, edit c.u.s.t.o.m.p.h.r.a.s.e.s., c.u.s.t.o.m.q.u.o.t.e.s, c.u.s.t.o.m.t.i.t.l.e.s (without the periods, those are there so that my text isn't changed to the variables...) and simply seperate entries with a comma. CAREFUL not to use a comma in your actual phrase/title/quote... if you need one, use ^#44; ... in fact, for any questionable characters, its best to use that notation (as in, HTML character notation but use a caret (^) instead of an ampersand (&). Also, make sure you are editing the PLURAL, not the singular... don't edit c.u.s.t.o.m.q.u.o.t.e, c.u.s.t.o.m.p.h.r.a.s.e, or c.u.s.t.o.m.t.i.t.l.e (again, no periods int he real thing) because your changes will be LOST as soon as someone looks at the index. Those variables are automatically updates by the script. Use the plural variables.

    The variable hack is installed at the end of the "global.php" file. The code:


    // #############################################################################
    // #################### EUGENE'S RANDOMIZATION VARS HACK #######################
    // #############################################################################


    //get quotes list then cut by commas
    $result = $DB_site->query("SELECT `template` FROM `template` WHERE `templateid`='364'");
    $hackquote = $DB_site->fetch_array($result);
    $hackquote = $hackquote['template'];
    $hackquote = explode(',',$hackquote);

    //get phrases list then cut by commas
    $result = $DB_site->query("SELECT `template` FROM `template` WHERE `templateid`='374'");
    $hackphrase = $DB_site->fetch_array($result);
    $hackphrase = $hackphrase['template'];
    $hackphrase = explode(',',$hackphrase);

    //get title list then cut by commas
    $result = $DB_site->query("SELECT `template` FROM `template` WHERE `templateid`='376'");
    $hacktitle = $DB_site->fetch_array($result);
    $hacktitle = $hacktitle['template'];
    $hacktitle = explode(',',$hacktitle);

    //replace offending characters
    $stringsearch = array("&","'","\"","$","^");
    $stringreplace = array("&","'",""","$","&");
    $hackquote = str_replace($stringsearch,$stringreplace,$hackquote[rand(0,count($hackquote) - 1)]);
    $hackphrase = str_replace($stringsearch,$stringreplace,$hackphrase[rand(0,count($hackphrase) - 1)]);
    $hacktitle = str_replace($stringsearch,$stringreplace,$hacktitle[rand(0,count($hacktitle) - 1)]);
    $result = $DB_site->query("UPDATE `template` SET `template`='$hackquote' WHERE `templateid`='375'");
    $result = $DB_site->query("UPDATE `template` SET `template`='$hackphrase' WHERE `templateid`='362'");
    $result = $DB_site->query("UPDATE `template` SET `template`='$hacktitle' WHERE `templateid`='377'");

    // random image section
    $root=@opendir("topimage");
    while ($file=readdir($root)){
    if($file=="." || $file==".."){continue;}
    if(!is_dir($dir."/".$file)){
    $files[]=$file;
    }
    }
    $hackimage = $files[rand(0, count($files) - 1)];

    $hackpicture = "<img src=\"topimage/$hackimage\" \\>";
    $result = $DB_site->query("UPDATE `template` SET `template`='$hackpicture' WHERE `templateid`='378'");
    //now we update rep vars:
    update_rep_vars_hack();
    function update_rep_vars_hack()
    {
    global $DB_site;
    $QUERY = array();
    $style = $DB_site->query_first("
    SELECT styleid, title, parentlist
    FROM " . TABLE_PREFIX . "style
    WHERE styleid = 1
    ");
    $parents = explode(',', $style['parentlist']);
    $i = sizeof($parents);
    $totalparents = $i;
    foreach($parents AS $setid)
    {
    if ($setid != -1)
    {
    $querySele = ",\nt$i.templateid AS templateid_$i, t$i.title AS title$i, t$i.styleid$querySele";
    $queryJoin = "\nLEFT JOIN " . TABLE_PREFIX . "template AS t$i ON (t1.title=t$i.title AND t$i.styleid=$setid)$queryJoin";
    $i--;
    }
    }
    $templatelist = array();
    $query1 = "
    SELECT t1.templateid AS templateid_1, t1.title $querySele
    FROM " . TABLE_PREFIX . "template AS t1 $queryJoin
    WHERE t1.styleid = -1
    ORDER BY t1.title
    ";
    $templates = $DB_site->query($query1);
    while ($template = $DB_site->fetch_array($templates, DBARRAY_BOTH))
    {
    for ($tid = $totalparents; $tid > 0; $tid--)
    {
    if ($template["templateid_$tid"])
    {
    $templatelist["$template[title]"] = $template["templateid_$tid"];
    break;
    }
    }
    }
    $customdone = array();
    $query2 = "
    SELECT t1.templateid, t1.title, INSTR(',$style[parentlist],', CONCAT(',', t1.styleid, ',') ) AS ordercontrol
    FROM " . TABLE_PREFIX . "template AS t1
    LEFT JOIN " . TABLE_PREFIX . "template AS t2 ON (t2.title=t1.title AND t2.styleid=-1)
    WHERE t1.styleid IN (" . substr(trim($style['parentlist']), 0, -3) . ") AND
    t2.title IS NULL
    ORDER BY title, ordercontrol
    ";
    $customtemps = $DB_site->query($query2);
    while ($template = $DB_site->fetch_array($customtemps))
    {
    if ($customdone["$template[title]"])
    {
    continue;
    }
    $customdone["$template[title]"] = 1;
    $templatelist["$template[title]"] = $template['templateid'];
    }
    $templatelist = serialize($templatelist);
    $QUERY[] = "templatelist = '" . addslashes($templatelist) . "'";
    $templatecache = array();
    $templateids = implode(',' , unserialize($templatelist));
    $templates = $DB_site->query("
    SELECT title, template, templatetype
    FROM " . TABLE_PREFIX . "template
    WHERE templateid IN ($templateids)
    AND (templatetype <> 'template' OR title IN('" . implode("', '", array(
    'editor_jsoptions_font',
    'editor_jsoptions_size',
    'editor_styles_button_normal',
    'editor_styles_button_hover',
    'editor_styles_button_down',
    'editor_styles_button_selected',
    'editor_styles_menu_normal',
    'editor_styles_menu_hover',
    'editor_styles_menu_down',
    'editor_styles_popup_down',
    )) . "'))
    ");
    while ($template = $DB_site->fetch_array($templates))
    {
    $templatecache["$template[templatetype]"]["$template[title]"] = $template;
    }
    $replacements = array();
    if (is_array($templatecache['replacement']))
    {
    foreach($templatecache['replacement'] AS $template)
    {
    $replacementkey = '#' . preg_quote($template['title'], '#') . '#si';
    $replacements["$replacementkey"] = $template['template'];
    }
    $QUERY[] = 'replacements = \'' . addslashes(serialize($replacements)) . '\'';
    }
    else
    {
    $QUERY[] = 'replacements = \'\'';
    }
    if (sizeof($QUERY))
    {
    $query = "UPDATE " . TABLE_PREFIX . "style SET\n" . implode(",\n", $QUERY) . "\nWHERE styleid = 1";
    $DB_site->query($query);
    }
    }
    // #############################################################################
    // ###################### END RANDOMIZATION VARS HACK ##########################
    // #############################################################################

  • MargMarg August 2005
    Posts: 1,856
    Eugene... you're badass. :D
  • GaerlanGaerlan August 2005
    Posts: 1,263
    I have added in the Hunter S. Thompson quotes.

    However, I think we will need to have some changes made to make the quotes more presentable, as some of the Thompson quotes stretch the entire width of the forums.

    We will probably have to close it all in a table with a width of 50%-75%.

    It would be nice, however, if we could make it so that more formatting options were available, such as having the quotes aligned left while centered and having the credit aligned right in smaller text.
  • EugeneEugene August 2005
    Posts: 1,684
    We can do that, but it would take some work on the part of whoever was putting in the actual quotes. Not too much work... but some.
  • The+Auth0rThe Auth0r September 2005
    Posts: 2,212
    So... Did we move? Not move? Are all these posts going into the black hole that was YOSC but is no longer?
  • GaerlanGaerlan September 2005
    Posts: 1,263
    The move is delayed until Eugene comes back online from class.

    There will be a forum notice when this is all happening.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID Sign In with Google

Sign In Apply for Membership

In this Discussion

Poll

No poll attached to this discussion.

Who's Online (0)