Advertisement

John
Contributor-
Posts
116 -
Joined
-
Last visited
-
Days Won
15
Content Type
Profiles
Forums
Downloads
Bugs
Roadmap
Suggestions
WebFlake Changelog
FAQ
Store
Blogs
Applications
Ideas
Everything posted by John
-
its a mod for ipboard but its not perfected it targets profile fields and parses them to whatever desired effect you want on the profile page, since its not a tutorial i did not put it on the ipboard 4 forum, its an experiment where i parsed a profile field into a youtube embed where the user can have a youtube profile video, i know a mod for that is out already but it doesnt stop with just that you can do much more with this that was just the example used to show you how to parse the profile field on the profile page
-
Been so many months that i haven't been on IPS Community and on Webflake in general, this is a community to which i learned a lot and opened my knowledge greatly. I am so glad that I could have been a part of this community, whilst meeting people in general here was not my strong point I can appreciate the fact that we all came together to solve, mod and learn new things about both IPS Community, Xenoforo and all other web software available here. My reasons for leaving this place behind is all due to time and irl goals i have begun to set for myself, time needs to be dedicated to it now so it will blossom well in the future with that said guys I hope the community remains well and active and that it continues to evolve and grow Well wishing to the staff and all members of Webflake Signing off John
-
PLEASE READ FULLY BEFORE DOING ANY CHANGES TO YOUR THEMES I HOLD NO RESPONSIBILITY FOR ANY OUTCOME OR MISHAP THAT MAY HAPPEN TO YOUR BOARD WHETHER BY IMPLEMENTATION OR MISUSE OR SECURITY BREACHES TO YOUR WEBSITE, BELOW IS JUST AN EXPERIMENT THAT I HAVE BEEN WORKING ON FOR THE PAST 2 YEARS AND I AM JUST RELEASING THE FINDINGS OF IT TO THE COMMUNITY this is just a note/mention/discovery/experiment of using pfield groups and parsing them (yup parsing them as in the example using them to embed something on the profile) on IPS Community before we begin first thing you should note is that it is not possible to have a selective field within a group parsed meaning if you have more than one field for that particular group in the profile it will parse them all the same might sound weird when i say it like that considering you wont have the basic idea yet so a test is in order First thing you do is Create a new profile field group to do this you go into Admin Panel Under member settings "Profiles" hit the orange button called "+ Create New" for this step we name it "test" (name is not important at this time though) Create a field within the profile group Next on the agenda we make a field within the group, we just added hit the "+" button when you hover over it you will see it as "add profile field" name it "test" (name not so important at the moment) Editing theme for desired result now that the two things have been added lets get a little technical first thing we do is go into Appearances > Theme Select the theme you wish for editing and hit the </> button now navigate to the core > front > profile > profile template find <div class='ipsWidget_inner ipsPad'> <ul class='ipsDataList ipsDataList_reducedSpacing cProfileFields'> {{foreach $fields as $field => $value}} {{if $value !== ""}} <li class='ipsDataItem ipsType_break'> <span class='ipsDataItem_generic ipsDataItem_size3 ipsType_break'><strong>{lang="$field"}</strong></span> <div class='ipsDataItem_generic'><div class='ipsType_break ipsContained'>{$value|raw}</div></div> </li> {{endif}} {{endforeach}} </ul> </div> now we are doing some modifications to that code in this step you will see the difference below {{if $group == core_pfieldgroups_2}}{{foreach $fields as $field => $value}}<iframe width="100%" src="https://www.youtube.com/embed/{$value|raw}" frameborder="0" allowfullscreen></iframe>{{endforeach}}{{else}} <div class='ipsWidget_inner ipsPad'> <ul class='ipsDataList ipsDataList_reducedSpacing cProfileFields'> {{foreach $fields as $field => $value}} {{if $value !== ""}} <li class='ipsDataItem ipsType_break'> <span class='ipsDataItem_generic ipsDataItem_size3 ipsType_break'><strong>{lang="$field"}</strong></span> <div class='ipsDataItem_generic'><div class='ipsType_break ipsContained'>{$value|raw}</div></div> </li> {{endif}} {{endforeach}} </ul> </div>{{endif}} Note the difference above is {{if $group == core_pfieldgroups_2}}{{foreach $fields as $field => $value}}<iframe width="100%" src="https://www.youtube.com/embed/{$value|raw}" frameborder="0" allowfullscreen></iframe>{{endforeach}}{{else}} and the endif added at the end of the div it is also worth noting that core_pfieldgroups_{group number) is important to selecting the group the opening and closing foreach and the contents within the opening foreach tag" $fields as $field =>$value" minus the opening and closing quotations and lastly the {$valuie|raw} is the content within the group, the profile field itself Edit the profile field go to profile and edit the "test" profile field in user settings add the following below eKBbUdfvwrU ID taken from this link below https://www.youtube.com/watch?v=eKBbUdfvwrU the above i chose in the demonstration allows you to parse the field group 2 with a youtube embed, meaning if you do not take the youtube id and paste it into the profile field within the user settings it will not show or parse right Your embed might not work the first time try changing the number in core_pfieldgroups_2 with a different number and you may achieve the desired outcome you can also do other mods with it this experiment was just meant for testing if you could specifically target a profile field there are more things this is capable of how i have not the time to experiment with it more than i would have liked to the end result is just this You are free to experiment with it in any ways you wish just be careful with how and what it is you are doing for people that do not have a general idea of modding and wish to use this be careful get someone that can use codes and knows their way around the software else you could end up breaking the page or even worse security risks if you do not know what you are doing.
-
@iGreen well glad u got it working man or atleast found an alternative, sorry if my method didnt work for u tho, would have been nice to find out why it wasnt working for u in the first place so i could fix it or at least amend it for future people so they dont encounter what u did no offense dude but that code you used was first created and used by me without the minor mod of cAuthorPane in css you found/made and was first placed on webflake back in June 2015 by me, wherever you found that code just wanted you to know that i developed that code and it took me 1 and a half years of updating and experimenting with it before it reached where you got it from, yet I was never credited or acknowledged for what i did, sad really but my current code does work and it is less clustered than the current one there well anyway man i got a fix for that default avatar which you had to manually link on that code in the thread use this and you wouldnt need to set the default path manually anymore <img src="{resource="default_photo.png" app="core" location="global"}" /> lastly everyone is free to use whatever version they like so long as they get the result they so desire really hope they don't have much problems with the steps i laid out in the first post though
-
did u by chance try following instructions on the first page of this thread? just checked it out and edit is working fine for the theme also make sure that it is not the <div class="cAuthorPane_photo"> u are changing to userphoto2 and <li class="cAuthorPane"> instead cause that one in postContainer is for the mobile version of your forum and not the main forum version
-
what the i kno that person from here, seems he used a lot he learned over here and did a script then sold in on the marketplace ah well his code isnt perfect but its got majority of the collective codes that can be found on this website i must commend him on doing something amazing like that while i now break it apart and reconstruct it, maybe i can sell it on the webs for lots of cookies afterwards? jk jk anyway lets start with the dissection and repairing this <li class='ipsType_light andrew-modern-topic'><span class='st'><i class="fa fa-check-circle"></i> Title:</span><span class='dr'>{$comment->author()->member_title}</span></li> to {{if $comment->author()->member_title & $comment->author()->rank['title']}} <li class='ipsType_light andrew-modern-topic'><span class='st'><i class="fa fa-check-circle"></i> Title:</span><span class='dr'>{$comment->author()->member_title}</span></li>{{else}}<li class='ipsType_light andrew-modern-topic'><span class='st'><i class="fa fa-check-circle"></i> Title:</span><span class='dr'>{$comment->author()->rank['title']}</span></li>{{endif} and to hide the reputation next to your name look for this part of the code in postContainer <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break' itemprop="creator" itemscope itemtype="http://schema.org/Person"><strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'> {template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3> and change the <span class='ipsResponsive_showPhone ipsResponsive_inline'> to <span class='ipsResponsive_hidePhone ipsResponsive_inline'> and ur basically done
-
u can try this
-
How to move positions custom profile icon
John replied to iLek2428's question in Invision Support Archives
thats cause of the profile fields being hidden from the the mobile version, its possible to show it tho but if u do so u wont be able to single out one custom profile field over another thats targeted for the postContainer and everything will be loaded on the mobile version which could possibly end up making your postContainer deformed -
How to move positions custom profile icon
John replied to iLek2428's question in Invision Support Archives
add a div class to your profile field and use the css below should get the results u wanted <div class="renametowhatever">{profile field contents}</div> .renametowhatever { position: absolute; z-index: 1; top: 160px; left: 120px; } hmm? -
encountered this before, not sure its a fix for the problem but worth trying once inside the admin control panel, go to System > Support During Step 1 select "Something isn't working correctly" and hit Continue, the software will recache the website and should fix it, if its not fixed then it should at least show u what the problem is again not saying it will work but worth trying
-
Transparent avatars get white backgrounds?
John replied to bangbroz's question in Invision Support Archives
You can try this. My suggestion is to do this in custom.css, so as to not affect the actual code within the theme .ipsUserPhoto { background: transparent; } and i believe ipsUserPhoto is also found in misc.css if you are looking for the code -
a welcome to u fellow John
-
@Frenvius thanks for bringing it to my attention the fix is here just replace the entire code in "userPhoto2" that you created {{if $member->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}} {{$memberURL = ( $warningRef ) ? $member->url()->setQueryString( 'wr', $warningRef ) : $member->url();}} <a href="{$memberURL}" {{if $hovercard}}data-ipsHover data-ipsHover-target="{$memberURL->setQueryString( 'do', 'hovercard' )}"{{endif}} class="ipsUserPhoto ipsUserPhoto_{$size}{{if $classes}} {$classes}{{endif}}" title="{lang="view_user_profile" sprintf="$member->name"}"> <img src='{{if $member->pp_main_photo}}{file="$member->pp_main_photo"}{{else}}{file="$member->photo"}{{endif}}' alt='{$member->name}'> </a> {{else}} <span class='ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}'> <img src='{file="$member->photo"}' alt='{$member->name}'> </span> {{endif}}
-
Invision Power Board had already implemented the code into their system but somewhere along the lines the code got broken and before long you needed a plugin to fix it. This fix however is really simple and doesnt require any plugins, it fixes the userlink formatting pretty much all over the website. Step 1: Go to the theme you want to implement the fix to, and select the HTML Template "userLink" its found under core > front > global Step 2: Replace the entire code in "userLink" with the following below {{if $member->member_id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) ) }}<a href='{{if $warningRef}}{$member->url()->setQueryString( 'wr', $warningRef )}{{else}}{$member->url()}{{endif}}' data-ipsHover data-ipsHover-target='{$member->url()->setQueryString( array( 'do' => 'hovercard', 'wr' => $warningRef, 'referrer' => urlencode( \IPS\Request::i()->url() ) ) )}' title="{lang="view_user_profile" sprintf="$member->name"}" class="ipsType_break">{$member->group['prefix']|raw}{$member->name}{$member->group['suffix']|raw}</a>{{endif}} and your done just reload your forum and you will see the difference
-
revamped the whole code, with the new changes it should be easier to implement less cluster should work on all versions of ipboard 4 even 4.2 P.S. it is recommended everyone update their code with the instructions in the first post of this thread
-
Cover Photo and Large Avatar in Post
John replied to deehmoraes's question in Invision Support Archives
hmm did u follow the first post of that thread? its not only css u have to edit but the postContainer template as well, if u did follow it please post the postContainer template code for me to review and see if i can fix it P.S. to find the template use the search and u will see its under forum > front > topics -
after you have finished installing it, on acp (admin control panel) go to the forum and click the > Block Manager button you should see it to the left center of your browser, clicking it will open up block manager after that select the chatbox and move it to the forum you will see where you can place it either top or bottom wherever the widget says you can place it
-
Updated Step 4 in the first post please update your code it should return the profile link and hovercard on the picture
-
its a setting that in the shoutbox settings however its activated by default if the skin u are using is brave or similar it wont work i tried everything i knew to get it on that skin and it never showed up, to test if what im saying is true simply switch to the default ipboard skin and if the @ is present then its probably the skin itself
-
i dont think its bad the code only uses pp_main_photo which is something that ipb4 has already implemented its not like i made the code i just used their code in a different place and got the result i havent been able to use ipb lately to update the code further also cant test it on my phone to see how it looks but if the default profile photo is giving problems you can just reuse the default code by replacing after {{else}} in my code <a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}" seoTemplate="profile" seoTitle="$seoName"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}&do=hovercard" seoTemplate="profile" seoTitle="$seoName"}' title="{lang="view_user_profile" sprintf="$name"}"><img src="Default Image Url" /></a>with <li class='cAuthorPane_photo'> {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"} </li> and see if it reverts the default image for the author info for the pc and phone it shouldnt break my code in the earlier page cause ur just replacing that for the default image would just revert the settings for default image on ur forum and not affect the ones uploaded by users
-
How and where in AdminCP can I organize my userInfoPane?
John replied to Azhaurn's question in Invision Support Archives
select the theme and when going through the templates go to forums > front > topics > postContainer -
Limit number of Choises in a Poll
John replied to nomorekillz's question in Invision Support Archives
not possible with ipboard as far as i know it only allows one vote per poll question and if there is multiple poll questions then they are allowed to choose based on the for choices its one choice per poll question and 20 max choices to choose from, now its impossible to mod it just as it is cause its not like u can change a template setting and it will work out this requires modding ipboard's php files so i can only suggest u request a custom hook or mod be made for it over here http://webflake.sx/forum/108-marketplace-buy-sell-trade/ or you look into an external jquery poll that u can try and integrate into ipboard which can possibly slow down you website -
Limit number of Choises in a Poll
John replied to nomorekillz's question in Invision Support Archives
in system settings > forum > topic, posts and polls there is a setting there that allows u to change the max setting from 20 (default) to whatever number u like tho some polls might require more than 3 options for example if u opened a poll about gaming consoles there are clearly more than 3 consoles existing which you can list as options in that poll anyway its something to think about but thats how you limit the max polling options