How to setup UberCMS 2 index voting.

Results 1 to 8 of 8
  1. #1
    scream my name ParadiseRel is offline
    MemberRank
    Jun 2012 Join Date
    clitLocation
    600Posts

    How to setup UberCMS 2 index voting.

    Hello RaGEZONE,

    Since I've seen some hotels with this, and people asking on how to do this, I've decided to make a short little tutorial for this, and haven't seen a tutorial for this, and i have searched, I've decided to make one. :)

    Things you need
    Thehabbos.org account.
    UberCMS 2
    A brain..

    Well first of all, you will need your thehabbos.org account for this, obviously, anyway, lets start.

    1st Step:
    Go into your htdocs or wwwroot, go into includes > configuration > ubercms_config, scroll down until you find this code:

    Code:
    // Voting settings
    	//		- TheHabbos (Do you want to enable TheHabbos voting?)
    	//		- TheHabbos username (What is your hotels username on TheHabbos?)
    	//		- TheHabbos return url (Where do you want your users to return to? Replace / with !)
    	//		- TheHabbos disable index voting (Do you want to disable index voting?)
    	$voting['thehabbos_enabled'] = false;
    	$voting['thehabbos_username'] = 'Zappy123';
    	$voting['thehabbos_returnurl'] = 'http://yourhotel.com/novote';
    	$voting['disable_index_vote'] = false;
    Well first of all you will need to edit things, replace Zappy123 which is the starter thehabbos.org username when you download the CMS, edit it with your thehabbos.org username.

    Code:
    Turn $voting['thehabbos_enable'] = false; to:
    $voting['thehabbos_enable'] = true;
    Next edit your hotel link.. to do this you will need to make it look like this as it says, replace the ' / ' with ' ! ' just basically copy this code replace it there and put your link:

    Code:
    $voting['thehabbos_returnurl'] = 'http:!!yourlinkhere.com!?novote';
    As you can see I've replaced the ' / ' and put a ' ? ' before novote which will need to be there. Now you've set up the configuration, save it in notepad ++.

    Next:
    Go into newclient.php open it with notepad ++ and find this:

    Code:
    if ($voting['thehabbos_enabled'] == true) {
    	if (!isset($_GET["novote"])) {
    		header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . WWW . "/client?novote");
    Now take this code and replace that code above with this one:

    Code:
    //if ($voting['thehabbos_enabled'] == true) {
    	//if (!isset($_GET["novote"])) {
    		//header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . WWW . "/client?novote");
    Now look at 2 lines below it you will see this ' } ' delete both of them, reload your index, vote, sign in, try your client, and trouble, or errors post below.

    Goodluck.

    *Credits
    SubZ - 50%
    Me - 50%
    Last edited by ParadiseRel; 05-08-12 at 01:47 AM.


  2. #2
    Account Upgraded | Title Enabled! Amiroslo is offline
    MemberRank
    Jul 2012 Join Date
    NorwayLocation
    274Posts

    Re: How to setup UberCMS 2 index voting.

    Good job, but can u link me a good UberCMS. The best one released I guess? :D

  3. #3
    scream my name ParadiseRel is offline
    MemberRank
    Jun 2012 Join Date
    clitLocation
    600Posts

    Re: How to setup UberCMS 2 index voting.

    Quote Originally Posted by amiroslo View Post
    Good job, but can u link me a good UberCMS. The best one released I guess? :D
    I use the one released by jonty.

    http://forum.ragezone.com/f353/rel-d...-2-php-844362/

  4. #4
    Photoshop Design Naphier is offline
    MemberRank
    Jun 2012 Join Date
    Trenton, NJLocation
    1,061Posts

    Re: How to setup UberCMS 2 index voting.

    Nice tutorial, but I'm pretty sure this has been released on previous occasions.

  5. #5
    ╰☆ Learning PHP Craqued is offline
    MemberRank
    Jul 2012 Join Date
    ╰☆Earth☆Location
    502Posts

    Re: How to setup UberCMS 2 index voting.

    ParadiseRel i like it great job mate

  6. #6
    scream my name ParadiseRel is offline
    MemberRank
    Jun 2012 Join Date
    clitLocation
    600Posts

    Re: How to setup UberCMS 2 index voting.

    Thanks for the feedback guys.

  7. #7
    Member Roam is offline
    MemberRank
    Jul 2012 Join Date
    63Posts

    Re: How to setup UberCMS 2 index voting.

    Instead of commenting out lines one by one such as
    // Commenting this line out 1
    // Commenting this line out 2

    You can just do
    /* Commenting this line out 1
    Commenting this line out 2 */

  8. #8
    Member Vondric is offline
    MemberRank
    Jul 2012 Join Date
    68Posts

    Re: How to setup UberCMS 2 index voting.

    This process is very easy and I am sure TheHabbos Package file comes with set-up instructions? Thank-you for your contribution though.



Advertisement