rejetto forum

Account/Page Specific Template Design, other

0 Members and 1 Guest are viewing this topic.

Offline shadowtheultimate

  • Occasional poster
  • *
    • Posts: 9
    • View Profile
Hey TSG. I was wondering if it's possible to change template designs to being account specific. For example, the original template would look like this:



and when someone like myself logs in, it would look like this:



Also, would it be possible to make the Rawr Template scale with a mobile device? Like an iPhone more specifically.

Lastly, would it be possible to make the rawr player work with the iPhone? I tried using .m4a (iDevice audio format) music and it would just show the loading animation but nothing would happen.

Thanks for any input and sorry for all the questions ><


Offline almulder

  • Occasional poster
  • *
    • Posts: 29
    • View Profile
Quote
Lastly, would it be possible to make the rawr player work with the iPhone? I tried using .m4a (iDevice audio format) music and it would just show the loading animation but nothing would happen.

Template by user would be cool. Main page is one option and users get to pick there own once logged in. (Something similar to what FHFS does, but its only basic for now)


I don't believe that will work, as RAWR-Player is a dynamic flash player, and iPhone don't support flash. I would jump over to the RAWR site and see if they can get the same functionality programmed in but using HTML5 as that is supported on an iphone.

-almulder


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Once upon a time the Flash player worked everywhere. Times change :P still does a decent job though.

You can certainly have it change theme based on account, just use the username string and set the theme variable accordingly. It would be a manual setting per user or user group (if HFS does this), I doubt you can save a value permanently server side per user but I could be wrong. You will need learn a bit of HFS Macro to achieve it. I would make something that changes the value per username, and sets a default so it doesn't break the site when a guest arrives.
« Last Edit: December 20, 2012, 07:51:16 AM by TSG »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
I doubt you can save a value permanently server side per user but I could be wrong.

you can, by using parameter "notes key" in {.get account.} and {.set account.}

http://www.rejetto.com/wiki/index.php?title=HFS:_scripting_commands#Account_manipulation


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
:)  Copy and paste the method below, it works with standard HFS!

Code: [Select]
{.set|notes|{:{.if|$3|{:{.set account|{.if|$1|$1|{.^username.}.}|notes key={.trim|$2.}={.trim|$3.}.}:}.}{.if|{.and|$2|{.not|$3.}|{.not|$4.}.}|{:{.get account|{.if|$1|$1|{.^username.}.}|notes key=$2.}:}.}{.if|{.and|$2|{.not|$3.}|$4.}|{:{.set account|{.if|$1|$1|{.^username.}.}|notes={.trim|{.decodeuri|{.replace|%0A%0D||{.encodeuri|{.replace|$2={.^notes|{.if|$1|$1|{.^username.}.}|$2.}||{.get account|{.if|$1|$1|{.^username.}.}|notes.}.}.}.}.}.}.}:}.}:}.}

Quote from: FHFS Wiki
Database/Key Storage Functions

{.^notes|$1|$2|$3|$4.}

    Purpose: To create an easy, central-function for saving/loading keys and values from the user databases.
    Input $1: The account name to process data from, e.g. 'username1'.
    Input $2: The name of the key you wish to delete, load, or write.
    Input $3: (optional) If you wish to load or delete a key, leave this blank. If writing a key, enter its new value here.
    Input $4: (optional) Write 'true' here if you wish to delete the key instead of loading it. This only works if $3 is blank, otherwise the key will still be written and not deleted.
    Summary: $1 is mandatory. Specifying $2 only retrieves a value. Specifying $2 and $3 or writes a value. Specifying $2 and $4 deletes a key.
    Return: None
« Last Edit: December 30, 2012, 06:18:51 PM by raybob »