Profile Cover

Profile Cover [Paid] 1.0.9

No permission to buy ($15.00)
#2
Hi, with upgrade I noticed the profile pictures already uploaded from xenforo 1.0 profile mod are not carried over?

Capture.PNG


Also trying to upload attached .png resulted in an error for me.

Code:
Server error log
LogicException: Unknown field 'tl_profile_cover' src/XF/CustomField/Set.php:139
Generated by: user May 13, 2018 at 3:24 PM
Stack trace
#0 src/addons/Truonglv/ProfileCover/Service/Cover.php(135): XF\CustomField\Set->set('tl_profile_cove...', 1526189071, 'admin')
#1 src/addons/Truonglv/ProfileCover/XF/Pub/Controller/Account.php(39): Truonglv\ProfileCover\Service\Cover->upload(NULL)
#2 src/XF/Mvc/Dispatcher.php(249): Truonglv\ProfileCover\XF\Pub\Controller\Account->actionCoverSave(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'CoverSave', 'html', Object(XF\Mvc\ParameterBag), 'account', Object(Truonglv\ProfileCover\XF\Pub\Controller\Account), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1894): XF\Mvc\Dispatcher->run()
#6 src/XF.php(328): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}
Request state
array(4) {
  ["url"] => string(19) "/account/cover-save"
  ["referrer"] => string(35) "https://testdomain.net/account/cover"
  ["_GET"] => array(1) {
    ["/account/cover-save"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}
 

Attachments

#7
What is cover gallery, or is it part of the addon?
Also do the 1.0.4 changes allow us to change the default cover url per style? Or that something we need as extra added for a future update. Method for logic is that I have a dark and light style so having default cover image that closely matches each style would be cool for the default image. Anyway awesome updates. .. I'll be getting your game server addon next month.
 

truonglv

Staff member
Tech Support
#8
What is cover gallery, or is it part of the addon?
Also do the 1.0.4 changes allow us to change the default cover url per style? Or that something we need as extra added for a future update. Method for logic is that I have a dark and light style so having default cover image that closely matches each style would be cool for the default image. Anyway awesome updates. .. I'll be getting your game server addon next month.
All cover images uploaded will store an user gallery. It is belong to user so other users cannot use it.
Yes. 1.0.4 allow you set default cover per style.
 
#11
Hi, just upgraded from version 1.00 to version 1.06 for testing and I'm not seeing any covers from xenforo 1.5 data shown or any options to upload/edit, even with all permissions set to yes. We got some errors during the upgrade process.

Code:
XF\Db\Exception: MySQL query error [1054]: Unknown column 'cover_date' in 'xf_user'
src/XF/Db/AbstractStatement.php:212
Generated by: D.O.A.
May 27, 2018 at 7:35 PM
Stack trace

ALTER TABLE xf_user CHANGE cover_date tl_cover_date int unsigned not null default 0
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1054, '42S22')
#2 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#3 src/XF/AddOn/AbstractSetup.php(193): XF\Db\AbstractAdapter->query('ALTER TABLE xf_...', Array)
#4 src/addons/Truonglv/ProfileCover/Setup.php(43): XF\AddOn\AbstractSetup->query('ALTER TABLE xf_...')
#5 src/XF/AddOn/StepRunnerUpgradeTrait.php(122): Truonglv\ProfileCover\Setup->upgrade1000170Step1(Array)
#6 src/XF/AddOn/StepRunnerUpgradeTrait.php(71): Truonglv\ProfileCover\Setup->upgradeStepRunner(1000170, 1, Array, 1000270)
#7 src/XF/Admin/Controller/AddOn.php(449): Truonglv\ProfileCover\Setup->upgrade(Array)
#8 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\AddOn->actionUpgrade(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Upgrade', 'html', Object(XF\Mvc\ParameterBag), 'listAddOns', Object(XF\Admin\Controller\AddOn), NULL)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1894): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}
Request state

array(4) {
  ["url"] => string(48) "/admin.php?add-ons/Truonglv-ProfileCover/upgrade"
  ["referrer"] => string(69) "https://domain.net/admin.php?add-ons/Truonglv-ProfileCover/upgrade"
  ["_GET"] => array(1) {
    ["add-ons/Truonglv-ProfileCover/upgrade"] => string(0) ""
  }
  ["_POST"] => array(7) {
    ["_xfProcessing"] => string(1) "1"
    ["continue"] => string(1) "1"
    ["confirm"] => string(1) "1"
    ["params"] => string(2) "[]"
    ["count"] => string(1) "1"
    ["finished"] => string(1) "0"
    ["_xfToken"] => string(8) "********"
  }
}
Code:
ErrorException: Template error: Method canUploadProfileCover is not callable on the given object (Xfrocks\Medal\XF\Entity\User) src/XF/Template/Templater.php:935
Generated by: D.O.A. May 27, 2018 at 7:44 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Method canUploa...', '/srv/www/goregr...', 935, Array)
#1 src/XF/Template/Templater.php(935): trigger_error('Method canUploa...', 512)
#2 internal_data/code_cache/templates/l1/s27/public/tl_profile_cover_links.php(10): XF\Template\Templater->method(Object(Xfrocks\Medal\XF\Entity\User), 'canUploadProfil...', Array)
#3 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s27/public/account_visitor_menu.php(118): XF\Template\Templater->callMacro('tl_profile_cove...', 'visitor_menu', Array, Array)
#5 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_visitor...', Array)
#7 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#8 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Account\\Visi...', 'public:account_...', Array)
#9 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Account\\Visi...', 'public:account_...', Array)
#10 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#12 src/XF/App.php(1894): XF\Mvc\Dispatcher->run()
#13 src/XF.php(328): XF\App->run()
#14 index.php(13): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(149) "/account/visitor-menu?_xfRequestUri=%2Fmembers%2Fd-o-a.1%2F&_xfWithData=1&_xfToken=1527414267%2C6c61db6a0d64cd6a08a76428400ce8ae&_xfResponseType=json"
  ["referrer"] => string(38) "https://domain.net/members/d-o-a.1/"
  ["_GET"] => array(5) {
    ["/account/visitor-menu"] => string(0) ""
    ["_xfRequestUri"] => string(17) "/members/d-o-a.1/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1527414267,6c61db6a0d64cd6a08a76428400ce8ae"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}
 
#13
Version 1.0.5 has changed the permission IDs. So you could update their permissions. Do you mean 1.0.0 version for XF2?
Yes we went from your first xf2 1.0.0 version to 1.0.6 version. We are using import data from xenforo 1.x forum version.

I have changed permissions all to yes in every user group, still no options showing to upload on anyone's profile. No users old uploads are showing either. Disabled/re-enabled mod, rebuilt mod, rebuilt permissions... still nothing. Almost like it doesn't exist besides admin options.

Capture22222.PNG

Capture222.PNG Capture.PNG
 

truonglv

Staff member
Tech Support
#14
Yes we went from your first xf2 1.0.0 version to 1.0.6 version. We are using import data from xenforo 1.x forum version.

I have changed permissions all to yes in every user group, still no options showing to upload on anyone's profile. No users old uploads are showing either. Disabled/re-enabled mod, rebuilt mod, rebuilt permissions... still nothing. Almost like it doesn't exist besides admin options.

View attachment 2512 View attachment 2513 View attachment 2514
Can you see in the visitor popup panel?
 
Top