HoloCMS Group Badge Editor FIXED

Results 1 to 8 of 8
  1. #1
    Banned winterpartys is offline
    BannedRank
    Jan 2009 Join Date
    Australia, OLD.Location
    695Posts

    HoloCMS Group Badge Editor FIXED

    (This is for people (Newbies) that still use HoloCMS and can't get the group flash editor to work)

    Hey Ragezone Users,

    Just go to your where the root of the HoloCMS is and open file in text editor:

    /habblet/ajax_show_badge_editor.php

    And replace with this:

    PHP Code:
    <?php
    /*===================================================+
    || # HoloCMS - Website and Content Management System
    |+===================================================+
    || # Copyright Ā© 2008 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    |+===================================================+
    || # HoloCMS is provided "as is" and comes without
    || # warrenty of any kind. HoloCMS is free software!
    |+===================================================*/

    include('../core.php');
    include(
    '../includes/session.php');

    // simple check to avoid most direct access
    $refer $_SERVER['HTTP_REFERER'];
    $pos strrpos($refer"group_profile.php");
    if (
    $pos === false) { exit; }

    $groupid $_POST['groupId'];
    if(!
    is_numeric($groupid)){ exit; }

    $check mysql_query("SELECT member_rank FROM groups_memberships WHERE userid = '".$my_id."' AND groupid = '".$groupid."' AND member_rank > 1 AND is_pending = '0' LIMIT 1") or die(mysql_error());
    $is_member mysql_num_rows($check);

    if(
    $is_member 0){
        
    $my_membership mysql_fetch_assoc($check);
        
    $member_rank $my_membership['member_rank'];
        if(
    $member_rank 2){ exit; }
    } else {
        exit;
    }

    $check mysql_query("SELECT * FROM groups_details WHERE id = '".$groupid."' LIMIT 1") or die(mysql_error());
    $valid mysql_num_rows($check);

    if(
    $valid 0){ $groupdata mysql_fetch_assoc($check); } else {exit; }

    ?>
    <div id="badge-editor-flash" align="center">
    <strong>Flash is required to use this tool</strong>
    </div>
    <script type="text/javascript" language="JavaScript">
    var swfobj = new SWFObject("<?php echo $path?>web-gallery/flash/BadgeEditor.swf", "badgeEditor", "280", "366", "8");
    swfobj.addParam("base", "<?php echo $path?>web-gallery/flash/");
    swfobj.addParam("bgcolor", "#FFFFFF");
    swfobj.addVariable("post_url", "<?php echo $path?>save_group_badge.php");
    swfobj.addVariable("__app_key", "Meth0d.org");
    swfobj.addVariable("groupId", "<?php echo $groupid?>");
    swfobj.addVariable("badge_data", "<?php echo $groupdata['badge']; ?>");
    swfobj.addVariable("localization_url", "<?php echo $path?>xml/badge_editor.xml");
    swfobj.addVariable("xml_url", "<?php echo $path?>xml/badge_data_xml.xml");
    swfobj.addParam("allowScriptAccess", "always");
    swfobj.write("badge-editor-flash");
    </script>
    The holocms website path should have / on the end or this won't work,

    Now when you edit your Group badge, the badge editor should work.


  2. #2
    Apprentice Giulix is offline
    MemberRank
    Jan 2009 Join Date
    16Posts

    Re: HoloCMS Group Badge Editor FIXED

    Good, but it is already posted

  3. #3
    Member Hobblcms is offline
    MemberRank
    Jul 2009 Join Date
    71Posts

    Re: HoloCMS Group Badge Editor FIXED

    Good, but it is already posted 5/10

  4. #4
    Novice GoldenGame is offline
    MemberRank
    Nov 2009 Join Date
    2Posts

    Re: HoloCMS Group Badge Editor FIXED

    ok work !!! But i cant save it =(

  5. #5
    Apprentice BadBoyAaron is offline
    MemberRank
    Dec 2009 Join Date
    14Posts

    Re: HoloCMS Group Badge Editor FIXED

    Nice! But I don't know which format I have to save it as...Any Help?

    ---------- Post added at 10:59 AM ---------- Previous post was at 10:48 AM ----------

    I saved it as a Text Document, will it still work?

  6. #6
    Member Freak is offline
    MemberRank
    Sep 2009 Join Date
    85Posts

    Re: HoloCMS Group Badge Editor FIXED

    Quote Originally Posted by BadBoyAaron View Post
    Nice! But I don't know which format I have to save it as...Any Help?

    ---------- Post added at 10:59 AM ---------- Previous post was at 10:48 AM ----------

    I saved it as a Text Document, will it still work?
    ur supposed to save it as a .php file

    open notepad paste the code in it then save
    and when it comes save as type then click all documents
    and write blabla.php and ur done

  7. #7
    Apprentice BadBoyAaron is offline
    MemberRank
    Dec 2009 Join Date
    14Posts

    Re: HoloCMS Group Badge Editor FIXED

    Quote Originally Posted by Freak View Post
    ur supposed to save it as a .php file

    open notepad paste the code in it then save
    and when it comes save as type then click all documents
    and write blabla.php and ur done

    Thanks!!!!
    Last edited by Superfun; 22-12-09 at 01:50 PM.

  8. #8
    Novice xXsparkyXx is offline
    MemberRank
    Jan 2010 Join Date
    3Posts

    Re: HoloCMS Group Badge Editor FIXED

    Good Post But Doesnt Work Cant Save At All Shows Badge Creation Stuff To Make Your Badge But You Dont See It.. When u Save



Advertisement